arXiv:2606.21884 · 中英对照阅读
可验证的搜索并非可学习的思维链
A Verifiable Search Is Not a Learnable Chain-of-Thought
中文速览
把程序写成逐步推理教给模型,未必能让模型学会程序,尤其是解题必须靠回溯搜索时。研究者在九类自动生成的任务上对比程序求解器和模型微调:直接算、查表的任务大多能学会,但密码算式这类需要不断试错搜索的任务,尽管程序能解出约七成,模型准确率仍只有约1%到7%,换不同训练方法和模型规模也没能改善。问题不在算术,而在模型会照抄“排除某个选项”的推理样子,却不会根据当前线索真正决定排除什么;把关键密码直接告诉模型后,同样题目的准确率便从3%升到57%。这说明教会模型模仿搜索过程有明显局限,但把搜索结果整理成有限候选表、让模型负责查找和验证,仍能解决任务,也提醒我们不能只看推理文本像不像,更要看它是否真的支撑答案。
摘要
人们很容易认为,任何能用短程序解决的任务,都可以将其作为模型的思维链来教授:把程序的步骤用文字写出来,用这些内容进行微调,模型理应就会照着做。本文表明,这一假设对一类可明确识别的过程并不成立,而那些直觉上想到的补救办法也无法扭转这一点。我们的测试平台包含九项推理任务,每项任务均由一个确定性生成器生成,并具有一项便利的性质:公开集和隐藏集来自相同的生成器,因此,训练数据中留出的一部分能够忠实地反映测试准确率。我对这些生成器进行逆向工程,构建 Python 求解器(其中五个达到 $\geq\!98\%$),将其过程转写为思维链,并将其蒸馏到一个 30B(3.5B 激活参数)的 Nemotron 模型上的秩 $\leq\!32$ LoRA 中。前向可计算任务很容易习得:四项查找/算术任务和一项 8 位布尔规则任务均实现迁移($\geq\!0.99$ 和 $0.68$)。但尝试蒸馏字母算术谜题的回溯搜索时,效果并不理想:尽管搜索求解器能够解答其中 $71\%$ 的实例,但在十一种思维链设计、基于可验证奖励的强化学习以及自训练中,其准确率始终维持在 $0.01$–$0.07$。这种失败并非能力不足。模型在 $97$–$100\%$ 的步骤中都能正确进行算术运算,并能在 $71\%$ 的实例中将正确密码排列在前八位。它做不到的是以从左至右的推导方式持续推进搜索。因此,监督微调学会了可验证消去步骤的形式,却使其判定变成无条件模板,只有 $16$–$57\%$ 的时候正确(“判定即令牌”)。这种搜索蒸馏上限在四种从 3B 到 671B 的骨干模型上均成立,也同时出现在微调和上下文内提示中;一项受控干预则分离出了原因:揭示密码密钥,将推导转变为前向推导后,同一批实例的准确率从 $0.03$ 提升至 $0.57$。这一约束针对的是搜索,而非任务本身:当某个过程的唯一解法是在无信息结构上进行搜索时,就不存在可供模仿的忠实前向思维链。尽管如此,只要从推理轨迹中移除搜索,任务仍可变得可学习:将其组合核心预先计算为一个有限目录,供模型记忆,并将思维链简化为回忆加有限验证;竞赛第一名的解法证明了这一方法可行,它通过记忆按签名划分的候选目录而非教模型搜索,达到了私有排行榜(Private LB)$0.92$[8]。能够蒸馏的是记忆和验证,而非搜索。我公开了基准任务的拆解、求解器、逐行忠实度审计以及对照实验。
It is tempting to assume that any task one can solve with a short program can be taught to a model as its chain-of-thought: write the program’s steps out in words, fine-tune on them, and the model should follow. This paper shows the assumption fails for an identifiable class of procedures, and that the reflexive remedies do not rescue it. The testbed is nine reasoning tasks, each emitted by a deterministic generator, with one convenient property: the public and hidden splits are drawn from the same generators, so a held-out slice of training data is a faithful proxy for test accuracy. I reverse-engineer the generators into Python solvers (five reach $\geq\!98\%$ ), render their procedures as chain-of-thought, and distill them into a rank- $\leq\!32$ LoRA over a 30B (3.5B-active) Nemotron model. Forward-computable tasks install readily: four lookup/arithmetic tasks and an 8-bit boolean-rule task transfer ( $\geq\!0.99$ and $0.68$ ). Cryptarithm does not, when one tries to distill its backtracking search: it holds at $0.01$ – $0.07$ across eleven chain-of-thought designs, RL from verifiable rewards, and self-training, even though a search solver answers $71\%$ of its instances. The failure is not a capability gap. The model does the arithmetic correctly on $97$ – $100\%$ of lines and ranks the correct cipher into its top eight on $71\%$ of instances. What it cannot do is carry the search forward as a left-to-right derivation. Supervised fine-tuning therefore learns the shape of a verifiable elimination step while its verdicts become unconditional templates, correct only $16$ – $57\%$ of the time (“verdict-as-token”). This search-distillation ceiling holds across four backbones from 3B to 671B and across both fine-tuning and in-context prompting, and a controlled intervention isolates the cause: revealing the cipher key, which turns the derivation forward, lifts the same instances from $0.03$ to $0.57$ . The constraint binds the search, not the task: when a procedure’s only solution is search over information-free structure, no faithful forward chain-of-thought exists to imitate. The task nonetheless becomes learnable by removing the search from the trace, precomputing its combinatorial core into a finite catalog the model memorizes and reducing the chain-of-thought to recall plus bounded verification; the competition’s 1st-place solution is the existence proof, reaching Private LB $0.92$ by memorizing a per-signature candidate catalog rather than teaching the model to search [8]. What distills is memorization and verification, not search. I release the benchmark decomposition, the solvers, the per-line fidelity audits, and the control experiments.
术语表
- chain-of-thought (CoT)
- 思维链
- reasoning task
- 推理任务
- deterministic generator
- 确定性生成器
- held-out split
- 留出集
- reverse-engineering
- 逆向工程
- solver
- 求解器
- distillation
- 蒸馏
- LoRA
- LoRA
- Nemotron
- Nemotron
- forward-computable task
- 前向可计算任务
- boolean program
- 布尔程序
- cryptarithm
- 字母算术谜题
- backtracking search
- 回溯搜索
- reinforcement learning from verifiable rewards (RLVR)
- 可验证奖励强化学习(RLVR)
- self-training
- 自训练
- supervised fine-tuning (SFT)
- 监督微调(SFT)
- verdict-as-token
- 判定即令牌
- forward-derivability
- 前向可推导性
- in-context prompting
- 上下文内提示
- finite catalog
- 有限目录
- information-free structure
- 无信息结构
- rationale distillation
- 推理过程蒸馏
- GRPO
- GRPO
- STaR
- STaR
- generate-and-verify
- 生成并验证
- hit@8
- 命中率@8
- mutual information (MI)
- 互信息(MI)
- Mamba-2
- Mamba-2
- Mixture-of-Experts (MoE)
- 专家混合(MoE)
- Private LB
- 私有排行榜