Mutual Information Based Knowledge Transfer Under State-Action Dimension Mismatch

Michael Wan, Tanmay Gangwani, Jian Peng

Abstract

Reinforcement Learning (RL) is often hindered by high sample complexity. While transfer learning from pre-trained "teacher" agents can accelerate training, most existing methods require the teacher and "student" to share identical state and action spaces. This paper introduces Mutual Information based Knowledge Transfer (MIKT), a framework that enables effective knowledge distillation even when agents possess different physical structures and dimensions. By learning a task-aligned embedding space grounded in mutual information, MIKT allows a student to leverage a teacher's internal representations to significantly improve learning efficiency.

Introduction

Standard reinforcement learning requires millions of interactions to master even basic tasks. Transfer learning offers a solution by reusing knowledge from existing models. However, a significant hurdle arises when the teacher and student have a "dimension mismatch"—for instance, transferring a walking policy from a four-legged robot to an eight-legged one. Traditional policy distillation fails here because the input (sensors) and output (actuators) dimensions do not align. MIKT overcomes this by focusing on representation-level transfer rather than direct action imitation.

Methodology

Figure 1: The MIKT architecture illustrating the Policy and Value branches, the state encoder, and the dual-objective optimization involving RL and Mutual Information losses.

The MIKT framework consists of three core architectural components designed to bridge the gap between mismatched agents:

  1. The Encoder ($\phi$): This component maps the student's state $s_{targ}$ into an embedding space that matches the teacher's expected input dimension, acting as a learned translator between different physical embodiments.
  2. Lateral Connections: Instead of mimicking final actions, MIKT transfers "knowledge flow" by blending internal hidden layer activations from the teacher's network into the student's layers using learnable mixing weights.
  3. Dual-Objective Optimization: The encoder is trained using a combination of two losses:
  4. RL Loss ($L_{PPO}$): Drives the student to maximize environmental rewards.
  5. Mutual Information Loss ($L_{MI}$): Employs variational information maximization to ensure the learned embeddings retain a high correlation with the student's original state. This prevents the encoder from losing critical context unique to the student's body.

As training progresses, a coupling loss gradually reduces the student's reliance on the teacher, eventually allowing the student to operate as an independent, specialized agent.

Experimental Setup

Figure 3: Locomotion agents used for evaluation, including various Centipede configurations and the standard Ant-v2 benchmark.

The researchers evaluated MIKT using the MuJoCo physics engine across several complex locomotion tasks. The primary testbeds included "Centipede" agents with varying numbers of legs (Four, Six, and Eight) and "Crippled" variants where specific legs were disabled. These environments are ideal for testing cross-dimension transfer because the fundamental logic of locomotion remains consistent even as the number of joints and sensors changes.

Key Results and Insights

  • Sample Efficiency: MIKT reached high reward thresholds significantly faster than training from scratch (Vanilla PPO). For example, transferring knowledge from a 4-legged to an 8-legged centipede showed a marked improvement in learning speed.
  • Representation vs. Imitation: By transferring knowledge through hidden layers, MIKT successfully bypasses the constraints of mismatched action dimensions. The results suggest that internal representations are more transferable than final policies in heterogeneous settings.
  • Importance of Mutual Information: Ablation studies revealed that removing the $L_{MI}$ loss led to instability in early training. The information-theoretic grounding provided by $L_{MI}$ is essential for ensuring the "translated" state remains accurate to the student's reality.
  • Independence: The use of annealing mixing weights allowed students to eventually surpass their teachers by developing specialized policies tailored to their specific physical configurations.

Conclusion and Future Work

MIKT provides a robust framework for knowledge transfer between agents with different state-action dimensions. By prioritizing representation alignment and mutual information, it enables structural knowledge to flow across diverse embodiments. Future research directions include extending the framework to support multi-teacher distillation and investigating methods to map between networks with significantly different depths.

Summary updated

BibTeX
@inproceedings{wan2020mutual,
  author = {Michael Wan and Tanmay Gangwani and Jian Peng},
  title = {{Mutual Information Based Knowledge Transfer Under State-Action Dimension Mismatch}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2020},
}
Figure