Exploring the Latent Capacity of LLMs for One-Step Text Generation

Gleb Mezentsev, Ivan V. Oseledets · DOI

Introduction

Modern Large Language Models (LLMs) are primarily constrained by the autoregressive decoding bottleneck. Generating a sequence of $N$ tokens requires $N$ sequential forward passes, as each token is conditioned on the preceding context. This sequential nature is computationally expensive and introduces significant latency. While non-autoregressive (NAR) models have been proposed, they often necessitate extensive retraining or the use of auxiliary "draft" models. This research investigates whether standard, frozen LLMs already possess the internal capacity for parallel text generation if prompted correctly within their latent embedding space.

Methodology: Proto-Token Optimization

The researchers propose a novel technique to bypass sequential decoding by optimizing a small set of "proto-tokens" in the model's input embedding space. Instead of traditional discrete tokens, the model is fed a sequence of learned vectors $[e, m, m, \dots, m]$.

Figure 2: Schematic of the one-step generation process using optimized proto-tokens $e$ and $m$ with a frozen LLM.

In this setup, $e$ serves as a unique "information" token, while $m$ acts as a "structural" anchor. Due to the causal attention masking inherent in LLMs, the output at position $i$ depends on the preceding $i$ embeddings. By optimizing these vectors via gradient descent to minimize cross-entropy loss against a target text, the model is forced to reconstruct the entire sequence in a single forward pass. The success of this asymmetrical arrangement suggests that LLMs rely heavily on initial tokens to anchor their attention mechanisms, even when those tokens lack explicit semantic meaning.

Results and Key Insights

The study reveals that frozen LLMs exhibit a surprising "hidden" capacity for parallel generation. A critical finding is that using at least two proto-tokens is essential; a single token fails to reconstruct even short sequences, whereas adding a second repeating token ($m$) enables the reconstruction of hundreds of tokens. The study evaluated performance across random, natural (seen and unseen), and model-generated texts, finding consistent results across domains.

Figure 1: Maximum reconstruction length achieved by various LLM architectures in a single forward pass.

As shown in Figure 1, the Llama-3.1-8B model successfully reconstructed up to 724 tokens in one step. This approach yielded a massive throughput increase, averaging 279x faster than traditional autoregressive decoding. While the one-step approach offers superior speed, autoregressive decoding remains more information-dense, packing roughly twice the information per token. However, the raw throughput gains of the parallel pass more than compensate for this difference in density.

Interestingly, model size and architecture significantly influence this capacity. While the Llama-3 family scaled well with size, the Pythia models reached a performance plateau, suggesting that modern architectural features like Rotary Positional Embeddings (RoPE) or Grouped-Query Attention (GQA) may facilitate this latent parallel behavior. Furthermore, the researchers discovered that the solution space for these proto-tokens is connected and relatively smooth, suggesting these embeddings reside in a structured latent manifold.

Discussion and Future Work

While this work provides an "existence proof" of parallel generation capacity in frozen LLMs, several limitations remain. The current optimization process is slow, requiring 10–200 seconds per text, which is impractical for real-time applications. The next phase of research involves training an encoder model to map raw text directly to these proto-tokens, eliminating the need for per-instance optimization. Additionally, future studies should explore whether this latent capacity can be leveraged for true generation tasks, such as summarization, rather than just text reconstruction.

Summary updated

BibTeX
@misc{mezentsev2025exploring,
  author = {Gleb Mezentsev and Ivan V. Oseledets},
  title = {{Exploring the Latent Capacity of LLMs for One-Step Text Generation}},
  year = {2025},
  eprint = {2505.21189},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.21189},
}
Figure