Learning Useful Representations of Recurrent Neural Network Weight Matrices
Vincent Herrmann, Francesco Faccio, Jürgen Schmidhuber
Abstract
Recurrent Neural Networks (RNNs) are general-purpose parallel-sequential computers. The program of an RNN is its weight matrix. How to learn useful representations of RNN weights that facilitate RNN analysis as well as downstream tasks? While the mechanistic approach directly looks at some RNN's weights to predict its behavior, the functionalist approach analyzes its overall functionality-specifically, its input-output mapping. We consider several mechanistic approaches for RNN weights and adapt the permutation equivariant Deep Weight Space layer for RNNs. Our two novel functionalist approaches extract information from RNN weights by 'interrogating' the RNN through probing inputs. We develop a theoretical framework that demonstrates conditions under which the functionalist approach can generate rich representations that help determine RNN behavior. We release the first two 'model zoo' datasets for RNN weight representation learning. One consists of generative models of a class of formal languages, and the other one of classifiers of sequentially processed MNIST digits. With the help of an emulation-based self-supervised learning technique we compare and evaluate the different RNN weight encoding techniques on multiple downstream applications. On the most challenging one, namely predicting which exact task the RNN was trained on, functionalist approaches show clear superiority.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- What Linear Probes Miss: Multi-View Probing for Weight-Space Learning cites GradMetaNet: An Equivariant Architecture for Learning on Gradients
- What Linear Probes Miss: Multi-View Probing for Weight-Space Learning cites Deep Linear Probe Generators for Weight Space Learning
- What Linear Probes Miss: Multi-View Probing for Weight-Space Learning cites Equivariant Architectures for Learning in Deep Weight Spaces
- GradMetaNet: An Equivariant Architecture for Learning on Gradients cites Deep Linear Probe Generators for Weight Space Learning
- GradMetaNet: An Equivariant Architecture for Learning on Gradients cites Equivariant Architectures for Learning in Deep Weight Spaces
- Deep Linear Probe Generators for Weight Space Learning cites From data to functa: Your data point is a function and you can treat it like one
- Deep Linear Probe Generators for Weight Space Learning cites Equivariant Architectures for Learning in Deep Weight Spaces
- Deep Linear Probe Generators for Weight Space Learning cites Improved Generalization of Weight Space Networks via Augmentations
- Parameter Manifold Purification cites From data to functa: Your data point is a function and you can treat it like one
- Parameter Manifold Purification cites Deep Linear Probe Generators for Weight Space Learning
- Parameter Manifold Purification cites Equivariant Architectures for Learning in Deep Weight Spaces
- Parameter Manifold Purification cites Improved Generalization of Weight Space Networks via Augmentations
- Equivariant Architectures for Learning in Deep Weight Spaces cites From data to functa: Your data point is a function and you can treat it like one
- Improved Generalization of Weight Space Networks via Augmentations cites Equivariant Architectures for Learning in Deep Weight Spaces
Cited by top-tier papers7
- Improved Generalization of Weight Space Networks via AugmentationsAviv Shamsian, Aviv Navon, David W. Zhang, Yan Zhang et al.ICML 2024 · 19 citations
- GradMetaNet: An Equivariant Architecture for Learning on GradientsYoav Gelberg, Yam Eitan, Aviv Navon, Aviv Shamsian et al.NeurIPS 2025 · 8 citations
- What Linear Probes Miss: Multi-View Probing for Weight-Space LearningEunwoo Heo, Kyeongkook Seo, Jaejun YooICML 2026
- Deep Linear Probe Generators for Weight Space LearningJonathan Kahana, Eliahu Horwitz, Imri Shuval, Yedid HoshenICLR 2025
- Parameter Manifold PurificationJiacong Hu, Jinxun Wu, Shengxuming Zhang, Shunyu Liu et al.ICML 2026
Builds on14
- Efficiently Modeling Long Sequences with Structured State SpacesAlbert Gu, Karan Goel, Christopher RéICLR 2022 · 3,482 citations
- Are Transformers universal approximators of sequence-to-sequence functions?Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J. Reddi et al.ICLR 2020 · 481 citations
- From data to functa: Your data point is a function and you can treat it like oneEmilien Dupont, Hyunjik Kim, S. M. Ali Eslami, Danilo Jimenez Rezende et al.ICML 2022 · 209 citations
- Socratic Models: Composing Zero-Shot Multimodal Reasoning with LanguageAndy Zeng, Maria Attarian, Brian Ichter, Krzysztof Marcin Choromanski et al.ICLR 2023 · 171 citations
- Equivariant Architectures for Learning in Deep Weight SpacesAviv Navon, Aviv Shamsian, Idan Achituve, Ethan Fetaya et al.ICML 2023 · 101 citations
Related papers
- Permutation Equivariant Neural FunctionalsAllan Zhou, Kaien Yang, Kaylee Burns, Adriano Cardace et al.NeurIPS 2023 · 84 citations
- Decision-Guided Weighted Automata Extraction from Recurrent Neural NetworksXiyue Zhang, Xiaoning Du, Xiaofei Xie, Lei Ma et al.AAAI 2021 · 25 citations
- Universal Neural FunctionalsAllan Zhou, Chelsea Finn, James HarrisonNeurIPS 2024 · 27 citations
- A unified theory of feature learning in RNNs and DNNsJan Bauer, Kirsten Fischer, Moritz Helias, Agostina PalmigianoICML 2026 · 4 citations
- Neural Functional TransformersAllan Zhou, Kaien Yang, Yiding Jiang, Kaylee Burns et al.NeurIPS 2023 · 53 citations
