WorksComputer Science
Imagining Goals with Geometric Horizon Models for Policy Generalization
Abstract
Training from offline data has allowed for substantial progress in domains such as robotics, leading to general-purpose policies that can be easily applied zero-shot or efficiently finetuned for downstream tasks. However, these policies can still have poor generalization, both due to the choice of modeling objective and from learning from a static dataset. In this work, we focus on the challenging task of zero-shot goal generalization, where a policy is evaluated on unseen tasks that require combining its existing knowledge (compositional generalization). An avenue for improving a policy's generalization is by generating new experience with world models; however, such generation has proven difficult for longer horizons. Thus, to alleviate this issue, we propose TD-Aug, which samples from a geometric horizon model and allows for directly imagining novel outcomes that can be achieved by composing existing knowledge. We demonstrate that training on these future outcomes as goals for goal-conditioned BC policies significantly improves generalization in stitching-based OGBench tasks.
Project page: https://td-aug.github.io
Introduction
Training policies with goal-conditioned behavior cloning (BC) provides a simple strategy to learn from prior experience. However, generalization remains a challenge, limiting performance outside of the training data. Generally, world models ([15]) present an interesting strategy for improving policies from offline data ([17]). These models can be used to generate synthetic experience ([41, 3]), allowing policies to get more out of limited real data, which may be important in domains such as robotics. In this work, we consider generating experience using a type of world model to imagine counterfactual future outcomes to enable improved goal generalization.
We tackle a gap identified for BC policies showing poor performance on tasks involving stitching ([13]). In this setting, after policies are trained on a subset of tasks, they are then evaluated zero-shot on harder tasks involving composition. We illustrate an example in Figure 2, where a policy is trained on how to solve short horizon tasks (left), and then tested on a compositional task, such as going across the maze (middle). To solve this problem, we propose to learn a generative model that predicts what states will be encountered after mixing behaviors of the independent data collecting policies (right). Specifically, the generative model we consider is a geometric horizon model (GHM) ([19] (Thakor et al. 2022)) trained using Temporal Difference Flows (TD-Flows) ([9]). Then, using samples generated from our GHM as a data augmentation for goals, we teach our policy to perform compositional tasks. We provide an overview in Figure 1, and refer to our method as TD-Aug. We further justify this procedure by showing that augmenting BC with goals from the successor measure relates to value weighted regression.
Figure 1. Overview of TD-Aug. We a) train a GHM on an offline dataset to approximate samples from the successor measure of the behavior mixture policy. Then, b) we train BC policies on a mix of ground-truth and generated goals, improving zero-shot generalization on compositional tasks.

