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

脚手架,而非词汇?一项受控、双层、预注册的波普尔式代码生成技能研究

Scaffold, Not Vocabulary? A Controlled, Two-Tier, Pre-Registered Study of a Popperian Code-Generation Skill

PythaLab, Yıldız Technical University, Istanbul, Turkey(Pytha实验室,伊兹密尔技术大学,伊斯坦布尔,土耳其)

Mehmet Iscan

AI总结:

通过双层消融实验(包括长度匹配安慰剂、仅标签脚手架和真实执行测试),研究发现波普尔式提示技能对代码正确性的提升主要来自脚手架结构而非其内容,并在大模型上因天花板效应无法检测,在小模型上仅标签脚手架即可达到类似效果。

摘要:

大型语言模型越来越多地编写、审查和评判代码,一种快速发展的实践是为它们配备提示“技能”,要求模型像科学家一样推理。一个突出的例子是告诉模型扮演波普尔式证伪主义者,据报道这种技能能改进生成的代码。但这些增益几乎总是通过LLM作为评判者来读取,而该评判工具存在已知的位置偏好、自我偏好和风格偏差。我们问:如果它看起来有帮助,那么增益是来自技能的波普尔式内容,还是来自任何脚手架所施加的结构?我们预注册了一个双层消融实验,包含三个对照:长度匹配的安慰剂、仅保留波普尔式标题但去除过程的仅标签脚手架,以及一个执行预言机(HumanEval+单元测试),外加一个词汇光环哨兵和一个同模型自评判审计。在前沿模型(Claude Sonnet 4.6,N=163)上,所有条件都接近基准上限且无法区分,因此预注册的+5点改进未得到支持(上限限制的未检测)。在小模型(Qwen2.5-Coder-0.5B,N=164)上,结构化条件将最佳八次正确率提升了20-22点,但完整技能相比仅标签脚手架没有显示出可分离的益处(聚合F@8=L@8 vs V@8=34.8%),而安慰剂仅落后2.4点。一个应用波普尔式评分标准的0.5B自评判器未能击败随机选择,并将其60%的选择集中在一个索引上。在测试的两种设置中,该技能的波普尔式过程内容在仅标签脚手架之外没有增加可分离的执行正确性收益,因此增益追踪的是脚手架结构。我们贡献了一个校准的负结果和一个可重用的消歧协议;该发现界定了关于一个提示技能家族的工程主张,而不是对波普尔式方法论的总体评价。

英文摘要:

Large language models increasingly write, review, and judge code, and a fast-growing practice equips them with prompt 'skills' that ask the model to reason like a scientist. A prominent example tells the model to act as a Popperian falsificationist, and such skills are reported to improve generated code. But these gains are almost always read off an LLM-as-a-judge, an instrument with documented positional, self-preference, and stylistic biases. We ask: if it appears to help, is the gain from the skill's Popperian content, or from the structure any scaffold imposes? We pre-register a two-tier ablation with three controls: a length-matched placebo, a labels-only scaffold that keeps the Popperian headers but strips the procedure, and an execution oracle (HumanEval+ unit tests), plus a vocabulary-halo sentinel and a same-model self-judge audit. On a frontier model (Claude Sonnet 4.6, N=163) all conditions sit near the benchmark ceiling and do not separate, so the pre-registered +5-point improvement is not supported (a ceiling-limited non-detection). On a small model (Qwen2.5-Coder-0.5B, N=164) structured arms lift best-of-eight correctness by 20-22 points, but the full skill shows no separable benefit over a labels-only scaffold (aggregate F@8=L@8 vs V@8=34.8%), and the placebo trails by only 2.4 points. A 0.5B self-judge applying the Popperian rubric does not beat random selection and concentrates 60% of its picks on one index. In the two settings tested, the skill's Popperian procedural content adds no separable execution-correctness benefit beyond a labels-only scaffold, so the gains track scaffold structure. We contribute a calibrated negative result and a reusable disambiguation protocol; the finding bounds an engineering claim about one prompt-skill family and is not an evaluation of Popperian methodology in general.

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

↑