Watch it forget

Try it · Lifelong Machine Learning

A small neural network first learns task A, then continues only on task B data. In both tasks it has to separate orange points from teal points. In task A, on the left, the orange points are in the upper half. In task B, on the right, they are in the lower half. Learning B the simple way destroys A. The goal is a network that still solves task A after it has learned task B.

Screenshot of the demo “Watch it forget”.

The interactive demo needs JavaScript.

What you are observing. The network has two hidden layers of 16 units and trains live in your browser on 60 points per task. Training on B uses only B's points. The error on task A is no longer part of the training, so the weights that solved A are overwritten. This is called catastrophic forgetting.

Two possibilities to alleviate forgetting. Replay mixes a few remembered points from A into training. Elastic weight consolidation (EWC) penalizes changes to the weights that mattered most for A. Its strength decides between remembering and learning, which is known as the stability–plasticity dilemma.

Part of the course Lifelong Machine Learning →
Show QR code
https://new.owl-ml.com/teaching/demos/watch-it-forget/
All demos →