Thinking-while-speaking: A Controlled, Interleaved Reasoning Method for Real-Time Speech Generation

Xuan Du, Qiangyu Yan, Wenshuo Li, Borui Jiang, Changming Xiao, Han Shu, Xinghao ChenarXiv 2026

TL;DR

InterRS is a novel training framework that enables Spoken Language Models (SLMs) to "think while speaking" by seamlessly interleaving hidden reasoning steps within natural pauses in speech. By masking computational latency behind the audio playback of preceding speech segments, it preserves over 96.5% of the accuracy of traditional thinking-before-speaking models while delivering instantaneous, real-time responses.

What Problem Does This Paper Address?

When humans solve complex problems during conversation, we don't usually sit in absolute silence for 30 seconds to map out a complete proof before opening our mouths; instead, we think incrementally, speaking a fragment of our thought while internally computing the next.

Current Spoken Language Models (SLMs) struggle to replicate this behavior. They typically rely on two flawed paradigms:

  1. Thinking-Before-Speaking (TBS): The model generates a complete Chain-of-Thought (CoT) internally before generating any audio. While highly accurate, this introduces massive, unnatural Time-to-First-Token (TTFT) latency, breaking the flow of real-time conversation.
  2. Fast CoT / Direct Generation: The model responds instantly but skips deep reasoning, leading to poor accuracy on complex logical or mathematical tasks.

Recent attempts at interleaved reasoning have suffered from rigid alignment and a lack of control over the "thinking-to-speaking" ratio, frequently causing awkward, unpredictable pauses or overly verbose responses.

Comparison of different speech reasoning paradigms

Methods

The authors introduce InterRS, a framework that structures responses into alternating blocks of hidden background inference ($T_i$) and audible foreground playback ($A_i$). Crucially, the computation time required to generate the next reasoning block ($T_{i+1}$) is completely masked by the time it takes to stream and play the audio of the current answer segment ($A_i$).

The methodology consists of three main pillars:

  1. A Controlled-Ratio Data Pipeline: Raw data is restructured by converting formal text into colloquial, oral-style summaries. These summaries are split into small semantic units representing what a human could say "in one breath." The pipeline then synthesizes corresponding internal thinking steps, enforcing a strict 4:1 thinking-to-answer token ratio to ensure that audio playback duration always covers the subsequent inference latency.
The InterRS Data Pipeline
  1. Single-Token State Flags: Instead of using heavy paired delimiters (like <think>...</think>), InterRS uses singular state-transition tokens (<|thinking|> and <|answer|>) to minimize sequence overhead and maximize context window efficiency.

  2. Reinforcement Learning via GRPO: The model is optimized using Group Relative Policy Optimization (GRPO) with a composite reward function:

  3. TA-Balance Reward ($R_{TA}$): Enforces correct interleaved formatting and applies a quadratic length penalty to keep thinking blocks tightly constrained within their playback windows.

  4. Linguistic Quality Reward ($R_{LQ}$): Uses a frozen reference model to ensure that when the fragmented speech segments ($A_i$) are concatenated, they form a fluent, coherent sentence.

Datasets

  • Training: Approximately 12,000 high-quality samples derived from the K&K and MetaMath datasets, pre-processed into the interleaved format.
  • Evaluation:
  • In-domain: Test sets from K&K and MetaMath.
  • Out-of-distribution (Generalization): Spoken Multi-Question Answering (SMQA) for multi-category mathematics and SATA-Bench for rigorous, multi-choice logical reasoning across law, medicine, and logic.

Key Insights and Ideas

  • Exploiting Temporal Gaps: The core "aha moment" is treating the audio playback duration as a free computational budget. If the model speaks for 2 seconds, it has a 2-second window to run background text-based reasoning tokens without the user noticing any delay.
  • Conditional Fluency Rewarding: The Linguistic Quality Reward is applied only to samples that arrive at the correct final answer. This prevents the reinforcement learning loop from gaming the system by generating highly fluent but factually incorrect nonsense.
  • Rhythmic Stability: By utilizing a quadratic decay penalty for length control, the model achieves a highly predictable interaction cadence, avoiding the "reasoning collapse" common in standard RL setups where models discard explicit reasoning for brevity.

Key Results

  • High Accuracy with Zero Added Latency: On math and logic benchmarks, InterRS achieved an average score of 49.33, remarkably close to the 51.10 scored by the high-latency Thinking (SFT+RL) baseline, while maintaining instant response capabilities.
  • Outperforming Fast CoT: InterRS demonstrated a 13% absolute performance gain over the Fast-CoT paradigm.
  • Superior Cadence Control: As shown in the distribution analysis, InterRS achieved the narrowest Interquartile Range (IQR) of individual thinking lengths (just 11 tokens), proving it maintains a stable, human-like conversational rhythm without unexpected long pauses.
Distribution of individual thinking segment lengths across different models

Limitations and Future Work

The primary limitation acknowledged by the authors is that the current framework evaluates speech interaction in a static, turn-taking format. Real-world human conversations are highly dynamic and messy, featuring frequent user interruptions, over-talking, and abrupt topic shifts.

Future work will need to extend the architecture so that the interleaved reasoning blocks can dynamically adapt, pause, or truncate the moment a user interrupts the model's external speech flow.

Summary updated

BibTeX
@misc{du2026thinking,
  author = {Xuan Du and Qiangyu Yan and Wenshuo Li and Borui Jiang and Changming Xiao and Han Shu and Xinghao Chen},
  title = {{Thinking-while-speaking: A Controlled, Interleaved Reasoning Method for Real-Time Speech Generation}},
  year = {2026},
  eprint = {2605.20946},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.20946},
}
Figure