Overview
This paper introduces a novel Imitation Learning from Observation (LfO) method that replaces standard "expert vs. agent" discriminators with a learned goal proximity function. By training an agent to maximize task progress—measured as the temporal distance to a goal—rather than just mimicking specific states, the authors achieve significantly better generalization to unseen environments and configurations using only state-only demonstrations.
The Generalization Problem in Imitation Learning
Traditional Imitation Learning (IL) often struggles with generalization. Most adversarial methods, such as Generative Adversarial Imitation Learning (GAIL), use a discriminator to distinguish between expert and agent behaviors. However, these discriminators frequently overfit to "spurious correlations"—task-irrelevant features like background colors or specific starting positions—rather than learning the underlying logic of the task.
When an agent trained this way encounters a state slightly outside the demonstration data, the reward signal collapses, leading to failure. This is especially problematic in Imitation from Observation (LfO), where the agent lacks access to the expert's actions and must learn purely from sequences of states (e.g., watching a video).
Methods: The GPIL Framework
The authors propose a framework called GPIL (Generalizable Imitation Learning via Inferring Goal Proximity).
The core components of GPIL are:
- Goal Proximity Function ($f_\phi$): Instead of a binary classifier, the system trains a regressor to estimate "goal proximity." This is defined as an exponentially discounted temporal distance to the goal ($\delta^{T-t}$). A state at the end of a successful demo has a proximity of 1.0, while earlier states have lower values.
- Adversarial-style Training: To prevent the model from overestimating proximity in unseen states, it is trained on both expert demonstrations (where target = proximity) and the agent's own experience (where target = 0).
- Difference-based Reward: The reward for the reinforcement learning agent is the increase in predicted proximity between two steps: $R = f(s_{t+1}) - f(s_t)$. This encourages the agent to consistently move toward the goal.
- Uncertainty Penalty: To handle "over-optimistic" predictions in unfamiliar territory, GPIL uses an ensemble of proximity functions. If the models in the ensemble disagree (high variance), the agent is penalized, discouraging it from exploiting inaccurate reward signals.
Evaluation and Datasets
The method was evaluated on six diverse goal-directed tasks to test its robustness:
- Navigation: Moving through a four-room grid.
- Maze2D: A continuous version of the navigation task.
- Ant Reach: Controlling a quadruped "ant" to reach a target.
- Robotic Manipulation (Fetch Pick & Push): Using a 7-DoF arm to move blocks.
- Hand Rotate: A complex 24-DoF Shadow Hand task requiring in-hand object rotation.
To rigorously test generalization, the authors specifically used "limited coverage" setups (e.g., demonstrations covering only 25% of possible start/goal pairs) or added significant noise to the environment during the agent's training that wasn't present in the expert demos.
Key Insights and Results
Progress over Classification
Predicting a continuous scale of "task progress" forces the neural network to learn the semantic structure of the task (the "how-to") rather than just memorizing "expert states." Furthermore, proximity is defined by time (steps to goal), not Euclidean distance. This is crucial for tasks like mazes, where the goal might be physically close but many steps away due to a wall.
Robust Generalization
In the Navigation task with only 25% demonstration coverage, GPIL achieved a ~100% success rate, while standard LfO baselines (like GAIfO) failed completely. The authors found that while proximity provides a better signal than standard discriminators, the uncertainty penalty is the "secret sauce" that prevents the agent from falling into "reward traps" in unseen states.
Outperforming Learning from Demonstration (LfD)
In the Fetch Pick task, GPIL (which only sees states) outperformed Behavioral Cloning (which sees actions), achieving an 80% success rate compared to BC's 40%. This suggests that learning the "goal intent" can be more powerful than mimicking low-level motor skills. Overall, GPIL generally learned faster and reached higher peak performance than other state-of-the-art LfO methods across almost all tested environments.
Limitations and Future Work
While highly effective, GPIL has a few limitations:
- Shared State Space: The current method assumes the expert and the learner operate in the same state space (e.g., they have the same "body"). Generalizing across different embodiments (e.g., a human demo for a robot learner) remains a key area for future research.
- Goal Information: The method assumes that goal information is explicitly or implicitly included in the state representation.
- Task Type: While highly effective for goal-directed tasks, it remains to be seen how well "proximity" translates to cyclic tasks (like walking indefinitely) or tasks without a clear terminal goal.
Summary updated