• bitcoinBitcoin(BTC)$76,383.00-3.00%
  • ethereumEthereum(ETH)$2,422.29-4.17%
  • tetherTether(USDT)$1.00-0.03%
  • binancecoinBNB(BNB)$719.38-0.70%
  • rippleXRP(XRP)$1.39-1.98%
  • usd-coinUSDC(USDC)$1.00-0.02%
  • solanaSolana(SOL)$99.12-3.33%
  • tronTRON(TRX)$0.335543-1.89%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.053.47%
  • zcashZcash(ZEC)$1,116.55-1.89%
  • HyperliquidHyperliquid(HYPE)$76.80-4.58%
  • dogecoinDogecoin(DOGE)$0.081663-3.27%
  • USDSUSDS(USDS)$1.00-0.02%
  • RainRain(RAIN)$0.013609-4.98%
  • moneroMonero(XMR)$512.79-0.68%
  • whitebitWhiteBIT Coin(WBT)$78.72-3.36%
  • chainlinkChainlink(LINK)$11.28-2.01%
  • leo-tokenLEO Token(LEO)$8.79-2.26%
  • cardanoCardano(ADA)$0.202102-4.15%
  • stellarStellar(XLM)$0.189836-2.50%
  • Ethena USDeEthena USDe(USDE)$1.00-0.05%
  • daiDai(DAI)$1.000.00%
  • bitcoin-cashBitcoin Cash(BCH)$221.38-1.76%
  • USD1USD1(USD1)$1.00-0.04%
  • litecoinLitecoin(LTC)$51.82-4.36%
  • uniswapUniswap(UNI)$6.410.17%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.33-2.09%
  • CantonCanton(CC)$0.092847-4.55%
  • hedera-hashgraphHedera(HBAR)$0.077702-0.01%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • avalanche-2Avalanche(AVAX)$7.44-1.49%
  • nearNEAR Protocol(NEAR)$2.38-3.91%
  • shiba-inuShiba Inu(SHIB)$0.000005-3.26%
  • suiSui(SUI)$0.70-3.96%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.04%
  • crypto-com-chainCronos(CRO)$0.056948-3.25%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • tether-goldTether Gold(XAUT)$4,293.80-0.54%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • BittensorBittensor(TAO)$224.93-4.14%
  • MemeCoreMemeCore(M)$1.121.58%
  • Ripple USDRipple USD(RLUSD)$1.00-0.01%
  • okbOKB(OKB)$110.89-2.83%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.14-0.14%
  • aaveAave(AAVE)$124.88-1.65%
  • BitwayBitway(BTW)$0.70-0.22%
  • AsterAster(ASTER)$0.69-1.57%
  • pax-goldPAX Gold(PAXG)$4,296.39-0.59%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.057084-0.59%
  • mantleMantle(MNT)$0.55-3.95%
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

Are Older MacBooks Still Worth Buying In 2026?

This Is A Great Place To Store Your Old Hard Drives And Keep Them Safe

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

Are Older MacBooks Still Worth Buying In 2026?
AI & Technology

Are Older MacBooks Still Worth Buying In 2026?

September 15, 2026
This Is A Great Place To Store Your Old Hard Drives And Keep Them Safe
AI & Technology

This Is A Great Place To Store Your Old Hard Drives And Keep Them Safe

September 15, 2026
Salesforce Debuts Koa Reasoning Model for Agentforce, Trained on Nemotron – Unite.AI
AI & Technology

Salesforce Debuts Koa Reasoning Model for Agentforce, Trained on Nemotron – Unite.AI

September 15, 2026
2 Ways Android Users Can Take Advantage Of Apple’s MagSafe Accessories
AI & Technology

2 Ways Android Users Can Take Advantage Of Apple’s MagSafe Accessories

September 15, 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
Google Open-Sources Mantis: A Modular Skills Toolkit That Lets Coding Agents Find, Reproduce and Patch Vulnerabilities

Google Open-Sources Mantis: A Modular Skills Toolkit That Lets Coding Agents Find, Reproduce and Patch Vulnerabilities

September 9, 2026
Grocers file antitrust suit to block Mamdami admin’s plan for NYC-owned supermarkets: ‘Predatory pricing’

Grocers file antitrust suit to block Mamdami admin’s plan for NYC-owned supermarkets: ‘Predatory pricing’

September 9, 2026
Anthropic’s 3-Step ‘Pace the Frontier’ Plan Wins OpenAI, xAI and Microsoft Support: Is It Too Late to Slow AI Down?

Anthropic’s 3-Step ‘Pace the Frontier’ Plan Wins OpenAI, xAI and Microsoft Support: Is It Too Late to Slow AI Down?

September 14, 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!