TL;DR
This paper introduces a post-hoc method to fuse independently trained deep reinforcement learning (RL) policies using Optimal Transport (OT) theory. By aligning neural network weights layer-by-layer without needing original training data, the resulting "Renaissance agent" provides a superior weight initialization that drastically accelerates learning on new, broader tasks.
What Problem Does This Paper Address?
Deep reinforcement learning is exceptionally powerful for robotics, but it is notoriously sample-inefficient and time-consuming. When a robot needs to learn a new skill or adapt to a slightly different environment or kinematic setup, training a new policy from scratch is computationally wasteful.
Traditional transfer learning typically transfers knowledge from only a single parent agent, which is insufficient for complex tasks requiring diverse skills. Why not just combine multiple specialized agents? Simply averaging their neural network weights (naive averaging) fails because networks are permutation-invariant—the same feature might be learned by the 1st neuron in Agent A's hidden layer and the 5th neuron in Agent B's. Ensembling works but is computationally heavy since all models must run concurrently during deployment.
The authors tackle the challenge of fusing multiple neural network policies post-hoc, creating a single unified model without needing access to the original training data or incurring heavy computational overhead.
Methods
The authors propose Optimal Transport (OT) Policy Fusion. The core idea is to treat the incoming weight vectors of neurons as probability distributions of Dirac masses and use the Earth Mover's Distance (Wasserstein metric) to find an optimal alignment map between two networks layer-by-layer.
- Layer-wise Alignment: Starting from the first hidden layer, the algorithm computes an optimal coupling matrix $\mathcal{P}^*$ that maps the neurons of a source policy ($\mathcal{S}$) to a target policy ($\mathcal{T}$) based on weight similarity.
- Weight Fusion: Once aligned, the weights are averaged: $(\mathcal{S}' + \mathcal{T}) / 2$. This preserves common patterns while smoothing out over-optimized, task-specific quirks.
- Refinement: The resulting network serves as the initial weight configuration for a new "Renaissance agent," which is then refined on a broader target domain via standard RL algorithms (like Proximal Policy Optimization).
The layer-by-layer weight fusion pipeline is illustrated below:
Datasets
The method was evaluated across a variety of domains:
- MNIST: Used as a preliminary image classification proof-of-concept (fusing a '0' classifier and a '1' classifier into a joint '0 and 1' classifier).
- OpenAI Gym / PyBullet / MuJoCo Robotics Benchmarks:
- Reacher: A 2-link robotic arm tasked with reaching targets in different quadrants (testing environmental changes).
- Walker2d: A bipedal robot with altered joint power configurations, such as left-dominant vs. right-dominant joints (testing kinematic changes).
- HalfCheetah: A quadruped robot with varying joint rigidities.
- FetchReach: A 7-DoF robot arm moving its end-effector in 3D space.
Key Insights and Ideas
- Data-Agnostic Fusion: The method is entirely post-hoc and requires zero access to the original datasets or environment interactions used to train the parent policies.
- Overcoming Permutation Invariance: OT elegantly solves the "neuron alignment" problem by treating weight matching as an optimal transport problem, making weight averaging viable for neural networks.
- De-biasing Specialization: Fusing specialized networks (e.g., one expert at left-joint movement, one at right-joint movement) filters out extreme, over-fitted behaviors. This leaves a balanced foundation that generalizes better to a combined domain.
The conceptual framework of training, fusing, and refining is shown here:
Key Results
- Faster Convergence: In the MNIST task, the fused model reached 95% training accuracy in just 2 epochs, whereas other models took at least 4 epochs to catch up.
- Superior RL Performance: Across all robotics tasks, the Renaissance agent learned significantly faster and achieved higher final mean rewards than training from scratch, retraining parent agents, or naive averaging.
- Walker2d Kinematics: The fused agent was the only model to achieve high, consistent performance, surpassing a mean reward of $1520.59 \pm 232.58$ by the end of the retraining period. In comparison, training a new agent from scratch achieved $972.02 \pm 5.88$, and naive averaging resulted in a poor $580.29 \pm 420.92$.
Limitations and Future Work
- Architectural Constraints: The current method requires the parent policies to share identical neural network architectures (the same number of layers and hidden units).
- Two-Parent Limit: The formulation focuses primarily on pairwise fusion, though it could theoretically be extended to multiple parents sequentially.
- Simulation Only: The experiments were conducted entirely in simulation environments. The authors note that extending this technique to simulation-to-real (Sim2Real) policy fusion is a critical and promising next step.
Summary updated