MARS: Enabling Autoregressive Models Multi-Token Generation

Ziqi Jin, Lei Wang, Ziwei Luo, Aixin Sun

TL;DR

Standard autoregressive language models burn the exact same amount of compute to generate a dead-obvious boilerplate phrase ("the answer is") as they do for a genuinely tough reasoning step. MARS (Mask AutoRegreSsion) is a lightweight fine-tuning recipe that teaches an off-the-shelf language model to predict multiple tokens in a single forward pass—with zero extra parameters, zero architectural surgery, and no separate "draft" models. Even better, it acts as a strict superset of the original model: turn a confidence dial one way and it behaves identically to your baseline model; turn it the other way under heavy server load and it sprints through predictable text at over 2x the wall-clock speed.

What Problem Does This Paper Address?

Generating text one token at a time is fundamentally memory-bandwidth bound and wasteful when consecutive words are predictable. Existing workarounds usually complicate your deployment stack: speculative decoding requires hosting and orchestrating a second, smaller draft model, while multi-head methods (like Medusa or EAGLE) bolt extra prediction heads onto the network.

Another intuitive alternative is converting autoregressive (AR) models into block-diffusion models, which unmask chunks of tokens in parallel. However, prior attempts at this conversion severely degraded reasoning and coding skills. The authors ask: Can we give a standard AR model multi-token capabilities purely through continued fine-tuning on existing data, without breaking its original single-token intelligence or changing its architecture?

Figure 1: Example MARS generation on GSM8K. The model adaptively generates 1–4 tokens per forward pass based on confidence: predictable continuations are batched together, while novel content proceeds token-by-token. This achieves 2.55× token per forward over standard AR decoding.

Methods

The authors diagnose four gaps between AR models and block diffusion, realizing that three of them—bidirectional attention within blocks, altered logit alignment, and out-of-order generation—unnecessarily break the pretrained AR machinery. Only one gap is truly unavoidable for parallel prediction: using [MASK] placeholders for unknown future tokens.

MARS closes the three design gaps while embracing [MASK] tokens:

  • Strict Causality & Right-Shifted Logits: Every token—even [MASK] tokens within a proposed block—attends strictly causally (left-to-right), preserving the exact output-head alignment of standard AR models.
  • Two-Stream Anchored Training: During fine-tuning, MARS passes two copies of the response in a single forward pass using a structured attention mask: a clean stream (ordinary tokens with standard next-token loss) and a noisy stream (blocks of $B$ [MASK] tokens attending causally to earlier clean blocks). Crucially, keeping the standard AR loss on the clean stream acts as an "anchor" so the model doesn't forget how to reason.
  • Left-to-Right Sliding Window & Deferred-KV Sampler: At inference, the model appends $W-1$ [MASK] tokens to the prefix and predicts $W$ future tokens in one pass. It accepts tokens strictly left-to-right as long as token confidence exceeds a run-time threshold $\tau$ (always accepting at least one). For batched serving, a custom deferred-KV sampler folds key-value cache updates for newly accepted tokens directly into the next proposal pass, avoiding batch-synchronization bottlenecks.
Figure 2: MARS attention mask and inference for L=8, B=4. Left: training mask with [x; ˜x] concatenation. The orange cells show that noisy positions attend to each other causally within each block, in contrast to Block Diffusion [1] which uses bidirectional attention within blocks. Right: sliding-window inference. The dashed line marks the generation cursor; B [MASK] tokens are appended and filled via one forward pass. Accepted tokens (blue) slide into the prefix for the next step.

Datasets

No new benchmarks are introduced. Models (Qwen2.5-0.5B-Instruct and Qwen2.5-7B-Instruct) are fine-tuned on Dolci-Instruct-SFT (~2M instruction examples). Evaluation spans six standard benchmarks covering instruction following, general knowledge, math, and coding: IFEval, BBH, MMLU-Pro, GPQA, GSM8K, and HumanEval.

