paperbot · PL 论文追踪

全部论文 待读 收藏

Understanding the Code and Architectural Smells Generated by LLMs and Autonomous Agents

理解 LLM 与自主代理生成的代码及架构坏味
ASE Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering2026引用 0 inbox
Yuecai Zhu, Nikolaos Tsantalis, Peter C. Rigby
crossref: 2026-10-09

AI 速览

一句话:系统审计 AI 生成软件的技术债,揭示机器签名缺陷、推理-复杂度权衡与体积-质量反比律。

论文指出,LLM 在自动软件工程中的承诺常以功能正确性衡量,却忽视了长期可维护性。作者对 AI 生成软件中的技术债进行系统审计,分析范围覆盖单文件算法任务与复杂自主代理生成的系统。研究发现,AI 并未消除缺陷,而是引入了一种独特的“机器签名”缺陷,并识别出推理-复杂度权衡:模型能力越强,生成的代码越臃肿、耦合越严重。这种架构退化非常显著,作者据此提出“体积-质量反比律”,即代码体积几乎可以完美预测结构退化。关键的是,功能正确性和详细提示都无法缓解这种退化。论文由此主张,AI 软件工程的核心问题应从代码生成转向架构复杂度管理,未来需让代理具备显式的架构远见,以确保软件不仅功能正确,而且可维护。

问题
LLM 与自主代理生成的软件常只被功能正确性评价,其长期可维护性、技术债以及代码/架构坏味尚未得到系统审视。
方法
对 AI 生成软件开展多尺度系统审计,覆盖单文件算法任务与复杂代理生成系统,分析代码和架构层面的结构退化,并考察模型能力与提示策略的影响。
评估
审计揭示 AI 生成代码存在独特“机器签名”缺陷和推理-复杂度权衡,并发现代码体积与结构退化近乎完美相关的体积-质量反比律;功能正确性与详细提示均不能缓解退化。
原文摘要(Abstract)

The promise of Large Language Models (LLMs) in automated software engineering is often measured by functional correctness, overlooking the critical issue of long-term maintainability. This paper presents a systematic audit of technical debt in AI-generated software, revealing that AI does not eliminate flaws but rather introduces a distinct "machine signature" of defects. Our multi-scale analysis—spanning single-file algorithmic tasks and complex, agent-generated systems—identifies a fundamental Reasoning-Complexity Trade-off: as models become more capable, they generate increasingly bloated and coupled code. This architectural decay is so pronounced that we establish a Volume-Quality Inverse Law, where code volume is a near-perfect predictor of structural degradation. Crucially, we demonstrate that neither functional correctness nor detailed prompting mitigates this decay. These findings challenge the current paradigm of prompt-driven generation, reframing the central problem of AI-based software engineering from one of code generation to one of architectural complexity management. We conclude that future progress depends on equipping agents with explicit architectural foresight to ensure the software they build is not just functional, but also maintainable.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot12331,
  title = {Understanding the Code and Architectural Smells Generated by LLMs and Autonomous Agents},
  author = {Yuecai Zhu and Nikolaos Tsantalis and Peter C. Rigby},
  booktitle = {ASE},
  year = {2026},
  doi = {10.1145/3832783.3834413}
}