CausalGate: Causal Importance Distillation for Transformer Module Pruning
Abstract
Existing adaptive inference methods for Large Language Models rely on observational heuristics, such as hidden-state similarity or activation magnitudes, to drop redundant modules. However, these correlation-based metrics often fail to capture subtle, non-linear structural computations vital for semantic accuracy. We introduce CausalGate, an intervention-guided framework for compute-efficient transformer inference. During a calibration phase, CausalGate isolates individual Attention and MLP sub-layers, zeros out their respective outputs, and measures the exact semantic damage via the Kullback-Leibler divergence of the final logit distribution. To eliminate runtime routing overhead, this structural importance hierarchy is distilled into a global set of static, lightweight scalar gates using an Exponential Moving Average smoothing objective paired with a differentiable pairwise ranking loss. Evaluated on TinyLlama-1.1B, Qwen2.5-3B, and Llama-3.1-8B across language modeling and commonsense reasoning benchmarks, CausalGate consistently outperforms prominent dynamic routing and layer-skipping baselines, translating theoretical compute savings into concrete hardware latency reductions with zero operational overhead.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL, cs.CV, stat.ML
- Comments
- In-Review at a conference
Related papers
Mixture-of-Loops Transformer
Shared title terminologycs.LGLianghui Zhu, Shijie Wang, Xinggang Wang et al.
From Prediction to Decision: Decision-Focused Fine-Tuning of Autoregressive Tabular Transformers for Cost-Sensitive Financial Events
Shared title terminologycs.LGAshkan Golgoon, Giacomo Domeniconi, Samuel Atkins et al.
Robust Recourse under Causal Graph Ambiguity
Shared title terminologycs.LGMuyan Anna Li, Juliette Sinnott, Mohammad Kohandel et al.
Privileged On-Policy Distillation for Calibrated Alzheimer's Diagnosis With Missing Modalities
Shared title terminologycs.LGVo Minh Khoi Nguyen, Dat Tien Chung, Quang Minh Khoa Le et al.
Predicting acute food crises and discovering actionable drivers with causal machine learning
Shared title terminologycs.LGMélissande Machefer, Michele Ronco, Michele Meroni et al.
Strong Starts, Simple Recipes: Unified Multi-Teacher On-Policy Distillation from Multimodal Specialists
Shared title terminologycs.LGWenzheng Chang, Taiqiang Wu, Yuqi Xu et al.