TL;DR
Multi-token prediction (MTP) accelerates LLM generation but standard approaches assume future tokens are conditionally independent, producing incoherent "token salad" and limiting speculative decoding acceptance. This paper introduces MTPC, a framework using probabilistic circuits (PCs) to compactly model expressive joint distributions over future tokens—from mixture models to Hidden Markov Models (HMMs) and binary tree factorizations (BTrees). When retrofitted onto byte-level LLMs like EvaByte, MTPC delivers up to a 5.47× wall-clock speedup over autoregressive decoding and 1.22× over independent MTP while mathematically guaranteeing exact target model distribution matching.
What Problem Does This Paper Address?
Autoregressive language models generate text one token at a time, resulting in memory-bandwidth bottlenecks and high latency. This is particularly problematic for byte-level LLMs, which eliminate tokenizer-induced biases and vulnerabilities at the cost of requiring substantially longer sequence lengths.
Multi-token prediction (MTP) tries to predict a window of $n$ future tokens simultaneously. However, most MTP architectures assume conditional independence across future tokens. For an 8-token window, an independent MTP model completing "Name a capital of South Africa" could assign equal probability to "Cretoria" or "Cape Town" because each position is decided in isolation. While rank-1 mixtures (CP decompositions) can introduce shallow dependencies, systematic and latency-efficient methods for capturing deep, structured token correlations have been missing.
Methods
The authors reframe multi-token prediction through the lens of probabilistic circuits (PCs)—structured computational graphs of sum (mixture), product (factorization), and input (leaf categorical distribution) units that allow exact, efficient inference and sampling.
Key technical components include:
- PC Architectures for Token Windows:
- MTPC-FF: Standard fully factorized, independent token baseline.
- MTPC-CP: Canonical polyadic decomposition (a flat mixture of $r$ components).
- MTPC-HMM: An inhomogeneous Hidden Markov Model circuit capturing sequential token-to-token latent transitions.
- MTPC-BTree: A hierarchical binary tree factorization that splits token sequences recursively, introducing latent tree mixtures that can be evaluated and sampled in parallel.
- LLM Parameterization: An LLM trunk processes the prefix context; lightweight heads map hidden states to circuit parameters (leaf categorical distributions and sum-unit routing weights).
- Self-Speculative Decoding: The draft model shares backbone transformer layers with the verifier STP model, with optional low-rank adaptation (LoRA) on the top few layers of the draft branch. The authors adapt speculative decoding so that the draft model reuses the verifier’s backbone hidden state, executing just one shared forward pass per cycle without sacrificing lossless generation guarantees.
Datasets
- Training & Evaluation: Fine-tuned on the TÜLU 3 SFT mix (filtered to context lengths $\le 8{,}192$ bytes, split into 905,277 training and ~9,100 validation examples). Evaluations were conducted on sets of 250 validation prompts.
- Target Models: Primarily evaluated on EvaByte-SFT (a 6.5B parameter byte-level LLM with a 320-byte vocabulary). Generalization was also tested on a byte-level distilled Llama-3.2 3B.
- No new benchmarks were introduced; standard downstream task suites (e.g., GSM8k, MMLU, HumanEval) from the base models are referenced.
Key Insights and Ideas
- Expressiveness vs. Latency via PC Structure: While HMM circuits achieve the highest raw token acceptance rate ($\mu_{\text{acc}} = 6.82$ tokens for $n=16$), their sequential graph structure introduces step-by-step latency. In contrast, BTree circuits unlock parallel ancestral sampling across latent branches, offering nearly identical acceptance rates ($\mu_{\text{acc}} = 6.71$) at significantly lower latency, yielding the highest overall throughput.
- Marginal Latency Cost for Mixtures: Increasing the mixture rank $r$ from 1 to 32 in CP or BTree heads adds negligible latency because LLM backbone evaluations dominate runtime. The improved expressiveness directly translates into higher acceptance rates.
- Diminishing Returns of Draft Unsharing: Adding LoRA layers to the draft branch decouples its features from the verifier, raising acceptance. However, every unshared layer requires dedicated computation. The sweet spot was 1–2 LoRA layers; adapting deeper trunks quickly hurt wall-clock speed.
Key Results
- Throughput Improvements (EvaByte on NVIDIA L40S):
- For $n=8$ tokens, MTPC-CP ($r=32$) achieved 200.9 tok/s (5.02× over single-token autoregression and +20.8 tok/s over independent MTP).
- For $n=16$ tokens, MTPC-BTree combined with 2 draft LoRA layers reached 219.1 tok/s, yielding a 5.47× speedup over autoregressive generation and a 1.22× speedup over independent MTP (FF).
- Cross-Hardware Consistency: On a desktop-grade NVIDIA RTX 3090, MTPC-BTree achieved a 5.70× speedup over autoregressive baseline (peaking with 1 LoRA layer).
- Cross-Model Validation: On byte-distilled Llama-3.2 3B ($n=8$), MTPC-BTree improved throughput from 21.5 tok/s (STP) to 44.3 tok/s (2.07× speedup), similarly outperforming both independent FF (36.1 tok/s) and CP (41.1 tok/s).
Limitations and Future Work
- Vocabulary Scaling: The current parameterization introduces separate unembedding parameters per mixture component and window position, which is exceptionally cheap for byte models ($|\mathcal{V}|=320$) but parameter-heavy for large subword vocabularies ($|\mathcal{V}| \ge 100\text{k}$) without additional factorization or weight sharing.
- Hardware-Dependent Sweet Spots: Optimal architectural choices (e.g., optimal LoRA depth) depend on hardware characteristics and relative compute-to-memory-bandwidth ratios.
- Future Directions: Leveraging tractable PC properties to perform constrained decoding (e.g., enforcing formal grammars or logic constraints directly during multi-token generation) and exploring continuous latent circuits or structured matrix parameterizations (such as Monarch matrices) to scale to larger vocabularies.
Summary updated