Open Interpretability Models Contributors Research Posts About

A Modern Self-Referential Weight Matrix That Learns to Modify Itself

Source

Citation. Kazuki Irie, Imanol Schlag, Róbert Csordás and Jürgen Schmidhuber. All four are at the Swiss AI Lab IDSIA (USI and SUPSI, Lugano). Schmidhuber is also at KAUST. "A Modern Self-Referential Weight Matrix That Learns to Modify Itself". arXiv 2202.05780 [cs.LG], v1 11 February 2022, v2 17 June 2022. We read v2. Paper, code. Venue: ICML 2022, PMLR 162, as the PDF and issue #4840 both say. An earlier version was at the NeurIPS 2021 Deep RL Workshop. The paper uses public datasets (Omniglot, Mini-ImageNet, FC100 and ProcGen) and releases no new data. Funding: ERC Advanced grant 742870 (AlgoRNN) and Swiss National Science Foundation grant 200021 192356 (NEUSYM). NVIDIA and IBM donated hardware, and CSCS project d115 gave compute. A footnote says that an earlier preprint reported 57.1% on FC100 because of a bug in test-data shuffling. v2 reports 44.5% after the fix, and the authors ran the main experiments again.

Status. Planned. #4782 (catastrophic interference, weight-space programming and LoRA) would use it in its synthesis on weight-space programming. The paper gives no method that applies to a transformer's units. It does give a clear case where the weights at inference are not the trained weights. Its own interpretability section reads one statistic and stops there. That is evidence for #5144, the count that caps any weight-only check.

Read. We read the arXiv v2 PDF on 2026-11-19, as text that pdftotext took from it. We have the source's own text for the abstract, §1 to §7, the acknowledgements and the references. We also have Appendices A (model details), B (few-shot details and extra results) and C (extra RL results). The values of Tables 1 to 10 came through as text. We also read the arXiv abstract page for the version history. We did not see the figures as images. Figures 4 and 6 to 9 are accuracy curves, and only their axis labels came through. So no number from them is here. A model (Claude Opus 5.5) did the reading.

Summary

Claim. One weight matrix can learn to write new values into all of itself while it runs, with outer products and the delta rule. Gradient descent trains only its initial values. This self-referential weight matrix (SRWM) is practical. It is competitive on few-shot image classification and on multi-task reinforcement learning (RL) in ProcGen.

Method.

Findings, as the source reports them.

Setting Result
Omniglot 5-way 1-shot, test accuracy (Table 1) DeltaNet 97.2 ± 0.0, SRWM 97.4 ± 0.0, SNAIL* 99.1 ± 0.2, MAML* 98.7 ± 0.4
Mini-ImageNet 1-shot / 5-shot (Table 1) DeltaNet 47.0 / 62.7, SRWM 47.0 / 61.4, HyperTransformer* 53.8 / 67.1
Intervals in Table 1 95% interval over five sets of test episodes, not over seeds. * marks numbers from other papers
FC100 5-way 5-shot (Table 5) DeltaNet 43.2 ± 0.1, SRWM 44.5 ± 0.1 (Conv-4-32), SRWM 46.3 ± 0.1 (Res-12-256), TADAM* 56.1 ± 0.4
Sequential, Omniglot then Mini-ImageNet, total accuracy (Table 2) Omniglot: DeltaNet 92.2, SRWM 92.3. Mini-ImageNet: DeltaNet 50.4, SRWM 53.3
Sequential, reverse order (Table 7) Mini-ImageNet: DeltaNet 50.7, SRWM 53.5. Omniglot: DeltaNet 92.2, SRWM 92.9
ProcGen, six games, normalised score × 100, train (Table 3) FF 22.5, LSTM 28.3, Fake SR 27.0, DeltaNet 35.0, SRWM 34.6
ProcGen, six games, test (Table 3) FF 16.4, LSTM 15.7, Fake SR 15.3, DeltaNet 18.6 (1.7), SRWM 20.0 (1.8)
Trainable parameters, RL (Table 3) FF 626 K, Fake SR 959 K, LSTM 1.2 M, DeltaNet 1.05 M, SRWM 968 K
Reset the weight updates every 50 steps (§4.3) Train 28.5 (1.2), test 16.1 (2.2), close to the model with no self-modification
Bigfish, test, multi-task / expert (Table 4) Fake SR 4.7 / 15.8, SRWM 9.0 / 14.2
ProcGen memory distribution, four games (Table 8) Train: DeltaNet 51.8, SR-DeltaNet 59.0. Test: 38.0 (4.1) and 38.5 (3.2)
Learning rates σ(β_t) in RL (§5) All four parts stay between 0.50 and 0.65. The authors find it hard to read anything more from them
Speed on one P100 (§5) About 3,500 steps per second for FF and LSTM, 2,300 for DeltaNet and 1,700 for SRWM

Where the claims go beyond the evidence

The authors state several limits themselves. These are the tasks that feedforward nets can solve, the preliminary memory result, the seed variance and the FC100 bug and its fix. They also note that self-modification may not keep the training objective in the long run.

Use in this repo