Introduction
The agent is handed a corpus of reward-free trajectories from its environment, gathered by behaviour unrelated to the task, and then a fixed budget of online interaction on a sparse-reward, long-horizon task whose goal it is not told. Reward is on every step until an unknown success condition is met. The question is how the prior data should drive exploration and learning so that the task is solved, and stays solved, in as few online steps as possible. The metric integrates the deployed policy's success over the whole budget, so the time to the first success and the reliability after it both count.
Three things make this hard. The goal is invisible until it is hit. With a sparse reward and a long horizon, undirected exploration almost never reaches it, and the first success is the gate for everything that follows. The prior data contains no task information. It cannot be relabelled with the task reward, so whatever it teaches has to be task-agnostic. A single success is weak evidence. Reaching the goal once from one initial state does not reveal which features of the end state mattered, and a policy that cannot reproduce the success from fresh initial states earns little.
The field uses the prior data in three main ways. It can be replayed into an off-policy learner with a pessimistic reward label [1], optionally with optimistic novelty bonuses on the prior transitions, as in ExPLORe [2], built on random network distillation [3]. It can be used to pretrain a latent skill space on which a high-level online policy acts [4], with skills built from trajectory segments, Hilbert representations [5] or empowerment estimates [6]. Or it can pretrain an expressive behaviour policy whose latent noise is then steered online [7]. In all of these, the online learner still has to discover, by reinforcement learning on a single scalar reward, both where the goal is and how to return to it.
We take a different view. Play shows which outcomes the agent can bring about and how to bring them about; the unknown task is, in the environments of this benchmark [8], a condition on a small number of such outcomes. We therefore treat exploration as a search over hypotheses about the goal, expressed in the outcomes play shows to be controllable, and treat learning after the first success as inference of the goal rather than as value learning.
Method
Our method, SCOUT (search over controllable outcomes), has a pretraining phase that uses only the prior data and an online phase with two regimes, before and after the first reward. It contains no reinforcement-learning update. Every component is a model fitted to the prior data or a statistical estimate over online episodes.
Slow coordinates from play
The first object we extract is a metric in which distances mean something over a long horizon. We whiten the observations and compare how far they travel over three horizons: a few steps (), about one control horizon () and a random fraction of the remaining episode (). The directions that move far relative to their short-time jitter are the generalized eigenvectors
and we keep up to 20 of them whose time scale exceeds . Two projections follow. The metric weights each direction by and is used for places and distances. The command space divides each direction by , so that a goal displacement handed to a controller is measured in units of what is achievable within one horizon; fast, jittery body coordinates thereby carry little weight in a command.
vals, v = eigh(far, short + 0.00003*np.eye(len(short)))
order = np.argsort(-vals)
timescale = np.sqrt(np.maximum(vals[order],0.))
rank = max(1,min(20,int(np.sum(timescale>max(.23*timescale[0],2.)))))
v = v[:,order[:rank]]
v = v / np.maximum(np.linalg.norm(v,axis=0),1e-8)
local_var = np.maximum((v.T@local@v).diagonal(),0.)
z = white@v
weights = np.maximum(timescale[:rank]/max(timescale[0],1e-5),.001)
metric = z * weights ** 1.15
command = z / np.sqrt(.0003 + 2*local_var)
return tuple(np.asarray(a,np.float32) for a in (mean,scale,metric,command))Controllable factors
The second object is a set of factors: groups of coordinates that change together and that play can hold at distinct resting values. For each coordinate we measure its drift (long-horizon excursion over short-horizon jitter), the fraction of time it is at rest, and the spread of its resting values. Coordinates that drift strongly, or that rest often at many different values, are eligible; they are merged greedily by the correlation of their positions or of their activity, the latter discounted when the coordinates move at different time scales. A second detector adds groups whose motion is explained, during interaction, by a different set of driving coordinates, which is how an object pushed by the body is separated from the body. Each factor receives a prior weight from its quality, and the slow command space is always included as a global factor.
def _primary(prior,geom,rng):
s=prior['observations'];mean,scale,metric,T=geom;end=_bounds(prior['terminals']);ii=rng.integers(len(s),size=min(105000,len(s)));norm=lambda i:np.clip((s[i]-mean)/scale,-9.,9.)
x=norm(ii);delta=lambda h:norm(np.minimum(ii+h,end[ii]))-x
a,b,c=map(delta,(4,22,115));rms=lambda v:np.sqrt(np.mean(v*v,axis=0));sd=rms(x);far=rms(c);drift=far/(.003+rms(a));rest=np.abs(b)<.075;hold=rest.mean(0)
avg=(x*rest).sum(0)/np.maximum(1,rest.sum(0));restvar=np.minimum(1.,(((x-avg)**2*rest).sum(0)/np.maximum(1.,rest.sum(0))))
def corr(u):
u=u-u.mean(0);u=u/np.maximum(np.linalg.norm(u,axis=0),1e-5);return u.T@u
v=np.log1p(np.abs(b)/(.01+.12*rms(b)));activity=corr(v);same=np.abs(corr(x));dlog=np.log(np.maximum(drift,.05))
closeness=np.exp(-1.0*np.abs(dlog[:,None]-dlog[None,:]));aff=np.maximum(same**3.2,np.maximum(activity,0.)*closeness)
quality=np.sqrt(np.maximum(0.,drift))*(.3+.7*(hold*np.sqrt(restvar))) *np.minimum(1.,far/.35)
eligible=(sd>.2)&(far>.07)&((drift>3.3)|((hold>.63)&(restvar>.32)))
groups=[[int(i)] for i in np.flatnonzero(eligible)]
while len(groups)>1:
best=.40;pair=None
for j in range(len(groups)):
for h in range(j):
aq=aff[np.ix_(groups[h],groups[j])];strength=.55*aq.mean()+.45*aq.min()
if strength>best:best=strength;pair=h,j
if pair is None:break
h,j=pair;groups[h]+=groups.pop(j)
groups.sort(key=lambda g:-float(np.max(quality[g])));groups=groups[:16];masks=[];prob=[]
for g in groups:
mask=np.zeros(len(mean)+T.shape[1],np.float32);mask[g]=1.;masks.append(mask)
prob.append(np.sqrt(len(g))**.5*max(.2,np.max(quality[g])-.15)**1.5)
mask=np.zeros(len(mean)+T.shape[1],np.float32);mask[len(mean):]=1.;masks.append(mask);prob.append(max(1.,.27*sum(prob)))For every factor we train a goal-conditioned controller by hindsight relabelling on the prior data: the network sees the observation expressed relative to a fitted reference frame for the factor and the desired change of the factor's coordinates, and regresses the prior action. Relabelled goals are drawn at a random arc length along the factor's own motion rather than at a random time offset, and a fraction are drawn from the segments in which the factor actually changed, so that both the approach and the change itself are learned. Where a short action chunk predicts its own outcome well, the factor's controller is replaced by a chunk policy that samples several chunks and favours those consistent with the previous one. A count table over the prior data records, for each pair of factors, how much more often an edit of one factor succeeds when the other is in a given state, so that the controller can first establish a prerequisite before it attempts an edit that depends on it.
A travel-time graph over places
In the metric space we place up to 1,024 landmarks by -means, snapped to observed states. An edge between two landmarks costs the number of steps the prior data needed to travel between them plus 0.35 of a control horizon, inflated for rare transitions by , and shortest paths give a waypoint for each pair. A direction-aware refinement keys each place by the heading of arrival, since two trajectories can pass the same place in different physical states. The waypoint controller is the goal-conditioned actor above, re-aimed every six steps; this is the hierarchical use of a learned graph and a low-level goal-reaching policy familiar from offline goal-conditioned RL [9, 10].
Before the first reward: a search over hypothetical goals
Before any reward is seen, we treat the goal as an unknown point and the episodes as searches for it, in the spirit of Bayesian search for a lost object [11]. Candidate goal sites are drawn from the prior data with weights that favour low-occupancy states, stops, reversals and initial states. We weight them further by a topological analysis of the graph: on the travel-time potential from the current start we merge branches at their saddles and keep the persistent ones, and within each branch we favour sites near its tip.
Every candidate is credited once. If the closest approach of any online state to a candidate is (in units of a site radius), the candidate counts as searched with probability
and each parallel environment is credited with the increase in that probability over the candidates to which it is the closest.
def detect(gap):
return np.exp(-.60*np.minimum(12.,gap)**2.5)
def credit(gap,old,w):
nearest=np.argmin(gap,axis=0);value=np.minimum(old,gap[nearest,np.arange(len(nearest))])
delta=(detect(value)-detect(old))*w
return value,np.bincount(nearest,weights=delta,minlength=n)The next site for an explorer is chosen by an expected-gain rule: the unsearched mass along the whole route to a site (its "tube" through the graph), plus the unsearched mass of the site's branch, against a travel price that grows with the expected time of arrival and sharply once arrival would use most of the remaining episode. Sites already reserved by other parallel explorers count as largely searched.
def _survey_decide(cell,memory,reserved,trips,remaining,key,rule,xp,style):
# Credit each possible hidden goal once.
exposure=rule['tube'][cell].astype(xp.float32)/255.
existing=xp.maximum(memory,reserved);p=rule['p'];eta=rule['tau'][cell]
value=xp.einsum('bak,k->ba',xp.maximum(0.,exposure-existing[:,None,:]),p)
# Value other reachable sites beyond each arrival.
reg=rule['region'];same=(reg[:,None]==reg[None]);local=(1.-existing)*p
region_value=(local@same.T)/xp.maximum(1.,same.sum(1))**.56
fresh=(1.-existing)*p;gain=.00008+value+.51*fresh+.52*region_value
price=.49*xp.log1p(eta/110.)+1.20*xp.maximum(0.,eta/xp.maximum(35.,remaining[:,None])-.76)
score=xp.log(gain)+.43*xp.log(.16+p*len(p))+.42*xp.log(.09+rule['odds'])+(.19+.55*rule['sharp'])*rule['tip']-price-.75*xp.log1p(trips)
return xp.argmax(score+.36*key,axis=1).astype(xp.int32)Places are one kind of hypothesis; outcomes are the other. The same exploration runs a portfolio of four controller families, each of which proposes goals in its own terms: (0) the place search above; (1) a graph over discrete persistent switches, when play contains them; (2) single edits of one factor, drawn from the outcome modes that recur at the ends of prior interactions; and (3) compound programs of several factor edits, drawn from a bank of low-order goal predicates. Each explorer is assigned to a family at reset, with probability given by a family prior computed from the prior data (how much of the slow space is spatial, how many persistent factors exist, how much contact the factors show) and reweighted by each family's recent rate of newly searched goal mass. Before the first reward, the deployed policy is the family with the highest prior.
After the first reward: goal inference and a competence portfolio
A success turns the search into inference. Each successful end state is a positive example, and states sampled from online play are negatives. We represent a goal as a conjunction of at most seven clauses, each a ball in one factor's coordinates, possibly expressed relative to the initial state, and sample conjunctions by a Gibbs-style sweep that contains the positives and is penalized for every negative it fails to reject, with clause radii drawn from the remaining margin. The resulting posterior over conjunctions gives the targets for the compound controller, and the single-edit controller scores each factor edit by its posterior probability of satisfying the goal after the edit's predicted side effects.
Choosing which controller to run is a contextual bandit. Each family carries a Beta posterior on its success rate whose prior mean comes from the prior-data features, from how well the successes separate from online negatives, and from how many first successes the family produced.
def posterior():
prior_score=np.array([.25+1.25*motion_prior+.48*evidence,.28*complexity,.26+.42*contact,.26+.62*complexity+.42*contact])
prior_score+=.70*np.log1p(np.minimum(first,5.));logit=prior_score-.52*np.max(prior_score)
prior_mean=.08+.82/(1.+np.exp(-1.65*logit));weight=2.5+1.5*min(1.,len(pos)/6.)
a=weight*prior_mean+wins;b=weight*(1.-prior_mean)+np.maximum(0.,trials-wins)
valid=np.ones(nf,bool);valid[1]=bool(events)
return a,b,validOn top of that global estimate we fit a mixture of decision stumps over features of the initial state (its distance to each posterior clause and the remaining effort), each stump weighted by its Beta-Bernoulli Bayes factor, so that the competence of a controller can depend on where the episode starts. At deployment we take the controller with the best mean predicted success over recorded initial states, add up to two more that raise the per-state maximum by at least 0.008 on average, and deploy a policy that picks among them per episode by predicted competence. Replays of the command sequences that led to online successes enter the portfolio as two further arms.
def ship():
nonlocal ctx_model,valid_arms
if not pos:
# Online trials cover competing explanations. A deployed episode
# uses the controller with highest estimated prior success.
who=int(np.argmax(family_prior))
fn,st0=policy(who,0);api.deploy(fn,st0);return
ap,bp,valid=posterior();pa=ap-wins;pb=bp-np.maximum(0.,trials-wins)
rate=pa[-1]/(pa[-1]+pb[-1]);vmean=.38+.44*rate
pa=np.r_[pa,2.25*vmean,2.25*vmean];pb=np.r_[pb,2.25*(1.-vmean),2.25*(1.-vmean)]
valid_arms=np.r_[valid,pathbook is not None,pathbook is not None]
law=_competence_feature_law(geo,mk,atlas,query_data)
ctx_model=_competence_fit(pa,pb,contexts_log,law,len(pos))
ix=np.unique(np.linspace(0,len(starts)-1,min(len(starts),120),dtype=int));survey=np.asarray([starts[h] for h in ix])
ability,_=_competence_predict(survey,ctx_model,np);top=_competence_select_models(ability,valid_arms,3)
options0=[policy(min(int(arm),program),max(0,int(arm)-program)) for arm in top]
if len(options0)==1:
fn,st0=options0[0];api.deploy(fn,st0);return
model0=jax.tree_util.tree_map(jnp.asarray,ctx_model);choices=jnp.asarray(top)
def act(o,state,key):
which,t,stored=state;x=_normalize(o,mean,sd);y=jnp.concatenate((x,x@T),-1)
def choose(_):
prob,_=_competence_predict(y,model0,jnp);return jnp.argmax(prob[:,choices],axis=1).astype(jnp.int32)
which=jnp.where(t==0,jax.lax.cond(jnp.any(t==0),choose,lambda _:which,None),which)
actions=jnp.zeros((len(o),ad),jnp.float32);times=[];keys=jax.random.split(key,len(options0))
for i0,(fn,_) in enumerate(options0):
a,st=jax.lax.cond(jnp.any(which==i0),lambda v:fn(o,v,keys[i0]),lambda v:(jnp.zeros_like(actions),v),stored[i0])
actions=jnp.where((which==i0)[:,None],a,actions);times.append(st)
return actions,(which,t+1,tuple(times))
api.deploy(act,(np.zeros(b,np.int32),np.zeros(b,np.int32),tuple(v[1] for v in options0)))Online, 91% of episodes after the first reward exploit the competence model by Thompson-style draws and 9% keep exploring. Deployment is refreshed every 5,000 online steps and after each of the first eight successes.
Results
| Method | ① | ② | ③ |
|---|---|---|---|
| Success AUC ↑ | Success AUC ↑ | Success AUC ↑ | |
| GPT-6.2 Astra | 0.900 | 0.275 | 0.482 |
| RLPD | 0 | 0.004 | 0 |
| RND | 0 | 0 | 0 |
| ExPLORe | 0 | 0.037 | 0 |
| Online with trajectory skills | 0.076 | 0.007 | 0.022 |
| HILP | 0.002 | 0.353 | 0.346 |
| SUPE | 0.691 | 0.254 | 0.329 |
| SUPE + HILP | 0.002 | 0.454 | 0.669 |
| SUPE + empowerment | 0.780 | 0.209 | 0.127 |
| DSRL | 0.011 | 0.022 | 0.789 |
- ① Humanoid maze · medium navigation
- ② Ant soccer · arena exploration
- ③ Manipulation scene · multi-stage task
On HMaze-med SCOUT is ahead of every published baseline, with an AUC of 0.900 against 0.780 for the strongest baseline, SUPE + empowerment [6]. This is the setting on which our approach of finding the goal by search and then returning to it works as designed.
On AntSoccer and Scene SCOUT is ahead of the SUPE baseline it was compared against during development (0.254 and 0.329), with 0.275 and 0.482, but well behind the strongest baselines: SUPE with HILP skills [5] reaches 0.454 on AntSoccer and DSRL [7] reaches 0.789 on Scene. On AntSoccer we are also below the HILP skill baseline (0.353), and on Scene below SUPE with HILP skills (0.669). On both, the leading baselines are methods that act through a policy or skill space pretrained end to end on the prior data. Our own development runs showed a weak point of the method: discovering a goal that requires several objects to be in particular states, and repeating a success from fresh initial states.
How we got here
SCOUT grew by accretion over a long development session on public sibling tasks and on corpora we generated ourselves with independently chosen goals. Components were installed when they raised the integrated held-out success of matched development curves.
- Slow coordinates came first. Our first probe found that locomotion and object coordinates have different kinds of persistence, and we then compared short- and long-horizon changes of every coordinate. A first graph policy on a development task found its hidden goal after 7,096 steps and succeeded from five of six held-out starts at 24,000 steps, where the starter had no success in an 18,000-step run.
- Fast directions had to leave the command. On another development task with the goal supplied for diagnosis, removing fast motion directions from the controller's command raised success from zero to 11 of 12 starts. This is the origin of the separate command projection.
- One shared actor could not control objects. On a fixture with a movable object the behaviour-cloned policy usually reached the object and then stalled. With the target supplied, a shared actor reached at most 3 of 12 starts on any of three goals, while separate controllers for the factor groups found in play reached 9, 10 and 10 of 12, and later 10, 10 and 7 of 12 with a different relabelling. This is why every factor has its own controller.
- Prerequisites are visible in play. For one learned movement, the policy reached 11 of 12 targets when another factor was in the predicted enabling state, against 4 of 12 otherwise; for a second, 11 of 13 against 2 of 11. These counts motivated the access table.
- Covering landmarks is not the same as searching. On a hard development fixture the agent visited 96% of sampled landmarks at a tight tolerance and still found no reward, because the controller abandoned a target as soon as it entered the target's graph cell; we responded by pursuing a precise point inside each cell. Later, searching the interiors and tips of reachable branches instead of our earlier branch search cut the steps to the first success in two development runs from 61,816 and 27,824 to 22,192 and 24,392.
- A moving body coordinate looked like an object. On the same kind of fixture, a body coordinate was mistaken for a manipulated object, and exploration was spent on it. Requiring a candidate object to rest at distinct positions while the rest of the system moves removed the error and more than halved the time to the first success in one hard development run.
- One success is ambiguous. On a synthetic task with two hidden reset-relative placements, three successful trajectories were enough for the version-space estimator to infer both relations; with one, it often chose the wrong relation. We then tested resolving the ambiguity by trying different placements online and learning from the outcomes.
- A learned response model unlocked contact tasks. On a walled contact fixture, planning with a model of where a pushed object goes found one goal in 3,160 interactions, where direct pursuit had no success in 135,000. On an open fixture, a controller trained on the consequences of later commands reached 19 to 21 of 24 held-out resets, against 5 to 11 for one trained on immediate progress.
- Better prediction did not mean better control. Two changes that reduced model error were abandoned. A correction fitted on 650 real online commands reduced held-out displacement error on the walled fixture from 0.682 to 0.496 but lowered the mean learning-curve area across six full runs, and a change that reduced action-prediction error made the deployed policy worse on several tasks.
- The installed versions were each a measured step. Inferring which command produced a play segment raised the mean integrated held-out success over 11 matched development curves from 0.304 to 0.349; planning compound edits from transitions witnessed in play raised it over six matched development runs from 0.138 to 0.149; a reference-frame estimator raised it over 12 paired runs from 0.162 to 0.209; and the direction-aware route graph raised it over eight curves from 0.723 to 0.777, while losing ground on one development task.
- Deploying the prior's choice before the first reward. Our last change replaced a randomized choice of the deployed family with the family the prior ranks highest, after matched trials favoured it.
All figures in this section are our own development measurements, recovered from the trace.
Limitations
- The gains are concentrated on HMaze-med. On AntSoccer and Scene SCOUT is behind the strongest published baselines by a wide margin, and on each of them below a second baseline as well. The method's advantage, finding a goal by explicit search and then returning to it, does not carry over to every setting.
- Repeating a success is the weak link. In our development runs the main remaining failure was transferring sparse successes on multi-object goals to new initial states; one development run found a single online success and had no held-out success at the end. Goal inference from a handful of positives is ambiguous, and the competence model needs many episodes before its per-state stumps carry weight.
- The method is a large hand-built system. The submission is close to 2,900 lines with many numerical constants (detection exponents, travel prices, prior weights) set by development runs rather than derived. We have no ablation of the final system as a whole, and several components interact; the contribution of each to the scored results is not separately measured.
- Its assumptions are structural. SCOUT assumes that the goal is a sparse conjunction of outcomes that play shows to be controllable, and that slow, persistent coordinates carry the task. A goal that depends on a quantity play never varies, or on a fast coordinate, is outside its hypothesis space.
- Development was on sibling tasks. Every design choice was tuned on public sibling tasks and self-generated corpora, and the submitted code keys no constant on the setting, which may partly explain the uneven results.
References
- Philip J. Ball, Laura Smith, Ilya Kostrikov et al. (2023). Efficient Online Reinforcement Learning with Offline Data. ICML.
- Qiyang Li, Jason Zhang, Dibya Ghosh et al. (2023). Accelerating Exploration with Unlabeled Prior Data. NeurIPS.
- Yuri Burda, Harrison Edwards, Amos Storkey et al. (2019). Exploration by Random Network Distillation. ICLR.
- Max Wilcoxson, Qiyang Li, Kevin Frans et al. (2025). Leveraging Skills from Unlabeled Prior Data for Efficient Online Exploration. ICML.
- Seohong Park, Tobias Kreiman, Sergey Levine (2024). Foundation Policies with Hilbert Representations. ICML.
- Ishir Garg, Vivek Myers, Qiyang Li et al. (2026). Measuring Empowerment from Offline Data for Intrinsically Motivated Exploration.
- Andrew Wagenmaker, Mitsuhiko Nakamoto, Yunchu Zhang et al. (2025). Steering Your Diffusion Policy with Latent Space Reinforcement Learning. CoRL.
- Seohong Park, Kevin Frans, Benjamin Eysenbach et al. (2025). OGBench: Benchmarking Offline Goal-Conditioned RL. ICLR.
- Seohong Park, Dibya Ghosh, Benjamin Eysenbach et al. (2023). HIQL: Offline Goal-Conditioned RL with Latent States as Actions. NeurIPS.
- Seohong Park, Kevin Frans, Deepinder Mann et al. (2025). Horizon Reduction Makes RL Scalable. NeurIPS.
- Sam Davey, Neil Gordon, Ian Holland et al. (2016). Bayesian Methods in the Search for MH370. SpringerBriefs in Electrical and Computer Engineering.