TRANSMISSION // 2606.10820v3

K-Forcing: Teaching language models to generate several tokens at once

Source published

K-Forcing aims to speed up language-model serving by generating fixed-size blocks of tokens in one pass. Small-benchmark tests show faster throughput, with a trade-off in text quality.

AI-generated conceptual illustration for K-Forcing: Teaching language models to generate several tokens at once
AI-generated conceptual illustration; not documentary evidence.

Language models usually generate text one token at a time, requiring a new model pass for each token. K-Forcing trains a model to produce a short, jointly sampled block instead. Tests on two text benchmarks report higher throughput, but also show that larger blocks can make completions less like those from the original model.

Autoregressive language models generate text one token at a time: the model predicts a token, adds it to the context, and then predicts the next. That sequential process can make serving costly, particularly when many requests are handled together. Each step reads model parameters and uses the growing record of prior tokens, called the key-value (KV) cache.

K-Forcing asks whether a model can instead generate several future tokens in a single pass without treating those tokens as independent guesses. The researchers’ answer is a learned mapping that turns random inputs, together with the text context, into a fixed-length block of tokens. The aim is to capture how the tokens depend on one another while keeping the regular block size useful for batch serving.

From random inputs to a token block

The method starts with an existing autoregressive model, used as a teacher. K-Forcing trains a student model, reusing that model’s Transformer backbone, to imitate the teacher’s next-token sampling process. In the proposed “push-forward” approach, independent values drawn from a uniform random distribution are transformed into a joint sample of several future tokens. “Joint” matters here: the block is intended to reflect relationships among its tokens, rather than simply combining separate predictions for each position.

Training proceeds in stages. First, the student learns to generate one token from the teacher’s outputs. Then a student that can generate a block of length k supplies training examples for a new student that generates a block of length 2k. The authors call this progressive self-forcing distillation. They argue it avoids problems with a simpler approach that tries to infer random inputs from real text tokens, which can create a mismatch between training and use and be numerically fragile.

At inference, K-Forcing adds random-input tokens to the model’s input and produces a fixed number of text tokens per pass. The researchers say this regular pattern works with standard autoregressive KV-cache serving and continuous batching, where requests are processed together as they arrive. Users can choose a smaller block than the model was trained for, trading some speed for quality.

Tests on two text benchmarks

The study evaluates the method on LM1B and OpenWebText using decoder-only Transformer models of roughly 100 million parameters. The reported throughput tests use a single H100 GPU, three batch sizes, and fixed-length text completions. The authors compare K-Forcing with its autoregressive teacher, and also run separate comparisons with other decoding approaches on OpenWebText.

With four tokens generated per pass, K-Forcing reports about three times the teacher’s throughput on LM1B and roughly 2.4 to 3.5 times on OpenWebText, depending on batch size. The paper also reports gains with smaller blocks, though those gains are generally more modest. Its results describe a trade-off: generating more tokens per pass reduces the number of model passes, but text quality moves further from the teacher’s output. In an evaluation where a separate language model judged paired completions, the four-token version received fewer wins than the teacher on OpenWebText. The authors’ examples likewise show more grammatical problems and repetition as the block grows.

These figures are specific to the study’s models, datasets, hardware, and evaluation procedures. They are not evidence that K-Forcing will deliver the same gains on larger models, different serving systems, or open-ended tasks. Text quality was assessed in part with generative perplexity from an external GPT-2 evaluator and in part by a locally served language-model judge—not by a reported human evaluation. The authors themselves caution that a lower score from the perplexity evaluator does not mean K-Forcing is better than its teacher.

What remains uncertain

The experiments suggest that fixed-size joint generation may be a useful direction for throughput, but the paper describes an early demonstration, not a deployment-wide result. The tested models are small compared with many current systems, and the benchmarks are limited to two language-modeling datasets. Whether the method scales while preserving quality remains open, especially at larger block sizes. The authors identify the remaining quality gap, costly training implementation, and inconsistent GPU computations that can affect training targets as challenges for future work.

The paper also frames K-Forcing as a statistical-modeling change, not a complete serving solution. Real-world performance will depend on hardware, batching, model scale, and implementation details. The source is an arXiv preprint; the evidence provided here does not establish that it has been peer reviewed. Its results should therefore be read as promising but provisional, rather than as a guarantee of faster or equivalent-quality generation in production.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.