TRANSMISSION // 2610.05087v2

A Better Way to Tell a Learning Agent Where to Go

Source published

Direction-Conditioned Policies use directions in a learned space to guide simulated agents toward goals, with gains on many—but not all—tested tasks.

AI-generated conceptual illustration for A Better Way to Tell a Learning Agent Where to Go
AI-generated conceptual illustration; not documentary evidence.

A goal’s coordinates can point straight through a wall. Direction-Conditioned Policies instead give an agent a direction and distance in a space learned from experience—an approach that improved results on several simulated navigation and manipulation tasks, but also had clear exceptions.

In reinforcement learning, an agent learns by trying actions and receiving feedback from its environment. For goal-reaching tasks, the challenge is not just knowing where the goal is: the agent must discover how to get there, often before it has succeeded even once.

Contrastive reinforcement learning (CRL) tackles this by learning from states the agent actually visits. Its critic—a component that scores how promising an action is for reaching a goal—learns a representation of states and goals. But the policy that chooses actions still receives the goal in its original coordinates. In a maze, the direct coordinate difference might point through a wall, even when the agent must first move away from the goal to go around it.

The researchers ask whether the policy can use the route-related geometry in the critic’s learned representation. Their proposed method, Direction-Conditioned Policies (DCP), gives the policy the direction and distance to a target in that learned space, alongside the agent’s physical state. A direction can encode that the useful route goes around an obstacle, rather than simply pointing toward the goal on a map.

Waypoints for learning, the goal for deployment

During online training, DCP selects intermediate targets, or waypoints, from states the agent has already visited. It scores a small set of candidates against the final goal using the learned representation. The policy learns to move toward these targets, while updates also use future states from the agent’s experience. A visited state is not necessarily close to, or reachable from, the agent’s current position; the method’s scorer does not guarantee either.

At deployment, the policy receives the final goal directly in the same direction-and-distance format. It no longer needs the waypoint pool or the candidate-scoring step. That makes DCP different from a planner that searches for a fresh route at deployment: the method aims to learn a policy that can act toward the goal without that additional planning process.

Nine simulated tasks, five training seeds

The main comparison tested DCP against CRL and related variants on nine Brax-based simulated navigation and manipulation tasks. These included robots moving around maze walls, a robot pushing a block, a quadruped moving a ball, and an arm pushing a cylinder. Each method was trained with five independent random seeds per task, using matched interaction budgets within each task.

The authors tracked two outcomes: whether an agent reached the goal at least once in an episode, and how many steps it spent near the goal. These measures capture different aspects of performance: an agent might reach a target briefly without staying there.

In the final evaluations, DCP had higher mean success than CRL on seven of the nine tasks, and spent more time near the goal on seven. It did not win every comparison. On AntSoccer, CRL had higher final means on both measures. On AntPush, DCP’s success rate was lower than CRL’s, although its time near the goal was higher; the waypoint-based SSGC variant had the highest means on both measures. Results varied by task and metric, so “better” does not mean uniformly better at every aspect of goal-reaching.

What seems to help—and what remains difficult

Ablation experiments separated the two main ingredients: direction-and-distance inputs for the policy, and waypoint selection during training. The authors report that direction conditioning accounted for most of the gains. In particular, direction-conditioned variants did well on the three cylinder-pushing tasks. But collecting only toward the final goal could fail when that goal was rarely reached early in training. Waypoint collection supplied targets drawn from visited states, giving the agent alternative targets to pursue. Every DCP training seed reached the goal on all nine benchmark tasks, compared with 38 of 45 seeds for Direct-DCP, which used direction conditioning but collected toward the final goal.

Controlled maze experiments offered evidence about why the approach might work. In a U-shaped maze, DCP’s learned distances tracked graph-based shortest-path distances more closely than CRL’s did across five training seeds. In separate tests, changing the direction supplied to a trained actor changed its behavior: reversing the direction sharply reduced success in both a navigation setup and a puck-pushing setup. These tests support the claim that the actor uses the supplied direction; they do not establish that this representation will capture useful routes in every environment.

The waypoint mechanism itself has weaknesses. In a controlled selection test, a useful on-route candidate was often present among sampled options but was still missed by the default scorer. The authors also report that better waypoint selection alone did not solve AntSoccer, where the agent struggled to produce useful ball movement. A learned candidate generator improved goal-reaching results in two controlled mazes, but that is a limited test rather than evidence of broad transfer.

A promising simulation result, not a robot demonstration

The experiments used simulated environments and state observations, not visual input or physical robots. Each main benchmark comparison used only five training seeds, and confidence intervals across those seeds show that results are uncertain; the paper does not justify treating every difference in average performance as conclusive. Some follow-up tests used still fewer seeds. The authors also note that the method adds policy parameters and modestly reduces training throughput relative to CRL.

This work is available as an arXiv preprint. The authors provide code and reproduction scripts, but reproduction and testing in other settings remain important. Their results suggest that a policy can benefit from receiving the geometry its critic learns—while also showing that representation quality, waypoint selection, task and evaluation setting all matter.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.