NeurIPS 2026QuestionsPapersAreasAboutMarkdown

RAIL: Representation-Aligned Imitation Learning for Student-Compatible Teacher Policies

Meraj Mammadov, Pedro Zuidberg Dos Martires, Johannes A. Stork

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Reinforcement Learning & Games › Reward-Shaped Reinforcement Learning · Type: new method · Keywords: representation learning, imitation learning, teacher-student distillation, contrastive learning, reinforcement learning, zero-shot transfer

Areas: RL for LLMs & Agents › Language Model Reinforcement Learning › Reward Specification; Continual Learning & Adaptation › Non-Stationarity Adaptation › Environmental Shift Adaptation

Summary

RAIL introduces Representation-Aligned Imitation Learning that learns a shared latent representation via contrastive learning and trains the teacher policy directly in this space, reducing the imitation gap and enabling zero-shot transfer.

Explained to a 5-year-old

In robot learning, a smart teacher knows a lot about what to do, but the student robot only sees pictures or sensor signals. Because the teacher knows things the student cannot see, the student cannot perfectly copy the teacher. The researchers made the teacher and student share a hidden picture that both can understand. By learning together in this shared space, the teacher can show the student how to act even when the student only sees raw data. This helps the robot learn faster and also lets it try new tasks without extra training.

Explained to a 5-year-old, longer

Robots often need to learn how to move and make decisions using only what they see and feel. A teacher robot can see extra information that the student robot cannot, like hidden maps or special signals. Because the student cannot see everything the teacher knows, it cannot perfectly copy the teacher's actions. The researchers wanted to help the student learn better without giving it the teacher's extra knowledge. They created a common hidden space where both the teacher and student can store information. This hidden space is learned using a technique that makes similar observations close together and different ones far apart. By training the teacher to act only in this shared space, its behavior becomes understandable to the student. The student can then imitate the teacher more accurately because it sees the same kind of information. This reduces the gap between what the teacher does and what the student can do. The new method works well in many different robot tasks without needing extra tweaks to rewards. It also lets the robot try new tasks it has never seen before, just by using the trained teacher. Overall, this approach makes robot learning faster, more reliable, and more flexible.

For a technical reader

The paper tackles the difficulty of training RL agents from raw sensory inputs like images, where high dimensionality and sparse rewards hinder learning. It adopts a teacher-student setup where the teacher has privileged state information unavailable to the student, which inevitably creates an imitation gap. RAIL introduces a contrastive learning step that builds a shared latent representation for both teacher and student, then trains the teacher directly in this space, making its actions reproducible from raw observations. This alignment eliminates the need for reward shaping or post-hoc student fine-tuning, leading to stronger baseline performance and zero-shot transfer to unseen tasks.

Problem

When a teacher policy uses privileged state information unavailable to the student, exact imitation is impossible, creating an irreducible imitation gap. Existing methods try to close this gap through reward shaping or post-hoc student fine-tuning, which can be costly or suboptimal.

Method

The approach learns a latent representation shared by teacher and student observations using contrastive learning, then trains the teacher policy directly in this shared space. Constraining the teacher to this representation ensures its behaviors are reproducible from raw student observations, reducing the imitation gap. No reward shaping or post-hoc student fine-tuning is required.

Results

The approach achieves superior performance compared to strong baselines and direct RL from raw observations, and enables zero-shot transfer to new tasks.

Contributions

It introduces a method that aligns teacher and student representations during training, reducing the imitation gap without extra reward shaping or student fine-tuning, and demonstrates zero-shot transfer capability.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction