NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

StreamingThinker: Large Language Models Can Think While Reading

Junlong Tong, Yingqi Fan, Anhao Zhao, Yunpu Ma, Xiaoyu Shen

TL;DR

Current reasoning Large Language Models (LLMs) follow a "batch" paradigm, waiting for an entire prompt to finish before they start "thinking." StreamingThinker breaks this bottleneck by enabling models to reason concurrently with input reception. This approach reduces the wait time for reasoning by 80% and overall latency by over 60% without sacrificing accuracy.

The Bottleneck of Batch Thinking

Most state-of-the-art reasoning models (like OpenAI’s o1 or DeepSeek-R1) operate on a batch thinking paradigm: the model receives the full context, processes it all at once during a prefill phase, and only then begins its Chain-of-Thought (CoT) generation.

This approach has two major drawbacks:

  1. Unnecessary Latency: In long-context or real-time scenarios (like a live transcript), the user has to wait for the entire input to be ingested before the model even begins to "ponder."
  2. Diluted Attention: As input length grows, the connection between specific reasoning steps and their relevant context can become "diluted." This increases the risk of hallucinations or requires even longer CoT sequences to refocus the model's attention.

Humans don't work this way. We process information instantaneously—decoding text, building meaning, and generating inferences as our eyes move across the page. The authors aim to bridge this gap by teaching LLMs to "think while reading."

Comparison of Batch Thinking and Streaming Thinking paradigms.

Introducing StreamingThinker

The authors introduce StreamingThinker, a framework consisting of three main pillars designed to interleave reading and reasoning:

1. Streaming CoT Generation

Since standard datasets lack "incremental" reasoning traces, the authors built a pipeline using a "teacher" model (Qwen3-32B) to reconstruct reasoning steps that align sentence-by-sentence with the input. They use specific boundary tokens (like <EOS> for input sentences and <EOT> for reasoning segments) to maintain structure and guide the model to reason step-by-step as new information arrives.

2. Streaming-Constraint Training

To adapt the model to this new flow, they modified two core components of the transformer architecture:

  • Streaming Attention Mask: A causal mask that prevents reasoning steps at time t from seeing any input tokens that appear after time t. This enforces strict chronological reasoning.
  • Streaming Position Encoding (SPE): Instead of a continuous sequence of IDs, they assign independent position IDs to input and reasoning tokens, both starting from zero. This eliminates "positional contention" and ensures a reasoning sentence remains "closest" to its associated input sentence in the embedding space.

3. Streaming Parallel Inference

To make this practical during deployment, they implement a dual-cache system. A source KV cache handles incoming input tokens, while a target KV cache handles reasoning tokens. These caches are merged during cross-attention to allow the model to "read" and "think" at the same time, then split again to maintain concurrency.

Streaming-Constraint Training and Parallel Inference architecture.

Datasets and Evaluation

The framework was evaluated using the Qwen3 model family (1.7B and 4B parameters) across three categories of reasoning:

  • Math Reasoning: GSM-Symbolic and MetamathQA.
  • Logical Reasoning: LogicNLI and ProofWriter.
  • Context-based QA: PubMedQA and HotpotQA.

The authors also curated a specialized streaming CoT dataset (7.9K samples for math, 20K for logic, and 16K for QA) to fine-tune the models.

Key Insights and Results

  • Massive Latency Reduction: StreamingThinker achieved an 80% reduction in token-level waiting (the time before reasoning starts) and a 60%+ reduction in total time-to-answer.
  • Performance Parity: Despite the incremental nature of the processing, StreamingThinker maintains accuracy comparable to standard "batch" fine-tuned models.
  • Reasoning Depth is Controllable: The model can adjust its "thinking depth" after the input is complete. It can provide a direct answer, perform global integration, or engage in deep self-reflection. Performance scales predictably with this depth.
  • Diagonal Attention Concentration: Visualizing the attention maps of Streaming Position Encoding reveals a strong diagonal concentration. This means the model naturally learns to focus on the current context it is reading, mimicking human focus.
  • The "Question-First" Advantage: The model performs significantly better when the question is presented before the context. This allows the model to "read with purpose," filtering out irrelevant information and expanding its logic immediately upon seeing relevant segments.

Limitations and Future Work

While the results are impressive, the authors acknowledge a few areas for growth. The evaluation focused primarily on deterministic tasks (math, logic), and future work is needed to see how this holds up in highly creative or open-ended streaming scenarios. Additionally, while memory usage is stable, the multiple prefill phases required for streaming increase the bandwidth cost compared to a single batch prefill. Finally, when the question is unknown (context-first), the model tends to be more conservative in its reasoning to avoid "over-thinking" irrelevant details, which can sometimes lead to missing subtle inferences until the final global reasoning phase.

The code is publicly available on GitHub.

Summary updated

BibTeX
@inproceedings{tong2026streamingthinker,
  author = {Junlong Tong and Yingqi Fan and Anhao Zhao and Yunpu Ma and Xiaoyu Shen},
  title = {{StreamingThinker: Large Language Models Can Think While Reading}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=10Iiew095e},
}
Figure