bioRxivNeurosciencePreprint
Predictive learning enables compositional representations
Abstract
The brain builds predictive models to plan future actions. These models generalize remarkably well to new environments, but it is unclear how neural circuits acquire this flexibility. Compositional representations, which have been observed in the brain, could explain this adaptability. They enable a process called compositional generalization, where independent modules performing different computations can be selected to perform novel composite tasks. In this work, we show that compositional representations emerge in recurrent neural networks (RNNs) trained solely to predict future sensory inputs. We trained an RNN to predict frames in a visual environment defined by independent latent factors and their corresponding dynamics. We found that the network learned to solve this task by developing a compositional model. Specifically, it had disentangled representations of the latent factors, and formed distinct, modular clusters, each implementing a single dynamic. The network autonomously selected which cluster to use according to the sensory inputs, without task labels, using competitive dynamics between clusters. This modular and disentangled architecture enabled the network to perform compositional generalization, accurately predicting outcomes in novel contexts composed of unseen combinations of dynamics. Our findings explain how an unsupervised mechanism can learn the modular causal structure of an environment in a compositional code.
- Citations
- 3
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Understanding neural circuit principles for representation learning through joint-embedding predictive architectures
Ashena Gorgan Mohammadi, Manu Srinath Halvagal, Friedemann Zenke·bioRxiv·Nov 25, 2025
- Interpretable compositional computation with recurrent neural networks
Louis Pezon, Alexander van Meegen·bioRxiv·Jun 29, 2026
- A Deep Predictive Coding Network for Learning Latent Representations
Shirin Dora, Cyriel M. A. Pennartz, Sander M. Bohté·bioRxiv·Mar 26, 2018
- Flexible multitask computation in recurrent networks utilizes shared dynamical motifs
Laura N. Driscoll, K.V. Shenoy, David Sussillo·Nature NeurosciencePeer-reviewed·Jul 1, 2024
- Multitasking Recurrent Networks Utilize Compositional Strategies for Control of Movement
John Lazzari, Shreya Saxena·bioRxiv·Sep 10, 2025
- Predictive coding is a consequence of energy efficiency in recurrent neural networks
Abdullahi Garba Ali, Nasir Ahmad, … Tim Christian Kietzmann·PatternsPeer-reviewed·Nov 23, 2022