Figure 2. Ground-truth and generated samples. Left, on pointmaze-giant-stitch, we display ground truth trajectories from the dataset. Middle, we display long-horizon evaluation tasks. Right, we generate samples from an MCHC TD-Flow, as in § 4, conditioned on the initial (outlined) state and action. These samples correspond to reachable future states, including those that can only be reached through stitching several trajectories with longer total horizon than short training trajectories. We provide visualizations across more environments in Figure 8.
To implement TD-Aug, we study several GHM objectives based on both temporal difference (TD) ([9, 10]) and geometric Monte Carlo (MC) ([8]) sampling, demonstrating that TD methods are crucial for generalization. Using horizon consistency ([10]), we propose a new TD-Flow objective which combines both MC and TD sampling during training, leading to improved long-horizon generation.
Correspondence: [email protected]
Empirically, in § 6.1, we first validate TD-Aug on low-dimensional navigation tasks in OGBench ([34]) that require stitching for success, substantially improving behavior cloning generalization, from 31% to 79% average success. Then, we demonstrate that our approach can also improve generalization on high-dimensional, image-based tasks (29% to 56%) in § 6.2 and complicated manipulation tasks (13% to 52%) in § 6.3.
Related Work
Data augmentation with temporal structure has been an effective way to re-use experience in reinforcement learning. Models can generate data, for example by sampling transitions for model-free approaches ([41, 15, 11, 16, 28, 51]). In the goal-conditioned setting, Hindsight Experience Replay (HER) ([1]) allows re-using transitions with different achieved outcomes as goals ([21]). When training policies with BC, sampling hindsight goals is beneficial, but does not cover compositional generalization ([13]), where a policy is evaluated on state-goal pairs not seen together in the same training trajectories. To mitigate this gap, states are stitched across trajectories using clustering, but this only covers 1-step stitches and relies on heuristics, such as a good distance metric between states. In contrast, we use generative models to capture a future state distribution that directly stitches across trajectories.
| Algorithm 1 | TD-Aug |
| Representation Learning (Optional) | |
| Use either states , or learned representations , as the space for GHM and policy (§ 6.2). | |
| Geometric Horizon Model Training | |
| Train to approximate the successor measure of the behavior mixture policy, using (Equation (9)). | |
| Policy Training | |
| Train by BC on a mixture of generated goals from with proportion , as well as real samples (Equation (11)). |
Table 1.
Long-Horizon Prediction: In the context of predicting future states, instead of generating states sequentially, prediction can be made more accurate by sampling states in parallel, i.e. jointly sampling sub-trajectories ([20]), which could be chained together ([29, 25]), for longer-horizon or compositional predictions. In comparison, we avoid having to denoise intermediate states or utilize heuristic strategies to chain sub-trajectories together. This is achieved while still generating long-horizon samples in steps through amortization during GHM training.
Representation learning can be employed to improve compositional generalization of BC by encoding temporal dependencies in the representations of a policy, such as with objectives that relate to approximating successor measures or temporal distance ([31, 24, 37]). This has the advantage of avoiding state prediction, but still has challenges, such as with stability and long-horizon generalization. In practice, generative modeling and representation learning can be used together, which is useful for predicting high-dimensional states.
Geometric horizon models (GHMs), also known as -models [19], propose a generative variant of temporal difference learning, allowing for approximate sampling from the successor measure [42, 43, 48, 9], a continuous generalization of successor representations [6] of a policy. Specifically, we consider Temporal Difference Flows [9] (TD-Flows), which use flow-matching objectives for learning such models. Most recent work with TD-Flows [9, 10] has considered using GHMs for decision-time planning. GHMs can also be used for policy improvement [50], or model-based value expansion [11], where future synthetic states can be used to estimate bootstrap targets for value estimation [19]. Recent work has used MVE for offline RL using GHMs and Universal Horizon Models (UHMs) [4], but does not consider the goal-conditioned setting. In contrast, we particularly study GHMs for goal augmentation, and how this alone can induce better zero-shot goal generalization after offline training.
Background
Goal-Conditioned Reinforcement Learning
We study offline learning in goal-conditioned Markov Decision Processes (MDPs), defined as the tuple , where is the state space, is the action space, is the goal space, is the transition kernel, is the reward function, is the discount, and is an initial state distribution. We consider that goals coincide with states (), and the reward is the Dirac delta at the goal: . We aim to learn a policy using a dataset , without online interaction, to maximize expected return:
For the subset , we define the normalized successor measure of a policy as:
where denotes the time-specific probability that we are in starting from when following . We write the density of the successor measure via , and the action-marginalized successor measure is defined as . We also define the discounted state occupancy density as the marginal of over the initial state distribution: . With the goal reaching reward, the successor measure’s density relates to the goal-conditioned value function via .
Flow Matching
Following success in modeling policies and geometric horizon models ([9]), we utilize flow matching ([26]). With a source distribution and a target distribution , flow matching learns a velocity field such that for , the sample matches the target distribution ().
In practice, we use conditional flow matching ([26]):
We use the conditional optimal transport (CondOT) coupling, drawing a straight line between and , . This gives the true conditional velocity field target as . Our source distribution is the standard Gaussian, .
Training Policies
We train policies on datasets comprised of trajectories collected by a set of unknown policies . These policies can be marginalized by a mixture policy , which is a Markovian policy that has occupancy equal to the expectation under the individual policies: ([13]). In general, there is not equality in the conditional occupancy (the SM), .
We consider the standard goal-conditioned BC objective, which samples a current state from the dataset (), and trains the policy to reach goals sampled as future states in the same trajectory, corresponding to samples from the successor measure of an individual policy :
We perform goal-conditioned behavior cloning using flow matching, representing the policy by a conditional velocity field :
To sample from , using , we integrate with , via .
Temporal Difference Flows
Recently, there has been significant interest in developing generative models of the successor measure, called geometric horizon models (GHMs), that can sample states from the geometric horizon of any given policy ([19, 42]). These models can be trained via TD learning, as for all , the successor measure satisfies:
Optimizing this objective is challenging with prior generative modeling techniques such as GANs ([14]) or normalizing flows ([40]), especially at large discounts . This led to the proposal to use flow matching to learn GHMs ([9]), which showed strong success in simulated control domains. TD-Flows parameterize the GHM as a velocity field with parameters , such that with source , the velocity field induces the flow :
We aim to learn , such that for , the samples are distributed according to . Thus, we will use the notation for our approximate successor measure parameterized by . Exploiting the Bellman structure of the successor measure, Farebrother et al. [9] show that a flow that models said measure can be learned by minimizing the TD-CFM loss:
where are target flow parameters, as commonly used in value-based RL ([30]). Recalling equation (4), targets the single-step transition kernel, while bootstraps using the successor measure at the next state. Together, this leads to approximating .
We can also approximate the successor measure of the mixture policy , rather than an arbitrary policy . While this requires sampling in the Bellman update, in practice, we will generally bootstrap with the next action in the dataset, yielding the term:
We refer to this objective as . This is a simpler objective than the fully off-policy objective in equation (6), as we bootstrap over fully in-support actions. If one does not need to stitch across trajectories, we can utilize a simpler approach to model using empirical Monte Carlo samples of future states. This allows us to learn a generative model directly with supervised learning:
Here, denotes the state that is steps further from along the sampled trajectory in the dataset. If we had infinitely long trajectories, collected directly by the mixture policy, this objective would approximate . However, in practice, we have datasets with truncated horizon, and collected from a set of data-collecting policies. This leads to instead approximate a mixture of successor measures ([24]), preferring the use of .
Improving Long-Horizon, On-Policy Generation by Combining MC and TD Sampling
In this section, we propose a variant of the TD-Flow training procedure () to address scaling to long horizon prediction, which is affected by the discount used during bootstrapping. Intuitively, fitting the GHM is easier at lower discounts, as the loss is more heavily weighted to the ground truth next-state prediction, rather than the bootstrap. Recent work proposes the Temporal Difference Horizon Consistency (TD-HC) objective ([10]), which proposes how to use a "local horizon" GHM (e.g. a GHM conditioned on a discount ) to obtain an estimate of the successor measure to approximate a higher discount GHM () ([19, 10]), i.e. through a Bellman-like relation:
This can be converted to a TD-Flow loss, , by modifying equation (6), shown in Appendix § 11.§ 1.
We propose a variant of adapted for the on-policy setting to approximate . While equation (7) supervises the flow with ground-truth samples, which we will show leads to high-quality generations, it does not generate samples that can be reached through stitching trajectories. In contrast, equation (6) stitches, but uses sparse ground-truth signal, which decreases as the discount is increased. This may make it harder to have higher-quality samples and to scale to longer horizons. To obtain the best of both objectives, we consider a horizon-consistent objective utilizing MC samples from the dataset. While we will learn , we will not learn , and instead utilize MC samples from dataset trajectories. This leads to the objective:
This loss is not just supervised by the next ground truth states, but also future MC samples. Additionally, instead of bootstrapping from the next state , we will bootstrap from this MC sample, which is obtained as a future state after , i.e. , where . As we utilize MC samples, which are both truncated, and are collected by a single policy, they do not correspond to the true . Thus, this objective is a biased approximation of as increases, but allows increasing while still training on higher proportions of ground-truth data.
Imagining Goals for Policy Generalization
Generalization Problem
We consider a generalization problem for BC policies. Following the setting from § 3.3, we train on trajectories collected by unknown policies , with mixture policy . We will now define training and test distributions for equation (2), following Ghugare et al. (2024):
With defining the success rate of the policy to reach from , averages performance over in-distribution tasks and describes average success on a class of out-of-distribution tasks requiring compositional generalization. These include tasks which may not be completed by a single data collecting policy , but still have sufficient data coverage to complete through composing or stitching trajectories collected by different policies, i.e. reachable with .
While equation (2) corresponds to improving on , the BC objective does not cover , leading to poor empirical performance. We can see that if we had access to goals coming from the successor measure of the mixture policy during training, rather than that of individual policies, our policy could learn to reach goals required for better .
Method
To address this type of policy generalization, we can directly approximate and sample from the target generalization distribution. We note that because we do not have full rollouts from the mixture policy, we must utilize TD learning to stitch, relying on or , rather than . Thus, we train on-policy TD-Flows, which will yield an approximation for the successor measure of the mixture policy. After obtaining , we perform goal augmentation where we train on a mix of original goals plus samples from the generative model, covering the compositional distribution:
We generally refer our goal augmentation procedure as TD-Aug, and by default use . We can also instantiate our method with , which we denote later with TD-Aug. We provide an overview of our method in Algorithm 1 and Figure 1. An advantage of this procedure is that we are not limited to a fixed number of stitches, or heuristic sampling strategies [13]. We also perform sampling steps per sample to cover an expected horizon , while one-step models need steps, potentially resulting in compounding error and longer time for rollouts.
We relate this procedure to offline goal-conditioned RL, specifically 1-step policy improvement over the mixture policy with value-weighted regression [39, 45, 38, 47], for a brief proof, see Appendix § 12:
Theorem 1 (Equivalence to 1-step improvement). With , and exact samples from , our augmentation strategy in equation (11) is equivalent to value-weighted regression used for one-step improvement over behavior policy :
Experiments
In this section, we show that TD-Aug can improve combinatorial generalization across a variety of stitch tasks in the OGBench [34] benchmark suite. In § 6.1, we (a) evaluate the quality of generated samples as horizon scales for different GHM objectives on low-dimensional navigation tasks, and (b) show that TD-Aug is useful for improving BC generalization, even on long-horizon tasks requiring many stitches. Then, (c) we show that our method can scale to visual environments by learning GHMs in latent space in § 6.2, and § 6.3, we demonstrate that we can also improve stitching on manipulation tasks.
State-based Environments
We first evaluate our method on pointmaze-stitch navigation tasks from OGBench, which allow us to isolate the challenge of long-horizon stitching from high-dimensional dynamics. In these tasks, agents are trained on short trajectories, which travel up to 4 maze cells. Then, agents are evaluated on longer compositional tasks such as those that span the whole width of the maze. We find that the original stitching datasets, especially for point, are not terminated upon goal-reaching, resulting in many transitions that idle at the goal. Thus, we re-collect the stitch datasets that terminate upon reaching a sub-goal. On new datasets, baselines perform similarly, or slightly better than before.
To begin our study, we first compare the quality of generative models. Qualitatively, we provide visualizations on pointmaze-{medium,large,teleport,giant}-stitch in Figure 8. We can see that MC Flows can accurately capture training trajectories and multi-modality in the dataset. We can see this captures both multi-modality in the policy, and environment stochasticity, as shown in teleport, where upon entering a black hole, the agent is randomly sent to a random white hole. However, the MC Flow does not implicitly stitch across trajectories. On the other hand, the TD-based objectives (TD-, MCHC-), can generate samples that require stitching, capturing states reachable beyond than the training trajectory horizon. However, the TD- samples are more diffuse, or may go backwards from the direction implied by the ground truth samples. In contrast, the MCHC- samples balance implicit stitching with the quality of MC samples.
Next, we perform a quantitative comparison between model samples on a held-out evaluation dataset on pointmaze-large-stitch. From an initial state, we can see how models (trained on short trajectories) generate samples that are closer in distribution to longer, held-out trajectories, measuring stitching. This is performed by sampling initial (state,action) tuples from a held-out dataset. Then, from these tuples we sample future states geometrically, obtaining empirical samples. From these same initial states, we sample from our model, as shown in Figure 7. Then, we compute the earth mover’s distance (EMD) between these two sets of points, and then average across different initial positions. We repeat this for models trained at various effective horizons , measuring against ground truth samples at the corresponding horizon, as shown in Figure 3. In addition to the GHM based models, we also generate samples from autoregressive one-step prediction, which we further discuss in Appendix § 11.§ 3. While some models have similar EMD at the initial horizon (100), we can see that the errors of TD-, and 1-step baselines, quickly increases with horizon. Additionally, the EMD of MC increases because it is trained on short trajectories, and thus has no mechanism to stitch. In contrast, MCHC- has the lowest EMD as horizon increases, showing the benefit of mixing both MC targets and TD when training on-policy GHMs.
Figure 3. Evaluating sampling with increasing horizon. We compute earth mover’s distance (EMD) between empirical samples and generated samples on held-out evaluation data for pointmaze-large-stitch.

