All models

EWC-net

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

Image classification · 9 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 (12 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
478.4K
Operations
9
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
m882
Graph hash
46df532baa0433a5888d5af471c39c8e774322e1451f7c2465d92eb71fcf9e2b
Skeleton hash
aaaa76896677f2136ab5ca9bb5d397fa0dbfc4a0eca3429a14dc4677dccbb004
Architecture hash
4ab9c9b14a49943765e3ebde76da00dbca37a2181de75b2120909fd70a42add5
Diagram SHA-256
538feec0815b8f205248153660a06789f705e152f73d96dcd584e82fa7ccaf69
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

EWC-net is the permuted-MNIST network of the paper, built from Avalanche's SimpleMLP with the EWC plugin applied at training time.

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}, 
}