• bitcoinBitcoin(BTC)$75,667.00-5.90%
  • ethereumEthereum(ETH)$2,228.64-7.89%
  • tetherTether(USDT)$1.00-0.04%
  • binancecoinBNB(BNB)$692.25-3.06%
  • rippleXRP(XRP)$1.20-7.94%
  • usd-coinUSDC(USDC)$1.00-0.02%
  • solanaSolana(SOL)$89.45-6.83%
  • tronTRON(TRX)$0.318271-0.38%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.04-1.02%
  • zcashZcash(ZEC)$1,281.88-2.51%
  • HyperliquidHyperliquid(HYPE)$77.20-7.16%
  • moneroMonero(XMR)$621.14-2.73%
  • dogecoinDogecoin(DOGE)$0.071668-6.58%
  • USDSUSDS(USDS)$1.000.00%
  • whitebitWhiteBIT Coin(WBT)$72.76-6.48%
  • leo-tokenLEO Token(LEO)$9.35-0.05%
  • chainlinkChainlink(LINK)$10.80-6.21%
  • cardanoCardano(ADA)$0.183708-7.12%
  • bitcoin-cashBitcoin Cash(BCH)$274.20-2.75%
  • stellarStellar(XLM)$0.154461-7.76%
  • nearNEAR Protocol(NEAR)$3.67-8.53%
  • Ethena USDeEthena USDe(USDE)$1.00-0.06%
  • daiDai(DAI)$1.000.01%
  • RainRain(RAIN)$0.0061002.47%
  • uniswapUniswap(UNI)$6.95-9.66%
  • litecoinLitecoin(LTC)$52.43-6.42%
  • CantonCanton(CC)$0.097008-5.41%
  • avalanche-2Avalanche(AVAX)$8.28-5.44%
  • USD1USD1(USD1)$1.00-0.02%
  • suiSui(SUI)$0.86-7.68%
  • tether-goldTether Gold(XAUT)$4,025.36-2.23%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.10-5.20%
  • hedera-hashgraphHedera(HBAR)$0.068333-6.09%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • quant-networkQuant(QNT)$189.57-8.21%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • shiba-inuShiba Inu(SHIB)$0.000005-3.47%
  • Ripple USDRipple USD(RLUSD)$1.000.03%
  • BittensorBittensor(TAO)$219.66-6.50%
  • crypto-com-chainCronos(CRO)$0.049148-5.98%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.17%
  • okbOKB(OKB)$105.12-6.06%
  • EthenaEthena(ENA)$0.163042-9.70%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • pepePepe(PEPE)$0.000005-1.77%
  • aaveAave(AAVE)$130.51-1.37%
  • MemeCoreMemeCore(M)$0.840.88%
  • Spiko Amundi Overnight Swap Fund (EUR)Spiko Amundi Overnight Swap Fund (EUR)(EURSAFO)$1.14-0.58%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Falcon USDFalcon USD(USDF)$0.990.07%
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

Airbnb Discloses AI Lab Deal With Investment and Licensing Rights – Unite.AI

Perplexity Cuts Agent API Research Costs and Adds Ultra Effort – Unite.AI

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

Airbnb Discloses AI Lab Deal With Investment and Licensing Rights – Unite.AI
AI & Technology

Airbnb Discloses AI Lab Deal With Investment and Licensing Rights – Unite.AI

November 6, 2026
Perplexity Cuts Agent API Research Costs and Adds Ultra Effort – Unite.AI
AI & Technology

Perplexity Cuts Agent API Research Costs and Adds Ultra Effort – Unite.AI

November 5, 2026
Blue Origin’s New Glenn Launch Delay Will Continue Into 2027
AI & Technology

Blue Origin’s New Glenn Launch Delay Will Continue Into 2027

November 5, 2026
Five9 Agrees to Buy Level AI and Broaden CX AI Distribution – Unite.AI
AI & Technology

Five9 Agrees to Buy Level AI and Broaden CX AI Distribution – Unite.AI

November 5, 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
Televangelist Jim Bakker dies at 86

Televangelist Jim Bakker dies at 86

October 31, 2026
Prospect Capital: A 29% Yield Paid From A Shrinking Portfolio (NASDAQ:PSEC)

Prospect Capital: A 29% Yield Paid From A Shrinking Portfolio (NASDAQ:PSEC)

November 5, 2026
Rubio says U.S. wants to strengthen ties with Iceland

Rubio says U.S. wants to strengthen ties with Iceland

October 31, 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!