Gradient-based inference of abstract task representations for generalization in neural networks
Not on the map. Why?
Abstract (arXiv)
Humans and many animals show remarkably adaptive behavior and can respond differently to the same input depending on their internal goals. The brain not only represents the intermediate abstractions needed to perform a computation but also actively maintains a representation of the computation itself (task abstraction). Such separation of the computation and its abstraction is associated with faster learning, flexible decision-making, and broad generalization capacity. We investigate if such benefits might extend to neural networks trained with task abstractions. For such benefits to emerge, one needs a task inference mechanism that possesses two crucial abilities: First, the ability to infer abstract task representations when no longer explicitly provided (task inference), and second, manipulate task representations to adapt to novel problems (task recomposition). To tackle this, we cast task inference as an optimization problem from a variational inference perspective and ground our approach in an expectation-maximization framework. We show that gradients backpropagated through a neural network to a task representation layer are an efficient heuristic to infer current task demands, a process we refer to as gradient-based inference (GBI). Further iterative optimization of the task representation layer allows for recomposing abstractions to adapt to novel situations. Using a toy example, a novel image classifier, and a language model, we demonstrate that GBI provides higher learning efficiency and generalization to novel tasks and limits forgetting. Moreover, we show that GBI has unique advantages such as preserving information for uncertainty estimation and detecting out-of-distribution samples.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 28 of its 59 references that are in the map. First posted on arXiv 24 Jul 2024.
Builds on
28 of 59 references.
References · 28
- 2017On Calibration of Modern Neural Networkscited by 4,860
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,283
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2013Auto-Encoding Variational Bayescited by 3,980
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2020A Review of Uncertainty Quantification in Deep Learning: Techniques, Applications and Challengescited by 813
- 2018Do Deep Generative Models Know What They Don't Know?cited by 443
16 more
- 2015Neural Module Networkscited by 375
- 2020Supermasks in Superpositioncited by 223
- 2019Recurrent Independent Mechanismscited by 219
- 2020Likelihood Regret: An Out-of-Distribution Detection Score For Variational Auto-encodercited by 145
- 2015The Goldilocks Principle: Reading Children's Books with Explicit Memory Representationscited by 108
- 2018Alleviating catastrophic forgetting using context-dependent gating and synaptic stabilizationcited by 104
- 2018Iterative Amortized Inferencecited by 93
- 2018Modular Networks: Learning to Decompose Neural Computationcited by 62
- 2023Call for Papers -- The BabyLM Challenge: Sample-efficient pretraining on a developmentally plausible corpuscited by 62
- 2022Choreographer: Learning and Adapting Skills in Imaginationcited by 31
- 2019Understanding the Limitations of Conditional Generative Modelscited by 28
- 2021Optimizing Reusable Knowledge for Continual Learning via Metalearningcited by 24
- 2013Complexity of Word Collocation Networks: A Preliminary Structural Analysiscited by 17
- 2018Learning, Planning, and Control in a Monolithic Neural Event Inference Architecturecited by 8
- 2022Thalamus: a brain-inspired algorithm for biologically-plausible continual learning and disentangled representationscited by 4
- 2023Efficient Expansion and Gradient Based Task Inference for Replay Free Incremental Learningcited by 3
Built on by
Citing papers per year: 2024: 2; 2025: 1; 2026: 1.
4 papers.
- 2025Do different prompting methods yield a common task representation in language models?cited by 9
- 2024Meta-Dynamical State Space Models for Integrative Neural Data Analysiscited by 7
- 2024Flexible task abstractions emerge in linear networks with fast and bounded unitscited by 2
- 2026Predicting Causal Effects from Natural Language Queries using Structured Representationscited by 0
- 2026Predicting Causal Effects from Natural Language Queries using Structured Representations28 May 2026
- 2025Do different prompting methods yield a common task representation in language models?17 May 2025
- 2024Flexible task abstractions emerge in linear networks with fast and bounded units6 Nov 2024
- 2024Meta-Dynamical State Space Models for Integrative Neural Data Analysis7 Oct 2024