arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.16279cs.SEcs.AIcs.CR
收藏

超越信任信任:多模型验证实现稳健代码生成

Beyond Trusting Trust: Multi-Model Validation for Robust Code Generation

Franklin and Marshall College(富兰克林与马歇尔学院)

Bradley McDanel

AI总结:

本文借鉴Thompson的编译器后门思想,分析LLM代码生成中的安全挑战,并提出基于多模型共识的集成验证方法以检测异常代码模式。

摘要:

本文探讨了Thompson的《关于信任的反思》与基于大型语言模型的代码生成所面临的现代挑战之间的相似之处。我们考察了Thompson关于编译器后门的见解如何在大型语言模型时代获得新的相关性,在这个时代,潜在利用的机制更加不透明且难以分析。基于这一类比,我们讨论了LLM的统计特性如何在代码生成流程中引发新的安全挑战。作为潜在的前进方向,我们提出了一种基于集成的验证方法,利用多个独立模型通过跨模型共识来检测异常代码模式。这篇观点文章旨在引发关于AI辅助软件开发中信任与验证的讨论。

英文摘要:

This paper explores the parallels between Thompson's "Reflections on Trusting Trust" and modern challenges in LLM-based code generation. We examine how Thompson's insights about compiler backdoors take on new relevance in the era of large language models, where the mechanisms for potential exploitation are even more opaque and difficult to analyze. Building on this analogy, we discuss how the statistical nature of LLMs creates novel security challenges in code generation pipelines. As a potential direction forward, we propose an ensemble-based validation approach that leverages multiple independent models to detect anomalous code patterns through cross-model consensus. This perspective piece aims to spark discussion about trust and validation in AI-assisted software development.

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

↑