• bitcoinBitcoin(BTC)$75,536.00-1.75%
  • ethereumEthereum(ETH)$2,394.89-3.19%
  • tetherTether(USDT)$1.00-0.03%
  • binancecoinBNB(BNB)$705.87-1.49%
  • rippleXRP(XRP)$1.28-8.16%
  • usd-coinUSDC(USDC)$1.00-0.01%
  • solanaSolana(SOL)$96.73-3.79%
  • tronTRON(TRX)$0.334707-0.86%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.00-2.44%
  • zcashZcash(ZEC)$1,184.463.63%
  • HyperliquidHyperliquid(HYPE)$77.43-1.79%
  • dogecoinDogecoin(DOGE)$0.079263-3.99%
  • RainRain(RAIN)$0.0138043.01%
  • USDSUSDS(USDS)$1.00-0.02%
  • moneroMonero(XMR)$502.46-2.66%
  • whitebitWhiteBIT Coin(WBT)$77.68-2.30%
  • leo-tokenLEO Token(LEO)$8.89-0.85%
  • chainlinkChainlink(LINK)$10.71-6.00%
  • cardanoCardano(ADA)$0.192678-5.80%
  • stellarStellar(XLM)$0.173746-9.62%
  • Ethena USDeEthena USDe(USDE)$1.00-0.05%
  • daiDai(DAI)$1.000.02%
  • bitcoin-cashBitcoin Cash(BCH)$217.45-1.75%
  • USD1USD1(USD1)$1.00-0.03%
  • litecoinLitecoin(LTC)$50.71-3.40%
  • uniswapUniswap(UNI)$6.24-5.56%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.31-2.13%
  • CantonCanton(CC)$0.090943-4.47%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • hedera-hashgraphHedera(HBAR)$0.073872-3.99%
  • avalanche-2Avalanche(AVAX)$7.19-4.10%
  • nearNEAR Protocol(NEAR)$2.34-1.69%
  • shiba-inuShiba Inu(SHIB)$0.000005-6.07%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.02%
  • suiSui(SUI)$0.68-3.44%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • tether-goldTether Gold(XAUT)$4,325.711.35%
  • crypto-com-chainCronos(CRO)$0.054858-4.34%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • MemeCoreMemeCore(M)$1.10-1.44%
  • BittensorBittensor(TAO)$213.97-5.61%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • okbOKB(OKB)$109.58-2.75%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.140.01%
  • BitwayBitway(BTW)$0.776.72%
  • pax-goldPAX Gold(PAXG)$4,330.991.44%
  • aaveAave(AAVE)$118.53-6.89%
  • AsterAster(ASTER)$0.67-2.25%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.056977-0.53%
  • mantleMantle(MNT)$0.54-2.88%
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

The Idea of Compiler-Generated Feedback for Large Language Models

March 26, 2024
in AI & Technology
Reading Time: 5 mins read
A A
The Idea of Compiler-Generated Feedback for Large Language Models
ShareShareShareShareShare

Large language models (LLMs) have proven success in various tasks in the software engineering domain, such as generating code and documentation, translating code between programming languages, writing unit tests, and detecting and fixing bugs. The availability of large open-source code datasets and Github-enabled models such as CodeLlama, ChatGPT, and Codex to develop a statistical understanding of various languages significantly improves the coding experience. Some models, such as AlphaCode, are pre-trained on competitive programming tasks, enabling the model to optimize code at the source level for several languages.

Previous machine learning-driven code optimization research tried multiple techniques, ranging from manually crafted features to complex and sophisticated graph neural networks. However, a common limitation in these approaches is that the representation of the input program provided to the machine learning model remains incomplete, resulting in some loss of critical information. For example, MLGO offers insights into function inlining but lacks faithful reconstruction of aspects such as the call graph and control flow. To overcome this problem, LLMs for fine-tuning LLVM optimization were proposed, which demonstrated remarkable code reasoning abilities.

The researchers from Meta AI and Rice University introduce a unique paradigm in compiler optimization powered by LLMs with compiler feedback to optimize the code size of LLVM assembly. The model takes unoptimized LLVM IR as input and produces optimized IR, the best optimization passes, and instruction counts of both unoptimized and optimized IRs. Then, the input is complied with generated optimization passes and evaluated to see if the predicted instruction count is correct if the generated IR is compilable, and if it corresponds to the compiled code. This feedback is returned to LLM, and another chance is given to optimize the code.

The method proceeds by evaluating the consistency of model generation by the compiler and

providing feedback to the model. For each generation of the original model, if the generated pass list is valid and predicted instruction counts are correct and calculated, the bleu score between the generated code and code is obtained by compiling the generated pass list. The generated and compiled code in the feedback is also provided.

The proposed model outperforms the original model by 0.53%, closing the gap to the autotuner by 10%. On the other hand, when sampling is enabled, it is shown that the original model achieves up to 98% of the autotuner performance when 100 samples are used. While comparing the performance of the iterative feedback model with the original model, it was given the same amount of computation per sample, and it was found that with two or more samples and a temperature higher than 0.4, the original model outperformed the feedback model.

The researchers have made the following contributions in this paper:

  • Presented three compiler-generated feedback models for LLMs.
  • Performed evaluation of 3 sampling methods with feedback.
  • Evaluated iterative feedback generation.

In conclusion, the researchers from Meta AI and Rice University introduce the idea of compiler-generated feedback for LLMs. The model starts from unoptimized LLVM IR and predicts the best optimization passes, instruction counts, and optimized IR. Then, they construct feedback on the model’s generation and ask the model to try again. All forms of feedback outperform the original model on temperature 0 by 0.11%, 0.4%, and 0.53%.


Check out the Paper. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter. Join our Telegram Channel, Discord Channel, and LinkedIn Group.

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

Don’t Forget to join our 39k+ ML SubReddit


YOU MAY ALSO LIKE

Can Independent Testing Make AI Safer?

AI Needs a Full Stop, Not a Slowdown: Parmy Olson

Asjad is an intern consultant at Marktechpost. He is persuing B.Tech in mechanical engineering at the Indian Institute of Technology, Kharagpur. Asjad is a Machine learning and deep learning enthusiast who is always researching the applications of machine learning in healthcare.


🐝 Join the Fastest Growing AI Research Newsletter Read by Researchers from Google + NVIDIA + Meta + Stanford + MIT + Microsoft and many others…


Credit: Source link

ShareTweetSendSharePin

Related Posts

Can Independent Testing Make AI Safer?
AI & Technology

Can Independent Testing Make AI Safer?

September 16, 2026
AI Needs a Full Stop, Not a Slowdown: Parmy Olson
AI & Technology

AI Needs a Full Stop, Not a Slowdown: Parmy Olson

September 16, 2026
AI’s Frontier Faces Calls for Safety Slowdown
AI & Technology

AI’s Frontier Faces Calls for Safety Slowdown

September 16, 2026
Cohere CEO Warns Against an AI Safety ‘Cartel’
AI & Technology

Cohere CEO Warns Against an AI Safety ‘Cartel’

September 16, 2026
Next Post
The Oversight Board weighs in on Meta’s most-moderated word

The Oversight Board weighs in on Meta’s most-moderated word

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Trump predicts the Iran war will end after the midterms

Trump predicts the Iran war will end after the midterms

September 12, 2026
KSLV Vs. SLVP: A 26% Yield Hasn't Been Enough

KSLV Vs. SLVP: A 26% Yield Hasn't Been Enough

September 11, 2026
Moment of silence held in Shanksville for victims of United Flight 93

Moment of silence held in Shanksville for victims of United Flight 93

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