TAPIOCA: Why Task- Aware Pruning Improves OOD model Capability
Krish Sharma, Omar Naim, Soumadeep SAHA, Vinija Jain, Aman Chadha, Nicholas Asher
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Interpretability & Model Adaptation › Task-Aware Representation Geometry · Type: new method · Keywords: task-aware pruning, out-of-distribution generalization, representation geometry, model compression, causal analysis
Summary
TAPIOCA reveals why task-aware pruning improves OOD model capability by showing it realigns distorted OOD representations with the model’s task-adapted geometry.
Explained to a 5-year-old
We have a big computer brain that learns to do a job. Sometimes we cut away parts of the brain that are not needed for that job. This helps the brain work better on new, different things it hasn't seen before. The paper explains why cutting helps and how it works. It shows that cutting the right parts makes the brain guess better on new things.
Explained to a 5-year-old, longer
A big computer brain learns how to do a specific task, like answering questions. Researchers noticed that if they remove some layers of the brain that are not important for that task, the brain can sometimes do better on new problems it hasn't seen. This improvement only happens when the new problems are different from the ones the brain was trained on. The paper investigates why this happens by looking at how the brain represents information. It finds that the brain creates a special geometry for the task, and when new problems come in, they distort this geometry. By pruning the layers that cause the most distortion, the brain’s geometry becomes more aligned with the new problems, leading to better performance. The authors test this idea on simple math problems and large language models, showing that the pruning helps consistently across different sizes of brain. They also provide evidence that the effect is causal, not just coincidental, by controlling how the data changes and adjusting the brain’s internal scaling.
For a technical reader
The work examines how task-specific layer pruning influences model behavior on out-of-distribution inputs. By profiling representation norms and distances, the authors show that OOD data introduces geometric distortion relative to the task-adapted distribution. Pruning selectively removes layers that amplify this distortion, effectively realigning OOD representations with the model’s learned geometry. Experiments across polynomial regression and large language models confirm consistent OOD gains without affecting in-distribution performance, and causal analyses validate the mechanism.
Problem
It is unclear when and why pruning layers according to a specific task improves model performance on data that differs from the training distribution.
Method
The authors evaluate pruning on polynomial regression tasks and large language models, analyzing layerwise norm and pairwise-distance profiles of representations. They find that OOD inputs distort the task-adapted geometry and that pruning removes layers amplifying this distortion, thereby realigning OOD representations.
Results
Task-aware pruning yields no benefit on in-distribution data but consistently improves out-of-distribution accuracy across tasks and model scales.
Contributions
The paper provides a geometric explanation for why task-aware pruning improves OOD performance, identifies the role of representation distortion, and offers causal evidence through distribution shifts and interventions.
Research questions this paper is counted under
- Do different components of deep models contribute equally to generalization when trained end-to-end?
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction