Teacher-Student Representational Alignment for Reinforcement Learning-Driven Imitation Learning
This paper proposes a novel algorithm that mitigates the imitation gap in state-based reinforcement learning-driven imitation learning by training a shared embedding space via self-supervised contrastive learning to ensure teacher policies rely only on observable information, thereby enabling high-performing student policies without requiring post-training RL finetuning.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to teach a robot to navigate a maze. You have two robots: a Teacher and a Student.
The Teacher is a super-smart robot with "X-ray vision." It can see the entire maze, the location of every wall, and the exact spot where the treasure is hidden. Because it has this superpower, it learns the fastest, most efficient path to the treasure. It might run in a straight line, never turning its head, because it knows exactly where the obstacles are.
The Student, however, is a regular robot. It only has a small flashlight in front of it. It can only see the three squares directly in front of it. It doesn't know where the walls are until it bumps into them, and it doesn't know where the treasure is until it turns its head and sees it.
The Problem: The "Imitation Gap"
In traditional teaching, you would train the Teacher first, then try to teach the Student to copy the Teacher's moves.
But here's the catch: The Teacher is running on a path that relies on its X-ray vision. If the Teacher runs straight without turning, the Student, who can't see the walls ahead, will run straight and crash. The Student cannot copy the Teacher because the Teacher is using "secret information" that the Student doesn't have.
Usually, to fix this, researchers would have to retrain the Student using a lot of trial and error (Reinforcement Learning) after the initial lesson. This is slow, expensive, and frustrating.
The Solution: A Shared "Blurry" View
This paper proposes a clever new way to train them so the Student can copy the Teacher perfectly from day one.
Instead of letting the Teacher use its X-ray vision, the researchers force the Teacher and Student to look at the world through a shared, blurry lens.
- The Shared Lens (The Embedding Space): Imagine putting a special filter over both robots' eyes. This filter strips away the "private" details (like the Teacher's X-ray view of the treasure) and keeps only the "common" details (like the shape of the floor and the walls they can both see).
- The Training Trick: The Teacher is trained to solve the maze using only this blurry, shared view. It can no longer rely on its X-ray vision. To win, it must learn a path that works even if it can't see the whole picture.
- The Result: Because the Teacher is forced to learn a path that works with limited vision, the Student can now copy those moves perfectly. The Teacher isn't cheating anymore; it's playing by the Student's rules.
How They Did It (The "Self-Supervised" Magic)
The researchers used a technique called Contrastive Learning. Think of this as a game of "Spot the Difference" played in reverse.
- They show the system a picture from the Teacher's view and the matching picture from the Student's view at the exact same moment.
- The system is told: "These two pictures are about the same moment in time; make them look very similar in your brain."
- Then, it shows them a picture from a different moment and says: "This is different; make it look very different."
- By playing this game, the system learns to ignore the "private" secrets (like the exact treasure location) and focus only on the shared reality (the maze structure).
They also added two safety nets:
- Alignment: Making sure the Teacher and Student's "blurry views" match up perfectly so the Student doesn't get confused.
- Stability: Making sure the "blurry view" doesn't change wildly from one second to the next, so the Teacher doesn't get dizzy and make erratic moves.
The Results
The researchers tested this in two video-game-like worlds:
- CollectHealth: A robot collecting items in a room. The Teacher knew exactly where items were; the Student had to look around to find them.
- TunnelVision: A grid-world where the Teacher could see the whole map, but the Student could only see a few steps ahead.
The Outcome:
- Old Way: The Student copied the Teacher but crashed often because the Teacher was using secret info.
- New Way: The Teacher learned a path that the Student could follow perfectly. The Student succeeded almost 100% of the time, and the "gap" between the Teacher's skill and the Student's skill disappeared.
Why This Matters
The biggest advantage is that they didn't have to change the Teacher's goal or reward system. They didn't have to tell the Teacher, "Don't go straight, turn left!" Instead, they just changed how the Teacher saw the world. This forced the Teacher to naturally learn a behavior that the Student could imitate, saving time and making the whole process much smoother.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.