Introduction
The setting is unforgiving. The agent receives a large dataset of trajectories collected in its environment, with no rewards and no task labels, and the behaviour in it has nothing to do with the task it will face. It then gets a fixed budget of online steps on a task whose reward is on every step until an unknown success condition is met. Until the first success, the reward carries no information at all; and what is measured is the deployed policy's success along the budget, so a method that finds the goal late, or finds it and then takes long to exploit it, pays for every step.
The field's answers differ in how they use the prior data. ExPLORe [1] labels the prior transitions with an optimistic exploration bonus and replays them in an RLPD-style learner [2], so that the prior data pulls exploration towards the regions it covers. SUPE [3] pretrains trajectory skills on the prior data and replays the prior data, labelled with skills and optimistic rewards, to a high-level agent that composes the skills online; its variants replace the trajectory skills with Hilbert-representation skills [4] or an empowerment objective measured from the offline data [5]. DSRL [6] instead steers a pretrained generative policy through its latent noise. The optimistic bonus in these methods is usually random network distillation [7].
We started from two diagnoses of these pipelines. First, a distillation bonus on raw (or globally standardised) observations measures novelty in whatever coordinates have the most variance, and in these observation vectors it is often fast joint velocities rather than the slow coordinates that the task is about. Second, once the agent has seen the goal a handful of times, the bottleneck shifts from exploration to consolidation: propagating a few successes through a long horizon quickly enough that the deployed policy starts succeeding. A negative step-count value learned by a smooth critic propagates slowly and extrapolates badly away from the data. PACER addresses the first with a decomposition of the observation learned from the prior data and an elliptical pseudo-count on its slow part, and the second with a positive reachability value, prior-data relabelling around verified goals, and gated multi-step backups along the prior trajectories.
Method
PACER is one file and one pass: decompose the observation, pretrain skills, then run two coupled actor-critic streams online, one for exploration and one for the task, over up to eight parallel environments.
Decomposing the observation from the prior data
Let be the standard deviation of coordinate over the prior data and the standardised one-step change. We call the persistence of coordinate : slow coordinates (positions) have large persistence, fast ones (velocities, joint noise) small. A coordinate is a candidate passive object coordinate when it is persistent () and is frozen in a large fraction of prior transitions, scored smoothly by . Blocks of four or two consecutive coordinates whose squared norm is constant at one are detected as quaternions and pairs and are excluded from the goal coordinates, since distances in them are not meaningful positions.
if np.any(non_te):
sub_idx = np.flatnonzero(non_te)
if len(sub_idx) > 400_000:
sub_idx = sub_idx[:: len(sub_idx) // 400_000]
diffs_std = (nobs_raw[sub_idx] - obs_raw[sub_idx]) / obs_std_np[None, :]
diff_rms_std = np.sqrt(np.mean(diffs_std.astype(np.float64) ** 2, axis=0) + 1e-10).astype(np.float32)
p_static = np.mean(np.abs(diffs_std) < 1e-3, axis=0).astype(np.float32)
else:
diff_rms_std = np.ones((od,), np.float32)
p_static = np.zeros((od,), np.float32)
persistence = 1.0 / np.maximum(diff_rms_std, 1e-4)
base_slow = np.clip(persistence - 1.5, 0.0, 100.0).astype(np.float32)
s_obj = np.where(persistence > 8.0, 1.0 / (1.0 + np.exp(-12.0 * (p_static - 0.45))), 0.0).astype(np.float32)
s_obj_no_spin = np.where(is_rot_spin, 0.0, s_obj).astype(np.float32)
eta_obj = float(np.max(s_obj_no_spin)) if od > 0 else 0.0Two weightings follow. The curiosity weights , with small weights zeroed, define the space in which novelty is measured. The goal subspace keeps the coordinates whose (object-favouring, spin-excluded) weight is at least 0.60 of the root-mean-square weight. Before this cut each coordinate is attenuated by with , so that when the decomposition finds object coordinates the goal subspace becomes the objects. Finally each coordinate gets an action scale, the root-mean-square displacement it undergoes over one four-step chunk among prior chunks in which it moves; distances in the goal subspace are always measured in these units, which makes a single radius mean "about one chunk of controllable motion" in every coordinate.
Skills with a bounded, prior-whitened action space
We pretrain a skill model on prior chunks of steps: an encoder that also sees the chunk's weighted slow displacement, a state-conditioned prior with , a per-step decoder , and an outcome head that predicts the slow displacement from . The loss is the decoder's negative log-likelihood, plus times the outcome error, plus , where is adjusted by dual ascent towards a KL target of nats, so that the skill carries a comparable amount of information whatever the embodiment.
The online actors do not output . They output a squashed ten-dimensional , every coordinate strictly between minus one and one, which is mapped bijectively onto a whitened coordinate of the prior by a radial tanh,
with and . The origin is the prior's mean skill, every is a skill the prior considers plausible within about four standard deviations, and the inverse map lets us encode every prior chunk into the actor's own action space. Those encoded actions are what make the prior data replayable by both critics, as in SUPE [3]; latent dimensions that the encoded prior data does not use (standard deviation at most 0.05) are masked out.
def u_to_xi(u):
r = KAPPA * jnp.sqrt(jnp.sum(u * u, axis=-1, keepdims=True) + 1e-12)
scale = jnp.where(r > 1e-3, jnp.tanh(r) / r, 1.0 - (r * r) / 3.0)
return (B_Z * scale) * u
def xi_to_u(xi):
rho = jnp.sqrt(jnp.sum(xi * xi, axis=-1, keepdims=True) + 1e-12)
t = jnp.minimum(rho / R_MAX, 0.992)
u_norm = jnp.arctanh(t) / KAPPA
scale = jnp.where(rho > 1e-4, u_norm / rho, 1.0 / B_Z)
return jnp.clip(xi * scale, -0.995, 0.995)Exploration: an elliptical pseudo-count on the slow manifold
For exploration we replace a distillation bonus by an elliptical pseudo-count. A state is embedded by multi-scale random Fourier features of its curiosity-weighted standardised coordinates, with features whose frequency scales are 3.5 for one third of them, 8 for another third and 18 for the rest; we accumulate the Gram matrix of every state visited online, with , and score
where of the chunk's weighted change in object coordinates rewards moving objects, when there are any. is about one for a direction of feature space never visited and decays as visits accumulate, without any network to train or to drift; the inverse Cholesky factor is refreshed every fourth training round. The exploration stream (an 8-head critic and its own actor) is trained on this bonus for online chunks and, as in ExPLORe [1], on prior chunks relabelled with the same bonus, including a discounted sum of the bonus over a 20-step prior segment when that segment is used as a bridge (below).
@jax.jit
def eval_fepc_nu(inv_lt_bf16, obs_raw_b):
psi = fepc_psi(obs_raw_b).astype(jnp.bfloat16)
proj = (psi @ inv_lt_bf16).astype(jnp.float32)
return FEPC_LAMBDA * jnp.sum(proj * proj, axis=-1)
@jax.jit
def eval_gfepc_nu(ginv_lt_bf16, obs_raw_b):
gpsi = gfepc_psi(obs_raw_b).astype(jnp.bfloat16)
proj = (gpsi @ ginv_lt_bf16).astype(jnp.float32)
return FEPC_LAMBDA * jnp.sum(proj * proj, axis=-1)
def curiosity_bonus(inv_lt_bf16, obs_raw_b, nobs_raw_b):
nu = eval_fepc_nu(inv_lt_bf16, nobs_raw_b)
base_b = FEPC_COEFF * jnp.clip(nu, 0.0, FEPC_CAP)
return base_b * (1.0 + obj_impact_gain(obs_raw_b, nobs_raw_b))The task value as positive reachability
The task stream learns not but its positive affine image
With reward per step, the chunk reward is for a -step chunk, and the Bellman equation for becomes on every non-terminal chunk: the reward is exactly zero away from the goal, and only a terminal chunk pays , clipped to . is then essentially , with the time to reach the goal. Its critic (10 LayerNorm heads, as in RLPD [2]) is initialised with a small final layer, so at initialisation, which is already the exact fixed point everywhere the goal is not reached; nothing has to be unlearned before the first success, and no phantom value appears in regions that have not been connected to a goal. The per-step discount depends only on the episode horizon from the task's interface: , or for horizons up to 800, up to 1200, and beyond.
How pessimistic the target is depends on what the decomposition found, not on the setting's name. When object coordinates are present () and the horizon is at most 850, the target is the minimum of two random heads and the actor maximises the ensemble mean minus standard deviations; otherwise the target is a single random head and the actor maximises the plain ensemble mean. The task actor is a soft actor-critic actor over with a small penalty towards the prior's mean skill.
Gated 20-step bridges along the prior data
Every prior chunk whose 20-step continuation is contiguous can be used as a 20-step bridge. For a prior chunk we form both the one-chunk target and the 20-step target,
where hits inside the segment terminate it, and use only when the ensemble mean says it reaches further, (the exploration stream gates the same way with a minimum of a pair of its heads and a margin of 0.15). Because the segment's actions are the ones that were actually taken, is the value of a path that exists in the data; choosing it when it is larger accelerates the wavefront of value along prior trajectories, and, as the design intends, the gate stops firing by itself once the four-step values have caught up.
nmu_t, nls_t = act_mod.apply(sc_t["a_eval"], nobs_all)
nu_t, _ = squashed_sample_masked(nmu_t, nls_t, k_at1)
t_ws_t = c_task_mod.apply(sc_t["t_task"], nobs_all, nu_t)
w_gate_mean = jnp.mean(t_ws_t, axis=0)
perm_t = jax.random.permutation(k_pt, N_Q_TASK)
wt_evl = eval_task_target_head(t_ws_t, perm_t)
wt_on = wt_evl[:RL_BATCH_HALF]
wt_off1_evl = wt_evl[RL_BATCH_HALF : 2 * RL_BATCH_HALF]
wt_offkh_evl = wt_evl[2 * RL_BATCH_HALF :]
yw1_gate = mb["rw1_t"] + gam_t_h * mb["m1_t"] * w_gate_mean[RL_BATCH_HALF : 2 * RL_BATCH_HALF]
ywkh_gate = mb["rwkh_t"] + gam_t_kh * mb["mkh_t"] * w_gate_mean[2 * RL_BATCH_HALF :]
use_br_t = mb["cb"] & (ywkh_gate > yw1_gate + BRIDGE_MARGIN_TASK_W)
yw1_evl = mb["rw1_t"] + gam_t_h * mb["m1_t"] * wt_off1_evl
ywkh_evl = mb["rwkh_t"] + gam_t_kh * mb["mkh_t"] * wt_offkh_evl
yw_off = jnp.where(use_br_t, ywkh_evl, yw1_evl)
yw_on = mb["on_rw"] + mb["on_gam"] * mb["on_mask_t"] * wt_on
yw = jax.lax.stop_gradient(
jnp.clip(jnp.concatenate([yw_on, yw_off], axis=0), 0.0, U_SCALE)
)Before the first success: frontier beacons
The task stream is not idle before the reward is seen. After 10,000 online steps we choose a virtual goal among 8,192 prior states spread evenly through the dataset. Each candidate is scored by a second elliptical pseudo-count, restricted to the goal subspace, and by how far it lies from the mean of the online visits and from the last 48 beacons:
The beacon's radius is the 0.25% quantile of the candidates' distances to it (clipped to action-scale units), so a beacon covers about the same share of the prior data in every dimensionality. Prior states inside the radius are labelled as successes, the task stream is reset and trained on them in a burst, and two of the eight environments run the task policy towards the beacon while the other six keep exploring. A beacon is replaced when the goal-subspace count at it falls below (checked only after a minimum hold of steps, and only for beacons whose initial count exceeded 0.20), that is, when it has been reached, or after a hold of steps; states near tried beacons are excluded from later choices. The beacons are directed exploration that reuses exactly the machinery the real goal will need.
if need_new_beacon:
nu_g_all = np.clip(
np.asarray(eval_gfepc_nu(gfepc_inv_lt, front_cand_obs)), 0.0, 1.5
)
vis_mean_ug = (vis_ug_sum / max(1, vis_ug_count)).astype(np.float32)
anchors = [vis_mean_ug] + prev_beacon_ugs[-48:]
anc_mat = np.stack(anchors, axis=0)
d_rep = np.min(act_metric_pair_np(front_cand_ug_np, anc_mat, ones_w_g), axis=-1)
d_rep_norm = d_rep / (float(np.median(d_rep)) + 1e-6)
if np.all(tried_cand_mask):
tried_cand_mask[:] = False
scores = np.where(
tried_cand_mask,
-1.0,
((nu_g_all + 0.05) ** 1.5) * (1.0 + 0.65 * d_rep_norm),
)
beacon_idx = int(np.argmax(scores))
beacon_init_nu = float(nu_g_all[beacon_idx])
target_ug = front_cand_ug_np[beacon_idx].copy()
prev_beacon_ugs.append(target_ug)
diff_c = np.abs(front_cand_ug_np - target_ug[None, :])
dg_cand = np.maximum(
np.sqrt(np.mean(diff_c * diff_c, axis=-1) + 1e-12),
0.75 * np.max(diff_c, axis=-1),
)
tau_bcn = float(
np.clip(
np.quantile(dg_cand, FRONTIER_QUANTILE),
0.35,
3.5 * TAU_ACT_GOAL,
)
)
cut_tried = float(np.quantile(dg_cand, 0.04))
tried_cand_mask[dg_cand <= max(cut_tried, 1.5 * tau_bcn)] = TrueAfter the first success: relabelling the prior data around verified goals
The first success resets the task stream and starts a different labelling. Up to 96 prototypes are chosen by farthest-point selection among the goal states reached online, in action-scale units of the goal subspace (once there are at least four verified goals, each coordinate is divided by the square root of one plus the goals' variance in it over the square of 1.5). A prior state is relabelled as a success when its distance to the nearest prototype is below 1.28, unless an online state that did not succeed lies closer: the up to 512 non-goal online states nearest the prototypes (those within three radii but not inside a quarter radius) act as hard negatives, and a prior state is kept only if it is closer to a goal than times its distance to the nearest negative. The relabelling is refreshed every 2,000 steps.
d_pos_np = np.concatenate(d_parts, axis=0)
in_ball_np = d_pos_np < TAU_ACT_GOAL
ib_idx = np.flatnonzero(in_ball_np)
if len(ib_idx) > 0 and neg_ring_size > 0:
n_ug_all = neg_ring_cpu[:neg_ring_size, g_dims] / act_scale_g_np[None, :]
d_ng = np.min(act_metric_pair_np(n_ug_all, proto_ug_np[:n_p], var_atten), axis=-1)
valid_neg_cand = np.flatnonzero(
(d_ng > 0.25 * TAU_ACT_GOAL) & (d_ng < 3.0 * TAU_ACT_GOAL)
)
if len(valid_neg_cand) > 0:
if len(valid_neg_cand) > MAX_HARD_NEGS:
ord_h = np.argpartition(d_ng[valid_neg_cand], MAX_HARD_NEGS)[:MAX_HARD_NEGS]
chosen = valid_neg_cand[ord_h]
else:
chosen = valid_neg_cand
hn_ug = n_ug_all[chosen]
keep_ib = np.ones((len(ib_idx),), dtype=bool)
for s_ib in range(0, len(ib_idx), 2048):
e_ib = min(s_ib + 2048, len(ib_idx))
sub_idx_ib = ib_idx[s_ib:e_ib]
d_neg_sub = np.min(
act_metric_pair_np(p_nobs_ug_np[sub_idx_ib], hn_ug, var_atten), axis=-1
)
keep_ib[s_ib:e_ib] = d_pos_np[sub_idx_ib] < (0.95 * d_neg_sub)
in_ball_np[ib_idx] = keep_ibThe schedule then shifts towards consolidation. On the first success the task stream is trained in an 80-block burst and the result deployed at once, with a 36-block burst when the fourth success arrives; six of the eight environments (later seven) run the task policy, one or two of them deterministically; training runs every 8 environment steps between the first and the 35th success and every 16 otherwise; and the deployed actor is an exponential moving average whose rate falls from 0.005 to 0.0015 as successes accumulate. When the agent reaches the goal, its last four steps are also encoded into a skill and stored as an extra terminal transition, so that a chunk ending exactly at the success is in the buffer. Before any success the deployed policy is the exploration actor; after it, the averaged task actor with the decoder's mean action, holding each skill for four steps.
Results
| Method | ① | ② | ③ |
|---|---|---|---|
| Success AUC ↑ | Success AUC ↑ | Success AUC ↑ | |
| Gemini 4 Carbon | 0.911 | 0.769 | 0.550 |
| 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 PACER reaches an AUC of 0.911, against 0.780 for the strongest published baseline there, SUPE + empowerment [5], and 0.691 for SUPE. On AntSoccer the margin is larger: 0.769 against 0.454 for SUPE with HILP skills [4]. RLPD with min-reward labels, online RND and ExPLORe stay at or near zero on every setting.
Scene is different. PACER's 0.550 is well above SUPE (0.329) and the HILP skills baseline (0.346), but below SUPE with HILP skills (0.669) and below DSRL [6], which reaches 0.789 there. The published baselines are themselves ordered very differently across settings: the strongest on HMaze-med is far behind the leaders on Scene, and the strongest on Scene is near zero on HMaze-med and AntSoccer. PACER is clearly ahead on HMaze-med and AntSoccer and behind two baselines on Scene; it is not the best method everywhere.
How we got here
PACER was built in versions, each run against the reference baselines in our own development runs (a single seed per setting); the figures below are our development measurements, not the evaluation above.
- The starting point was a measurement, not a method. Before writing a method we read the SUPE and offline-empowerment papers and inspected the prior datasets. Raw coordinate standard deviations differed by a factor of 77 to 266 within a single observation vector, and in one dataset we estimated that over 95% of the energy an unnormalised distillation bonus sees comes from fast joint velocities rather than position. That is what the persistence decomposition and the slow-coordinate curiosity weights are for.
- Our first versions combined the decomposition, the skill space and an RLPD-style learner with a negative value. The third version changed several things at once, among them multi-step bridges along the prior data; first successes arrived markedly earlier, and our development mean AUC on a development subset rose by 51.5% over the first version, to 0.3727. The fourth version, which together with other changes replaced the distillation bonus by the elliptical pseudo-count, raised the same subset's mean to 0.6247; before that switch we compared a distillation bonus on a smooth network with one on multi-scale random Fourier features.
- A fixed frontier radius collapsed with dimension. Our first beacons used a fixed radius in the curiosity space; we measured the fraction of prior states it covers fall from 0.62% to 0.0035% as that space grew from a few to about twenty dimensions, so almost no prior state was labelled and the beacon taught almost nothing. Moving beacons to the goal subspace with a quantile radius fixed that.
- Consolidating a single success was the hard part. We compared the negative value, the positive reachability value and a log-reachability variant head-to-head on a probe with a single verified goal. The same probe showed that an actor-bootstrapped skill critic extrapolates upward on skills outside the data (we logged 83.69 for the actor's skill against 62.70 for an in-sample state-value estimate at the same state). We probed in-sample (expectile) consolidation as a remedy; the final method instead relies on online rollouts of the task policy, to which most environments switch after the first success, to push such values down where the policy actually goes.
- Pessimism compounded over long horizons. Comparing our versions with the ExPLORe baseline, which uses a single critic minimum, we found that a two-head minimum plus a confidence bound compounds over long horizons and stalls value propagation. The single random-head target, with the two-head minimum and the bound kept only where the decomposition finds objects and the horizon is short, came from that comparison.
- Value leaked across barriers. A smooth critic assigns value to prior states close to the goal in coordinates but not reachable from it; the hard-negative filter in the relabelling is the response. In the offline probes we logged during development, the relabeller's precision on prior data ranged from 0.575 to 1.000 and was at least 0.94 in most cases. Over-relabelling was also behind transient dips in the learning curve of an earlier ensemble-classifier goal detector, which the prototype relabeller replaced; the fourth version's development mean over every setting was 0.5332, and that of the seventh version, which brought in the prototype relabeller together with several other changes, 0.6184.
- Two plausible refinements failed. Filtering bridges to remove sharp turns kept 68.3% of them and starved the value wavefront at sharp turns (our probe logged a closest approach to the goal of 54.40 against 21.51 for the unfiltered bridges at the same point), so every contiguous bridge is kept. A sweep of the per-step discount on a single-success probe preferred the largest value tried, , over 0.9975, 0.995 and (without bridges) 0.9965, consistent with the near-one discounts in the final code. We also probed a geodesic-potential route and Hilbert-representation distances [4] for frontier selection; neither is in the final method.
- The submitted version added the goal-subspace pseudo-count for beacons, the structure-dependent conservatism and the phase-dependent consolidation schedule with the two-stage moving average, which is meant to remove late evaluation dips once a task is solved. Its development mean AUC was 0.7628. A later version with further changes reached 0.7528 under the same development protocol, so we kept this one.
Limitations
- Scene is not won. Two published baselines are ahead of PACER there, one of them by a wide margin, and our results do not say which of PACER's mechanisms is responsible for the gap.
- The method carries many hand-set constants. Thresholds in the decomposition (persistence 8, static fraction 0.45, goal weight 0.60), the relabelling radius 1.28, the beacon quantile 0.0025, the bridge margins and the consolidation schedule were all chosen during development, with one seed per setting. None is keyed on a setting's name, but the switch between two-head and single-head targets depends on a horizon threshold (850) chosen in development, and it behaves like a per-environment choice made through a data statistic.
- The decomposition assumes structure in the observation. It assumes that the task is defined by slow coordinates, that object coordinates are frozen when untouched, and that rotations appear as unit-norm blocks. An observation that is, for example, an image embedding or a rotated mixture of coordinates would break each of these, and the relabeller's assumption that success is decided by proximity in the goal subspace with it.
- No ablation of the final version. The contribution of each component is inferred from version-to-version comparisons in which several things changed at once, and from targeted probes on single settings. We cannot say, for instance, how much of the gain on AntSoccer comes from the beacons and how much from the consolidation schedule.
- Complexity. The method is over 1,800 lines with two actor-critic streams, two pseudo-counts, two relabelling regimes and a phase schedule. It is the same algorithm on every setting, but it is not a single modular component that could be dropped into another learner.
References
- Qiyang Li, Jason Zhang, Dibya Ghosh et al. (2023). Accelerating Exploration with Unlabeled Prior Data. NeurIPS.
- Philip J. Ball, Laura Smith, Ilya Kostrikov et al. (2023). Efficient Online Reinforcement Learning with Offline Data. ICML.
- 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.
- Yuri Burda, Harrison Edwards, Amos Storkey et al. (2019). Exploration by Random Network Distillation. ICLR.