arXiv:2609.27233v1 Announce Type: new Abstract: Transformer language models process sequences token by token in an autoregressive manner, making growing contexts increasingly expensive. Yet many adjacent token spans are highly predictable or frequently occur as stable units, suggesting that their representations may be compressible. We introduce a method for distilling sequential computation by replacing spans of input tokens with collapsed representations, computed on the fly by a lightweight merge module. This module generates a single surrogate embedding from a sequence of static token embeddings that captures the functional role of the multiple tokens, allowing pretrained models to operate on compressed inputs without architectural changes or re-training. We apply this approach during inference to compress both prompts and intermediate decoding steps, using a rollback mechanism to substitute stored multi-token KV cache entries with their single-step surrogates. Experiments across diverse models show that the merge module can be used to reduce effective sequence length by up to 40% with minimal accuracy degradation across language modeling evaluations and downstream tasks, including question answering, summarization, commonsense reasoning, and long-form mathematical reasoning. Additional lightweight adaptation of the merge module further improves the accuracy-compression trade-off in selected settings. These results demonstrate that sequential token computation in Transformers can be effectively approximated through condensed surrogate representations that approximate the original behavior without model updating.
Distilling Sequential Computation in Transformer Language Models
A new arXiv paper (2609.27233v1) introduces a method for distilling sequential computation in Transformer language models by replacing spans of input tokens with collapsed surrogate embeddings generated on the fly by a lightweight merge module. The approach, applied at inference to compress both prompts and intermediate decoding steps via a rollback mechanism that substitutes stored multi-token KV cache entries with single-step surrogates, reduces effective sequence length by up to 40% with minimal accuracy degradation across language modeling evaluations and downstream tasks including question answering, summarization, commonsense reasoning, and long-form mathematical reasoning. The authors report that additional lightweight adaptation of the merge module further improves the accuracy-compression trade-off in selected settings, with no architectural changes or model re-training required.
Run your AI side-project on zahid.host
EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.