Manuscript Offprint

arXiv:2609.02237

Recursive Value Learning for Long-Horizon Offline Goal-Conditioned RL

Hyeonseong Jeon, Youngwoon Lee

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hyeonseong Jeon¹ and Youngwoon Lee²

¹Yonsei University, ²Seoul National University yeonsumia@snu.ac.kr, youngwoon@snu.ac.kr

Scaling offline goal-conditioned reinforcement learning (GCRL) to long-horizon tasks is difficult because (1) long-range value learning depends on shorter-range estimates that may still be inaccurate, and (2) max-based value backups can amplify overestimation through repeated propagation. We propose DCRL (Divide-and-Conquer RL), which recursively decomposes each trajectory segment into a balanced binary tree and trains the values from leaves to root. Each parent is therefore updated only after its children, using an exact factorization of the observed route rather than selecting among noisy alternatives. Since this objective learns values along demonstrated routes that are not necessarily optimal, DCRL jointly propagates values across trajectories to discover shorter routes. Thanks to the balanced binary tree, DCRL reduces worst-case bootstrap depth from linear to logarithmic, and this shorter dependency structure empirically corresponds to much slower error accumulation. Across diverse goal-reaching tasks, DCRL substantially outperforms prior flat offline GCRL methods, and on the five most challenging long-horizon OGBench tasks, it improves the best prior average score from 55 to 64, surpassing all flat and hierarchical baselines.

Project page: yeonsumia.github.io/dcrl

1. Introduction

Figure

Figure 1. DCRL (right) learns short segments first, then uses them to learn longer ones, whereas standard GCRL (left) randomly samples pairs of all lengths in no particular order.

Long-horizon goal-conditioned value learning has a natural dependency structure: the value of a long trajectory segment is built from the values of its shorter constituent segments. Yet most offline goal-conditioned reinforcement learning (GCRL) methods form bootstrapped targets from independently sampled transitions or subgoals, without ensuring that shorter-horizon values are learned before the longer-horizon values that depend on them. A long-range estimate may therefore bootstrap from shorter-range values that are themselves still inaccurate. Moreover, standard Bellman-style and transitive value backups choose optimistically among actions or intermediate states (Bellman, 1966; Floyd, 1962). With finite offline data, this selection can favor overestimated candidates and propagate their errors through repeated backups, turning small local errors into large global inconsistencies.

We propose DCRL (Divide-and-Conquer RL), which makes this dependency explicit and enforces it through bottom-up training. The key idea is simple: learn shorter-range values (children) before the longer-range values (parents) that depend on them (Figure 1). Given a sampled trajectory segment, Divide recursively splits it at its midpoint until reaching single-step segments. Conquer then trains a value function by processing the resulting segments from leaves to root. Thus, each parent is updated only after its children. A horizon-H segment therefore produces a balanced binary tree with O(H)O(H) nodes but only O(log⁡2H)O(\log_2 H) sequential composition levels. This gives DCRL logarithmic bootstrap depth in the horizon, whereas standard backups have linear worst-case depth.

At each internal node of the tree, DCRL applies an exact trajectory factorization along the observed route. For any intermediate state ww on a trajectory segment from ss to gg, the corresponding behavior value VτV_\tau satisfies

Vτ(s,g)=Vτ(s,w)⋅Vτ(w,g).V_{\tau}(s,g)=V_{\tau}(s,w)\cdot V_{\tau}(w,g).

Unlike standard max-based backups, this factorization evaluates a single route supported by the dataset. DCRL thus addresses the two sources of long-horizon error directly: bottom-up scheduling imposes the dependency order among value estimates, while exact route factorization avoids optimistic selection among noisy alternatives. We empirically show that DCRL accumulates less long-range error than standard max-based backups.

Explicit tree construction distinguishes DCRL from Transitive RL (TRL) (Park et al., 2026). TRL independently samples a trajectory segment and a random in-trajectory split at each update, thereby learning from isolated transitive decompositions. DCRL instead instantiated each sampled trajectory segment as a balanced binary tree, preserves its parent-child dependencies, and learns the value function on its segments from leaves to root. Thus, TRL samples individual transitive relations, whereas DCRL explicitly constructs and executes a divide-and-conquer computation. As illustrated in Figure 2, this structured learning order produces substantially more precise long-range value estimates than TRL.

