Introduction
Offline goal-conditioned RL asks for a policy that reaches any goal state , learned from a fixed dataset of unlabelled trajectories. In this task the policy class, the goal relabelling for the actor and the policy-extraction rule are fixed: the actor is trained by DDPG with a behaviour-cloning term against a signal that the value-learning rule supplies [1]. What we design is that signal: what the critic represents, what it is trained on, and how its targets are formed.
Two requirements make this difficult. Values must propagate over horizons of thousands of steps, and a one-step temporal-difference backup, as in goal-conditioned implicit Q-learning (the starter [2]), moves information one transition per iteration and accumulates bias along the way. And the policy must reach goals that no single trajectory in the data connects, which needs a value with the triangle-inequality structure of a shortest-path distance, so that two partial routes compose into one. Monte Carlo contrastive critics [3] avoid long bootstrap chains but are fitted to the behaviour policy's own futures and do not compose. Quasimetric critics [4] build the triangle inequality into the architecture. Temporal metric distillation [5] couples a quasimetric with a temporal backup, multistep quasimetric estimation [6] extends that backup through waypoints many steps ahead, and transitive RL [7] composes values through midpoints in a divide-and-conquer update.
Method
We keep the multistep quasimetric recipe and change how its bootstrap target is computed. We call the result TMQE, target-stabilised multistep quasimetric estimation.
A quasimetric value over state-action and goal embeddings
The critic has two networks, each a two-member ensemble of 512-wide, three-layer MLPs with layer normalisation and a 512-dimensional output: embeds a state together with an action and embeds a state used as a goal or waypoint. The value is the negative of a quasimetric distance of the metric-residual form. The 512 coordinates are split into components of 64; on each, half the coordinates contribute an asymmetric max term and half a Euclidean term,
The max term makes asymmetric, and both terms satisfy the triangle inequality, so the critic cannot represent a route from to that is longer than a route through any intermediate state. The normalisation by the square root of the latent size follows the multistep quasimetric implementation [6].
def mrn_distance(self, x, y):
k = self.components
def component(a, b):
eps = 1e-8
d = a.shape[-1]
mask = (jnp.arange(d) < d // 2).astype(a.dtype)
max_part = jax.nn.relu(jnp.max((a - b) * mask, axis=-1))
l2_part = jnp.linalg.norm((a - b) * (1.0 - mask) + eps, axis=-1)
return max_part + l2_part
x_split = jnp.stack(jnp.split(x, k, axis=-1), axis=-1)
y_split = jnp.stack(jnp.split(y, k, axis=-1), axis=-1)
dists = jax.vmap(component, in_axes=(-1, -1), out_axes=-1)(x_split, y_split)
return dists.mean(axis=-1) / jnp.sqrt(x.shape[-1])Waypoints from the same trajectory
For each transition index we draw two future indices from the same trajectory. The value goal lies a geometric offset ahead, and the waypoint a geometric offset ahead with ; both are clipped at the end of the trajectory, and the waypoint is clipped again so that it never lies beyond the goal, . Value goals are drawn only from the future of the same trajectory: the random-goal branch of the helper is kept but switched off. Inside the loss, each waypoint is replaced by the next state with probability 0.2, in which case its offset is .
@staticmethod
def _sample_traj_goals(data, idxs, discount):
n = len(idxs)
finals = data.final_state_idxs(idxs)
random_goal_idxs = data.random_idxs(n)
offsets = np.random.geometric(1.0 - discount, size=n)
offsets = np.minimum(offsets, finals - idxs)
traj_idxs = idxs + offsets
# This is the MQE value-goal distribution (future-only). Keeping the
# random branch in the helper makes the sampler robust to later changes.
goal_idxs = np.where(np.random.rand(n) < 1.0, traj_idxs, random_goal_idxs)
return goal_idxs, offsets.astype(np.float32)
def make_batch(self, data, idxs):
value_idxs, value_offsets = self._sample_traj_goals(data, idxs, self.discount)
mid_idxs, mid_offsets = self._sample_traj_goals(data, idxs, self.lambda_)
mid_idxs = np.minimum(mid_idxs, value_idxs)
mid_offsets = np.minimum(mid_offsets, value_offsets)
return {
'value_goals': data.obs(value_idxs),
'intermediate_value_goals': data.obs(mid_idxs),
'intermediate_value_goals_offsets': mid_offsets.astype(np.float32),
}The LinEx backup through a slow target
For a batch of transitions we compute the distance of every state-action embedding to every value goal, , and the bootstrap distance from each waypoint to every goal, , with gradients stopped. With and the waypoint offset, the backup divergence is the LinEx loss
Setting its derivative in to zero gives : the distance from to the goal should equal the distance from the waypoint plus steps of cost. The loss is asymmetric, penalising overestimates of the distance exponentially and underestimates linearly, and the linear branch above keeps the exponential from overflowing early in training. Because the waypoint can lie up to the goal itself, one update can carry information across many steps at once, which is what makes the backup multistep [6].
Two terms complete the loss. The diagonal pairs , where the goal is a real future of the transition, are blended with the full matrix by a per-setting weight , either 0.5 or 1.0, so . And a smooth action-invariance term, , pulls the state-action embedding of a data action towards the embedding of its state [5], so that the bootstrap, which embeds the waypoint without an action, and the online side, which embeds an action, measure the same distance.
The change we make is the bar on . In the multistep quasimetric implementation we started from, the bootstrap distance is computed with the same goal network that is being trained, so both ends of the target move with every step. We compute both ends of the target with a Polyak-averaged copy of the goal network, updated after every gradient step with rate ,
while the online side, and the actor's signal, keep the current and . The target network is initialised as a copy of . Its purpose is to remove the interaction in which an update to changes the target it is being regressed towards.
def critic_loss(self, network, batch, grad_params, rng):
n = batch['observations'].shape[0]
key = jax.random.fold_in(rng, 0)
use_next = jax.random.bernoulli(key, p=self.next_state_sample, shape=(n,))
mask = use_next.reshape((n,) + (1,) * (batch['observations'].ndim - 1))
middle_goals = jnp.where(mask, batch['next_observations'], batch['intermediate_value_goals'])
phi = network.select('phi')(batch['observations'], batch['actions'], params=grad_params)
psi_s = network.select('psi')(batch['observations'], params=grad_params)
psi_g = network.select('psi')(batch['value_goals'], params=grad_params)
# Bootstrap representations are delayed to reduce the moving-target
# interaction between the two sides of the quasimetric.
psi_mid_target = network.select('target_psi')(middle_goals)
psi_g_target = network.select('target_psi')(batch['value_goals'])
dist = self.mrn_distance(phi[:, :, None], psi_g[:, None, :])
dist_next = self.mrn_distance(psi_mid_target[:, :, None], psi_g_target[:, None, :])
action_dist = self.mrn_distance(psi_s, phi)
invariance = jnp.square(jnp.exp(-action_dist) - 1.0).mean()
dist_next = jax.lax.stop_gradient(dist_next)
delta = dist - dist_next
clipped = jnp.minimum(delta, self.t)
gamma_k = self.discount ** jnp.where(use_next, 1.0,
batch['intermediate_value_goals_offsets'])[None, :, None]
divergence = jnp.where(delta > self.t, delta, gamma_k * jnp.exp(clipped) - dist)
diagonal = jnp.diagonal(divergence, axis1=1, axis2=2)[..., None]
divergence = divergence * (1.0 - self.diag_backup) + diagonal * self.diag_backup
backup = divergence.mean()
total = backup + invariance
return total, {'backup_loss': backup, 'action_invariance_loss': invariance,
'distance': dist.mean()}What the actor sees
The actor maximises , the distance of the more pessimistic of the two ensemble members, computed with the online networks. The target copy is used only inside the critic loss.
def actor_q(self, network, observations, actions, goals):
phi = network.select('phi')(observations, actions)
psi = network.select('psi')(goals)
distances = self.mrn_distance(phi, psi)
return -jnp.max(distances, axis=0)
def after_update(self, old_params, new_params):
new_params = dict(new_params)
new_params['modules_target_psi'] = jax.tree_util.tree_map(
lambda p, tp: p * self.target_tau + tp * (1.0 - self.target_tau),
old_params['modules_psi'], old_params['modules_target_psi'])
return new_paramsPer setting we set only three constants: the actor's behaviour-cloning coefficient (0.01, 0.03 or 1.00, the values the multistep quasimetric reference of this task uses, and lower than the starter's where they differ), the discount (0.99 or 0.995) and the diagonal weight . Every other constant is shared: batch size 256, , , , next-state probability 0.2.
Results
| Method | ① | ② | ③ |
|---|---|---|---|
| Success rate ↑ | Success rate ↑ | Success rate ↑ | |
| GPT-6.2 Astra | 51.69 | 46.71 | 50.58 |
| GCBC | 0.267 | 2.533 | 4.756 |
| GCIQL | 0.356 | 6.356 | 51.47 |
| QRL | 0.578 | 20.27 | 6.000 |
| CRL | 4.800 | 13.91 | 20.53 |
| Temporal Metric Distillation | 0.178 | 14.36 | 3.333 |
| MQE | 48.27 | 66.27 | 56.62 |
| TRL | 0.889 | 6.400 | 38.89 |
| Dual CRL | 0.711 | 19.47 | 42.18 |
- ① humanoidmaze-giant-navigate · long-horizon navigation
- ② antmaze-large-stitch · trajectory stitching
- ③ scene-play · multi-stage manipulation
On HMaze-giant TMQE reaches a success rate of 51.69, against 48.27 for the strongest published baseline there, MQE [6]. On this setting every method other than the multistep quasimetric reference stays at 4.800 or below, so the result is a modest step past the method we build on rather than a new regime.
On AMaze-stitch and Scene-play TMQE falls below that same reference. On AMaze-stitch we reach 46.71 against 66.27 for multistep quasimetric estimation, a large gap, though still well above the other baselines, the best of which is quasimetric RL at 20.27. On Scene-play we reach 50.58, below 56.62 for multistep quasimetric estimation and slightly below the starter's 51.47.
Taken together, the slow target did not carry over as a uniform improvement. Our development measurements, below, favoured it on two development datasets; on the task's own settings it helped on one and cost on the others, and the largest cost is on AMaze-stitch.
How we got here
We began from the reference implementations shipped with the task and read the starter, the harness and every baseline's value rule before writing anything. Our working diagnosis, recorded at the start, was that one-step TD is too slow over long horizons, that contrastive critics do not compose partial routes, and that unconstrained critics give the actor poor gradients; the quasimetric methods with multistep backups looked like the strongest starting point. We developed on a small public OGBench dataset with two-dimensional states that is not one of the task's settings, and checked each checkpoint on only a handful of rollouts, so every development number below is noisy.
- A hybrid of contrastive and quasimetric losses did not work. Our first candidate combined a Monte Carlo contrastive loss [3], the waypoint LinEx backup, the action-invariance term and a one-sided upper bound tying the diagonal distance to the trajectory offset, with goals embedded by the harness's optional goal encoder. In our development runs it reached 16% success after 300,000 steps. Reweighting the backup and the upper bound gave 33% at 100,000 steps but 20% at 300,000, and adding a slow target goal encoder to that hybrid gave 20%. The starter itself was at 0% after a short run.
- The plain multistep quasimetric reference was far ahead. Run on the same development data at 100,000 steps it reached 76%. This, and not our hybrid, became the base.
- Lowering the behaviour-cloning coefficient alone did not rescue the hybrid. With the reference's lower values the hybrid fell to 0%, so lowering did not close the gap.
- The slow target helped on top of the reference. Dropping the contrastive loss, the upper bound and the harness goal encoder, and adding only the Polyak-averaged goal network on the bootstrap side, gave 88% at 100,000 steps on the development dataset, against 76% for the reference. On a second development dataset with higher-dimensional states, the reference reached 7% and our rule 20% after 100,000 steps. These two comparisons are the evidence for the design, and both are small.
- Longer runs were unstable. At one million steps on the first development dataset, the last three checkpoints scored 68%, 80% and 52%. Replacing the pessimistic maximum over ensemble members by their mean gave 80%, 72% and 48%, no clear change, and we kept the maximum. On a third development dataset the rule reached 7% after 100,000 steps and between 13% and 33% at the last three checkpoints of a one-million-step run.
- Re-adding the upper bound did not help. A diagonal upper-bound penalty with weight 0.10 on top of the final rule gave 80% at 100,000 steps against 88% without it, and we left it out.
Our last step was a sweep of the target rate, around the chosen 0.01. We also read about latent representation alignment as a remedy for erroneous value generalisation, which supported our view that stabilising the representations mattered more than adding capacity, but we did not implement it.
Limitations
- Below the method it extends on AMaze-stitch and Scene-play. The only change from multistep quasimetric estimation is the slow target, and on AMaze-stitch TMQE reaches 46.71 against the reference's 66.27; on Scene-play it reaches 50.58 against 56.62. On these settings the target either slows propagation more than it stabilises it, or interacts with the per-setting constants in a way we did not test. We cannot tell which.
- The design rests on thin development evidence. The case for the target network is two comparisons at 100,000 steps on development datasets, each checked on a handful of rollouts from one training seed. Our own one-million-step runs varied by close to 30 points between neighbouring checkpoints, larger than the gain we attributed to the target.
- The target rate was not settled. We chose and started a sweep around it, but the outcome is not recorded, and a slower target directly delays how fast a long-horizon value can move.
- The contribution is narrow. The architecture, the distance, the waypoint sampling, the LinEx backup, the action-invariance term and the behaviour-cloning coefficients are all taken from the multistep quasimetric reference [6] and temporal metric distillation [5]. Our addition is a target network on one side of the bootstrap, and our reading notes record that the temporal metric distillation paper already uses a slowly moving target goal representation in its temporal term.
- Value goals come only from the same trajectory. No random goals are drawn for the critic, so it sees goals from other trajectories only through the off-diagonal pairs of the batch, whose weight the per-setting halves and, where it is 1.0, removes entirely.
References
- Seohong Park, Kevin Frans, Benjamin Eysenbach et al. (2025). OGBench: Benchmarking Offline Goal-Conditioned RL. ICLR.
- Ilya Kostrikov, Ashvin Nair, Sergey Levine (2022). Offline Reinforcement Learning with Implicit Q-Learning. ICLR.
- Benjamin Eysenbach, Tianjun Zhang, Sergey Levine et al. (2022). Contrastive Learning as Goal-Conditioned Reinforcement Learning. NeurIPS.
- Tongzhou Wang, Antonio Torralba, Phillip Isola et al. (2023). Optimal Goal-Reaching Reinforcement Learning via Quasimetric Learning. ICML.
- Vivek Myers, Bill Chunyuan Zheng, Benjamin Eysenbach et al. (2025). Offline Goal-conditioned Reinforcement Learning with Quasimetric Representations. NeurIPS.
- Bill Chunyuan Zheng, Vivek Myers, Benjamin Eysenbach et al. (2026). Scaling Goal-conditioned Reinforcement Learning with Multistep Quasimetric Distances. ICLR.
- Seohong Park, Aditya Oberai, Pranav Atreya et al. (2026). Transitive RL: Value Learning via Divide and Conquer. ICLR.
- Seohong Park, Deepinder Mann, Sergey Levine (2026). Dual Goal Representations. ICLR.