• bitcoinBitcoin(BTC)$80,645.005.19%
  • ethereumEthereum(ETH)$2,429.297.72%
  • tetherTether(USDT)$1.000.05%
  • binancecoinBNB(BNB)$718.104.18%
  • rippleXRP(XRP)$1.314.33%
  • usd-coinUSDC(USDC)$1.000.02%
  • solanaSolana(SOL)$96.195.24%
  • tronTRON(TRX)$0.319575-0.79%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.051.53%
  • zcashZcash(ZEC)$1,310.839.86%
  • HyperliquidHyperliquid(HYPE)$84.303.03%
  • dogecoinDogecoin(DOGE)$0.0771654.78%
  • moneroMonero(XMR)$636.781.41%
  • USDSUSDS(USDS)$1.000.02%
  • whitebitWhiteBIT Coin(WBT)$78.045.92%
  • chainlinkChainlink(LINK)$11.486.20%
  • leo-tokenLEO Token(LEO)$9.350.54%
  • cardanoCardano(ADA)$0.1977666.06%
  • stellarStellar(XLM)$0.1687845.82%
  • bitcoin-cashBitcoin Cash(BCH)$282.334.74%
  • nearNEAR Protocol(NEAR)$4.047.98%
  • uniswapUniswap(UNI)$7.678.65%
  • daiDai(DAI)$1.00-0.01%
  • Ethena USDeEthena USDe(USDE)$1.000.07%
  • litecoinLitecoin(LTC)$56.246.05%
  • RainRain(RAIN)$0.005989-7.32%
  • CantonCanton(CC)$0.0999814.13%
  • avalanche-2Avalanche(AVAX)$8.794.78%
  • suiSui(SUI)$0.936.21%
  • USD1USD1(USD1)$1.000.04%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.171.46%
  • tether-goldTether Gold(XAUT)$4,103.284.44%
  • hedera-hashgraphHedera(HBAR)$0.0728806.68%
  • quant-networkQuant(QNT)$203.617.83%
  • Global DollarGlobal Dollar(USDG)$1.000.02%
  • shiba-inuShiba Inu(SHIB)$0.0000054.77%
  • BittensorBittensor(TAO)$235.926.79%
  • paypal-usdPayPal USD(PYUSD)$1.000.02%
  • crypto-com-chainCronos(CRO)$0.0523435.65%
  • Ripple USDRipple USD(RLUSD)$1.000.02%
  • EthenaEthena(ENA)$0.1822877.39%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.02%
  • okbOKB(OKB)$112.855.84%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • pepePepe(PEPE)$0.0000055.55%
  • aaveAave(AAVE)$132.455.99%
  • OndoOndo(ONDO)$0.4106737.29%
  • Pump.funPump.fun(PUMP)$0.0043294.07%
  • MemeCoreMemeCore(M)$0.84-2.44%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Large Language Models Surprise Meta AI Researchers at Compiler Optimization!

September 24, 2023
in AI & Technology
Reading Time: 4 mins read
A A
Large Language Models Surprise Meta AI Researchers at Compiler Optimization!
ShareShareShareShareShare
“We thought this would be a paper about the obvious failings of LLMs that would serve as motivation for future clever ideas to overcome those failings. We were entirely taken by surprise to find that in many cases a sufficiently trained LLM can not only predict the best optimizations to apply to an input code, but it can also directly perform the optimizations without resorting to the compiler at all!”.   - Researchers at Meta AI

Meta AI Researchers were trying to make Large Language Models (LLMs) do the same kind of code optimizations that regular compilers, like LLVM, do. LLVM’s optimizer is incredibly complex, with thousands of rules and algorithms written in over 1 million lines of code in the C++ programming language.

They didn’t think LLMs could handle this complexity because they are typically used for tasks like translating languages and generating code. Compiler optimizations involve a lot of different types of thinking, maths, and using complex techniques, which they didn’t think LLMs were good at. But post methodology the results were absolutely surprising. 