To preserve the ordering while maintaining diverse minibatches, DCRL interleaves multiple recursive trees through slot scheduling, which processes each tree bottom-up while mixing segment lengths within each minibatch.

Figure

DCRL (recursive)

Figure

Figure

Figure 2. In humanoidmaze-giant, DCRL learns near-optimal distance estimates. We measure the distances predicted by DCRL and TRL from each state to a fixed goal (red star).

Although recursive divide-and-conquer value learning mitigates error accumulation over the horizon, it recovers only behavior values. To recover optimal values, DCRL jointly trains the value function using multistep value propagation with goals globally relabeled from the dataset (Andrychowicz et al., 2017; Sutton and Barto, 2018). This propagation objective identifies shorter routes by combining segments from different trajectories. Thus, DCRL's two objectives serve complementary roles: recursive divide-and-conquer value learning provides reliable behavior routes, while multistep propagation recovers optimal routes by composing cross-trajectory routes.

In summary, our main contributions are threefold:

  • Algorithm. We introduce DCRL, which explicitly instantiated divide-and-conquer value learning as a balanced binary tree over in-trajectory segments, trains each tree bottom-up using value factorization, and processes multiple trees in parallel through slot scheduling.

  • Analysis. We prove that DCRL reduces worst-case bootstrap depth from linear to logarithmic in the horizon. In a controlled experiment, we show that this shorter dependency structure corresponds

to substantially slower error accumulation.

  • Performance. DCRL substantially outperforms prior flat offline GCRL algorithms across diverse goal-reaching tasks spanning different domains, horizons, and observation modalities, and surpasses hierarchical approaches on several challenging long-horizon tasks.

