arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.00202cs.SEcs.LGcs.LO
收藏

立场:Vibe Coding需要Vibe Reasoning:通过形式化验证改进Vibe Coding

Position: Vibe Coding Needs Vibe Reasoning: Improving Vibe Coding with Formal Verification

University of Southern California(南加州大学)

Jacqueline Mitchell, Yasser Shaaban

AI总结:

指出vibe coding因LLM无法调和约束导致技术债务等问题,提出通过side-car形式化验证系统自动形式化规范、验证目标、提供反馈并允许开发者干预,以提升可靠性。

摘要:

“Vibe coding”——通过与大型语言模型(LLM)迭代对话来开发软件的实践——在过去一年中迅速流行。然而,开发者报告了关键局限性,包括技术债务的积累、安全问题以及为实现满意结果而产生的代码流失。我们认为,这些缺陷源于LLM在vibe coding期间无法调和不断积累的人类施加的约束,开发者因LLM优先考虑用户命令而非代码一致性,无意中未能解决矛盾。鉴于LLM对基于验证的反馈的接受度,我们认为形式化方法可以缓解这些缺陷,使vibe coding更可靠。然而,我们主张整合形式化方法必须超越现有结合形式化方法与LLM的方法。我们倡导在vibe coding全程中引入side-car系统,该系统:(1)自动形式化规范,(2)针对目标进行验证,(3)向LLM提供可操作的反馈,(4)允许开发者直观地影响规范。

英文摘要:

``Vibe coding'' -- the practice of developing software through iteratively conversing with a large language model (LLM) -- has exploded in popularity within the last year. However, developers report key limitations including the accumulation of technical debt, security issues, and code churn to achieve satisfactory results. We argue that these pitfalls result from LLMs' inability to reconcile accumulating human-imposed constraints during vibe coding, with developers inadvertently failing to resolve contradictions because LLMs prioritize user commands over code consistency. Given LLMs' receptiveness to verification-based feedback, we argue that formal methods can mitigate these pitfalls, making vibe coding more reliable. However, we posit that integrating formal methods must transcend existing approaches that combine formal methods and LLMs. We advocate for a side-car system throughout the vibe coding process which: (1) \emph{Autoformalizes} specifications (2) Validates against targets, (3) Delivers \emph{actionable} feedback to the LLM, and (4) Allows intuitive developer influence on specifications.

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

↑