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

Parallel Token Prediction for Language Models

Felix Draxler, Justus Will, Farrin Marouf Sofian, Theofanis Karaletsos, Sameer Singh, Stephan Mandt

TL;DR

Parallel Token Prediction (PTP) is a novel framework that allows language models to generate multiple interdependent tokens in a single forward pass. By shifting randomness from post-hoc sampling to random input variables, PTP achieves a 2.4× wall-clock speedup on diverse benchmarks while maintaining the same output quality as standard autoregressive models.

Autoregressive vs PTP generation steps

The Sequential Bottleneck

The "Achilles' heel" of modern Large Language Models (LLMs) is their sequential nature. To generate a sentence, a model must perform one full forward pass for every single token. This autoregressive process is inherently slow and creates a massive inference latency bottleneck.

Existing attempts to fix this usually fall into two camps:

  1. Speculative Decoding: A small "draft" model guesses tokens, and a big model verifies them. This is still limited by the draft model's sequential speed.
  2. Independent Prediction: The model predicts several future tokens at once, but assumes they are independent. This often leads to incoherent outputs (e.g., predicting def and numpy simultaneously because both are likely, even if they don't make sense together in context).

PTP bridges this gap by allowing a model to predict multiple interdependent tokens simultaneously without losing the expressive power of traditional sequential generation.

Methods: Shifting the Source of Randomness

The core innovation of PTP is moving the source of randomness. In a standard LLM, the model outputs a probability distribution, and we "roll the dice" (sample) after the model call. In PTP, we "roll the dice" first and feed that random value ($u$) into the model as an input variable.

PTP architecture with random variables as inputs

By providing the result of the dice roll as an input, the model can anticipate which token will be chosen and use that information to predict the next tokens in the same forward pass. The authors propose two main flavors:

  • One-Hot PTP (O-PTP): Predicts specific tokens directly (deterministic).
  • Categorical PTP (C-PTP): Recovers the full conditional distribution of each token, allowing for more flexible sampling and uncertainty quantification.

To handle errors during long parallel generations, the authors introduce Partial Quadratic Decoding, an efficient error-correction scheme that allows the model to verify and propose new tokens in parallel across multiple branches of potential sequences.

Key Insights and Results

The researchers evaluated PTP across several domains, including NYC Taxi sequence prediction, CodeContests for logical consistency, and SpecBench for diverse tasks like translation, summarization, and math reasoning.

  • Speedup: PTP achieved a 2.4× wall-clock speedup on SpecBench using a distilled Vicuna-7B model.
  • Efficiency: On average, the model accepted 4.2 tokens per speculative step, outperforming competitive baselines like Medusa, Eagle-2, and SAMD.
  • Quality: In the NYC Taxi experiments, C-PTP achieved a perplexity of 19.88, nearly identical to the autoregressive baseline of 19.81, proving no loss in modeling accuracy.
  • Consistency: In qualitative code generation tasks, PTP generated entire function headers and logic blocks in a fraction of the steps required by a teacher model, rarely producing the spurious combinations that plague independent prediction models.
  • Training Flexibility: PTP can be trained either by distilling a powerful teacher model or by training a new model from scratch using inverse autoregressive training.

Limitations and Future Work

While PTP is a significant step forward, the authors note a few hurdles. First, the wall-clock speedups are most prominent on heavily parallelized hardware (like high-end GPUs); on limited hardware, the overhead of predicting many tokens might diminish gains. Second, most of the large-scale results rely on distilling existing models. Scaling "PTP-from-scratch" to trillion-parameter models remains a future challenge. Finally, there is a theoretical limit to how many future tokens a single pass can accurately coordinate based on the model's internal parameter capacity.

Code and checkpoints are available at https://github.com/mandt-lab/ptp.

Summary updated

BibTeX
@inproceedings{draxler2026parallel,
  author = {Felix Draxler and Justus Will and Farrin Marouf Sofian and Theofanis Karaletsos and Sameer Singh and Stephan Mandt},
  title = {{Parallel Token Prediction for Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=AGJomYSrUG},
}
Figure