arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.09135cs.SE
收藏

立场论文:弥合 LLM 代码生成语义鸿沟的编程语言技术

Position Paper: Programming Language Techniques for Bridging LLM Code Generation Semantic Gaps

Yalong Du, Chaozheng Wang, Huaijin Wang

AI总结:

本立场论文主张通过原则性整合编程语言技术(如结构化表示、形式正确性保证与验证机制),将 LLM 生成的代码从统计模式匹配提升至真正可靠、可解释且可验证的水平,以弥合语义鸿沟。

摘要:

大型语言模型在自动化代码生成中展现了卓越能力,但其统计特性和黑盒性质造成了显著的语义鸿沟,表现为语法错误、语义幻觉和可靠性问题。本立场论文主张,原则性地整合编程语言(PL)技术对于弥合这些鸿沟至关重要。通过结构化程序表示、形式正确性保证和稳健的验证机制,PL 技术能将 LLM 生成的代码从统计模式匹配提升至真正可靠和值得信赖的水平。这种整合对于开发生成不仅功能正确,而且可解释、可验证且最终值得信赖的代码的系统至关重要。

英文摘要:

Large Language Models have demonstrated remarkable capabilities in automated code generation, yet their statistical nature and black-box characteristics create significant semantic gaps manifested through syntax errors, semantic hallucinations, and reliability concerns. This position paper argues that principled integration of Programming Language (PL) techniques is essential for bridging these gaps. Through structured program representations, formal correctness guarantees, and robust verification mechanisms, PL techniques can elevate LLM-generated code from statistical pattern matching to truly reliable and trustworthy levels. This integration is crucial for developing systems that generate code that is not only functionally correct but also interpretable, verifiable, and ultimately trustworthy.

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

↑