NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bring Future Vision: Dynamic Computation Allocation Guided by Lightweight Feature Forecaster

Chao Han, Yijuan Liang, Zihao Xuan, Daokuan Wu, Wei Zhang, Xiaoyu Shen

As Large Language Models (LLMs) become ubiquitous in real-world applications, their massive computational requirements remain a significant bottleneck. To mitigate these high inference costs, researchers have increasingly turned to Dynamic Computation Allocation (DCA). DCA attempts to speed up inference by deciding on-the-fly which tokens require full processing and which can skip certain layers. However, existing DCA methods rely on a myopic, greedy routing mechanism that often degrades model performance.

The Problem with "Execute-or-Skip"

Current dynamic routing methods suffer from two fundamental flaws. First is the All-or-Nothing Dilemma: skipping a layer entirely causes a massive "feature shift." This abrupt disruption in the data flow often leads to irreversible information loss, requiring heavy, expensive fine-tuning to correct.

Second is Short-Sighted Token Selection. Current routers evaluate a token's immediate importance but fail to consider its recoverability. A token might seem crucial at a given layer, but its transformation might be simple enough to approximate and recover later in the network. By ignoring recoverability, greedy routers frequently make suboptimal dropping decisions.

The Solution: Informed Routing and the LFF

To address these limitations, this paper introduces a paradigm shift from "execute-or-skip" to "execute-or-approximate," powered by a concept called Informed Routing.

Instead of completely dropping tokens, the authors introduce a Lightweight Feature Forecaster (LFF). For every major unit in the transformer (Attention or Feed-Forward Network), a tiny bottleneck MLP is attached. Remarkably, this LFF is only about 0.02% the size of a standard FFN block. The LFF is trained to mimic the output of the full unit.

Under Informed Routing, the router identifies which tokens are "predictable." Tokens requiring simple transformations are routed through the highly efficient LFF, while complex tokens receive the full-fat computation of the original layer. This proactive approach preserves model fidelity while drastically reducing computational overhead.

Training and Hardware Acceleration

The implementation relies on a streamlined three-stage optimization process:

  1. LFF Initialization: Forecasters are trained in parallel to match frozen layer outputs, a rapid process taking less than five minutes.
  2. Router Training: Routers are trained to optimally choose between the original unit and the LFF.
  3. LoRA Fine-tuning: An optional final polish is applied to maximize overall performance.

To ensure theoretical savings translate into actual wall-clock speedups, the authors developed a Triton-based custom operator. This operator utilizes block-sparse kernels to efficiently skip computation for "inactive" blocks of tokens during batch processing, overcoming the hardware overhead issues that typically plague dynamic models.

Key Insights and Performance Gains

Evaluated on Llama 3.1-8B and Llama 3.2-3B using datasets like RedPajama and WikiText-2, the Informed Routing approach yielded several fascinating insights into LLM behavior:

  • Recoverability is Key: Many token transformations are linearly simple. By approximating rather than skipping them, the model preserves its internal feature distribution, leading to significantly higher stability.
  • Attention is Redundant: Routers consistently chose to approximate Attention modules more frequently than FFN modules, confirming that self-attention often harbors more computational redundancy.
  • Linguistic Logic: The routers naturally learned linguistic patterns, choosing to approximate functional tokens (like punctuation and prepositions) while preserving full computation for semantic-rich content words (like nouns and verbs).

Because the LFFs provide a "warmer start" for the model's data flow, Informed Routing at 25% sparsity outperformed the standard greedy version even after the greedy version had been fully fine-tuned. Overall, Informed Routing outperformed the state-of-the-art greedy baseline (SkipGPT) by over 10% in accuracy without global fine-tuning. At 40% sparsity, the LFF-based model maintained a perplexity of 11.11 on WikiText-2, compared to 14.35 for the best-performing baseline.

In real-world deployments, these architectural improvements delivered substantial acceleration. A pure PyTorch implementation achieved a 1.5x speedup for long sequences, while the custom Triton kernel achieved a 1.62x speedup at 50% sparsity with a batch size of 8.

Limitations and Future Directions

While Informed Routing successfully reduces computation, it does not naturally reduce the memory footprint of the Key-Value (KV) cache. The authors tested an aggressive KV reduction strategy, but it resulted in a noticeable drop in model quality. Additionally, there is an inherent trade-off in forecaster complexity: more complex LFFs improve accuracy but cut into inference speedups.

Future work will likely explore more sophisticated forecaster architectures and hybrid strategies that combine informed routing with complementary compression techniques, such as quantization, to further optimize LLM deployment.

Summary updated

BibTeX
@inproceedings{han2026bring,
  author = {Chao Han and Yijuan Liang and Zihao Xuan and Daokuan Wu and Wei Zhang and Xiaoyu Shen},
  title = {{Bring Future Vision: Dynamic Computation Allocation Guided by Lightweight Feature Forecaster}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=RGTeK9aEI3},
}
Figure