Figure 7. Generated samples in pointmaze-large with varying horizon. Samples are conditioned on different sources displayed with 🟡, and ground-truth action, whose effect can be inferred by the ground-truth trajectory shown in black. Across each row, we vary discount , with .
Next, we study how geometric horizon models can empirically improve a policy’s combinatorial generalization capabilities in Table 1. Without any augmentation, a goal-conditioned flow-based behavior cloning (GCFBC) baseline [35] obtains moderate zero-shot generalization in smaller mazes, but struggles in larger mazes as the horizon is increased. To improve generalization, we apply our generative goal augmentation procedure, TD-Aug. In addition to TD-Aug using , we compare to TD-Aug using , as well as MC-Aug using . We compare to clustering-based goal augmentation (Cluster-Aug) [13], which can create stitches between two trajectories, and against autoregressive 1-step prediction with history to sample from the SM (Dyn-Aug), as utilized in Figure 3. For these methods, we list additional training details in Appendix § 9, including hyperparameters for BC in Table 5, and for TD-Flows in Table 4. Although the task horizon varies, we use the same hyperparameters for each environment in pointmaze for TD-Aug. This includes the effective horizon, which we set to 500 (), while for MC-Aug and TD-Aug we use 100 (), as they perform worse at higher horizons. After training GHMs, all policies are trained for steps, and each method is trained with batches using goals that are of a proportion of future states in the same trajectory (i.e. hindsight goal sampling), and with proportion with generated goals. The BC baseline uses , and augmentation uses . We can see that TD-Aug significantly improves generalization, including on long-horizon tasks, such as pointmaze-giant-stitch. In contrast, MC-Aug maintains close to original performance, demonstrating that generating additional synthetic short-horizon samples does not improve generalization. We also see that with TD-Aug, GCFBC outperforms prior offline GCRL methods in pointmaze, including GCIQL [23], QRL [46], Contrastive RL (CRL) [8], and HIQL [33]. Observing the weaker performance of CRL on stitch tasks, which also uses MC samples like GCBC, we show contrastive learning on generated samples leads to improved performance in Appendix § 14.
| Hyperparameter | ||
| Flow Matching | ODE Solver | Midpoint |
| Train ODE | 0.1 | |
| Sample ODE | 0.1 | |
| Network (U-Net) | -Positional Embedding Dim | 256 |
| -Positional Embedding MLP | (256, 256) | |
| Block Dimension | (512, 512, 512) | |
| Encoder MLP | (512, 512, 512) | |
| activation | Mish | |
| Optimizer (AdamW) | AdamW | 0.9 |
| AdamW | 0.999 | |
| AdamW | ||
| Learning Rate | ||
| Weight Decay | ||
| Target Network EMA | ||
| Training | Gradient Steps | |
| TD | ||
| State, Visual | 3M | |
| Manipulation | 1M | |
| MC, MCHC | 1M | |
| Batch Size | 1024 | |
| Discount () | ||
| MC, TD | 0.99 | |
| MCHC | ||
| State | 0.998 | |
| Visual | 0.995 | |
| Manipulation | 0.99 | |
| Discount () | ||
| State, Visual | 0.99 | |
| Manipulation | 0.98 |
Table 4. Hyperparameters for TD-Flow training, following similar architecture details to Farebrother et al. [9].
| Hyperparameter | ||
| Flow Matching | ODE Solver | Euler |
| Sample ODE | 0.1 | |
| Network (MLP) | Hidden Layers | (1024, 1024, 1024, 1024) |
| activation | GELU | |
| Optimizer (Adam) | Adam | 0.9 |
| Adam | 0.999 | |
| Learning Rate | ||
| State, Visual | ||
| Manipulation | ||
| Weight Decay | 0 | |
| Training | Gradient Steps | |
| State | 1M | |
| Manipulation | 2M | |
| Visual | 500k | |
| Batch Size | ||
| State | 1024 | |
| Manipulation | 1024 | |
| Visual | 256 | |
| Augmentation (only) | Batch Proportion () | 0.5 |
Table 5. Hyperparameters for GCFBC training.
Table 1: Generalization through compositional data augmentation. With goal conditioned flow behavior cloning (GCFBC), we compare training on the original dataset to various data augmentation strategies. We calculate success rate averaged over the last 3 checkpoints, and then report the mean, std over 3 seeds. We bold the top performing methods.
| pointmaze | GCFBC | +Cluster-Aug | +Dyn-Aug | +MC-Aug | +TD-Aug | +TD-Aug | GCIQL | QRL | CRL | HIQL |
| medium-stitch | ||||||||||
| large-stitch | ||||||||||
| giant-stitch | ||||||||||
| teleport-stitch | ||||||||||
| average | 31 | 50 | 46 | 37 | 45 | 79 | 35 | 58 | 4 | 30 |
Table 1 (PDF p. 8).
Composition in Visual Navigation
In this section, we extend TD-Aug to visual environments with visual-antmaze-stitch. Instead of learning the GHM in pixel space, we first train an autoencoder (AE), obtaining a low-dimensional latent space . We provide details for training the AE in Table 6. Then, we utilize the
| Hyperparameter | ||
| Architecture | Convolution Layers | 2 |
| Channels | 32 | |
| Kernel | ||
| Activation | ReLU | |
| Latent Dimension, | 50 | |
| Optimizer (Adam) | Adam | 0.9 |
| Adam | 0.999 | |
| Learning Rate | ||
| Weight Decay | 0 | |
| Training | Gradient Steps | 100k |
| Batch Size | 1024 |
Table 6.

