arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.03766cs.SE
收藏

通过智能大语言模型实现语义感知和自我改进的程序简化

Semantic-aware and Self-improving Program Reduction via Agentic Large Language Models

University of Waterloo(滑铁卢大学);Tsinghua University(清华大学);Monash University(蒙纳士大学)

Xintong Zhou, Hongxu Xu, Chunhao Liao, Puzhuo Liu, Yongqiang Tian, Chengnian Sun

AI总结:

研究将程序简化作为由智能大语言模型驱动的自主推理任务,方法是让模型分析语义、提出假设并迭代改进,还能提炼经验,PROJ框架实现该方法,实验表明其优于现有技术。

摘要:

将触发错误的程序简化为最小基本形式是调试语言处理器的基本任务。现有技术受限于缺乏语义理解和无法学习经验。我们提出新方法,将程序简化重塑为由智能大语言模型驱动的自主推理任务,通过PROJ框架实现,实验表明其优于现有技术。

英文摘要:

Reducing bug-triggering programs to their minimal essential form is a fundamental task in debugging language processors such as compilers and interpreters. Existing reduction techniques are limited by their reliance on predefined, syntax-driven transformations that lack semantic understanding of the target program, and by their inability to learn from past reduction experiences. We present a new approach that recasts program reduction as an autonomous reasoning task powered by agentic Large Language Models (LLMs). Instead of applying fixed transformation rules, our method enables an LLM to analyze program semantics, formulate reduction hypotheses, and iteratively refine its approach based on execution outcomes. Successful reduction experiences are further distilled into reusable strategies, allowing the system to continuously improve over time. We realize this approach in PROJ, a framework built around two collaborative components: a reducer agent that performs semantic-aware, case-specific program reduction, and a reflector agent that extracts and accumulates transferable reduction knowledge. Extensive experiments on 90 benchmarks spanning three programming languages show that PROJ consistently produces smaller reduced programs than all existing state-of-the-art reducers while maintaining high efficiency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