TRANSMISSION // 2604.25496v3

Why reinforcement-learning tasks should match possible behavior

Source published

A study of offline, zero-shot reinforcement learning finds that sampling training tasks from observed behavior can improve performance over random task sampling in locomotion benchmarks.

AI-generated conceptual illustration for Why reinforcement-learning tasks should match possible behavior
AI-generated conceptual illustration; not documentary evidence.

An agent may need to handle a new goal without getting another chance to practise in its environment. This study asks whether such agents learn better when training goals reflect behaviors in their existing data, rather than being chosen at random.

In reinforcement learning, an agent learns to choose actions that earn rewards. But what if the reward changes after training, and the agent cannot interact with the environment to adapt? Offline zero-shot reinforcement learning aims to prepare an agent for that situation: it learns from a fixed dataset and later tries to optimize a previously unseen reward.

One common strategy trains a policy conditioned on a task vector. The vector assigns weights to features of a state—such as movement or orientation—to define a reward. In many methods, training vectors are sampled uniformly at random from a high-dimensional sphere. Nazim Bendib, Nicolas Perrin-Gilbert and Olivier Sigaud argue that this can waste learning effort: many random directions may not correspond to behaviors the environment allows the agent to produce.

Sampling tasks from behavior

The authors’ proposed alternative, the Behavioral Task Distribution (BTD), uses trajectories in the offline dataset to construct training tasks. They first map states into a learned feature space. For each of many contiguous segments of recorded trajectories, they sum the discounted features over time to get a vector representing the behavior in that segment. Those vectors are normalized into task directions, and a Gaussian mixture model is fitted to them. During training, the agent draws task vectors from this learned distribution instead of sampling uniformly.

The idea is to give the agent reward signals that distinguish among behaviors it can plausibly produce. The policy-training and representation-learning components are otherwise kept in place, making BTD a change to task sampling rather than a new overall learning algorithm.

The paper also gives a mathematical argument for why random sampling can become less informative as feature dimension grows. In their analysis, the variance in expected returns across policies for a randomly sampled task depends on how that task direction aligns with the range of feature occupancies achievable in the environment. Under the paper’s assumptions, this expected variance decreases as dimension increases. If policies receive similar returns on a task, the learning signal may not clearly indicate which behaviors are better. This result is about the setup analyzed; it does not mean every high-dimensional reinforcement-learning problem necessarily fails this way.

Results in simulated locomotion

The experiments use three standard continuous-control environments: Cheetah, Walker and Quadruped. The datasets come from the ExORL benchmark and were collected using Random Network Distillation. The authors compare uniform sampling with BTD across several representation methods, including autoencoder, transition-model, self-supervised and forward–backward approaches. They evaluate zero-shot performance on locomotion tasks such as walking, running, standing, flipping and jumping. Reported results are averaged over five seeds.

BTD performed better in 13 of 15 main comparisons and was comparable in the other two. The paper reports an average improvement of 20% in zero-shot performance. It also reports that BTD’s results were less variable across representation methods. As task dimension increased in additional experiments, the uniform-sampling baselines often lost performance, while BTD was more robust. Mixing uniformly sampled tasks back into BTD training generally reduced performance, though the effect was less clear in Quadruped.

The authors tested alternatives to fitting the distribution. Directly sampling from dataset subtrajectories did not perform as well as BTD, which can interpolate between observed task vectors. Sampling from full trajectories also performed poorly in some settings; the authors suggest that segments containing multiple behaviors or failures can obscure useful signals. These comparisons support the particular design they tested, not a guarantee that a fitted distribution will always be the best choice.

What the findings do—and do not—show

The evidence is limited to benchmark locomotion tasks and the study’s chosen datasets, representations and training setup. Because BTD is built from recorded trajectories, rare but feasible behaviors may be underrepresented. The approach also inherits a linear-reward assumption: it cannot solve arbitrary rewards that fall outside the span of the learned features. The authors identify visually complex tasks and contact-rich manipulation as areas needing further study.

The paper text identifies the work as appearing in the Proceedings of the 43rd International Conference on Machine Learning in 2026. The evidence provided here does not establish independent replication or how results transfer to real-world systems. The central takeaway is narrower: in these offline zero-shot locomotion experiments, choosing training tasks from observed behavior was a consequential design decision, and it outperformed uniform random task sampling in most reported comparisons.

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