Introduction
Continual Reinforcement Learning (CRL) aims to develop agents capable of learning a sequence of tasks over time. However, standard RL approaches often suffer from "catastrophic forgetting," where learning new tasks overwrites the parameters necessary for previous ones. Existing solutions to this problem frequently lead to exploding memory requirements or increased inference latency as the number of tasks grows.
This paper introduces CKA-RL (Continual Knowledge Adaptation for Reinforcement Learning), a novel framework designed to achieve high performance and efficient forward transfer while maintaining strictly constant memory and computational overhead.
Methodology: Continual Knowledge Adaptation
The CKA-RL framework addresses the challenges of CRL through three primary mechanisms:
- Knowledge Vectors: Instead of updating the entire model, CKA-RL freezes a "base" model ($\theta_{base}$) trained on the initial task. For each new task $k$, it learns a task-specific "knowledge vector" ($v_k$), which acts as a parameter offset.
- Continual Knowledge Adaptation: To leverage past experiences, the agent constructs its policy for a new task by combining the base model with a weighted sum of historical knowledge vectors. These weights ($\alpha$) are learned dynamically, allowing the model to selectively reuse beneficial knowledge while mitigating cross-task interference.
- Adaptive Knowledge Merging: To ensure scalability, CKA-RL maintains a bounded pool of knowledge vectors. When the pool reaches a maximum capacity ($K_{max}$), the algorithm identifies the two most similar vectors based on cosine similarity and merges them into a single representative vector ($v_{merge}$). This process keeps the memory footprint and inference time constant regardless of the total number of tasks.
Experimental Evaluation
The authors evaluated CKA-RL against nine state-of-the-art CRL methods across three diverse benchmarks: Meta-World (robotic manipulation), SpaceInvaders (Atari game modes), and Freeway (Atari navigation).
Key Results
CKA-RL demonstrated superior performance across all metrics:
- Performance Gains: It achieved a 4.20% improvement in overall average performance compared to the best-performing baselines.
- Enhanced Forward Transfer: The method showed an 8.02% boost in forward transfer, indicating a superior ability to apply previously learned knowledge to accelerate the learning of new tasks.
- Efficiency: Unlike modular methods that scale linearly or quadratically in complexity, CKA-RL's memory usage and inference latency remained flat after the initial tasks, requiring only ~11.5 MB of overhead and maintaining a constant inference time of ~0.0012s.
Discussion and Insights
The success of CKA-RL is rooted in several key theoretical and practical observations:
- Orthogonal Representations: By separating task-specific offsets from the base model, the learned knowledge vectors tend to occupy nearly orthogonal directions in the parameter space, naturally minimizing interference.
- Safe Merging: The authors provide mathematical evidence that merging highly similar vectors introduces only bounded, minimal errors to policy performance, justifying the use of a fixed-size knowledge pool.
- Decoupled Complexity: By performing knowledge fusion during parameter construction rather than at runtime, CKA-RL avoids the inference bottlenecks common in modular or routing-based architectures.
Conclusion and Future Work
CKA-RL offers a scalable and effective solution for continual reinforcement learning, overcoming the trade-off between performance and resource efficiency. While currently validated on standard CRL benchmarks, future research will explore its application to more complex, high-dimensional environments and its potential to optimize the Reinforcement Learning from Human Feedback (RLHF) phase in Large Language Model training.
Summary updated