Milestone-Guided Policy Learning for Long-Horizon Language Agents
The paper introduces BEACON, a milestone-guided policy learning framework that addresses credit misattribution and sample inefficiency in long-horizon language agents by partitioning trajectories at milestone boundaries and applying dual-scale advantage estimation, achieving state-of-the-art performance on benchmarks like ALFWorld.
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 butler to clean a messy house. The task is long and complicated: "Find the blue key, unlock the storage room, get the cat out, and feed it."
If the robot fails at the very end (maybe it forgets to feed the cat), traditional training methods would say, "You failed! Go back and undo everything you did." This means the robot gets punished for the good things it did earlier, like finding the key and unlocking the door. It gets confused because it did the right thing at the start but got a "bad grade" because of a mistake at the end.
This paper introduces a new training method called BEACON to fix this confusion. Here is how it works, using simple analogies:
The Problem: The "All-or-Nothing" Grade
Current methods (like GRPO) treat the robot's entire day as one single test.
- The Flaw: If the robot does 99% of the job perfectly but trips on the last step, the whole day is marked as a failure.
- The Result: The robot learns nothing from the 99% of good work. It also gets confused because sometimes it does the same action (like "find the key") and gets a "good job" signal, and other times it gets a "bad job" signal just because the later steps went wrong. It's like a student getting an F on a math test just because they forgot to write their name at the top, even though they solved every equation correctly.
The Solution: BEACON (The "Checkpoint" System)
BEACON changes the game by breaking the long task into smaller chapters, or Milestones. Think of these milestones as checkpoints in a video game.
1. Breaking the Journey into Segments
Instead of waiting until the very end to grade the robot, BEACON looks for natural stopping points.
- Example: "Did you find the key?" (Checkpoint 1). "Did you unlock the door?" (Checkpoint 2).
- Once the robot reaches a checkpoint, the game "resets" its memory of how it got there. It doesn't matter if the robot took a weird path to find the key; what matters is that it is at the key now.
2. Giving Credit for Partial Progress
In the old system, if the robot failed at the end, it got zero points for the whole day.
- BEACON's Trick: If the robot finds the key but fails later, it still gets a "partial credit" reward for finding the key.
- The Metaphor: Imagine a relay race. If the runner drops the baton in the final lap, the old system says the whole team gets zero points. BEACON says, "The first runner did great! They passed the baton perfectly. Let's give them a high-five and a small reward, even if the last runner dropped it." This encourages the robot to keep trying to reach the next checkpoint.
3. The "Dual-Scale" Coach
BEACON uses two types of coaches to give feedback:
- The Big Picture Coach: Looks at the final result. Did the cat get fed? Yes/No. This keeps the robot focused on the ultimate goal.
- The Segment Coach: Looks only at the current chapter. "Did you unlock the door efficiently?" This coach compares the robot only against other robots who also reached the "unlock the door" stage.
- Why this helps: It stops the robot from being punished for things that happened after it did its job. If the robot unlocked the door perfectly, but the next robot in the group failed to feed the cat, the first robot doesn't get blamed for the second robot's failure.
The Results: A Smarter, Faster Learner
The authors tested this on three different "worlds":
- ALFWorld: A text-based house cleaning game.
- WebShop: An online shopping simulation.
- ScienceWorld: A virtual science lab.
What happened?
- Old Methods: As tasks got longer, the robots got worse. They got confused and stopped learning.
- BEACON: The robots got better and better, even on very long tasks.
- On the hardest house-cleaning tasks, BEACON succeeded 93% of the time, while the old method only succeeded 54% of the time.
- BEACON made the training much more efficient. Instead of throwing away 76% of the practice runs (because they failed at the end), BEACON found useful lessons in 82% of the runs by rewarding the partial successes.
In Summary
BEACON is like a smart teacher who doesn't just look at the final exam score. Instead, the teacher checks your homework at every step. If you get the first three chapters right but mess up the last one, the teacher says, "Great job on the first three! Let's fix the last one." This prevents the student from giving up and helps them learn complex, long tasks much faster.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.