Demystifying When Pruning Works via Representation Hierarchies
Organizations: University of Maryland, College Park, USA · Northeastern University, USA
Abstract
Network pruning, which removes less important parameters or architectures, is often expected to improve efficiency while preserving performance. However, this expectation does not consistently hold across language tasks: pruned models can perform well on non-generative tasks but frequently fail in generative settings. To understand this discrepancy, we analyze network pruning from a representation-hierarchy perspective, decomposing the internal computation of language models into three sequential spaces: embedding (hidden representations), logit (pre-softmax outputs), and probability (post-softmax distributions). We find that representations in the embedding and logit spaces are largely robust to pruning-induced perturbations. However, the nonlinear transformation from logits to probabilities amplifies these deviations, which accumulate across time steps and lead to substantial degradation during generation. In contrast, the stability of the categorical-token probability subspace, together with the robustness of the embedding space, supports the effectiveness of pruning for non-generative tasks such as retrieval and multiple-choice selection. Our analysis disentangles the effects of pruning across tasks and provides practical guidance for its application. Code is available at https://github.com/CASE-Lab-UMD/Pruning-on-Representations
Figures & tables
| Question | Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May? |
|---|---|
| Method | Output |
| Baseline | Natalia sold 48 clips in April. In May, she sold half as many clips as in April, which amounts to 24 clips. Therefore, the total number of clips sold across April and May is . |
| Drop-4A | Natalia sold 48 clips in April and half as many in May, which is 24 clips. Therefore, the total number of clips sold over April and May is . |
| Drop-8A | Let’s denote the number of clips Alicia, the ILUNNIE M ’<%=>t [K1205359752000_1_61.72510155125556460445874923052e-08T.1000.0 01.10115651362430000.2023-01-02 23:21:07 202277447967445715556447 |
| Drop-4M | Natalia sold 48 clips in April and half that amount in May (24 clips), resulting in a total of clips sold across the two months. |
| Drop-8M | To calculate the total number of clips, we are adding the result of first you and your a year and then the second or your and your a year and your and your and your and your and your and your… |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Multiple-Choice Classification |
|---|
| [MC1] Tom has 15 candies. He eats 4 and gives 3 to his friend. How many candies does Tom have left? Choose the correct answer: A) 6 B) 7 C) 8 D) 9 |
| [MC2] Which planet is known as the Red Planet? Choose the correct answer: A) Venus B) Mars C) Jupiter D) Saturn |
| [MC3] Which of the following animals is a mammal? Choose the correct answer: A) Snake B) Frog C) Dog D) Lizard |
| [MC4] Mark is older than John, and John is older than Alex. Who is the youngest? Choose the correct answer: A) Mark B) John C) Alex D) None of them |
| Mathematical Reasoning |
| [Math1] John has twice as many books as Mary. Together they have 18 books. How many books does John have? |
LLM Pruning
Large language model pruning removes less useful weights or components to reduce memory and inference costs while preserving model capabilities.
See all 178 papers