Introduction
Deep Reinforcement Learning (RL) has achieved remarkable success in training agents for complex, specialized tasks. However, these agents are often brittle; a policy optimized for a specific kinematic configuration or environmental layout frequently fails when faced with even minor perturbations. Furthermore, RL is notoriously sample-inefficient, often requiring millions of interactions to learn from scratch. While the field has produced a vast library of specialized experts, a significant challenge remains: how to consolidate the collective knowledge of these disparate agents into a single, robust generalist without the prohibitive cost of retraining from the ground up.
This paper introduces a novel post-hoc technique to merge multiple specialized RL policies into a single "Renaissance agent." By leveraging Optimal Transport (OT) to align and fuse neural network weights, the authors create a superior initialization for new tasks, significantly accelerating the learning process and achieving higher performance ceilings than traditional transfer learning or training from scratch.
The Challenge of Policy Fusion
Traditional approaches to combining neural networks, such as naive weight averaging, typically fail due to the "permutation invariance" of neural architectures. In two independently trained networks, a specific neuron in the first layer of Agent A may perform the same functional role as a completely different neuron in Agent B. Simply averaging their weights results in a functionally incoherent model.
While transfer learning offers a partial solution, it generally relies on a single parent agent. To create a true generalist, we need a way to fuse multiple parents. The authors propose a method that does not require access to the original training data—a "post-hoc" fusion—making it highly practical for real-world applications where datasets may be proprietary or too large to move.
Methodology: Optimal Transport Policy Fusion
The proposed framework consists of a three-step process designed to align the internal representations of specialized agents before merging them:
- Neural Alignment via Optimal Transport: The core innovation lies in treating neural network weights as probability distributions of "mass." The authors utilize Optimal Transport theory, specifically the Earth Mover’s Distance (EMD), to calculate the most efficient mapping between the weight vectors of two networks. This step aligns neurons across different models that represent similar features or patterns.
- Layer-wise Fusion: Once the neurons are aligned, the weights of the parent policies are averaged. This fusion process creates a "Renaissance" initialization that retains the common physical intuitions learned by both parents while smoothing out the idiosyncratic, over-specialized behaviors of individual experts.
- Refinement: The resulting fused agent serves as a high-quality starting point for fine-tuning on a broader domain or a new, related task.
Experimental Validation
The researchers evaluated the Renaissance agent across a diverse set of benchmarks, ranging from simple classification to complex robotic control:
- MNIST Classification: As a proof-of-concept, two binary classifiers (trained on '0's and '1's respectively) were fused. The resulting model identified both digits with 95% training accuracy in just 2 epochs, whereas non-fused benchmarks required at least 4 epochs.
- Robotics Benchmarks (OpenAI Gym, PyBullet, MuJoCo):
- Reacher: A 2-link arm reaching for targets in different quadrants.
- Walker2d: A bipedal robot where parent agents were trained with asymmetric joint strengths (e.g., one agent with a strong left leg, another with a strong right leg).
- HalfCheetah & FetchReach: Complex multi-degree-of-freedom (DoF) tasks involving varying limb power and 3D target acquisition.
Key Results and Insights
The experimental results demonstrate that Optimal Transport Policy Fusion consistently outperforms standard baselines in both speed and final performance:
- Accelerated Convergence: In the Reacher task, the fused agent reached peak performance in approximately 200,000 timesteps, significantly faster than the 350,000 timesteps required by the next best benchmark.
- Superior Performance Ceilings: In the Walker2d environment, the fused agent achieved a mean reward of 1520.59. This drastically outperformed both the "new agent" trained from scratch (972.02) and naive weight averaging (580.29).
- Kinematic Robustness: The method proved particularly effective at generalizing across physical variations. By fusing agents specialized in different leg strengths, the Renaissance agent learned to walk using both legs more efficiently than an agent starting without that prior "wisdom."
- Stability: Across all robotics tasks, the fused agent exhibited not only the highest mean rewards but also lower standard deviations, suggesting a more stable and reliable learning trajectory.
Conclusion and Future Work
Optimal Transport Policy Fusion provides a mathematically principled way to consolidate specialized knowledge into generalist agents. By treating weights as distributions, the authors overcome the hurdles of permutation invariance without needing the original training data.
While the current method is limited by the requirement that parent policies share the same neural architecture, it opens several avenues for future research. These include bridging the "sim-to-real" gap by applying fused policies to physical hardware and exploring "barycentric" fusion to combine knowledge from dozens of specialized agents simultaneously. The Renaissance Robot approach marks a significant step toward more efficient, versatile, and capable autonomous systems.
Summary updated