Figure 5. Samples for visual-antmaze-medium. We visualize samples generated with MCHC- at . We display both real, geometrically sampled, states, as well as reconstructions from the GHM’s predicted latents using the AE decoder.
same architectures for the GHM, and policy, as performed in the non-visual setting (§ 6.1), but now operate over latent space, as shown in Figure 4. As a baseline, we report both standard BC in OGBench (GCBC), using early state-goal fusion, and an autoencoder BC baseline, labeled AE-GCFBC. The standard baseline concatenates state and goal images, and passes them through a small IMPALA-based (Espeholt et al., [7]) CNN. In contrast, the autoencoder BC baseline separately encodes goals and states into , and then concatenates them to predict actions. This architecture is preferable with goal augmentation, as we generate goals in latent space (Dao et al., [5]) and feed them to the policy without decoding. With this setup, in Table 2, we report adding augmentation to AE-GCFBC. We can see that without augmentation, this architecture under-performs GCBC. While we improve with MC-Aug, we can see that , used in TD-Aug leads to less performance, which is in contrast to the non-visual setting. We attribute this to the difficulty of bootstrapping in higher-dimensional approximate () space. Thus, we find the combination of MC and TD to be the most effective, where TD-Aug improves AE-GCFBC and outperforms the GCBC baseline.
Table 2: Visual generalization through compositional data augmentation. With autoencoder (AE) GCFBC, we compare training on the original visual datasets to various data augmentation strategies. We calculate success rate averaged over the last 3 checkpoints, and then report the mean, std over 3 seeds. We bold the highest performing method overall, and highlight in brown the top BC method.
| visual-antmaze | AE-GCFBC | +MC-Aug | +TD-Aug | +TD-Aug | GCBC | GCIQL | QRL | CRL | HIQL |
| medium-stitch | |||||||||
| large-stitch | |||||||||
| average | 29 | 40 | 33 | 56 | 45 | 5 | 1 | 56 | 69 |
Table 2.
Figure 4. Extension of TD-Aug to visual environments.
| dataset | GCFBC | +TD-Aug | +TD-Aug | GCIQL | HIQL | |
| play | stitch | stitch | stitch | stitch | stitch | |
| cube-double | ||||||
| cube-triple | ||||||
| puzzle-4x4 | ||||||
| average | 44 | 13 | 44 | 52 | 29 | 2 |
Table 3. Manipulation with compositional data augmentation. We evaluate GCFBC with action chunking on OGBench manipulation tasks, using the oracle goal representation. We use the original play dataset, and then introduce a new stitch dataset, consisting of only short trajectories. Then, we add TD-Aug to close the generalization gap from stitch. We calculate average success on the last 3 checkpoints, and report the mean, std over 3 seeds. We highlight the top method on stitch.
Composition in Manipulation
In this section, we evaluate TD-Aug on OGBench manipulation tasks requiring stitching, which is a challenging setting for modeling the successor measure. We first consider cube-{double,triple}-play, puzzle-4x4-play tasks with oracle goal representation (Park et al., [34, 36]). In addition to the original play datasets, we construct a new challenging stitch dataset, where each trajectory contains one atomic task (i.e. pick-and-place, or button press), but the policy is evaluated on the original, long-horizon, multi-step tasks. While GCFBC using action chunking, , obtains good average success (44%) on the play tasks, it struggles when training on the stitch (13%). Thus, we apply TD-Aug to close the gap. We also train GHMs, with action chunking, , and predict -sized jumps in the full state space, with additional details in Appendix § 11.§ 2. On stitch, with TD-Aug, GCFBC’s performance substantially increases from 13 52. We provide visualizations of the GHM’s samples in Figure 9.

