大型语言模型作为形式化器时的类求解器行为 Solver-Like Behavior in Large Language Models as Formalizers 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-02
⬇️ 1 次下载
👁️ 预览文献
💡 AI 中文简介
研究发现,当大语言模型作为形式化器(将问题转化为程序并交给求解器)时,其推理轨迹常像求解器一样直接算出答案,称为类求解器行为(SLB)。在2000个生成样本中,85%的轨迹出现SLB,占用24%的推理token,但程序通常重新计算答案,导致冗余;9%的程序继承轨迹答案并继承错误。SLB与准确率无关,在命令式Python中比声明式Z3/PDDL更常见。隐藏问题值可消除97%的SLB且不损失准确率。建议评估形式化器时关注程序如何得出,而非仅输出。
领域自然语言处理/神经符号推理
适合谁读需要一定专业背景
核心贡献首次定义并系统量化了形式化器推理轨迹中的类求解器行为(SLB),揭示其普遍性(85%轨迹)和冗余性;提出通过隐藏问题值(占位符)可消除97%的SLB而不损失准确率,为评估和设计形式化器提供新视角。
关键数据SLB出现在85%的推理轨迹中,占用24%的推理token;9%的程序继承轨迹答案并继承错误;隐藏问题值可消除97%的SLB且无准确率损失;警示提示仅减少25%的SLB。
推荐理由如果你关心大模型如何‘偷懒’或‘越权’直接解题,这篇论文用数据揭示了形式化器中的冗余推理,并给出了简单有效的解决方案,值得一读。
关键词["大型语言模型", "形式化器", "类求解器行为", "推理轨迹", "约束满足问题", "程序合成"]

原文摘要

查看英文原文摘要

In the LLM-as-formalizer paradigm, a large language model translates a problem into a formal program and leaves the search to a solver, gaining the solver's guarantees. Formalizers are now often reasoning models that write a long reasoning trace before the program, yet they are judged only by the program's output. We find that the trace routinely does the solver's job, assigning, testing and ruling out values until it often reaches the full answer; we call this solver-like behavior (SLB). We define an ontology of SLB over the trace, the program and its output, and use LLM judges, checked against human labels, to label 2,000 generations from three reasoning models on four constraint satisfaction datasets, each formalized in a declarative and an imperative formal language. SLB appears in 85% of traces and takes 24% of reasoning tokens, yet the program usually recomputes the answer, so the effort is redundant. The 9% of programs that inherit the trace's answer also inherit its errors, and pass output-based evaluation whenever that answer is correct. The amount of SLB is not associated with accuracy, and SLB is more common in imperative Python than in declarative Z3 or PDDL. Cautionary prompts reduce it by only a quarter, but hiding the problem's values behind placeholders, which the program receives only at run time, removes 97% of it without loss of accuracy. Formalizers should therefore be evaluated by how their programs are reached, not only by what they output.