A retailer wants to cut the mobile-app download size of a product-image classifier (dense top-1 76.1%) by pruning it and shipping the weights in a compressed sparse format, and accepts at most a 1-point accuracy drop. The chart compares one-shot magnitude pruning (prune once, then fine-tune) with iterative magnitude pruning (remove 20% of the remaining weights per round and retrain after each round) at different sparsity levels. Which conclusion is correct?
Show the answer and explanation
Correct answer: C, Up to about 40% sparsity the methods are nearly equal, so one-shot suffices there; at 80% only iterative pruning stays within one point, at the cost of 7–8 prune-and-retrain rounds.
Explanation Model Compression
Magnitude pruning removes the weights with the smallest absolute values. Done one-shot, a large fraction disappears at once and fine-tuning must repair a heavily damaged network. Done iteratively, each round removes a little (here 20% of what remains) and retraining lets the remaining weights compensate before the next cut. Lottery-ticket-style variants rewind the weights or the learning-rate schedule to an early point before each retraining, which often works better than plain fine-tuning.
Reading the chart against the 75.1% floor:
| Sparsity | One-shot | Iterative |
|---|---|---|
| 40% | 75.8 ✓ | 76.0 ✓ |
| 60% | 74.2 ✗ | 75.9 ✓ |
| 80% | 67.5 ✗ | 75.3 ✓ |
| 90% | 55.0 ✗ | 72.8 ✗ |
The curves agree up to about 40%, where cheap one-shot pruning is enough. They diverge at high sparsity, and only iterative pruning meets the floor at 80%. The price is compute: with 20% per round, the remaining fraction is 0.8ⁿ, so 0.8⁷ ≈ 0.21 (79% sparse) and 0.8⁸ ≈ 0.17 (83%), i.e. about 7–8 full retraining rounds.
Why the distractors fail: at 60% one-shot is already down to 74.2%, below the floor, so the methods are not equal there; and because each round removes 20% of the remaining weights, four rounds reach only 1 − 0.8⁴ ≈ 59% sparsity, not 80%. Iterative pruning at 80% is 0.8 points below dense, inside the limit. At 20–40% the gap is at most 0.2 points, and every round needs real retraining, not one step.
Interview tip: remember that unstructured sparsity shrinks the compressed download, but only speeds up inference with sparse kernels or hardware-friendly patterns such as 2:4.