arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.06017cs.SEcs.CLcs.LG
收藏

立场:智能编码系统应编写带有证明的程序

Position: Intelligent Coding Systems Should Write Programs with Justifications

Purdue University(普渡大学)

Xiangzhe Xu, Shiwei Feng, Zian Su, Chengpeng Wang, Xiangyu Zhang

AI总结:

本文指出智能编码系统应提供清晰一致的证明以增强信任,提出认知对齐与语义忠实性两大属性,并倡导利用神经符号方法在训练和推理时实现自动化一致性检查。

摘要:

智能编码系统正通过允许用户用自然语言指定代码行为来变革软件开发。然而,AI驱动的编码器的不透明决策引发了信任和可用性担忧,特别是对于无法检查底层实现的非专家用户。我们认为,这些系统不仅应生成代码,还应产生清晰、一致的证明,以弥合模型推理与用户理解之间的鸿沟。为此,我们确定了两个关键的证明属性——认知对齐和语义忠实性——并强调了现有方法的局限性,包括形式验证、静态分析和事后可解释性。我们提倡探索用于证明生成的神经符号方法,其中符号约束在训练期间引导模型行为,并通过神经表示丰富程序语义,从而在推理时实现自动化的一致性检查。

英文摘要:

Intelligent coding systems are transforming software development by enabling users to specify code behavior in natural language. However, the opaque decision-making of AI-driven coders raises trust and usability concerns, particularly for non-expert users who cannot inspect low-level implementations. We argue that these systems should not only generate code but also produce clear, consistent justifications that bridge model reasoning and user understanding. To this end, we identify two critical justification properties-cognitive alignment and semantic faithfulness-and highlight the limitations of existing methods, including formal verification, static analysis, and post-hoc explainability. We advocate exploring neuro-symbolic approaches for justification generation, where symbolic constraints guide model behavior during training and program semantics are enriched through neural representations, enabling automated consistency checks at inference time.

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

↑