Skip to main content
QUICK REVIEW

[Paper Review] Sandwich Reasoning: An Answer-Reasoning-Answer Approach for Low-Latency Query Correction

Chen Zhang, Kepu Zhang|arXiv (Cornell University)|Jan 7, 2026
Information Retrieval and Search BehaviorComputer Science0 citations
TL;DR

This paper introduces SandwichR, an Answer–Reasoning–Answer framework for query correction that delivers fast initial corrections aligned with post-hoc reasoning, achieving state-of-the-art accuracy with significant latency reduction.

ABSTRACT

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.

Motivation & Objective

  • Tackle the accuracy–latency trade-off in real-time query correction.
  • Propose an architecture that front-loads a fast initial correction while leveraging subsequent reasoning.
  • Develop a consistency-aware reinforcement learning strategy to align initial and final corrections.
  • Construct a high-quality, domain-diverse query correction dataset for benchmarking.

Proposed method

  • Output format: initial correction, reasoning trajectory, and final correction in an Answer–Reasoning–Answer sequence.
  • Two-stage training: (i) Supervised Fine-Tuning (SFT) to acquire SandwichR ability using GPT-4o-generated reasoning and corrections; (ii) Consistency-Aware Reinforcement Learning (RL) with a margin-based rejection sampling strategy.
  • Reward design combining Accuracy (F0.5) with a Format penalty and a Consistency penalty to enforce C_init = C_final.
  • Use of GRPO for policy optimization and a rejection sampling scheme that selects Borderline samples where reasoning improves accuracy.
  • Data construction by injecting wrong/missing/disordered words into real-world query data to create (noise, clean) pairs.

Experimental results

Research questions

  • RQ1Can an Answer–Reasoning–Answer framework provide low-latency corrections without sacrificing reasoning-informed accuracy?
  • RQ2How can we align an initial fast correction with downstream reasoning to mimic CoT benefits?
  • RQ3What training strategies (SFT + RL) and sampling techniques best distill reasoning into the initial answer?
  • RQ4How does SandwichR perform in terms of accuracy and latency compared to Ans-Rea, Rea-Ans, and traditional models across diverse domains?
  • RQ5Is there a practical dataset for benchmarking complex query correction that reflects real-world noise?

Key findings

  • SandwichR achieves state-of-the-art correction accuracy comparable to standard Chain-of-Thought approaches.
  • Under practical latency constraints, SandwichR delivers 40–70% faster inference than reasoning-first baselines while maintaining high accuracy.
  • RL with a consistency reward and margin-based rejection sampling improves performance over SFT baselines across multiple domains (E-commerce, Video, Medical).
  • SandwichR consistently outperforms Ans-Rea and Rea-Ans structures on multiple datasets and error types.
  • Under limited token budgets, SandwichR maintains higher accuracy with lower latency than competing formats.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.