References (73)

  • Hindsight experience replay
  • Recent advances in hierarchical reinforcement learning
  • Curriculum learning
  • Offline reinforcement learning via high-fidelity generative behavior modeling
  • Diffusion policy: Visuomotor policy learning via action diffusion
  • Floyd-warshall reinforcement learning: Learning from past experiences to reach new goals (opens arXiv in a new tab)
  • Scalable distributed deep-rl with importance weighted actor-learner architectures
  • Search on the replay buffer: Bridging planning and reinforcement learning
  • C-learning: Learning to achieve goals via recursive classification
  • Contrastive learning as goal-conditioned reinforcement learning
  • Automatic goal generation for reinforcement learning agents
  • A minimalist approach to offline reinforcement learning
  • Automated curriculum learning for neural networks
  • Regularized behavior value estimation (opens arXiv in a new tab)
  • Relay policy learning: Solving long-horizon tasks via imitation and reinforcement learning
  • Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor
  • Idql: Implicit q-learning as an actor-critic method with diffusion policies (opens arXiv in a new tab)
  • Gaussian Error Linear Units (GELUs)
  • Sub-goal trees – a framework for goal-based reinforcement learning
  • Adam: A method for stochastic optimization
  • Offline reinforcement learning with implicit q-learning
  • Continuous control with deep reinforcement learning
  • Learning latent plans from play
  • Calvin: A benchmark for language-conditioned policy learning for long-horizon robot manipulation tasks
  • Learning temporal distances: Contrastive successor features can provide a metric structure for decision-making
  • Offline goal-conditioned reinforcement learning with quasimetric representations
  • Divide-and-conquer monte carlo tree search for goal-directed planning (opens arXiv in a new tab)
  • Hiql: Offline goal-conditioned rl with latent states as actions
  • Ogbench: Benchmarking offline goal-conditioned rl
  • Horizon reduction makes rl scalable
  • Transitive rl: Value learning via divide and conquer
  • Efficient value propagation with the compositional optimality equation
  • Rapid exploration for open-world navigation with latent goal models
  • Skill-based model-based reinforcement learning
  • Sutton and Andrew G. Barto
  • Model-based visual planning with self-supervised functional distances
  • Optimal goal-reaching reinforcement learning via quasimetric learning
  • A policy-guided imitation approach for offline reinforcement learning
  • Contrastive difference predictive coding
  • The theoretical subsection (Appendix A.2.1) formalizes backup dependencies through bootstrap depth and derives upper error bounds for TD-n, TRL-n, and DCRL-n, highlighting the effects of selection-free factorization and child-to-parent scheduling
  • Both DCRL-n and TRL-n include the same additional n-step propagation objective, whereas vanilla TRL uses only its transitive objective
  • We suppress this action argument and write $Q_\bullet(p) := Q_\bullet(s_i, a_i, s_j)$
  • Let $\mathcal{P}=\{(s_i,s_j):0\leq i\leq j\leq T\}$ be the set of in-trajectory pairs and let $\mathcal{P}_o\subset\mathcal{P}$ denote the grounded pairs
  • TRL's original sampling also permits $k=i$; because this yields an identity decomposition that does not advance the dependency graph, we condition on the effective nontrivial backup $i<k<j$
  • The smallest $d$ for which this length is at most $n$ is $d=\lceil \log_2(H/n) \rceil$
  • For fixed $n$, this truncation does not change the asymptotic height, so standard random-tree results give expected depth $\Theta(\log(H/n))$ (Devroye, 1986)
  • Selection amplification therefore compounds with decomposition depth
  • However, their dependency structures have different sequential depths
  • Bootstrap depth alone does not determine estimation error; however, a shorter path requires fewer sequential stages for grounded information to reach long-horizon values
  • We examine whether (i) shallower dependency structures correspond to slower long-range error growth and (ii) the depth advantage is realized when children are trained before their parents
  • Along the forward path, the optimal distance is available exactly, $d^*(s,g) = g - s$, giving ground truth at every horizon
  • Let $h := g - s$ and set $n = 64$
  • At long horizons, error follows TRL > TRL-n ($\kappa=0.7$) > TRL-n ($\kappa=0.5$) $\approx$ TD-n > DCRL-n
  • The benefit of scheduling grows with the horizon
  • 6, 7) 13: end while
  • We describe the main value-learning mechanism of each baseline below and note its policy-extraction mechanism when it is essential to the method
  • The expectile approximates action maximization without evaluating out-of-distribution actions; at $\kappa = 0.5$, the objective reduces to behavioral SARSA value estimation
  • MC learns a behavioral goal-conditioned value by directly regressing $Q(s_i, a_i, s_j)$ onto the empirical trajectory return $\gamma^{j-i}$, avoiding bootstrapping (Tian et al., 2021; Shah et al., 2021)
  • HIQL (Park et al., 2023) treats latent future states as high-level actions: a high-level policy proposes a waypoint and a low-level goal-conditioned policy reaches it, with both policies extracted by advantage-weighted regression
  • We implement DCRL (w/ max-based backup), identical to Algorithm 2 except that the midpoint split $k$ in the recursive tree construction (Algorithm 1) is replaced by $m^{\star}$
  • Instead of recursively decomposing each trajectory into a tree (Algorithm 1), we sample pairs $(s_i, s_j)$ i.i.d
  • Moreover, i.i.d
  • The upper expectile favors higher-valued routes across samples, tasking the recursive objective with learning optimal values rather than behavior values
  • This ablation isolates traversal direction while preserving the recursive tree structure
  • Policy extraction can be performed either during or after value training
  • We evaluate the target sequence of four consecutive subtasks—opening the drawer, turning on the lightbulb, moving the slider to the left, and turning on the LED—using 50 rollouts for the state-based variant and 100 for the pixel-based variant
  • The pixel-based environments include:
  • This objective maximizes the predicted value while penalizing deviation from the dataset distribution to prevent out-of-distribution exploitation
  • We report the exact extraction method and hyperparameters (e.g., $\alpha$ and $N$) in Appendix K
  • Curriculum learning orders tasks by difficulty (Bengio et al., 2009; Graves et al., 2017; Florensa et al., 2018), requiring a task space and difficulty estimates
  • As shown in Figure 14 and Figure 15, DCRL achieves the best performance with $\kappa_{dc} = 0.5$ and $\kappa_{prop} = 0.7$ on both humanoidmaze-giant and cube-triple
  • Larger numbers of slots incur greater CPU overhead because they must be maintained concurrently, increasing training time
  • ><tr><td rowspan=