The above image demonstrates the overview of the methodology, showing the model input (Prompt) and output (Answer) during training and inference. The prompt contains unoptimized code. The answer contains an optimization pass list, instruction counts, and the optimized code. During inference, only the optimization pass list is generated, which is then fed into the compiler, ensuring that the optimized code is correct.

Their approach is straightforward, starting with a 7-billion-parameter Large Language Model (LLM) architecture sourced from LLaMa 2 [25] and initializing it from scratch. The model is then trained on a vast dataset consisting of millions of LLVM assembly examples, each paired with the best compiler options determined through a search process for each assembly, as well as the resulting assembly code after applying those optimizations. Through these examples alone, the model acquires the ability to optimize code with remarkable precision.

The notable contribution of their work lies in being the first to apply LLMs to the task of code optimization. They create LLMs specifically tailored for compiler optimization, demonstrating that these models achieve a 3.0% improvement in code size reduction on a single compilation compared to a search-based approach that attains 5.0% improvement with 2.5 billion compilations. In contrast, state-of-the-art machine learning approaches lead to regressions and require thousands of compilations. The researchers also include supplementary experiments and code examples to provide a more comprehensive understanding of the potential and limitations of LLMs in code reasoning. Overall, they find the efficacy of LLMs in this context to be remarkable and believe that their findings will be of interest to the broader community.


Check out the Paper. All Credit For This Research Goes To the Researchers on This Project. Also, don’t forget to join our 30k+ ML SubReddit, 40k+ Facebook Community, Discord Channel, and Email Newsletter, where we share the latest AI research news, cool AI projects, and more.

If you like our work, you will love our newsletter..


YOU MAY ALSO LIKE

Cat Wu to Lead Product Management for OpenAI’s Core Products – Unite.AI

Snap Has More Than 30 Million Paid Subscribers Across Snapchat+ And Other Plans

Janhavi Lande, is an Engineering Physics graduate from IIT Guwahati, class of 2023. She is an upcoming data scientist and has been working in the world of ml/ai research for the past two years. She is most fascinated by this ever changing world and its constant demand of humans to keep up with it. In her pastime she enjoys traveling, reading and writing poems.


🚀 The end of project management by humans (Sponsored)

Credit: Source link

ShareTweetSendSharePin

Related Posts

Cat Wu to Lead Product Management for OpenAI’s Core Products – Unite.AI
AI & Technology

Cat Wu to Lead Product Management for OpenAI’s Core Products – Unite.AI

November 5, 2026
Snap Has More Than 30 Million Paid Subscribers Across Snapchat+ And Other Plans
AI & Technology

Snap Has More Than 30 Million Paid Subscribers Across Snapchat+ And Other Plans

November 4, 2026
Atmospheric AI Secures M Seed for Procurement Modeling Push – Unite.AI
AI & Technology

Atmospheric AI Secures $10M Seed for Procurement Modeling Push – Unite.AI

November 4, 2026
Perplexity Adds Live Web Grounding to Its Decisions API – Unite.AI
AI & Technology

Perplexity Adds Live Web Grounding to Its Decisions API – Unite.AI

November 4, 2026
Next Post
As Jobs Numbers, Global Central Bank Decisions Loom, Trader Stresses Conviction

As Jobs Numbers, Global Central Bank Decisions Loom, Trader Stresses Conviction

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Trump does not think Russian plague case is a bioweapon

Trump does not think Russian plague case is a bioweapon

October 30, 2026
The Economy Looks Strong, So Why Doesn’t Your Paycheck Feel Strong? | Week Ahead

The Economy Looks Strong, So Why Doesn’t Your Paycheck Feel Strong? | Week Ahead

November 2, 2026
Anthropic Weighs Offering 15%-20% of IPO to Retail Investors

Anthropic Weighs Offering 15%-20% of IPO to Retail Investors

October 29, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!