LPR: Large Language Models-Aided Program Reduction
Mengxiao Zhang, Yongqiang Tian, Zhenyang Xu, Yiwen Dong, Shin Hwei Tan, and Chengnian Sun

TL;DR
LPR introduces a novel approach combining language-generic syntax reduction and language-specific semantic transformations via large language models to improve program reduction across multiple programming languages, outperforming existing methods.
Contribution
This paper presents the first technique leveraging LLMs for multi-language program reduction, balancing generality and language-specific semantics.
Findings
LPR produces significantly smaller programs than Vulcan in C, Rust, and JavaScript.
LPR reduces reduction time by up to 36.96% compared to Vulcan.
LPR and Vulcan can be combined to achieve reductions comparable to C-Reduce.
Abstract
Program reduction is a prevalent technique to facilitate compilers' debugging by automatically minimizing bug-triggering programs. Existing program reduction techniques are either generic across languages (e.g., Perses and Vulcan) or specifically customized for one certain language by employing language-specific features, like C-Reduce. However, striking the balance between generality across multiple programming languages and specificity to individual languages in program reduction is yet to be explored. This paper proposes LPR, the first technique utilizing LLMs to perform language-specific program reduction for multiple languages. The core insight is to utilize both the language-generic syntax level program reduction (e.g., Perses) and the language-specific semantic level program transformations learned by LLMs. Alternately, language-generic program reducers efficiently reduce…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Software Engineering Research · Software System Performance and Reliability
