arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.03640cs.SEcs.CR
收藏

LLM代码生成中的verbatim数据转录失败:一种状态跟踪压力测试

Verbatim Data Transcription Failures in LLM Code Generation: A State-Tracking Stress Test

Florida International University(佛罗里达国际大学);Clark Atlanta University(克拉克亚特兰大大学)

Mohd Ariful Haque, Kishor Datta Gupta, Mohammad Ashiqur Rahman, Roy George

AI总结:

本文提出了一种最小化的基准测试,用于评估LLM在生成代码时对verbatim数据转录的可靠性,通过精确字符串包含和状态跟踪分析来检测长周期生成失败。

摘要:

许多现实世界软件任务需要将提供的数据精确转录为代码,例如加密常量、协议测试向量、允许列表和校准表。这些任务在操作上敏感,因为小的遗漏或更改可能在生成语法有效的程序时保持沉默。本文介绍了一种故意最小化的转录到代码基准,以在LLM基于代码生成中隔离这种可靠性问题。给定一个高精度十进制常量列表,模型必须生成嵌入这些常量并执行简单聚合计算的Python代码。我们描述了提示变体、基于精确字符串包含的评估协议以及用于表征状态跟踪和长周期生成失败的分析框架。该基准旨在作为一种紧凑的压力测试,通过关注数据完整性而非算法推理来补充现有的代码生成评估。

英文摘要:

Many real-world software tasks require exact transcription of provided data into code, such as cryptographic constants, protocol test vectors, allowlists, and calibration tables. These tasks are operationally sensitive because small omissions or alterations can remain silent while producing syntactically valid programs. This paper introduces a deliberately minimal transcription-to-code benchmark to isolate this reliability concern in LLM-based code generation. Given a list of high-precision decimal constants, a model must generate Python code that embeds the constants verbatim and performs a simple aggregate computation. We describe the prompting variants, evaluation protocol based on exact-string inclusion, and analysis framework used to characterize state-tracking and long-horizon generation failures. The benchmark is intended as a compact stress test that complements existing code-generation evaluations by focusing on data integrity rather than algorithmic reasoning.

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

↑