In this article
Diff Pruning stores task-specific changes over a shared pretrained model; sparse delta storage does not remove the base computation.
Diff Pruning adapts a pretrained network by learning a task-specific difference vector while retaining the original parameter vector. A differentiable approximation to a sparsity penalty encourages many changes to disappear. The result can be stored as nonzero values and their positions for each task, sharing the large base across adaptations.
Distinguish pruning changes from pruning the base
The sparse object is the task delta. The pretrained base does not become a smaller dense architecture merely because most differences are zero. When reconstructing adapted weights, unchanged base coordinates still participate in computation. This distinction prevents a storage-saving result from being reported as an automatic reduction in model operations or inference memory.
Follow the learned sparsity decision
The original method learns where adaptation should occur rather than fixing one random coordinate mask in advance. Its sparsity regularization trades task fit against the number of retained changes. Record the penalty and optimization procedure, and compare actual nonzero support after export. A configured sparsity preference is not evidence that the saved delta meets that budget.
Count indices as well as values
A sparse adaptation needs to identify which base coordinates change. The storage representation therefore includes positions, values and metadata. For an illustrative collection of task deltas, report total bytes per adaptation alongside unique nonzero counts. Many tiny sparse records can have meaningful indexing overhead, especially when compared against an efficient dense format for a small parameter block.
Keep task histories independent
The method does not require all tasks to be trained simultaneously. A new task can acquire its own delta over the same base. That independence is useful for incremental task collections, but it does not imply that adding or combining deltas preserves every skill. Evaluate each intended configuration separately, particularly when task changes select overlapping coordinates or alter the same prediction head.
Export a complete reconstruction contract
Retain the exact base revision, parameter-name mapping, sparse coordinates, values, task head and formatting. Reload in a fresh process and compare fixed predictions with the pre-export model. The original GLUE findings establish a specific research comparison; another architecture requires fresh validation. Select Diff Pruning when sparse task storage and measured task quality solve the actual deployment problem, with reconstruction and switching costs accounted for explicitly.
Primary references
Related explanations: a different update representation; applying weight differences.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.