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

SkipGPT: Each Token is One of a Kind

Anhao Zhao, Fanghua Ye, Yingqi Fan, Junlong Tong, Jing Xiong, Zhiwei Fei, Hui Su, Xiaoyu Shen

Large Language Models (LLMs) achieve remarkable performance but incur substantial computational costs due to their deep, multi-layered architectures. To speed up inference and reduce costs, researchers often use layer pruning—removing entire transformer layers. However, conventional static pruning methods suffer from two major blind spots:

  1. Ignoring Horizontal Dynamics: Static pruning permanently removes layers for all inputs. But not all tokens are created equal; complex words might need deep processing, while simple filler words (like "the" or "a") could skip layers entirely.
  2. Ignoring Vertical Dynamics: A standard transformer layer contains both a Self-Attention module and a Multi-Layer Perceptron (MLP). These serve different cognitive functions, yet most pruning methods treat them as a single package deal, removing or keeping both together.

To solve these inefficiencies, researchers introduce SkipGPT, a dynamic layer pruning framework that optimizes computational resource allocation through global token-aware routing and decoupled pruning policies.

The SkipGPT Approach

SkipGPT dynamically routes tokens through the network, making independent decisions for every module and every token.

SkipGPT vs. Static Structured Pruning
  • Decoupled Routing: SkipGPT places a lightweight "router" before every individual module (Attention and MLP). This allows the model to skip an Attention block but execute the MLP block in the same layer, or vice versa.
  • Global Sparsity: Instead of forcing a fixed compute budget per layer or per token, SkipGPT allocates compute dynamically across the entire forward pass.
  • Two-Stage Training Paradigm: Jointly training a routing mechanism and model weights often fails because a randomly initialized router disrupts the pre-trained LLM. SkipGPT uses a stable, decoupled approach:
  • Router Tuning: The LLM's weights are frozen, and only the tiny router networks are trained to identify redundant modules using a differentiable Gumbel-Softmax trick.
  • LoRA Fine-Tuning: The routers are frozen, and the LLM is fine-tuned using Low-Rank Adaptation (LoRA) to recover any performance lost from the skipped computations.

Key Insights: Rethinking Attention and MLPs

SkipGPT reveals fascinating behaviors about how LLMs process information across different layers and tokens.

Routing probabilities across layers and tokens
  • Attention is more redundant than MLP: When allowed to choose freely, SkipGPT consistently prunes more Attention modules than MLP modules. This suggests that current Transformer architectures—which rigidly pair one Attention block with one MLP block per layer—might be structurally inefficient and over-indexed on Attention.
  • Context length flips the script: Redundancy shifts as sequences get longer. Early in a sequence, the model relies heavily on MLP computations (likely to figure out the task) and skips Attention. Later in the sequence, as context builds up, the model skips MLPs and relies heavily on Attention to process the accumulated context.

Results and Impact

SkipGPT demonstrates massive compression capabilities without sacrificing expressivity. On LLaMA3.1-8B, SkipGPT reduced active parameters by over 40% while fully restoring—and in some cases slightly exceeding—the original dense model's average accuracy across standard commonsense reasoning benchmarks (like BoolQ, PIQA, and HellaSwag).

Furthermore, the tuning process is highly efficient. The "Router Tuning" stage alone retains over 90% of the model's original performance at a 25% sparsity level and takes less than 4 hours on a single A800 GPU. SkipGPT significantly outperforms state-of-the-art static and dynamic pruning baselines, particularly at high sparsity levels where other methods catastrophically collapse.

By harmonizing dynamic efficiency with preserved expressivity, SkipGPT not only advances the practical deployment of resource-aware LLMs but also provides compelling evidence that future architectures could be designed with fewer Attention modules relative to MLPs to save compute natively.

Summary updated

BibTeX
@inproceedings{zhao2025skipgpt,
  author = {Anhao Zhao and Fanghua Ye and Yingqi Fan and Junlong Tong and Jing Xiong and Zhiwei Fei and Hui Su and Xiaoyu Shen},
  title = {{SkipGPT: Each Token is One of a Kind}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=d7v2iUSa9s},
}
Figure