Key Insights and Ideas

  • Bidirectional attention was a red herring: Diffusion models inherited bidirectional attention from computer vision, which wreaks havoc on causal tasks like coding (where Block Diffusion drops 14.7 points on HumanEval at 7B). Keeping causal attention everywhere preserves baseline intelligence and makes KV caching trivial—once a token is committed, its cache never needs refreshing.
  • The AR "anchor" prevents reasoning collapse: As block size $B$ grows, most masked tokens see other masks rather than clean ground-truth text. Without the auxiliary clean-stream AR loss, 7B GSM8K accuracy plummets from 75.1% to 31.5% at $B=16$. Interestingly, ablations show the magic isn't the fancy two-stream mask itself—simply alternating clean AR batches and masked batches works just as well. The two-stream setup is just a compute-convenient way to bundle them.
  • Two live deployment knobs on a single checkpoint: Operators can adjust the confidence threshold $\tau$ per request (trading slight quality for latency) and adjust proposal window $W$ per step based on server load, seamlessly falling back to standard AR decoding ($W=1$) when GPUs become compute-bound.

Key Results

  • Zero degradation in 1-token mode ($\tau=1.0$): At the recommended block size ($B=4$), MARS beats the AR SFT baseline on the 6-benchmark average at both 0.5B (30.2 vs. 28.7) and 7B (58.4 vs. 56.6).
  • Smooth multi-token speedup ($\tau=0.95$): MARS-7B ($B=4$) accepts 1.68 tokens/forward while averaging 57.8 across benchmarks—still higher than the 56.6 AR SFT baseline. Larger blocks ($B=16$) reach 1.87 tokens/forward (peaking at 3.29 on BBH).
  • Outpacing specialized accelerators: In controlled 7B GSM8K tests, MARS achieves a 1.56x wall-clock speedup with 0 added parameters, beating lossless EAGLE-style draft heads (1.32x max speedup; heads add vocabulary-projection overhead) and beating Fast-dLLM on Block Diffusion by 1.54x in tokens/sec.
  • Real batched wall-clock gains: On an H100 (Qwen2.5-7B), the deferred-KV sampler delivers 2.16x wall-clock speedup over cached AR at batch size 4, 1.70x at batch 16, and 1.17x at batch 32.

Limitations and Future Work

MARS doubles sequence length and roughly doubles compute during fine-tuning. Because experiments capped per-stream training length at 512 tokens, long chain-of-thought tasks like GPQA saw slight dips (-1.6 points at 7B), leaving long-context ($\ge$32k) training untested. Furthermore, multi-token mode is lossy (unlike speculative decoding), and wall-clock speedups vanish once serving becomes compute-bound (at batch size 64, rejected mask tokens cost real compute, so the sampler falls back to 1.00x AR). Future directions include porting the sampler from HuggingFace Transformers to production engines like vLLM/SGLang, scaling beyond 7B, and testing open-ended chat quality.

Summary updated

Abstract

Autoregressive (AR) language models generate text one token at a time, even when consecutive tokens are highly predictable given earlier context. We introduce MARS (Mask AutoRegreSsion), a lightweight fine-tuning method that teaches an instruction-tuned AR model to predict multiple tokens per forward pass. MARS adds no architectural modifications, no extra parameters, and produces a single model that can still be called exactly like the original AR model with no performance degradation. Unlike speculative decoding, which maintains a separate draft model alongside the target, or multi-head approaches such as Medusa, which attach additional prediction heads, MARS requires only continued training on existing instruction data. When generating one token per forward pass, MARS matches or exceeds the AR baseline on six standard benchmarks. When allowed to accept multiple tokens per step, it maintains baseline-level accuracy while achieving 1.5-1.7x throughput. We further develop a block-level KV caching strategy for batch inference, achieving up to 1.71x wall-clock speedup over AR with KV cache on Qwen2.5-7B. Finally, MARS supports real-time speed adjustment via confidence thresholding: under high request load, the serving system can increase throughput on the fly without swapping models or restarting, providing a practical latency-quality knob for deployment.
BibTeX
@inproceedings{jin2026mars,
  author = {Ziqi Jin and Lei Wang and Ziwei Luo and Aixin Sun},
  title = {{MARS: Enabling Autoregressive Models Multi-Token Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=gmcLiK4jCQ},
}
Figure