Abstract
Modern Large Language Models (LLMs) are typically constrained by the sequential nature of autoregressive decoding, which limits generation speed. This study reveals a "hidden" parallel generation capacity within frozen, off-the-shelf LLMs. By optimizing just two specialized input embeddings, termed "proto-tokens," the researchers demonstrate that models can generate hundreds of tokens in a single parallel forward pass. This approach achieves a throughput increase of up to 279x compared to traditional word-by-word decoding, suggesting that the sequential bottleneck of LLMs is an operational choice rather than an architectural necessity.
Introduction
The fundamental bottleneck in current LLM inference is autoregressive decoding. Generating a sequence requires predicting one token at a time, where each output is fed back as input for the next step. While techniques like speculative decoding and non-autoregressive retraining attempt to mitigate this, they often involve significant computational overhead or complex multi-model architectures. This research investigates whether standard, frozen models can be induced to perform one-step generation of long text sequences.
Methodology: The Exact Scheme
The core of the proposed method involves finding latent representations, or "proto-tokens," that elicit one-step generation. These are trainable vectors in the embedding space not mapped to specific vocabulary words.
The authors developed the Exact Scheme, which utilizes a specific arrangement of these embeddings:
- Input Structure: The input is formatted as $[e, m, m, \dots, m]$, where $e$ is a unique "content" token and $m$ is a "structural" token.
- Optimization: While keeping LLM weights frozen, gradient descent is used to optimize $e$ and $m$ such that the model outputs the target text in a single forward pass.
- Universal Structural Tokens: A key discovery is that the $m$ token can be shared across various texts, acting as a "computational sink" that allows the model to focus on the information densely packed within the content token $e$.
Experimental Setup
The method was evaluated using the Pythia (160M to 1.4B) and Llama 3 (1B to 8B) model families. To ensure the models weren't merely relying on memorized training data, the researchers tested across four distinct datasets: Random sequences, Fanfiction (AO3) published after the training cutoff, the PG-19 book dataset, and synthetic text generated by the LLM itself.
Key Results and Discussion
The experiments yielded several significant insights into the latent capabilities of LLMs:
Reconstruction Capacity and Throughput
The Llama-3.1-8B model demonstrated the highest capacity, successfully reconstructing up to 724 tokens in a single forward pass. More importantly, the one-step approach provided a massive leap in efficiency. On average, the method achieved 279x greater throughput than standard autoregressive decoding.
Information Density and Scaling
While the one-step approach is significantly faster, autoregressive decoding remains more "efficient" at packing information, roughly doubling the density of the one-step method. However, for reconstruction tasks, the raw speed advantage is dominant. Scaling trends were also observed: Llama 3 models showed improved reconstruction as parameter counts increased, whereas Pythia models hit a performance plateau, suggesting that architectural nuances play a critical role in this hidden capacity.
Conclusion
This work provides an existence proof for high-throughput, one-step generation in frozen LLMs. The discovery that the solution space for these embeddings is connected and local suggests the feasibility of training a dedicated "encoder" network. Such an encoder could map text directly to proto-tokens, bypassing the current optimization-based bottleneck and enabling practical, ultra-fast text compression and generation.
Summary updated