paperbot · PL 论文追踪

全部论文 待读 收藏

P1 An LLM-Based Agent-Oriented Approach for Automated Code Design Issue Localization

基于LLM的智能体方法用于自动化代码设计问题定位
ICSE 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE)2025匹配度 6/10 · 该论文位于'LLM/Agent 与程序分析交叉'的交叉带上:它把程序分析(设计问题的静态检测)的输出转成 LLM 可理解的自然语言摘要,再用多智能体定位设计问题,与用户'PL↔AI 双向交叉'的主线方向有实质重叠,且属于 Agent 作为工具而非研究目标本身的研究。但其落点是代码设计质量(信息隐藏、复杂度、模块化)的缺陷定位,而非静态分析/形式化验证方法本身的改进,也未涉及浮点或贝叶斯程序分析,理论与形式化成分较弱,因此只能算方向邻近而非正中核心。引用 15 inbox
Fraol Batole, David OBrien, Tien N. Nguyen, Robert Dyer, Hridesh Rajan
crossref: 2026-09-12

AI 速览

一句话:提出多智能体框架LOCALIZEAGENT,利用LLM将程序分析结果转为自然语言摘要并定位代码设计问题。

软件设计质量对系统长期可维护性至关重要,但代码库增长会引入模块化差、复杂度过高等设计问题。开发者常依赖程序分析工具识别问题,然而大型代码库超出LLM上下文窗口,且程序分析输出(如程序依赖图、交互式可视化)为非文本模态,难以直接作为LLM的自然语言输入。为此,本文提出LOCALIZEAGENT,一个多智能体框架,集成四类专门智能体:分析代码以识别潜在设计问题、将程序分析输出转化为抽象感知且LLM友好的自然语言摘要、生成面向特定重构类型的上下文提示、利用LLM定位并排序相关设计问题。在多个真实代码库上的评估表明,该方法显著优于基线,在信息隐藏、复杂度和模块化问题定位的精确匹配准确率上分别取得138%、166%和206%的相对提升。

问题
代码库中设计问题(如信息隐藏、复杂度、模块化)难以自动定位,现有程序分析工具输出非文本且大型代码库超出LLM上下文窗口。
方法
提出多智能体框架LOCALIZEAGENT,将代码分析、程序分析结果到自然语言摘要的转换、重构类型感知提示生成以及LLM定位与排序相结合。
评估
在多个真实世界代码库上评估,与基线方法比较,报告信息隐藏、复杂度和模块化问题定位的精确匹配准确率相对提升138%、166%和206%。
原文摘要(Abstract)

Maintaining software design quality is crucial for the long-term maintainability and evolution of systems. However, design issues such as poor modularity and excessive complexity often emerge as codebases grow. Developers rely on external tools, such as program analysis techniques, to identify such issues. This work leverages Large Language Models (LLMs) to develop an automated approach for analyzing and localizing design issues. Large language models have demonstrated significant performance on coding tasks, but directly leveraging them for design issue localization is challenging. Large codebases exceed typical LLM context windows, and program analysis tool outputs in non-textual modalities (e.g., graphs or interactive visualizations) are incompatible with LLMs' natural language inputs. To address these challenges, we propose LOCALIZEAGENT, a novel multi-agent framework for effective design issue localization. LOCALIZEAGENT integrates the specialized agents that (1) analyze code to identify potential code design issues, (2) transform program analysis outputs into abstraction-aware LLM-friendly natural language summaries, (3) generate context-aware prompts tailored to specific refactoring types, and (4) leverage LLMs to locate and rank the localized issues based on their relevance. Our evaluation using diverse real-world codebases demonstrates significant improvements over the baseline approaches, with LOCALIZEAGENT achieving$138 \%, 166 \%$, and 206 % relative improvements in exact-match accuracy for localizing information hiding, complexity, and modularity issues, respectively.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8780,
  title = {An LLM-Based Agent-Oriented Approach for Automated Code Design Issue Localization},
  author = {Fraol Batole and David OBrien and Tien N. Nguyen and Robert Dyer and Hridesh Rajan},
  booktitle = {ICSE},
  year = {2025},
  doi = {10.1109/icse55347.2025.00100}
}