Figure 9. Samples on cube-triple-stitch. The first row shows initial states, and the second shows overlaid empirical futures from the same trajectory. The third row shows overlaid generated samples, while the following rows show individual generated samples.
Conclusion
In this work, we have shown that TD-based geometric horizon models allow for enhanced generalization for behavior cloning through goal augmentation. There are a variety of directions that could build on this work. For example, behavior cloning is a strong pre-training algorithm that has been shown to scale well in real-world robotics settings (O’Neill et al., [32]; Black et al. [2]; Intelligence et al. [18]). Therefore, a key open question is how to efficiently and stably scale TD-based GHM training to high-dimensional, partially-observable robotics tasks.
Acknowledgments
We want to acknowledge funding support from Natural Sciences and Engineering Research Council (NSERC) of Canada, Google Research, Fonds de recherche du Québec (FRQNT), and the Canadian Institute for Advanced Research (CIFAR) and compute support from Digital Research Alliance of Canada, Mila IDT, and NVidia. We also thank Jesse Farebrother and Pablo Samuel Castro for advice throughout the project.
Training Details
Additional Objectives
Table 6: Hyperparameters for visual autoencoder training. For our autoencoder, we use a similar architecture to [22, 49]. For the encoder, we utilize two convolutional layers, with ReLU activations after each layer. The output of the convolutional layers is flattened, and linearly mapped to the latent dimension , followed by LayerNorm and tanh activation. The decoder utilizes a similar architecture, utilizing deconvolution layers, with the same kernel size, followed by ReLU (except for the final layer).
| Hyperparameter | |
| Clusters | |
medium | 40 |
large | 40 |
teleport | 40 |
giant | 80 |
Table 7. Hyperparameters for clustering-based goal-augmentation. We follow Ghugare et al. [13] and use k-means clustering Lloyd [27], with set as below.
Additional Objectives
TD-HC
For reference, we provide the original Temporal Difference Horizon Consistency (TDHC) objective Farebrother et al., [10], which we modify to use MC samples in § 4:
With , the original TD objective equation (6) is recovered. To train with the TDHC objective, the flow is trained with discount conditioning, and in each batch, the discount is sampled uniformly and . Instead, the MCHC objective equation (9) we use fixes , and samples , where , , replacing having to learn and sample with .
GHMs for Manipulation
For manipulation tasks, we modify both GCFBC and the GHM to utilize action chunks of size as shown in equation (15). For the GHM we also predict future states starting from after the action chunk, at increments matching the chunk size. We also proportionally reduce . For example, with , we reduce from 0.99 to 0.9, to match the same expected horizon. Additionally, we bootstrap with samples from a learned prior, , predicting the next action chunk, rather than using . This is useful, as it can allow for bootstrapping from the end states in a trajectory, where an action chunk is not available.
where: , , and also uses chunk size .
One-step Dynamics Model
As a baseline to geometric horizon models, we utilize auto-regressive prediction with one-step models to sample from the successor measure. This follows from first sampling a random offset . We then perform autoregressive prediction for steps, first sampling , and then sampling times from , for to . We parameterize and via velocity field , trained via flow matching:
We utilize a standard 1-step flow matching objective, however we condition on , where with probability 0.5, the action is replaced by a learned embedding (shared for all actions). Thus, this objective trains both forms of . We utilize the same architecture as GHM as described in Table 6, and train for 1 million steps.
While in theory, this objective can perfectly capture the successor measure, we found issues with compounding error during autoregressive prediction as shown in Figure 3. This is particularly due to being memory-less, i.e. after the first action, there is no conditioning information in that captures an intention (such as running to the right). Thus, we find a stronger performing baseline incorporates history, leading to:
Where we utilize a history length of , as used in Figure 3, Figure 7. When sampling with a specific discount , with expected horizon , we cap for rollouts at . For example, if , we cap .
As GHMs can sample in O(1) steps, when training a policy, we can efficiently sample a fresh batch of goals, , for all batch indices, every time we form a batch for the policy update. However, this is not realistic with one-step models at . Thus, we instead cache a sized trajectory from each state from the dataset, storing states, where is the original number of transitions (e.g. 1,000,000). Then, while training the policy, we geometrically sample future states from this window. We utilize this procedure when performing augmentation with one-step dynamics models (Dyn-Aug) as in Table 1.
Relation to 1-step policy improvement
Proof.
The second equality uses the identity in the goal-conditioned setting, and the final change corresponds to importance sampling.
Samples

