Contrastive Active Inference
Abstract
Active inference is a unifying theory for perception and action resting upon the idea that the brain maintains an internal model of the world by minimizing free energy. From a behavioral perspective, active inference agents can be seen as self-evidencing beings that act to fulfill their optimistic predictions, namely preferred outcomes or goals. In contrast, reinforcement learning requires human-designed rewards to accomplish any desired outcome. Although active inference could provide a more natural self-supervised objective for control, its applicability has been limited because of the shortcomings in scaling the approach to complex environments. In this work, we propose a contrastive objective for active inference that strongly reduces the computational burden in learning the agent's generative model and planning future actions. Our method performs notably better than likelihood-based active inference in image-based tasks, while also being computationally cheaper and easier to train. We compare to reinforcement learning agents that have access to human-designed reward functions, showing that our approach closely matches their performance. Finally, we also show that contrastive methods perform significantly better in the case of distractors in the environment and that our method is able to generalize goals to variations in the background. Website and code: https://contrastive-aif.github.io/
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.
3 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
- Distributional Active Inference cites Dream to Control: Learning Behaviors by Latent Imagination
- Mastering Atari with Discrete World Models cites A Simple Framework for Contrastive Learning of Visual Representations
- Mind Dreamer: Untethering Imagination via Active Causal Intervention on Latent Manifolds cites Mastering Atari with Discrete World Models
- Mind Dreamer: Untethering Imagination via Active Causal Intervention on Latent Manifolds cites Dream to Control: Learning Behaviors by Latent Imagination
- Learning Human Habits with Rule-Guided Active Inference cites Mastering Atari with Discrete World Models
- Big Self-Supervised Models are Strong Semi-Supervised Learners cites A Simple Framework for Contrastive Learning of Visual Representations
- CURL: Contrastive Unsupervised Representations for Reinforcement Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- CURL: Contrastive Unsupervised Representations for Reinforcement Learning cites Dream to Control: Learning Behaviors by Latent Imagination
Cited by top-tier papers3
- Mind Dreamer: Untethering Imagination via Active Causal Intervention on Latent ManifoldsShaojun Xu, Xiaoling Zhou, Yihan Lin, Yapeng Meng et al.ICML 2026 · 1 citation
- Distributional Active InferenceAbdullah Akgül, Gulcin Baykal, Manuel Haussmann, Mustafa Mert Çelikok et al.ICML 2026
- Learning Human Habits with Rule-Guided Active InferenceGong Zhiren, Chao Yang, Wendi Ren, Shuang LiICLR 2026
Builds on12
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Big Self-Supervised Models are Strong Semi-Supervised LearnersTing Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi et al.NeurIPS 2020 · 2,611 citations
- Dream to Control: Learning Behaviors by Latent ImaginationDanijar Hafner, Timothy P. Lillicrap, Jimmy Ba, Mohammad NorouziICLR 2020 · 1,852 citations
- CURL: Contrastive Unsupervised Representations for Reinforcement LearningMichael Laskin, Aravind Srinivas, Pieter AbbeelICML 2020 · 1,261 citations
- Mastering Atari with Discrete World ModelsDanijar Hafner, Timothy P. Lillicrap, Mohammad Norouzi, Jimmy BaICLR 2021 · 1,170 citations
Related papers
- Deep active inference agents using Monte-Carlo methodsZafeirios Fountas, Noor Sajid, Pedro A. M. Mediano, Karl J. FristonNeurIPS 2020 · 130 citations
- ContraBAR: Contrastive Bayes-Adaptive Deep RLEra Choshen, Aviv TamarICML 2023 · 10 citations
- Backprop-Free Reinforcement Learning with Active Neural Generative CodingAlexander G. Ororbia II, Ankur MaliAAAI 2022 · 23 citations
- SoftCVI: Contrastive variational inference with self-generated soft labelsDaniel Ward, Mark Beaumont, Matteo FasioloICLR 2025
- Bidirectional Predictive CodingGaspard Oliviers, Mufeng Tang, Rafal BogaczICLR 2026 · 7 citations
