[Paper Review] Fast and Slow Learning of Recurrent Independent Mechanisms
This paper proposes a meta-learning framework for recurrent independent mechanisms (RIMs) that decomposes knowledge into modular, sparsely connected components, where module parameters adapt quickly to new tasks while attention mechanisms act as slowly changing meta-parameters. The method achieves superior sample efficiency, faster adaptation, and improved zero-shot and fine-tuned transfer performance in vision-language navigation tasks with out-of-distribution generalization.
Decomposing knowledge into interchangeable pieces promises a generalization advantage when there are changes in distribution. A learning agent interacting with its environment is likely to be faced with situations requiring novel combinations of existing pieces of knowledge. We hypothesize that such a decomposition of knowledge is particularly relevant for being able to generalize in a systematic manner to out-of-distribution changes. To study these ideas, we propose a particular training framework in which we assume that the pieces of knowledge an agent needs and its reward function are stationary and can be re-used across tasks. An attention mechanism dynamically selects which modules can be adapted to the current task, and the parameters of the selected modules are allowed to change quickly as the learner is confronted with variations in what it experiences, while the parameters of the attention mechanisms act as stable, slowly changing, meta-parameters. We focus on pieces of knowledge captured by an ensemble of modules sparsely communicating with each other via a bottleneck of attention. We find that meta-learning the modular aspects of the proposed system greatly helps in achieving faster adaptation in a reinforcement learning setup involving navigation in a partially observed grid world with image-level input. We also find that reversing the role of parameters and meta-parameters does not work nearly as well, suggesting a particular role for fast adaptation of the dynamically selected modules.
Motivation & Objective
- To improve generalization and sample efficiency in reinforcement learning under distributional shift by decomposing knowledge into reusable, modular components.
- To investigate whether separating fast-adapting module parameters from slowly adapting attention meta-parameters enhances transfer and adaptation.
- To evaluate the necessity of distinct learning rates and roles for attention vs. module parameters in meta-learning setups.
- To demonstrate improved performance in zero-shot and fine-tuned transfer across tasks in a curriculum learning setup.
- To validate that modular specialization and sparse communication via attention enable systematic generalization.
Proposed method
- The model uses an ensemble of recurrent independent modules (RIMs) that compete via a key-value attention mechanism to dynamically select active modules at each time step.
- Module parameters are updated rapidly in an inner learning loop to adapt to current task demands, while attention mechanism parameters are updated slowly in an outer meta-learning loop.
- The system employs a two-loop meta-learning setup: fast adaptation of module weights and slow meta-optimization of attention parameters.
- Input and communication attention mechanisms are trained via meta-learning to select relevant modules based on input and hidden state, enabling sparse, dynamic communication.
- The architecture processes image inputs and language instructions through a shared encoder, with modular dynamics governed by attention-gated recurrent updates.
- Ablation studies compare the proposed setup with reversed parameter roles, shared learning rates, and module deactivation to isolate the contribution of meta-learning and modular specialization.
Experimental results
Research questions
- RQ1Does separating fast and slow learning dynamics in a modular architecture improve sample efficiency and out-of-distribution generalization in reinforcement learning?
- RQ2Is the role of attention mechanisms as slowly changing meta-parameters essential for effective adaptation, or can it be reversed?
- RQ3How does meta-learning on modular components compare to end-to-end training with shared learning rates?
- RQ4Can dynamically selected modules learn distinct, task-relevant roles that support systematic generalization?
- RQ5To what extent does modular specialization enhance zero-shot and fine-tuned transfer performance?
Key findings
- The proposed meta-learning setup with fast module adaptation and slow attention meta-learning significantly improves sample efficiency, leading to faster convergence and higher mean return in navigation tasks.
- Reversing the roles of parameters and meta-parameters—making attention parameters fast and module parameters slow—results in substantially worse performance, indicating the necessity of attention as a stable meta-parameter.
- Reducing the learning rate of attention parameters without a two-loop meta-learning setup fails to improve learning, showing that mere slow weight updates are insufficient without proper meta-optimization.
- Ablation experiments confirm that active modules play specific, non-redundant roles: deactivating winning modules drastically increases episode length, from 192 frames (3 active) to 2179 frames (1 active).
- The model generalizes better to unseen tasks and distributions, demonstrating strong zero-shot and fine-tuned transfer performance in a curriculum learning setup.
- Visualizations show that specific modules, such as module 5, are consistently activated near the goal, indicating learned, task-specific roles in the state space.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.