Structured Pruning › Pruning Schedule and Iterative Pruning

Michael BrenndoerferFebruary 27, 20264 min read
Language AI HandbookAll chapters
Part 41 of 67Model Compression
Chapter 310Structured Pruning › Pruning Schedule and Iterative Pruning
Reading section 8 of 13 · Pruning Schedule and Iterative Pruning · 4 minSection 8 of 13 · 4 min

Book contents

Section 8 of 13 · 4 min read

Structured Pruning › Pruning Schedule and Iterative PruningOne section · Sections in this chapter8 / 13 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

A single aggressive pruning pass often damages quality more than a series of smaller pruning steps with fine-tuning between each step. Iterative pruning cycles through: prune a small amount, fine-tune to recover, evaluate quality, and repeat until the target size is reached. Each fine-tuning phase allows the model to stabilize before the next round of pruning begins. The accumulated effect of many small, recoverable pruning steps is a final model that is both smaller and higher quality than you would get from one large pruning step.

The intuition behind iterative pruning is that importance scores change after each pruning round. When you remove a low-importance head, the remaining heads may redistribute their roles. A head that appeared unimportant under the original model may become more important when another head in the same layer is removed, because the remaining head must now cover both roles. Iterative pruning updates importance scores between rounds, catching these redistributions and making better decisions.

The pruning schedule can be described as a function that determines what fraction of the model to prune at each step tt:

st=sf+(si−sf)⋅(1−t−t0n⋅Δt)3s_t = s_f + (s_i - s_f) \cdot \left(1 - \frac{t - t_0}{n \cdot \Delta t}\right)^3

where:

  • sts_t is the sparsity at step tt
  • sis_i is the initial sparsity (often 0)
  • sfs_f is the final target sparsity
  • t0t_0 is the step at which pruning begins
  • nn is the number of pruning steps
  • Δt\Delta t is the interval between pruning steps

The cubic term (1−t−t0n⋅Δt)3\left(1 - \frac{t - t_0}{n \cdot \Delta t}\right)^3 is the key feature of this schedule. At the beginning of pruning (when tt is just above t0t_0), the term is close to 1, so sts_t is close to sis_i: pruning starts slowly. As tt increases toward t0+n⋅Δtt_0 + n \cdot \Delta t, the term approaches 0 and sts_t approaches sfs_f: pruning accelerates toward the target. Near the end of the schedule, as the target approaches, the cubic function causes pruning to decelerate again, making fine adjustments rather than large jumps. This S-shaped progression (slow, fast, slow) is better matched to how models learn than a constant linear rate.

The cubic schedule starts pruning slowly, accelerates through the middle, then slows down again near the target. This allows the model to accommodate each wave of removals before more components are pruned. The deceleration near the target is particularly important: the final few percentage points of sparsity are often the hardest to achieve without quality loss, and the schedule naturally allocates more fine-tuning time near the target.

The chart below compares the cubic schedule to a linear schedule. The cubic schedule removes fewer components early in training, when the model is still adjusting from prior fine-tuning, and reaches the target sparsity more gradually.

Out[18]:
Visualization
Line chart comparing cubic and linear pruning schedules over training steps.
Comparison of cubic and linear pruning schedules over 100 training steps, both targeting 50% final sparsity starting from step 10. The cubic schedule (blue) removes components slowly at first, accelerates through the middle, and decelerates near the target. The linear schedule (orange) reduces the model at a constant rate. In practice, the cubic schedule gives the model more time to adapt at the critical early and late stages of pruning.