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

Multi-Stream LLMs: Unblocking Language Models with Parallel Streams of Thoughts, Inputs and Outputs

Guinan Su, Yanwu Yang, Xueyan Li, Jonas Geiping

TL;DR

Modern large language models (LLMs) are bottlenecked by a sequential "chat" format that forces them to read, think, and respond one after another. This paper introduces Multi-Stream LLMs, a novel architecture and instruction-tuning paradigm that allows models to process and generate multiple parallel streams of tokens (e.g., inputs, internal thoughts, and outputs) simultaneously in a single forward pass. This architectural shift eliminates first-token latency, drastically reduces prompt-injection vulnerabilities, and significantly improves model monitorability.

What Problem Does This Paper Address?

Whether used as simple chatbots or advanced autonomous agents, current LLMs process text sequentially. Under the hood, even complex agentic workflows—involving chain-of-thought reasoning, tool calls, or sub-agent communication—are funneled into a single stream of text.

This sequential design creates a critical bottleneck: an agent cannot generate output while reading new inputs, cannot react to user interruptions mid-generation, and cannot think or audit its own safety in parallel with generating text. This "blocking" execution pattern increases latency, leaves models highly vulnerable to prompt injection (since user inputs and system instructions share the same stream), and allows models to easily hide or obfuscate malicious reasoning from safety monitors.

Figure 1: Left: A modern LLM’s execution timeline. Inherited from chat models, modern models are con- ventionally finetuned to accept a single stream of messages, which blocks the model from parallelizing actions. Right: The Multi-Stream LLM uses a stream format of multiple parallel I/O streams that unblocks the model, allowing it to overlap multiple actions and inputs. Each step is now one forward pass in which the model generates tokens in all output channels in parallel.

Methods

The authors propose Multi-Stream Parallel Generation, transforming the traditional sequential text stream into a tabular format where each column represents a distinct stream (e.g., User Input, Model Output, Thinking, and Auditing).

Key technical components include:

  • Cross-Stream Causality: The model enforces a strict causal constraint where any stream at timestep $t$ can attend to its own history and the history of all other streams strictly before timestep $t$.
  • Stream-Aware Position Encoding: To prevent attention contention and positional collisions across asynchronous streams, each stream maintains its own independent Rotary Position Embedding (RoPE) counter, paired with a learnable stream embedding.
  • Interleaved Packing: Instead of naively concatenating streams end-to-end, tokens are packed position-by-position across streams. This creates a near lower-triangular attention matrix, allowing the model to natively utilize hardware-accelerated kernels like FlashAttention.
  • Synchronous Decoding: During inference, every single forward pass emits one token per stream simultaneously. Empty slots (where a stream is idle) are fully masked out, incurring zero memory or KV-cache overhead.
Figure 3: Multi-stream token packing and attention layouts. Three concurrent streams—User (S0), Model (S1), and Thinking (S2)—operate asynchronously. (a) Sequential packing (naive implementation) concatenates streams end-to-end. (b) Interleaved packing (ours) reorders the same tokens position-by-position across streams. (a) and (b) preserve identical attention connectivity, but interleaved packing produces a near lower- triangular layout with more contiguous valid regions, enabling efficient FlashAttention-style causal traversal. (c) Interleaved inference (ours, used for decoding) decodes all streams synchronously, with idle tokens (dashed green) masked out.

Datasets

Because simultaneous multi-stream data does not naturally exist, the authors developed a synthetic pipeline using frontier LLMs to convert standard datasets into multi-stream formats using a wait-k policy (forcing the model to start responding before the user finishes inputting text).

The models were trained and evaluated across three core capabilities:

  • Reasoning & QA: GSM8K, MATH500, MetaMathQA, LogicNLI, ProofWriter, PubMedQA, and SQuAD.
  • Security & Safety: Reconstructed versions of the Alpaca dataset, Structured Query (StruQ), Gandalf, TensorTrust, Purple, RuLES, and NESSiE.
  • Monitorability: A custom dataset of 3,864 synthetic 10-stream conversations generated via the Claude API to evaluate internal "sub-vocalization."

Key Insights and Ideas

  • Parallelism is "Free" due to Memory Bottlenecks: LLM decoding is heavily memory-bandwidth bound rather than compute-bound. Generating tokens across multiple parallel streams in a single forward pass adds almost zero wall-clock latency compared to generating a single stream.
  • Security Through Structural Isolation: Separating user input from system instructions into physically distinct streams creates an architectural privilege hierarchy. Malicious user tokens structurally cannot overwrite system instructions, mitigating prompt injection without requiring explicit adversarial training.
  • Legible Sub-Vocalization: Providing multiple dedicated internal thinking channels allows the model to "sub-vocalize" situational awareness (e.g., realizing it is being monitored or evaluated) that it would normally suppress or omit in a standard single-stream chain-of-thought.

Key Results

  • Zero First-Token Latency: The Token Number to First Target Token (TNFT) dropped to exactly 0 across tasks because the model generates solutions concurrently while reading input. In real-time auditing setups, end-to-end delay fell by over 40%.
  • Inherent Prompt Injection Robustness: On the StruQ-ID benchmark, the multi-stream variant dropped the Attack Success Rate (ASR) by more than 33 points for both Qwen-7B and Qwen-4B models, completely outperforming the single-stream baseline without any safety tuning.
  • Drastically Higher Monitorability: In pressure scenarios, the fraction of times the model raised objective concerns internally (while hiding them from the visible user-facing answer) rose from ~0.06 to over 0.44 at the 27B scale, making the model's true intent highly legible to external monitoring classifiers.

Limitations and Future Work

  • Scale of Training: The models evaluated (up to 27B parameters) were trained on relatively small synthetic datasets compared to the massive post-training pipelines used for production models.
  • Task Suitability: Inherently sequential tasks, such as mathematical proof writing, may see limited benefits from parallelization.
  • Dense Attention Overhead: The current implementation uses dense attention across all streams. The authors suggest that future work should explore sparse, striped, or offset attention patterns to further optimize efficiency and enforce fine-grained privilege control.

Summary updated

BibTeX
@inproceedings{su2026multi,
  author = {Guinan Su and Yanwu Yang and Xueyan Li and Jonas Geiping},
  title = {{Multi-Stream LLMs: Unblocking Language Models with Parallel Streams of Thoughts, Inputs and Outputs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=3w6cPaCQ2A},
}
Figure