arXiv:2512.19728cs.LG2025-12

用轻量验证器精准挖掘近似正确但逻辑错误的样本,提升小模型数学推理能力。

Hard Negative Sample-Augmented DPO Post-Training for Small Language Models

  • 设计轻量数学验证器,将解题过程分解为六维错误特征
  • 基于验证信号挖掘高难度错误样本并加权优化偏好对
  • 在1.5B模型上实现更精准的推理改进,无需大奖励模型

大型语言模型在数学推理方面仍存在困难,常见后训练流程将生成结果简化为对错二元判断,这限制了对结构化错误的识别。许多链式思考(CoT)推理失败具有隐蔽性:解题看似合理,却存在细微逻辑、代数或数值错误。依赖大奖励模型或大模型作为评判者的强化学习方法成本高、难扩展且不稳定。本文提出一种轻量级后训练方案,针对真实计算预算下的结构化错误进行优化。从基于MetaMathQA风格的链式思考数据的监督微调开始,引入一个紧凑的MathVerifier,将候选解分解为六维错误特征,并聚合为可解释的错误度与荒谬度评分。该验证信号用于两个目的:(i) 挖掘看似正确但结构性错误的困难负样本;(ii) 构建每样本重要性权重,突出最具信息量的偏好对。将二者整合进离线直接偏好优化(DPO)目标,采用验证器引导的加权形式。在1.5亿参数的Qwen2.5模型上的实验表明,验证器引导的加权DPO相比原始SFT和未加权DPO,能在数值接近正确但逻辑不一致的问题上实现更精准的改进,同时避免训练大奖励模型或依赖外部评判者的开销。

原文摘要 · Abstract (English)

Large language models (LLMs) continue to struggle with mathematical reasoning, and common post-training pipelines often reduce each generated solution to a binary outcome: correct or incorrect. This perspective is limiting in practice, as failures in chain-of-thought (CoT) reasoning are frequently structured; solutions may appear convincing while containing subtle logical, algebraic, or numerical flaws. Meanwhile, reinforcement learning from human feedback (RLHF) variants that rely on large reward models or LLM-as-a-judge signals are often expensive, difficult to scale, and unstable to iterate. We propose a lightweight and pragmatic post-training pipeline that targets such structured errors under realistic compute budgets. Starting from supervised fine-tuning (SFT) on MetaMathQA-style CoT data, we introduce a compact MathVerifier that decomposes a candidate solution into a six-dimensional error profile and aggregates it into interpretable wrongness and absurdity scores. These verifier signals serve two roles: (i) mining hard negatives that are near-correct yet structurally flawed, and (ii) defining per-sample importance weights that emphasize the most informative preference pairs. We integrate both into an offline Direct Preference Optimization (DPO) objective via a verifier-guided weighted formulation. Experiments on a 1.5B-parameter Qwen2.5 model show that verifier-guided, weighted DPO yields more targeted improvements than vanilla SFT and unweighted DPO, particularly on problems where solutions are numerically close to correct but logically inconsistent, while avoiding the overhead of training large reward models or relying on external judges.

数学推理小模型偏好优化错误检测

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。