paper-with-me

홈 › Papers

Compiler generated feedback for Large Language Models

2024-03-18 · Dejan Grubisic, Chris Cummins, Volker Seeker, Hugh Leather

We introduce a novel paradigm in compiler optimization powered by Large Language Models 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 we compile the input with generated optimization passes and evaluate if the predicted instruction count is correct, generated IR is compilable, and corresponds to compiled code. We provide this feedback back to LLM and give it another chance to optimize code. This approach adds an extra 0.53% improvement over -Oz to the original model. Even though, adding more information with feedback seems intuitive, simple sampling techniques achieve much higher performance given 10 or more samples.

📄 PDF Abstract BibTeX arXiv:2403.14714

Code (0)

등록된 구현이 없습니다.

Tasks

Compiler Optimization

Similar Papers 제목 키워드 기반

Learning to Repair Lean Proofs from Compiler Feedback

2026-02-03 · Evan Wang, Simon Chess, Daniel Lee, Siyuan Ge 외 arxiv

As neural theorem provers become increasingly agentic, the ability to interpret and act on compiler feedback is critical. However, existing Lean datasets consist almost exclusively of correct proofs, offering little supe…

Compilable Neural Code Generation with Compiler Feedback

2022-03-10 · Findings (ACL) 2022 5 · Xin Wang, Yasheng Wang, Yao Wan, Fei Mi 외

Automatically generating compilable programs with (or without) natural language descriptions has always been a touchstone problem for computational linguistics and automated software engineering. Existing deep-learning a…

Code CompletionCode GenerationDecoderLanguage Modeling+3

AutoPass: Evidence-Guided LLM Agents for Compiler Performance Tuning

2026-06-18 · Zepeng Li, Jie Ren, Zhanyong Tang, Jie Zheng 외 arxiv

Large Language Models (LLMs) show promise for code compilation tasks, but applying them to runtime performance tuning is difficult due to complex microarchitectural effects and noisy runtime measurements. We present Auto…

Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedback

2024-03-25 · Zhangqian Bi, Yao Wan, Zheng Wang, Hongyu Zhang 외

Large Language Models (LLMs) have shown remarkable progress in automated code generation. Yet, LLM-generated code may contain errors in API usage, class, data structure, or missing project-specific information. As much o…

Code GenerationRetrieval

Compiler Optimization via LLM Reasoning for Efficient Model Serving

2025-06-02 · Sujun Tang, Christopher Priebe, Rohan Mahapatra, Lianhui Qin 외

While model serving has unlocked unprecedented capabilities, the high cost of serving large-scale models continues to be a significant barrier to widespread accessibility and rapid innovation. Compiler optimizations have…

Compiler OptimizationLarge Language Model