Abstract
While Large Language Models (LLMs) have successfully adopted a "pre-train then fine-tune" paradigm, Reinforcement Learning (RL) has historically struggled with this transition due to the phenomenon of catastrophic forgetting. This paper discusses Learning-to-Modulate (L2M), a framework designed to adapt pre-trained Decision Transformers to new tasks without degrading performance on original tasks. By utilizing a frozen backbone and a learnable modulation pool inspired by low-rank adaptation (LoRA), L2M achieves state-of-the-art performance in continual learning benchmarks across diverse robotic manipulation and control tasks.
1. Introduction
In the current landscape of artificial intelligence, the ability to transfer knowledge from large-scale pre-training to specific downstream tasks is a cornerstone of success. However, in Reinforcement Learning, fine-tuning a pre-trained agent on a new environment typically results in the rapid erasure of previously acquired skills—a challenge known as catastrophic forgetting. This brittleness prevents the development of generalist agents capable of accumulating a library of diverse skills over time.
To address this, researchers have introduced the Learning-to-Modulate (L2M) framework. L2M shifts the focus from weight updates to structural modulation, allowing a single, frozen "backbone" model to serve as a foundation for an expanding set of capabilities. This approach ensures that the core knowledge of the model remains intact while providing the flexibility needed for task-specific adaptation.
2. Methodology
The L2M framework operates through a two-stage process involving a high-capacity backbone and a dynamic modulation mechanism.
2.1 Multi-Domain Decision Transformer (MDDT)
The foundation of the system is the Multi-Domain Decision Transformer (MDDT). Unlike traditional RL architectures that rely on value function estimation, the MDDT treats reinforcement learning as a sequence modeling problem. It is trained to predict the next action based on a trajectory of past states, actions, and "returns-to-go" (the remaining reward the agent aims to achieve). This architecture allows the model to leverage the powerful self-attention mechanisms that have driven success in natural language processing.
2.2 The Learning-to-Modulate (L2M) Mechanism
The core innovation lies in how the MDDT is adapted to new tasks. Rather than updating the millions of parameters within the MDDT, the backbone is entirely frozen. Adaptation is handled by a "modulation pool":
- Querying: The agent analyzes its recent history of observations to generate a query vector.
- Matching: This query is compared against a pool of learnable keys to identify the most relevant modulation parameters for the current context.
- Modulating: Once a match is found, the system retrieves low-rank matrices (inspired by LoRA). These matrices are integrated into the frozen backbone’s attention and feed-forward layers, subtly altering the internal information flow to suit the new task requirements.
Because the original weights are never modified, the agent retains 100% of its pre-training performance, effectively eliminating forgetting.
3. Experimental Setup
To test the versatility of L2M, the researchers utilized two prominent RL benchmarks:
- Meta-World: Comprising 50 robotic manipulation tasks such as door opening and button pressing.
- DeepMind Control Suite (DMControl): Featuring 16 continuous control tasks involving various morphologies, such as the "cheetah" and "hopper."
A significant contribution of this work is the creation of a unified state space of 204 dimensions. This allows a single model to process inputs from all 66 tasks by padding unused dimensions with zeros, creating a standardized interface for the MDDT.
4. Key Insights
4.1 Emergent Task Clustering
Analysis of the model's embedding space revealed that the pre-trained MDDT naturally clusters similar tasks together without explicit supervision. For instance, various "pressing" tasks in Meta-World occupy similar regions in the latent space. L2M leverages these emergent relationships to select appropriate modulators efficiently.
4.2 Task-Agnostic Adaptation
Unlike many continual learning methods that require an explicit "task ID" to function, L2M can operate in a task-agnostic manner. By inferring the necessary modulation based solely on environmental observations, the agent can transition between tasks seamlessly without being told which specific game or simulation it is currently running.
4.3 The Prompting Gap
The researchers observed that standard "Prompt-based Tuning"—a popular method in NLP where extra tokens are added to the input—performed poorly in the RL context. This suggests that RL tasks require deeper structural changes to the model's logic, which L2M provides through its low-rank modulation of internal layers.
5. Results and Discussion
L2M demonstrated significant improvements over baseline methods in several key areas:
- Continual Learning Success: On the Continual-World benchmark (a sequence of 10 tasks), L2M achieved a 65% success rate. In contrast, traditional methods like Elastic Weight Consolidation (EWC) and standard fine-tuning often saw performance on early tasks drop to near zero as new tasks were learned.
- Zero Forgetting: Because the backbone weights are frozen, the agent maintained its original performance levels (approx. 60%) on pre-training tasks throughout the entire adaptation process.
- Parameter Efficiency: L2M requires only a small fraction of additional parameters per task, making it a scalable solution for long-term skill acquisition.
6. Limitations and Future Directions
While L2M represents a major step forward, some limitations remain. The current reliance on a manually constructed unified state space may not scale to vastly different domains (e.g., moving from robotics to board games). Additionally, the autoregressive nature of the action prediction is computationally intensive.
Future research will focus on compositionality, exploring whether an agent can combine multiple modulators from the pool to solve novel tasks in a zero-shot fashion, further enhancing the generalist capabilities of the L2M framework.
Summary updated