arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.03672cs.AIcs.CL
收藏

Sandwich推理:一种低延迟查询修正答案-推理-答案方法

Sandwich Reasoning: An Answer-Reasoning-Answer Approach for Low-Latency Query Correction

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学北京校区人工智能学院)

Chen Zhang, Kepu Zhang, Jiatong Zhang, Xiao Zhang, Jun Xu

AI总结:

Sandwich推理通过答案-推理-答案范式,在保持推理准确性的同时显著降低查询修正的延迟。

摘要:

查询修正是在现代搜索管道中的关键入口点,要求在实时延迟约束下具有高准确性。链式思维(CoT)推理提高了准确性,但为实时查询修正带来了可接受的延迟。一个潜在的解决方案是在推理前输出一个答案以减少延迟;然而,在自回归解码中,早期的答案与后续推理无关,阻碍了模型利用其推理能力来提高准确性。为了解决这个问题,我们提出了Sandwich推理(SandwichR),一种新的方法,明确地将快速的初始答案与事后推理对齐,使在不牺牲推理感知准确性的情况下实现低延迟查询修正。SandwichR遵循答案-推理-答案范式,生成一个初始修正、一个明确的推理过程和一个最终的精细修正。为了将初始答案与事后推理见解对齐,我们设计了一种一致性感知强化学习(RL)策略:专门的一致性奖励强制初始和最终修正之间的对齐,而基于边距的拒绝采样优先考虑边界样本,其中推理驱动了最显著的修正收益。此外,我们构建了一个高质量的查询修正数据集,解决了复杂查询修正缺乏专门基准的问题。实验结果表明,SandwichR在标准CoT的准确性方面实现了SOTA,同时在延迟上减少了40-70%,解决了在线搜索中的延迟-准确性权衡问题。

英文摘要:

Query correction is a critical entry point in modern search pipelines, demanding high accuracy strictly within real-time latency constraints. Chain-of-Thought (CoT) reasoning improves accuracy but incurs prohibitive latency for real-time query correction. A potential solution is to output an answer before reasoning to reduce latency; however, under autoregressive decoding, the early answer is independent of subsequent reasoning, preventing the model from leveraging its reasoning capability to improve accuracy. To address this issue, we propose Sandwich Reasoning (SandwichR), a novel approach that explicitly aligns a fast initial answer with post-hoc reasoning, enabling low-latency query correction without sacrificing reasoning-aware accuracy. SandwichR follows an Answer-Reasoning-Answer paradigm, producing an initial correction, an explicit reasoning process, and a final refined correction. To align the initial answer with post-reasoning insights, we design a consistency-aware reinforcement learning (RL) strategy: a dedicated consistency reward enforces alignment between the initial and final corrections, while margin-based rejection sampling prioritizes borderline samples where reasoning drives the most impactful corrective gains. Additionally, we construct a high-quality query correction dataset, addressing the lack of specialized benchmarks for complex query correction. Experimental results demonstrate that SandwichR achieves SOTA accuracy comparable to standard CoT while delivering a 40-70% latency reduction, resolving the latency-accuracy trade-off in online search.

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

↑