All models

Compacting-Picking-Growing (CPG)

VGG16 classifier trained task by task with pruning, weight-picking masks and optional growth to avoid forgetting.

Image classification · 140 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (5 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
67.2M
Operations
140
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2019
Cited by
397 (as of 28 October 2026)
Authors
Steven C.Y. Hung, Cheng-Hao Tu, Cheng-En Wu and others
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15392
Graph hash
bf000644cfd40a31c5f7f4b7ad05b9b3d12fbb2692ac135fe8abd4379fe55c65
Skeleton hash
d3dcb1283c638a4e0ff7f5cae779149a9f7a310da97e83c04755b3d9636c4648
Architecture hash
be9da50c0b1ff5595c49bed2ac29480d7202983bfeb1984faf186366bfa2bf9f
Diagram SHA-256
817c07f25f9e41a71e8907063b42836718ff63b4c1fca7d2087d3c748fe8938f
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

CPG (Compacting, Picking and Growing) is a way to train one network on a sequence of tasks while keeping its performance on the tasks it learned earlier. It combines three ideas: model compression by weight pruning (compacting), selection of critical weights (picking) and ProgressiveNet-style extension (growing).

After a task is learned, gradual pruning compacts the model, and the weights that remain are frozen so the task cannot be forgotten. For the next task, a learnable binary mask picks which old weights to reuse and is trained together with the weights that pruning released. If the accuracy goal is still not met, the architecture is expanded by adding filters or nodes. Because old weights are only picked and never changed, the paper says old tasks can be exactly recalled.

This model follows the paper's first experiment, in which a VGG16 with batch normalization layers learns 20 tasks in sequence. The tasks come from dividing CIFAR-100 into 20 groups of 5 classes each. There the paper reports that CPG expands to 1.5× of the weights, with 0.41× redundant weights still free for future tasks. Counting masks and other overheads, it reports model sizes of 2.16×, 2.40× and 2.41× of the original VGG16-BN for its three accuracy-goal settings. Independent models that keep the old-task accuracy would require 20×.

Key idea. CPG combines gradual pruning, a learnable mask that picks fixed old-task weights, and optional architecture expansion so one network learns sequential tasks without forgetting earlier ones.

  • CPG
  • Compacting, Picking and Growing
  • Compacting Picking Growing
  • continual learning
  • lifelong learning
  • unforgetting continual learning
  • catastrophic forgetting
  • incremental learning
  • weight pruning masks

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{hung2019compactingpickinggrowingunforgetting,
      title={Compacting, Picking and Growing for Unforgetting Continual Learning}, 
      author={Steven C. Y. Hung and Cheng-Hao Tu and Cheng-En Wu and Chien-Hung Chen and Yi-Ming Chan and Chu-Song Chen},
      year={2019},
      eprint={1910.06562},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1910.06562}, 
}