Understanding Goal Generalisation in Sequential Reinforcement Learning
This paper investigates how reinforcement learning agents generalize goals across sequential training pipelines, revealing that salient features and early-learned goals shape out-of-distribution behavior, and introduces an interpretable "latent policy gradients" method to predict these behaviors based on the evolution of low-dimensional latent variables.
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 teaching a robot dog to fetch. First, you train it to fetch a red ball. It learns quickly. Then, you decide to teach it a new trick: fetch a blue frisbee. You might expect the robot to simply forget the red ball and focus entirely on the blue frisbee.
But what if, when you put the robot in a new room with both a red ball and a blue frisbee, it starts chasing both? Or what if it ignores the blue frisbee entirely and goes back to the red ball, even though you told it to fetch the blue one?
This is the problem of Goal Generalization. It's about understanding how an AI's past training history shapes what it values in new, unfamiliar situations. This paper by Jason Ross Brown and Edward James Young tries to solve the mystery of why AI agents make these specific choices when they leave the training gym and enter the real world.
Here is a simple breakdown of their work:
1. The Experiment: The Maze Game
The researchers didn't use complex real-world robots. Instead, they used a simple video game: a maze.
- The Agent: A little grey circle (the robot).
- The Goal: A specific object, like a Red Cross or a Blue Diamond.
- The Training: They trained the robot in two ways:
- Single Stage: Train it only to find the Red Cross.
- Two Stages: Train it to find the Red Cross first, then switch and train it to find the Blue Diamond.
After training, they put the robot in a maze with two objects (e.g., a Red Cross and a Blue Diamond) that it had never seen together before. They watched to see which one the robot chased.
2. What They Found: The "Habit" of AI
The robots didn't act randomly. They had very consistent "personalities" based on their training history. The researchers discovered three main rules:
- Shape is King, Color is Queen: The robots cared much more about the shape of the object (cross vs. diamond) than the color (red vs. blue). If a robot was trained on a "Cross," it would chase any cross, even if it was a different color.
- Old Habits Die Hard (Persistence): If a robot learned to love "Crosses" in the first stage, it kept that love even after being trained to find "Diamonds" in the second stage. The first lesson stuck around and influenced the second.
- The "Double-Training" Effect: If a robot was trained on a "Red Cross" and then a "Red Diamond," it became super obsessed with the color Red. The color Red was reinforced twice. However, the "Diamond" shape (which only appeared in the second stage) became much less important. The strong habit of "Red" blocked the robot from learning to value "Diamonds" as much as it otherwise would have.
3. The Solution: "Latent Policy Gradients"
The researchers wanted to predict these behaviors without having to re-train the robot every time. They invented a method called Latent Policy Gradients.
Think of this like a GPS for an AI's brain.
- Instead of looking at the millions of lines of code inside the robot's brain, the researchers created a simple, low-dimensional map (a set of hidden numbers, or "latents").
- They imagined these numbers evolving like a ball rolling down a hill. Every time the robot was trained on a new task, it was like pushing the ball in a specific direction.
- By simulating this "ball rolling" through the training history (Stage 1, then Stage 2), they could predict exactly what the robot would do in a new maze.
The Analogy:
Imagine the robot's preferences are a piece of clay.
- Training Stage 1 is a sculptor pressing the clay into a "Cross" shape.
- Training Stage 2 is a second sculptor trying to press it into a "Diamond" shape.
- The final shape isn't just a Diamond; it's a weird hybrid because the first press left a deep impression.
- The Latent Policy Gradient method is a mathematical formula that looks at the two sculptors' instructions and predicts exactly what the final, weird clay shape will look like, without actually having to sculpt it.
4. Why This Matters
The paper shows that AI behavior isn't just a mystery; it has a structure.
- It's Predictable: Even though the AI is in a new environment, its behavior is a logical result of its training history.
- It's Interpretable: The researchers' method isn't a "black box." They can look at their formula and say, "Ah, the robot is chasing this because it was trained on this specific shape first, and that feature is very 'sticky' for this type of AI."
Summary
The paper argues that to understand what an AI will do in the real world, you can't just look at its final training. You have to look at its entire journey. By treating the AI's learning process as a series of steps where old habits stick and new ones are built on top of them, the authors created a simple, mathematical way to predict how an AI will generalize its goals. They proved that while AI behavior can be surprising, it follows a hidden logic that we can map and understand.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.