Home▸Data Science▸PackNet 2D: Capacity Packing for Continual Learning

PackNet 2D: Capacity Packing for Continual Learning

Interactive 2D PackNet simulator: watch iterative magnitude pruning carve a fixed-size neural network into frozen, non-overlapping task masks on a pannable/zoomable grid, one task at a time, with zero catastrophic forgetting because past-task weights are never touched again.

Data Science2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-ds-topic-53 ↗ Open standalone

PackNet solves catastrophic forgetting by structural guarantee rather than by hoping regularization holds: it iteratively prunes a fixed-size network, freezing the most important surviving weights into a permanent binary mask for each task and handing the rest of the capacity forward to the next one. This simulator renders that process as a pannable, zoomable 16×16 grid of neural weights — each "Train Next Task" pass trains the free slots, ranks them by simulated importance, and freezes the top fraction (set by the Keep ratio slider) into a new colored, permanently frozen block. Because frozen weights are never touched again, each task's accuracy — modeled as a saturating function of how many weights it was allocated relative to its difficulty — is locked in forever once its mask is cut, and the live per-task accuracy list proves it: earlier tasks never regress as later ones are added, right up until the shrinking free pool runs out.

⚙ Under the hood

Interactive 2D PackNet simulator: watch iterative magnitude pruning carve a fixed-size neural network into frozen, non-overlapping task masks on a pannable, zoomable grid, one task at a time, with zero catastrophic forgetting because past-task weights are never touched again.

continual-learningpacknetpruningneural-networkscatastrophic-forgettingmulti-task

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)