PreprintCited by 56Explainable Artificial Intelligence (XAI)Domain Adaptation and Few-Shot LearningNeural Networks and Applications

The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attention

Open access
Irie, Kazuki, Csordás, Róbert, Schmidhuber, Jürgen·2022·arXiv

Abstract

Linear layers in neural networks (NNs) trained by gradient descent can be expressed as a key-value memory system which stores all training datapoints and the initial weights, and produces outputs using unnormalised dot attention over the entire training experience. While this has been technically known since the 1960s, no prior work has effectively studied the operations of NNs in such a form, presumably due to prohibitive time and space complexities and impractical model sizes, all of them growing linearly with the number of training patterns which may get very large. However, this dual formulation offers a possibility of directly visualising how an NN makes use of training patterns at test time, by examining the corresponding attention weights. We conduct experiments on small scale supervised image classification tasks in single-task, multi-task, and continual learning settings, as well as language modelling, and discuss potentials and limits of this view for better understanding and interpreting how NNs exploit training patterns. Our code is public.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2202.05798

Cites

30 of 30 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • In the fast-weight view, the DeltaNet update is one online gradient step on the local regression loss.

    “In the fast-weight view [18, 19], Eq. 5 is one online gradient step on the local regression loss 1 2 ‖ S ⊤ 𝑘 𝑡 -𝑣 𝑡 ‖ 2 2 .”

    From Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention (2026) · cites this paper as [18]

Cites

Flagged first, then by citations

6 of the 36 references couldn’t be matched to a known paper.

Cited by

Sorted by citations

Authors
Irie, K., Csordás, R., & Schmidhuber, J.
Affiliations
University of Applied Sciences and Arts of Southern Switzerland (CH)
Venue
arXiv
Publisher
arXiv
Published
2022
OpenAlex
W4225920301
Cited by
6
References
36
Citations by year
2025: 1 · 2023: 5
FWCI
0.83
Type
conference paper
Language
en
Open access
Locations
  • King Abdullah University of Science and Technology Repository (King Abdullah University of Science and Technology) (acceptedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University) (cc-by)
Funders
  • National Science Foundation
  • Nvidia
  • Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung (192356, 200021)
  • Centro Svizzero di Calcolo Scientifico
  • National Supercomputing Centre Singapore
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Explainable Artificial Intelligence (XAI)
  • Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
  • Physical Sciences › Computer Science › Artificial Intelligence › Neural Networks and Applications
Keywords
key-value memory

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review