最新资讯
dev.to 精简 MCP server 工具数量:更少工具、更小影响面,双重收益 dev.to 为什么 git checkout 无法撤销 AI 编码 agent 的改动? wechat AI短剧门槛降降降!实测即梦短剧工作室:剧本分镜预演一条龙,伙伴计划长期护航 dev.to 让模型改写文档前,先量化事实保真度 dev.to 回放 153 个 Claude Code 与 Codex 会话,审计 Agent 的生产影响范围 dev.to 银行 77 意图分类最便宜 LLM:GPT-6.1 Terra 每次成功任务 $0.000727 theinformation.com Chesky的副业:Airbnb向CEO新设AI实验室出售IP theverge.com OpenAI 宣布数据中心项目不再与公职人员签署保密协议 dev.to NVIDIA 发布四个开放 Cosmos 3 仿真模型 dev.to 真实 MCP 客户端击穿我们服务器的五种方式 theverge.com Airbnb 正在开发 AI 旅行 agent,计划 2027 年上半年推出 wechat 这可能是美国AI最魔幻的一天。
多元动态
登录 注册
智能体 arxiv.org ·

约束衰减:LLM 智能体在后端代码生成中的脆弱性

原文 我的收藏

该论文系统评估 LLM 智能体在多文件后端代码生成中对结构约束的遵循能力。作者在 8 个 Web 框架上固定统一 API 契约,设置 80 个绿地生成任务与 20 个功能实现任务,结合端到端行为测试与静态验证器进行双重评估。结果显示存在“约束衰减”现象:随结构要求累积,智能体断言通过率从基线到完全指定任务平均下降 27.28 分。框架敏感性分析表明,中等能力模型在 Flask 等最小化、显式框架上表现较好,而在 FastAPI、Django 等约定密集环境中平均表现明显更差。错误分析将数据层缺陷(如查询组合错误、ORM 运行时违规)列为主要根因。作者认为,同时满足功能性与结构性要求仍是编码智能体的关键开放挑战。

AI推荐理由 arXiv 论文(cs.SE/cs.AI),有明确作者、提交与修订记录及可验证实验设计:固定统一 API 契约,覆盖 8 个 Web 框架、80 个绿地生成任务与 20 个功能实现任务,采用端到端行为测试与静态验证双重评估。核心新信息是提出并量化“约束衰减”现象——随结构约束累积,智能体断言通过率平均下降 27.28 分;并给出框架敏感性差异(Flask 等显式框架表现较好,FastAPI、Django 等约定密集框架明显更差)及错误根因(数据层缺陷,如查询构造错误与 ORM 运行时违规)。局限在于摘要未披露具体模型清单、样本规模细节与统计显著性,结论基于其自建任务集,尚需复现验证。

82

正文

Computer Science > Software Engineering arXiv:2605.06445 (cs) [Submitted on 7 May 2026 (v1), last revised 18 Sep 2026 (this version, v2)] Title:Constraint Decay: The Fragility of LLM Agents in Backend Code Generation Authors:Francesco Dente, Dario Satriani, Paolo Papotti View a PDF of the paper titled Constraint Decay: The Fragility of LLM Agents in Backend Code Generation, by Francesco Dente and 2 other authors View PDF HTML (experimental) Abstract:Large Language Model (LLM) agents demonstrate strong performance in autonomous code generation under loose specifications. However, production-grade software requires strict adherence to structural constraints, such as architectural patterns, databases, and object-relational mappings. Existing benchmarks often overlook these non-functional requirements, rewarding functionally correct but structurally arbitrary solutions. We present a systematic study evaluating how well agents handle structural constraints in multi-file backend generation. By fixing a unified API contract across 80 greenfield generation tasks and 20 feature-implementation tasks spanning eight web frameworks, we isolate the effect of structural complexity using a dual evaluation with end-to-end behavioral tests and static verifiers. Our findings reveal a phenomenon of constraint decay: as structural requirements accumulate, agent performance exhibits a substantial decline. Evaluated configurations lose 27.28 points on average in assertion pass rates from baseline to fully specified tasks. Framework sensitivity analysis exposes performance disparities: mid-tier models succeed in minimal, explicit frameworks (e.g., Flask) but perform substantially worse on average in convention-heavy environments (e.g., FastAPI, Django). Finally, error analysis identifies data-layer defects (e.g., incorrect query composition and ORM runtime violations) as the leading root causes. This work highlights that jointly satisfying functional and structural requirements remains a key open challenge for coding agents. Subjects: Software Engineering (cs.SE); Artificial Intelligence (cs.AI) Cite as: arXiv:2605.06445 [cs.SE] (or arXiv:2605.06445v2 [cs.SE] for this version) https://doi.org/10.48550/arXiv.2605.06445 Focus to learn more arXiv-issued DOI via DataCite Submission history From: Francesco Dente Dente [view email] [v1] Thu, 7 May 2026 15:44:40 UTC (401 KB) [v2] Fri, 18 Sep 2026 13:05:56 UTC (410 KB) Full-text links: Access Paper: View a PDF of the paper titled Constraint Decay: The Fragility of LLM Agents in Backend Code Generation, by Francesco Dente and 2 other authors View PDF HTML (experimental) TeX Source view license Current browse context: cs.SE new | recent | 2026-05 Change to browse by: cs cs.AI References & Citations NASA ADS Google Scholar Semantic Scholar export BibTeX citation Loading... BibTeX formatted citation × loading... Data provided by: Bookmark Bibliographic Tools Bibliographic and Citation Tools Bibliographic Explorer Toggle Bibliographic Explorer (What is the Explorer?) Connected Papers Toggle Connected Papers (What is Connected Papers?) Litmaps Toggle Litmaps (What is Litmaps?) scite.ai Toggle scite Smart Citations (What are Smart Citations?) Code, Data, Media Code, Data and Media Associated with this Article alphaXiv Toggle alphaXiv (What is alphaXiv?) Links to Code Toggle CatalyzeX Code Finder for Papers (What is CatalyzeX?) DagsHub Toggle DagsHub (What is DagsHub?) GotitPub Toggle Gotit.pub (What is GotitPub?) Huggingface Toggle Hugging Face (What is Huggingface?) ScienceCast Toggle ScienceCast (What is ScienceCast?) Demos Demos Replicate Toggle Replicate (What is Replicate?) Spaces Toggle Hugging Face Spaces (What is Spaces?) Spaces Toggle TXYZ.AI (What is TXYZ.AI?) Related Papers Recommenders and Search Tools Link to Influence Flower Influence Flower (What are Influence Flowers?) Core recommender toggle CORE Recommender (What is CORE?) Author Venue Institution Topic About arXivLabs arXivLabs: experimental projects with community collaborators arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website. Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them. Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs. Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

来源报道 · 1 篇 · 以下链接均前往原始媒体

← 返回精选动态 原文

更多内容