All models

MLP

The plain ReLU multilayer perceptron behind elastic weight consolidation's permuted-MNIST experiments.

Image classification · 10 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 (13 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

Family
mlp
Parameters
6K
Operations
10
Framework
PyTorch
Recurrent
No
Published
PNAS (arXiv 2016)
Cited by
7,717 (as of 16 October 2026)
Authors
James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz and others
License
MIT
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
m1666
Graph hash
9878981a0a6517be914d9ccb069d521d555bc6b172d6417310331e582648c452
Skeleton hash
9abbdc1633256db515d1985f442281babd6e01bd16738627a13fe1a89ee5c995
Architecture hash
d54070f7856604195a7b9a9fede86ac494d3fdfee66be43c89b167b2a4bf3f48
Diagram SHA-256
4697a55b4a5fd07a655b6ab4f52596ed3e9bf1ed6239cdd000895502a9acac6e
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

About this model's family

This is the plain fully connected network from the elastic weight consolidation paper: a multilayer perceptron for MNIST digits, interesting here for what was done to it rather than for its shape. The paper's problem is catastrophic forgetting, the long-held view that a network trained on a new task loses the old one. Its answer, elastic weight consolidation, remembers old tasks by slowing learning on the weights that mattered for them.

The idea is borrowed from the brain, where synaptic consolidation reduces the plasticity of synapses that matter. Mechanically it is a quadratic penalty, pictured as a spring anchoring the parameters to the previous solution, which is where the name elastic comes from. The stiffness differs per weight, set from the diagonal of the Fisher information matrix. None of that lives in the graph you are looking at: the penalty acts on the loss, so the traced network is simply the MLP.

The MNIST experiments all use fully connected networks with rectified linear units, and the tasks are built by permuting the digit images. The traced copy is Avalanche's SimpleMLP; Avalanche is an end-to-end continual learning library built on PyTorch within ContinualAI. The paper also reports the method learning several Atari 2600 games in sequence.

Key idea. Elastic weight consolidation lets one network learn tasks in sequence without catastrophic forgetting, by penalising changes to the weights the Fisher information marks as important for earlier tasks.

  • MLP
  • multilayer perceptron
  • EWC
  • EWC-net
  • elastic weight consolidation
  • catastrophic forgetting
  • continual learning
  • permuted MNIST
  • Avalanche
  • SimpleMLP
  • Kirkpatrick

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

Cite the paper

@misc{kirkpatrick2017overcomingcatastrophicforgettingneural,
      title={Overcoming catastrophic forgetting in neural networks}, 
      author={James Kirkpatrick and Razvan Pascanu and Neil Rabinowitz and Joel Veness and Guillaume Desjardins and Andrei A. Rusu and Kieran Milan and John Quan and Tiago Ramalho and Agnieszka Grabska-Barwinska and Demis Hassabis and Claudia Clopath and Dharshan Kumaran and Raia Hadsell},
      year={2017},
      eprint={1612.00796},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      doi={https://doi.org/10.1073/pnas.1611835114},
      url={https://arxiv.org/abs/1612.00796}, 
}