arXiv:2604.14867cs.SEcs.AI2026-04

用精准反馈让AI自动修正代码,无需人工检查。

Vibe-Coding: Feedback-Based Automated Verification with no Human Code Inspection, a Feasibility Study

论文配图:Vibe-Coding: Feedback-Based Automated Verification with no Human Code Inspection, a Feasibility Study
图 1 · 摘自论文原文
  • 结合架构与功能约束,生成可执行的细粒度错误反馈。
  • 在几次迭代内成功生成有效自适应管理器,而粗略反馈常导致停滞。
  • 适合无编程基础的领域专家构建动态系统,降低人工介入需求。

Vibe编码依赖于基于反馈循环的LLM生成代码迭代优化。尽管在常规软件任务中有效,但在运行时自适应系统中的可靠性尚不明确,尤其当代码未经过人工审查时。本文研究了在集体自适应系统(CAS)中,对LLM生成的自适应管理器进行基于反馈的自动化验证。核心挑战在于如何在运行时检测代码故障,并提供足够精确的报告以使LLM能够修复。方法将适应循环与Vibe编码反馈循环结合,通过(i)通用架构约束和(ii)形式化为功能约束逻辑(FCL)的函数约束——一种针对可能有限轨迹的一阶时序逻辑——进行正确性检验。通过龙猎案例研究,我们发现细粒度约束违规可提供可操作反馈,通常在数次迭代内生成有效自适应管理器;而简单粗略的指标反馈则常导致停滞。结果表明,反馈精度是确保无编程技能领域专家实现可靠Vibe编码的关键因素,从而无需人工代码审查。

原文摘要 · Abstract (English)

Vibe coding inherently assumes iterative refinement of LLM-generated code through feedback loops. While effective for conventional software tasks, its reliability in runtime-adaptive systems is unclear -- especially when generated code is not manually inspected. This paper studies feedback-based automated verification of LLM-generated adaptation managers in Collective Adaptive Systems (CAS). We focus on the key challenges of verification in the loop: how to detect failures of generated code at runtime and how to report them precisely enough for an LLM to fix them. We combine the adaptation loop with a vibe-coding feedback loop where correctness is checked against (i) generic architectural constraints and (ii) functional constraints formalized in Functional Constraints Logic (FCL), a novel first-order temporal logic over potentially finite traces. Conducting the Dragon Hunt CAS case study, we show that fine-grained constraint violations provide actionable feedback that typically yields a valid adaptation manager within a few iterations, while simple coarse metric-based feedback often stalls. Our findings suggest that feedback precision is the dominant factor for reliable vibe coding in systems designed by domain experts with no programming skills, thereby obviating the need for human code inspection.

自动化验证LLM编码自适应系统

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。