Figure 6. Example ground-truth training and evaluation trajectories on pointmaze.

Figure 8. Generated samples in pointmaze environments. Samples are conditioned on the source displayed with , and ground-truth action, whose effect can be inferred by the ground-truth trajectory shown in black. These samples reflect the settings used in Table 1, where MCHC- uses while TD- and MC use .

Figure 8 (PDF p. 22). Generated samples in pointmaze environments, continued.
Extension to Offline RL with Contrastive RL
In this section, we apply our data augmentation strategy to Contrastive RL (CRL) (Eysenbach et al. [8]). In particular, instead of augmenting goals for training the policy, we use augmentation to learn better goal-conditioned (on-policy) value functions. CRL in OGBench (Park et al. [34]) uses the binary NCE objective to train a critic :
Here, , , an MC sample of future state, is the sigmoid function, and the critic is parameterized by . With full rollouts from the mixture policy, the optimal critic estimates a log density ratio with , and thus, for a fixed . However, in practice, standard CRL is subject to the same compositional generalization gap as BC, where we only have truncated trajectories from individual policies, not the mixture policy. Thus, if we can approximately sample goals from the successor measure with TD-Aug, we can improve the performance of value learning with CRL by replacing , with as in equation (12). With , we maintain the original CRL objective, and with , we mix in generated goals with proportion .
Isolating the contribution of TD-Aug solely to value learning, we train the policy on goals sampled without augmentation for DDPG+BC (Fujimoto & Gu [12]):
Where denotes a proportion of 0.5 for random states in the dataset, and 0.5 for future MC samples, thus only using ground-truth samples. In Table 8, we utilize the standard OGBench (Park et al. [34]) configuration for CRL, with for the augmentation probability when training the contrastive critic. We can see that augmenting goals with TD-Aug leads to improved overall performance (). We also apply our visual setup as in § 6.2 also utilizing , except we reconstruct generated frames with the decoder so that we can perform CRL without modification. Here, we see smaller gains (). Further work could study if synthetic samples or other data augmentation may allow for improved scaling of CRL in the offline setting, which has been successful previously in the online setting (Wang et al. [44]).
| pointmaze | CRL | +MC-Aug | +TD-Aug | +TD-Aug |
| medium-stitch | ||||
| large-stitch | ||||
| giant-stitch | ||||
| teleport-stitch | ||||
| average |
Table 8. TD-Aug with Contrastive RL. We utilize TD-Aug for improving value learning with CRL. We calculate success rate averaged over the last 3 checkpoints, and then report the mean and standard deviation over 3 seeds.
| visual-antmaze | CRL | +TD-Aug |
| medium-stitch | ||
| large-stitch | ||
| average |
Table 9. TD-Aug with Contrastive RL in visual environments.
References
- [1]Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. Advances in neural information processing systems, 30, 2017.arxiv.org/abs/1707.01495
- [2]Kevin Black, Noah Brown, Danny Drieß, Adnan Esmail, Michael Equi, Chelsea Finn, Niccolo Fusai, Lachy Groom, Karol Hausman, Brian Ichter, Szymon Jakubczak, Tim Jones, Liyiming Ke, Sergey Levine, Adrian Li-Bell, Mohith Mothukuri, Suraj Nair, Karl Pertsch, Lucy Xiaoyang Shi, James Tanner, Quan Vuong, Anna Walling, Haohuan Wang, and Ury Zhilinsky. π₀: A vision-language-action flow model for general robot control, 2024. URL https://arxiv.org/abs/2410.24164.
- [3]Jake Bruce, Michael D Dennis, Ashley Edwards, Jack Parker-Holder, Yuge Shi, Edward Hughes, Matthew Lai, Aditi Mavalan kar, Richie Steigerwald, Chris Apps, et al. Genie: Generative interactive environments. In Forty-first International Conference on Machine Learning, 2024.arxiv.org/abs/2402.15391
- [4]Hojun Chung, Junseo Lee, and Songhwai Oh. Offline reinforcement learning with universal horizon models, 2026. URL https://arxiv.org/abs/2605.15603.
- [5]Quan Dao, Hao Phung, Binh Nguyen, and Anh Tran. Flow matching in latent space. arXiv preprint arXiv:2307.08698, 2023.
- [6]Peter Dayan. Improving generalization for temporal difference learning: The successor representation. Neural computation, 5(4):613–624, 1993.DOI
- [7]Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Vlad Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. Impala: Scalable distributed deep-rl with importance weighted actor-learner architectures. In International conference on machine learning, pp. 1407–1416. PMLR, 2018.arxiv.org/abs/1802.01561
- [8]Benjamin Eysenbach, Tianjun Zhang, Sergey Levine, and Russ R Salakhutdinov. Contrastive learning as goal-conditioned reinforcement learning. Advances in Neural Information Processing Systems, 35:35603–35620, 2022.arxiv.org/abs/2206.07568
- [9]Jesse Farebrother, Matteo Pirotta, Andrea Tirinzoni, Remi Munos, Alessandro Lazaric, and Ahmed Touati. Temporal difference flows. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=j6H7c3aQy b.arxiv.org/abs/2503.09817
- [10]Jesse Farebrother, Matteo Pirotta, Andrea Tirinzoni, Marc G. Bellemare, Alessandro Lazaric, and Ahmed Touati. Compositional planning with jumpy world models, 2026. URL https://arxiv.org/abs/2602.19634.
- [11]Vladimir Feinberg, Alvin Wan, Jon Stoica, Michael I Jordan, Joseph E Gonzalez, and Sergey Levine. Model-based value estimation for efficient model-free reinforcement learning. arXiv preprint arXiv:1803.00101, 2018.arxiv.org/abs/1803.00101
- [12]Scott Fujimoto and Shixiang Shane Gu. A minimalist approach to offline reinforcement learning. Advances in neural information processing systems, 34:20132–20145, 2021.arxiv.org/abs/2106.06860
- [13]Raj Ghugare, Matthieu Geist, Glen Berseth, and Benjamin Eysenbach. Closing the gap between TD learning and supervised learning - a generalisation point of view. In The Twelfth International Conference on Learning Representations, 2024. URL https://arxiv.org/abs/2401.11237.
- [14]Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Z. Ghahramani, M. Welling, C. Cortes, N. Lawrence, and K.Q. Weinberger (eds.), Advances in Neural Information Processing Systems, volume 27. Curran Associates, Inc., 2014. URL https://proceedings.neurips.cc/paper_files/paper/2014/file/f033ed80deb0234979a61f95710dbe25-Paper.pdf.
- [15]David Ha and Jürgen Schmidhuber. Recurrent world models facilitate policy evolution. Advances in neural information processing systems, 31, 2018.arxiv.org/abs/1809.01999
- [16]Danijar Hafner, Timothy Lillicrap, Jimmy Ba, and Mohammad Norouzi. Dream to control: Learning behaviors by latent imagination, 2020. URL https://arxiv.org/abs/1912.01603.
- [17]Danijar Hafner, Wilson Yan, and Timothy Lillicrap. Training agents inside of scalable world models. arXiv preprint arXiv:2509.24527, 2025.arxiv.org/abs/2509.24527
- [18]Physical Intelligence, Ali Amin, Rachelle Aniceto, Ashwin Balakrishna, Kevin Black, Ken Conley, Grace Connors, James Darpinian, Karan Dhabalia, Jared DiCarlo, Danny Driess, Michael Equi, Adnan Esmail, Yunhao Fang, Chelsea Finn, Catherine Glossop, Thomas Godden, Ivan Goryachev, Lachy Groom, Hunter Hancock, Karol Hausman, Gashon Hussein, Brian Ichter, Szymon Jakubczak, Rowan Jen, Tim Jones, Ben Katz, Liyiming Ke, Chandra Kuchi, Marinda Lamb, Devin LeBlanc, Sergey Levine, Adrian Li-Bell, Yao Lu, Vishnu Mano, Mohith Mothukuri, Suraj Nair, Karl Pertsch, Allen Z. Ren, Charvi Sharma, Lucy Xiaoyang Shi, Laura Smith, Jost Tobias Springenberg, Kyle Stachowicz, Will Stoeckle, Alex Swerdlow, James Tanner, Marcel Torne, Quan Vuong, Anna Walling, Haohuan Wang, Blake Williams, Sukwon Yoo, Lili Yu, Ury Zhilinsky, and Zhiyuan Zhou. π*θ: a vla that learns from experience, 2025. URL https://arxiv.org/abs/2511.14759.
- [19]Michael Janner, Igor Mordatch, and Sergey Levine. γ-models: Generative temporal difference learning for infinite-horizon prediction. In Advances in Neural Information Processing Systems, 2020.
- [20]Michael Janner, Yilun Du, Joshua B. Tenenbaum, and Sergey Levine. Planning with diffusion for flexible behavior synthesis, 2022. URL https://arxiv.org/abs/2205.09991.
- [21]Leslie Pack Kaelbling. Learning to achieve goals. In International Joint Conference on Artificial Intelligence, 1993.
- [22]Ilya Kostrikov, Denis Yarats, and Rob Fergus. Image augmentation is all you need: Regularizing deep reinforcement learning from pixels. arXiv preprint arXiv:2004.13649, 2020.arxiv.org/abs/2004.13649
- [23]Ilya Kostrikov, Ashvin Nair, and Sergey Levine. Offline reinforcement learning with implicit q-learning. In International Conference on Learning Representations, 2022. URL https://arxiv.org/abs/2110.06169.
- [24]Daniel Lawson, Adriana Hugessen, Charlotte Cloutier, Glen Berseth, and Khimya Khetarpal. Self-predictive representations for combinatorial generalization in behavioral cloning, 2025. URL https://arxiv.org/abs/2506.10137.
- [25]Kyowoon Lee and Jaesik Choi. State-covering trajectory stitching for diffusion planners, 2025. URL https://arxiv.org/abs/2506.00895.
- [26]Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. Flow matching for generative modeling. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=PqvMRDCJT9t.arxiv.org/abs/2210.02747
- [27]Stuart Lloyd. Least squares quantization in pcm. IEEE transactions on information theory, 28(2): 129–137, 1982.DOI
- [28]Cong Lu, Philip J. Ball, Yee Whye Teh, and Jack Parker-Holder. Synthetic experience replay. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=6jNQ1AY1Uf.arxiv.org/abs/2303.06614
- [29]Yunhao Luo, Utkarsh A. Mishra, Yilun Du, and Danfei Xu. Generative trajectory stitching through diffusion composition, 2025. URL https://arxiv.org/abs/2503.05153.
- [30]Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, February 2015. ISSN 00280836. URL http://dx.doi.org/10.1038/nature14236.
- [31]Vivek Myers, Bill Chunyuan Zheng, Anca Dragan, Kuan Fang, and Sergey Levine. Temporal representation alignment: Successor features enable emergent compositionality in robot instruction following, 2025. URL https://arxiv.org/abs/2502.05454.
- [32]Abby O’Neill, Abdul Rehman, Abhiram Maddukuri, Abhishek Gupta, Abhishek Padalkar, Abraham Lee, Acorn Pooley, Agrim Gupta, Ajay Mandlekar, Ajinkya Jain, et al. Open x-embodiment: Robotic learning datasets and rt-x models: Open x-embodiment collaboration. In 2024 IEEE International Conference on Robotics and Automation (ICRA), pp. 6892–6903. IEEE, 2024.arxiv.org/abs/2310.08864
- [33]Seohong Park, Dibya Ghosh, Benjamin Eysenbach, and Sergey Levine. Hiql: Offline goal-conditioned rl with latent states as actions. Advances in Neural Information Processing Systems, 36:34866–34891, 2023.arxiv.org/abs/2307.11949
- [34]Seohong Park, Kevin Frans, Benjamin Eysenbach, and Sergey Levine. Ogbench: Benchmarking offline goal-conditioned rl. In International Conference on Learning Representations (ICLR), 2025a. URL https://arxiv.org/abs/2410.20092.
- [35]Seohong Park, Qiyang Li, and Sergey Levine. Flow q-learning. In Forty-second International Conference on Machine Learning, 2025b. URL https://openreview.net/forum?id=KVf2SFL1pi.arxiv.org/abs/2502.02538
- [36]Seohong Park, Kevin Frans, Deepinder Mann, Benjamin Eysenbach, Aviral Kumar, and Sergey Levine. Horizon reduction makes rl scalable. Advances in Neural Information Processing Systems, 38:8350–8389, 2026a.arxiv.org/abs/2506.04168
- [37]Seohong Park, Deepinder Mann, and Sergey Levine. Dual goal representations, 2026b. URL https://arxiv.org/abs/2510.06714.
- [38]Xue Bin Peng, Aviral Kumar, Grace Zhang, and Sergey Levine. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning. arXiv preprint arXiv:1910.00177, 2019.
- [39]Jan Peters and Stefan Schaal. Reinforcement learning by reward-weighted regression for operational space control. In Proceedings of the 24th international conference on Machine learning, pp. 745–750, 2007.DOI
- [40]Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 1530–1538, Lille, France, 07–09 Jul 2015. PMLR. URL https://proceedings.mlr.press/v37/rezende15.html.arxiv.org/abs/1505.05770
- [41]Richard S Sutton. Dyna, an integrated architecture for learning, planning, and reacting. ACM Sigart Bulletin, 2(4):160–163, 1991.DOI
- [42]Shantanu Thakoor, Mark Rowland, Diana Borsa, Will Dabney, Remi Munos, and Andre Barreto. Generalised policy improvement with geometric policy composition. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato (eds.), Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 21272–21307. PMLR, 17–23 Jul 2022. URL https://proceedings.mlr.press/v162/thakoor22a.html.arxiv.org/abs/2206.08736
- [43]Manan Tomar, Philippe Hansen-Estruch, Philip Bachman, Alex Lamb, John Langford, Matthew E. Taylor, and Sergey Levine. Video occupancy models, 2024. URL https://arxiv.org/abs/2407.09533.
- [44]Kevin Wang, Ishaan Javali, Michał Bortkiewicz, Tomasz Trzcinski, and Benjamin Eysenbach. 1000 layer networks for self-supervised rl: Scaling depth can enable new goal-reaching capabilities. Advances in Neural Information Processing Systems, 38:157643–157670, 2026.arxiv.org/abs/2503.14858
- [45]Qing Wang, Jiechao Xiong, Lei Han, Han Liu, Tong Zhang, et al. Exponentially weighted imitation learning for batched historical data. Advances in Neural Information Processing Systems, 31, 2018.
- [46]Tongzhou Wang, Antonio Torralba, Phillip Isola, and Amy Zhang. Optimal goal-reaching reinforcement learning via quasimetric learning. In International Conference on Machine Learning. PMLR, 2023. URL https://arxiv.org/abs/2304.01203.
- [47]Ziyu Wang, Alexander Novikov, Konrad Zolna, Josh S Merel, Jost Tobias Springenberg, Scott E Reed, Bobak Shahriari, Noah Siegel, Caglar Gulcehre, Nicolas Heess, et al. Critic regularized regression. Advances in Neural Information Processing Systems, 33:7768–7778, 2020.arxiv.org/abs/2006.15134
- [48]Harley Wiltzer, Jesse Farebrother, Arthur Gretton, Yunhao Tang, André Barreto, Will Dabney, Marc G. Bellemare, and Mark Rowland. A distributional analogue to the successor representation, 2024. URL https://arxiv.org/abs/2402.08530.
- [49]Denis Yarats, Amy Zhang, Ilya Kostrikov, Brandon Amos, Joelle Pineau, and Rob Fergus. Improving sample efficiency in model-free reinforcement learning from images. In Proceedings of the aaai conference on artificial intelligence, volume 35, pp. 10674–10681, 2021.
- [50]Chongyi Zheng, Seohong Park, Sergey Levine, and Benjamin Eysenbach. Intention-conditioned flow occupancy models, 2026. URL https://arxiv.org/abs/2506.08902.
- [51]Zhaoyi Zhou, Chuning Zhu, Runlong Zhou, Qiwen Cui, Abhishek Gupta, and Simon Shaolei Du. Free from bellman completeness: Trajectory stitching via model-based return-conditioned supervised learning. In The Twelfth International Conference on Learning Representations, 2024. URL https://arxiv.org/abs/2310.19308.


