potentialpaper

Imitation from Observations with Trajectory-Level Generative Embeddings

Yongtao Qu, Shangzhe Li, Weitong Zhang

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. We consider the offline imitation learning from observations (LfO), where expert demonstrations are scarce and contain only state observations, and the suboptimal policy is far from expert behavior. In this regime, many existing imitation learning approaches struggle to extract useful information from imperfect data since they impose strict support constraints and rely on brittle one-step models. To tackle this challenge, we propose Trajectory-level Generative Embedding (TGE) for offline LfO. TGE constructs a dense, smooth surrogate reward by using particle based entropy estimation to maximize the log-likelihood of expert trajectories in the latent space of a temporal diffusion model trained on offline suboptimal data. By leveraging the structured geometry of the learned diffusion embedding, TGE captures long-horizon temporal dynamics and effectively bridges the gap under severe support mismatch, ensuring a robust learning signal even when offline data is distributionally distinct from the expert. Empirically, the proposed approach consistently matches or outperforms prior offline LfO methods across a range of D4RL locomotion and manipulation benchmarks.

From the authors: Shangzhe Li · edit · also an author?

Nothing yet.

How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
6 Feb 2026ReALM-GEN @ ICLR 2026submittedReALM-GEN @ ICLR 2026Accepted—[1]
3 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:46 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The submitted paper considers the offline imitation learning from observations problem and proposes a novel diffusion model based approach for generating rewards for offline RL. The proposed approach is evaluated in several experiments, often resulting in clear performance improvements.

Initial meta review All reviewers appreciate the proposed idea/method but identify shortcomings in the theoretical justification, the empirical evaluation, and the discussion of limitations. The shortcomings regarding theoretical justification should be relatively easy to address by a careful reformulation of the claims. The empirical evaluation would need to be at least extended to investigate the sensitivity with respect to expert data and several missing ablations (e.g., what is the performance of the TGE reward only? is there a leakage from the diffuser into state-only rewards?). Last but not least, an extended investigation and discussion of the observed failure case in line with the reviewers' comments would be important.

Final justification

Post meta review The authors provided an extensive rebuttal which resolved most concerns and provides the missing evidence. Post-rebuttal the reviewers unanimously recommended the acceptance of the paper. Given the sensible basic idea of the paper, clear exposition, and good empirical performance on a relevant but challenging problem, I follow this recommendation and suggest acceptance of the paper.

Area Chair 2r9Q · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The submitted paper considers the offline imitation learning from observations problem and proposes a novel diffusion model based approach for generating rewards for offline RL. The proposed approach is evaluated in several experiments, often resulting in clear performance improvements.

Initial meta review All reviewers appreciate the proposed idea/method but identify shortcomings in the theoretical justification, the empirical evaluation, and the discussion of limitations. The shortcomings regarding theoretical justification should be relatively easy to address by a careful reformulation of the claims. The empirical evaluation would need to be at least extended to investigate the sensitivity with respect to expert data and several missing ablations (e.g., what is the performance of the TGE reward only? is there a leakage from the diffuser into state-only rewards?). Last but not least, an extended investigation and discussion of the observed failure case in line with the reviewers' comments would be important.

Final justification

Post meta review The authors provided an extensive rebuttal which resolved most concerns and provides the missing evidence. Post-rebuttal the reviewers unanimously recommended the acceptance of the paper. Given the sensible basic idea of the paper, clear exposition, and good empirical performance on a relevant but challenging problem, I follow this recommendation and suggest acceptance of the paper.

2 comments
Authors · CommentOpenReview ↗

We thank the Area Chair for the clear summary and thank all Reviewers for their detailed review. We have addressed the main concerns through both clarification and substantial additional experiments. Specifically, we reformulate the theoretical claim as an exact equivalence to a smoothed particle objective, with an explicit approximation guarantee to the original objective; add controlled ReBRAC ablations isolating the TGE reward, diffusion representation, and adaptive BC weighting; evaluate sensitivity to the number, choice, noise, and fragmentation of expert trajectories; and provide causal past-only and state-only variants to assess the use of future context. We also correct the IOSTOM results, analyze computational costs, and expand the analysis of the observed failure cases and method limitations.

These additions should strengthen the theoretical precision, empirical attribution, and scope of the paper, and will be incorporated into the revised manuscript.

Authors · CommentOpenReview ↗

Dear Area Chair,

Thank you very much for your time and effort in handling our submission. As the discussion phase is approaching its end, we would greatly appreciate your help in ensuring that the reviewers have an opportunity to consider our rebuttal and additional experiments. We hope that our responses have addressed the reviewers' questions and concerns, and we would be grateful if the updated information could be taken into account during the final evaluation.

Thank you again for your consideration.

Reviewer MhikOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
2/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

TGE tackles offline imitation from observations: you get one observation-only expert episode plus a larger suboptimal state-action dataset, and no environment interaction. The method trains a trajectory diffusion model (Diffuser) on the suboptimal data and reuses its U-Net encoder to map short trajectory segments into a latent space. Each segment's reward is its average distance to the nearest expert segments in that space (closer means more expert-like), motivated as a particle-based cross-entropy estimate. They relabel the suboptimal data with this reward and run offline RL (ReBRAC by default, also IQL), with a reward-weighted BC term inside ReBRAC. The pitch: unlike DICE / density-ratio methods, the signal stays informative when the offline data barely covers the expert. Evaluated on D4RL locomotion, Adroit, and Franka Kitchen against SMODICE, PW-DICE, DILO, IOSTOM, Diffuser-BC, and SEABO.

Strengths and weaknesses

Strengths:

  • Novel idea: reuse a diffusion planner's encoder as the metric for a nearest-neighbor imitation reward, not a discriminator. Fig 2's t-SNE shows expert and suboptimal segments separating with no discriminative supervision.
  • Strong support-mismatch result: with no expert in the buffer, TGE holds while DICE collapses (Tab. 2 halfcheetah medium+random, 44.2 vs ~2-3).
  • Adroit human+expert is strong and backbone-controlled (Tab. 13): same backbone, the diffusion latent crushes a raw-state NN reward on door and hammer. Honest reporting throughout (they own the cloned-data losses).

Weaknesses:

  • Two undiscussed soundness gaps. The Sec 4.1 "derivation" is a heuristic dressed as a proof (it drops the latent-dimension exponent and swaps a mean-of-logs for a log-of-mean), and the reward is built from the next 32 dataset steps yet stored as a state reward, so it leaks the data's future.
  • Cant separate the reward from the backbone. The one fixed-backbone control (Tab. 13) shows it barely helps on locomotion (a wash vs raw-state NN, even losing walker2d), and the controls that would isolate it (uniform/SEABO reward on ReBRAC, or the reward on a non-diffusion encoder) are missing.
  • "Consistently matches or outperforms" overstates it. TGE loses the whole cloned+expert block (door 11.2 vs DILO 100.9), and the key repro detail, how the embedding leaves the U-Net bottleneck, isnt stated.
Questions
  1. The reward uses the next 32 dataset steps but is stored as a state reward. Can you show a causal / state-only variant, or that this leakage isnt driving the gains? Would raise my confidence.
  2. Same backbone (ReBRAC) with a uniform reward, the SEABO reward, and the reward on a non-diffusion encoder (CURL/VAE): does the diffusion latent still win on locomotion? If yes, i'll raise my score. Tab. 13 suggests not.
  3. Can you justify the derivation's two approximation steps, or just call the reward entropy-motivated rather than derived? It affects the Q3 checklist answer.
  4. Performance hinges on one expert episode. How sensitive is it to which one, and to how many? Std over ~5 episodes would tell me if it's stable.
Limitations

Partially. They cover the diminishing edge on well-overlapping (cloned) data, the extra compute, and the dropped IOSTOM run, so the soft spots arent hidden. Whats missing: single-episode sensitivity, the future-dependent reward, and the encoder reproducibility gap, and the theory reads as more complete than it is. Im not penalizing honesty, just noting the gaps.

Final justification

Thanks for the detailed rebuttal and additional experiments. The causal variant, fixed-backbone reward ablations, and expert sensitivity analysis address my main concerns, and the clarification of the theoretical objective is also helpful. There are still some limitations, but overall I think the rebuttal strengthens the paper enough. I’ll raise my score to 4.

Formatting concerns

the kernel temperature is written two ways (body vs the hyperparameter table), the nearest-neighbor index switches symbols between the setup and the equations, and the temperature disappears from the main reward equation.

3 comments
Authors · CommentOpenReview ↗

Rebuttal by Authors (1)

Thank you for your supportive review and constructive suggestions. We address your questions as follows.

Q1. Can you show a causal / state-only variant, or that this leakage isnt driving the gains?

A1. Thank you for raising this concern. We agree that our original notation r(st)r(s_t) could be misleading. For each transition at time tt, we first construct the future segment and compute its embedding zt=ϕ(st,st+1,...,st+H−1)z_t=\phi(s_t,s_{t+1},...,s_{t+H-1}) and assign the scalar r(zt)r(z_t) to the transition (st,at,st+1)(s_t,a_t,s_{t+1}). The relabeled dataset therefore contains standard tuples (st,at,r(zt),st+1)(s_t,a_t,r(z_t),s_{t+1}), but r(zt)r(z_t) is a trajectory-segment-conditioned label rather than a Markov reward function of sts_t alone. This reward is computed only during offline relabeling, while the learned policy receives only the current state at evaluation. Thus, no future observations are required at deployment. We will revise the notation throughout the paper, explicitly describe the reward as trajectory-conditioned.

To further test whether this future context drives the gains, we implemented a causal variant using only the current and preceding observations: ztpast=ϕ(st−H+1,...,st−1,st)z^{past}_t=\phi(s_{t-H+1},...,s_{t-1},s_t). The results show that causal past-only variant remains competitive. The gap on Ant indicates that future context can provide useful trajectory information, but it is not the sole source of TGE’s performance.

previous H future H
hopper-medium 67.64±0.94 67.90±1.59
halfcheetah-medium 44.82±0.08 48.00±0.30
walker2d-medium 82.13±0.29 84.56±0.68
ant-medium 108.55±1.15 124.12±1.79

Q2. Can you test the different rewards using the same ReBRAC baseline?

A2. We compare Uniform reward, Raw state, VAE, SEABO and TGE with the ReBRAC backbone fixed. TGE achieves the best performance in 11/12 of the tasks and the highest average score overall.

Uniform Raw state VAE(H=32) SEABO TGE(H=32)
hopper-medium 59.97±1.51 61.28±1.21 60.37±2.53 65.18±3.49 67.90±1.59
halfcheetah-medium 42.80±0.25 44.24±0.19 46.39±0.12 48.21±0.94 48.00±0.30
walker2d-medium 76.40±1.11 80.20±0.45 81.23±1.93 75.61±1.76 84.56±0.68
ant-medium 92.70±3.23 114.47±0.44 115.44±0.04 108.17±1.54 124.12±1.79
hopper-random+30 35.37±26.52 80.77±11.74 98.63±20.13 82.22±21.46 88.86±12.28
halfcheetah-random+30 2.25±0.01 82.84±2.29 87.65±1.91 67.12±4.91 89.70±1.63
walker2d-random+30 68.23±57.74 101.24±11.36 103.93±3.66 104.43±4.26 105.48±2.52
ant-random+30 37.75±7.05 108.34±5.50 111.15±7.85 96.65±12.66 111.46±4.14
hopper-medium+30 59.32±2.57 81.64±8.24 98.63±7.84 86.84±8.68 97.24±2.22
halfcheetah-medium+30 82.84±2.29 44.41±0.17 89.91±1.76 87.42±3.63 91.83±0.80
walker2d-medium+30 77.84±1.26 80.40±0.91 107.29±1.86 77.81±1.86 108.02±0.76
ant-medium+30 93.05±1.19 119.11±1.31 117.48±5.44 115.30±1.91 130.23±1.36

Q3. Can you justify the derivation's two approximation steps?

A3. Thank you for raising this concern and we would like to clarify the derivation as follows: First, dropping the latent-dimension exponent is not an approximation, since log⁡dk(z)dz=dzlog⁡dk(z)\log d_k(z)^{d_z}=d_z\log d_k(z) and the fixed positive factor dzd_z does not change the minimizer. Second, we smooth each term from log⁡dk(z)\log d_k(z) to log⁡(dk(z)+σ)\log(d_k(z)+\sigma) to avoid the singularity at zero. Since log⁡(d+σ)=log⁡σ+log⁡(1+d/σ),\log(d+\sigma)=\logσ+\log(1+d/\sigma), maximizing the TGE reward is equivalent to minimizing the smoothed particle objective Hσ\mathcal H_\sigma. Moreover, under 0<δ≤dk(z)≤D0<\delta \le d_k(z)\le D, we obtain an explicit approximation guarantee with respect to the original objective:

H0(π^)−inf⁡πH0(π)≤η+log⁡1+σ/δ1+σ/D≤η+σδ.\mathcal H_0(\widehat\pi)-\inf_\pi\mathcal H_0(\pi) \le \eta+\log\frac{1+\sigma/\delta}{1+\sigma/D} \le \eta+\frac{\sigma}{\delta}.

Therefore, the proposed reward exactly optimizes a smoothed particle cross-entropy and admits an explicit approximation guarantee with respect to the original particle objective. Since all embeddings are normalized onto the unit sphere in our implementation, we additionally have$D\le 2$. We will add this proposition and its proof to the revised manuscript and replace the informal approximation accordingly. We would also like to clarify that a similar approach in handling the cross-entropy is adopted in Liu and Abbel, 2021 [1].

[1] Hao Liu and Pieter Abbeel. Behavior from the void: Unsupervised active pre-training. In Advances in Neural Information Processing Systems, volume 34, 2021.

Authors · CommentOpenReview ↗

Rebuttal by Authors (2)

Q4. Can you verify the sensitivity of TGE to expert quality and quantity?

A4. We evaluated TGE using five independently selected single expert episodes. Performance is stable across expert choices. We also evaluated 1, 3, 5, and 10 expert episodes and observed nearly unchanged downstream performance, indicating that one complete expert episode already provides sufficient coverage in these benchmarks. We also report other expert sensitivity ablations in our response to Reviewer fvsu Q2 and a fragmented expert experiment in response to Reviewer oJda Q4. We will include both analyses in the appendix.

ep0 ep1 ep2 ep3 ep4 std(ddof=1)
hopper-medium 67.90 69.92 64.20 70.60 64.53 2.97
halfcheetah-medium 48.00 47.26 47.25 47.27 47.86 0.37
walker2d-medium 84.56 84.01 84.48 84.37 83.31 0.51
ant-medium 124.12 123.19 121.85 123.82 123.14 0.87
Authors · CommentOpenReview ↗

Dear Reviewer Mhik,

Thank you again for your thoughtful review and helpful feedback on our submission. As the discussion period is coming to the end, we would like to briefly follow up and ask whether our rebuttal and the additional experimental results have addressed the concerns raised in your review. If there are any remaining questions or aspects that need further clarification, please feel free to let us know. We would be glad to provide any additional details that may be helpful.

We sincerely appreciate your time and consideration.

Reviewer fvsuOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies offline imitation learning from observations, where the expert data consist of one state-only expert episode and the learner also has access to a larger suboptimal offline state-action dataset.

The proposed method, Trajectory-level Generative Embeddings (TGE), trains a trajectory-level diffusion model on the offline dataset, uses its encoder to embed trajectory segments, and constructs a dense surrogate reward from the logarithmic-kernel distance to the m nearest expert embeddings. The reward-labeled offline dataset is then used with standard offline RL backbones such as IQL and ReBRAC.

The paper evaluates on D4RL locomotion, Adroit, Franka Kitchen, severe support-mismatch settings, and two cross-embodiment dynamics-mismatch tasks.

Strengths and weaknesses

Strengths

The support-mismatch experiments are well aligned with the paper’s central claim. The medium and medium+random settings remove expert trajectories from the offline buffer and directly test whether density-ratio/DICE-style methods degrade when support overlap is poor. In these settings, TGE remains strong while several baselines degrade sharply, especially on halfcheetah medium+random.

The kernel-choice ablation is useful. The comparison between logarithmic and Gaussian kernels shows that the heavy-tailed log kernel preserves more reward spread between expert and suboptimal trajectories, yielding a more usable learning signal.

The SEABO comparison is a strong targeted baseline. It isolates whether the gain comes merely from nearest-neighbor reward shaping or from the learned trajectory-level latent geometry. TGE and SEABO are comparable on locomotion, but TGE is much stronger on Adroit, supporting the claim that learned temporal embeddings help when raw state distance is a poor behavioral metric.

The evaluation is reasonably broad: locomotion, dexterous manipulation, kitchen tasks, severe support mismatch, and dynamics mismatch. The paper also reports means and standard deviations over five seeds for the main D4RL results.

Weaknesses

The theoretical derivation is only loosely connected to the implemented reward. Eq. 1 contains a dimension-dependent hypersphere-volume term, while the implemented reward drops this exponent and introduces a temperature σ in the kernel. The paper presents the reward as approximately minimizing particle-based cross-entropy, but the implementation is better described as inspired by that estimator rather than directly derived from it.

The dependence on one expert trajectory is not stress-tested. Since all nearest-neighbor expert embeddings come from a single observation-only expert episode, the method could be sensitive to expert trajectory quality, coverage, or idiosyncrasies. The paper does not vary the number or quality of expert demonstrations.

The Adroit cloned+expert underperformance is explained post-hoc. The authors attribute the losses to cloned data having strong structural overlap with expert behavior, which favors density-ratio methods, but they do not provide an overlap statistic, density estimate, or embedding-space analysis to support this explanation.

The main method is not purely the TGE reward. The default reported system uses ReBRAC plus adaptive BC weighting by the normalized TGE reward. This weighting is itself a meaningful algorithmic change, and the ablation is only shown on two tasks, so the paper does not fully isolate the contribution of the learned trajectory embedding reward from the downstream policy-learning modifications.

The compute cost is nontrivial. TGE requires 4–6 hours of diffusion pretraining plus about 1 hour for reward annotation per dataset, but the paper does not provide total wall-clock comparisons against DILO, IOSTOM, or other baselines. This makes the practical cost-benefit tradeoff unclear.

Questions
  1. How does the implemented temperature σ relate to the particle-based entropy estimator in Section 4.1? Is there a derivation, or is it an empirical kernel-scaling parameter?

  2. How sensitive is TGE to the number and quality of expert trajectories? Please ablate one vs. several expert episodes, and possibly suboptimal/noisy expert episodes.

  3. Can you quantify the claimed structural overlap in Adroit cloned+expert, for example with embedding overlap, nearest-neighbor distances, or density estimates?

  4. How much of the main improvement comes from adaptive BC weighting? Please report no-weighting results across the main benchmark, not only two tasks.

  5. Can you provide total wall-clock comparisons including diffusion pretraining, reward annotation, and offline RL training for TGE versus DILO/IOSTOM?

Limitations

yes

Final justification

The authors have addressed my main concerns.

Formatting concerns

none

4 comments
Authors · CommentOpenReview ↗

Rebuttal by Authors (1)

Thank you for your supportive review and constructive suggestions. We address your questions as follows.

Q1. How does the implemented temperature σ\sigma relate to the particle-based entropy estimator?

A1. The temperature σ\sigma is a formal smoothing interpretation. After removing the fixed factor$d_z$, Eq. (1) yields the unsmoothed objective

H0(π)=Ez∼ρπ[1m∑k=1mlog⁡dk(z)]\mathcal H_0(\pi)=\mathbb E_{z\sim\rho_\pi}[\frac1m\sum_{k=1}^m \log d_k(z)]

We then introduce σ>0σ>0 to avoid the singularity at dk(z)=0d_k(z)=0, giving

Hσ(π)=Ez∼ρπ[1m∑k=1mlog⁡(dk(z)+σ)].\mathcal H_\sigma(\pi)=\mathbb E_{z\sim\rho_\pi}[\frac1m\sum_{k=1}^m\log(d_k(z)+\sigma)].

Since log⁡(d+σ)=log⁡σ+log⁡(1+d/σ)\log(d+\sigma)=\logσ+\log(1+d/\sigma), maximizing our implemented reward is still exactly equivalent to minimizing Hσ\mathcal H_\sigma. Moreover, under dk(z)≥δ>0d_k(z) \ge \delta > 0, the approximation gap to H0\mathcal H_0 is bounded by log⁡(1+σ/δ)\log(1+\sigma/\delta). Thus, σ\sigma has a principled role as a smoothing and distance-scaling parameter, while its numerical value remains an empirical hyperparameter.


Q2. How sensitive is TGE to the number and quality of expert trajectories?

A2. We evaluated sensitivity along three dimensions: the number of expert episodes, perturbations to the expert embeddings and the choice of the single expert episode.

First, using the same ReBRAC configuration, we varied the number of expert episodes from 1 to 3, 5, and 10. Performance remained nearly unchanged:

1 episode 3 eps 5 eps 10 eps
hopper-medium 67.90±1.59 67.78±2.36 67.92±0.32 68.17±3.35
walker2d-medium 84.56±0.68 83.94±1.07 84.10±0.66 83.74±0.43

Second, we perturbed the expert latent embeddings using$z'=z+ε,where, whereε\sim\mathcal N(0,σ^2I)$ . Results show that TGE is robust to small latent perturbations:

σ=0\sigma=0 σ=0.05\sigma=0.05 σ=0.1\sigma=0.1 σ=0.2\sigma=0.2
hopper-medium 67.90±1.59 67.57±1.87 66.87±1.69 65.29±4.72
walker2d-medium 84.56±0.68 83.88±0.50 84.01±0.62 84.07±0.65

Finally, we evaluated five randomly selected single expert episodes. The resulting performance was stable across selections. We report these results in our response to Reviewer Mhik Q4 and we also did an fragmented expert experiment in response to Reviewer oJda Q4.


Q3. Can you quantify the claimed structural overlap in Adroit cloned+expert?

A3. We quantified expert–behavior overlap using bidirectional nearest-neighbor distances and expert coveragee. Contrary to our original hypothesis, cloned+expert does not consistently exhibit smaller distances or higher expert coverage than human+expert across the three Adroit tasks. We therefore remove the claim that stronger structural overlap explains TGE’s performance on cloned data.

Instead, our additional analysis points to the order-free nature of TGE’s nearest-neighbor reward. Each behavior segment is matched independently to an unordered set of expert segments, which can produce temporally inconsistent correspondences in manipulation tasks. We provide a more detailed failure analysis, including a phase-aware TGE variant and practical indicators of when TGE may underperform, in our response to Reviewer oJda Q1.


Q4. How much of the main improvement comes from adaptive BC weighting?

A4. We extended the ablation to more settings while keeping all the configuration fixed. Results show that adaptive BC improves performance on 11 of 18 settings. Importantly, the unweighted variant still learns effective policies across the benchmark, showing that the TGE reward itself provides the primary learning signal, while adaptive BC offers an additional improvement.

w/o Adaptive BC w Adaptive BC
halfcheetah-medium 44.78±0.08 48.00±0.30
ant-medium 120.13±0.45 124.12±1.79
hopper-medium+30 92.21±7.00 97.24±2.22
halfcheetah-medium+30 82.27±1.14 91.83±0.80
walker2d-medium+30 109.08±0.59 108.02±0.76
ant-medium+30 125.40±0.72 130.23±1.36
hopper-random-medium 58.76±2.17 65.30±1.87
halfcheetah-random-medium 43.49±0.75 44.22±0.14
walker2d-random-medium 80.77±0.42 79.12±1.21
ant-random-medium 107.28±0.26 106.28±0.55
hopper-random+30 91.09±9.24 88.86±12.28
halfcheetah-random+30 67.00±8.78 89.70±1.63
walker2d-random+30 92.51±16.58 105.48±2.52
ant-random+30 105.27±8.76 111.46±4.14
pen-human 88.35±6.47 90.30±5.36
pen-cloned 58.59±18.10 63.15±5.11
door-human 57.89±5.55 101.43±3.73
hammer-human 93.33±7.65 109.63±9.16
Authors · CommentOpenReview ↗

Rebuttal by Authors (2)

Q5. Can you provide total wall-clock comparisons for TGE versus DILO/IOSTOM?

A5. We measured wall-clock time on Hopper-Random+Expert setting using a single NVIDIA L40S GPU. We decompose the runtime into: (i) one-time encoder pretraining, (ii) reward label, and (iii) offline policy optimization. All times are reported in seconds.

IOSTOM and DILO are trained for 500K gradient steps following their reported convergence settings, whereas TGE, VAE, and SEABO use ReBRAC and converge within 300K steps. We therefore report both the 300K-step runtime and 500K-step runtime for fair comparison.

These results show that diffusion pretraining is the main computational cost of TGE. Including this one-time stage, TGE is more expensive end-to-end than IOSTOM, SEABO, and VAE, and has a total runtime comparable to DILO. Once the representation has been pretrained, however, the additional runtime of TGE is lower than that of the full IOSTOM pipeline and substantially lower than DILO. Moreover, the same pretrained representation can be reused for different expert demonstrations, reward relabeling runs, and downstream policy training on the same dataset, spreading the pretraining cost across multiple experiments.

Note that we optimized batching and caching in our implementation. Compared with the timings reported in Appendix A.3, diffusion pretraining now takes approximately one hour and reward annotation takes 42.9 seconds. We will update the appendix with the corrected end-to-end measurements and explicitly discuss the performance–computation trade-off.

Method Encoder pretrain (one-time) Reward label RL @ 300k RL @ 500k End-to-end runtime
TGE ≈3600 42.9 448.7 — ≈4091 (-3600)
VAE 557.3 19.7 — — ≈1025 (-577)
SEABO — 30.5 444.9 — 475.4
IOSTOM — — 413.2 680.7 680.7
DILO — — 2287.2 3841.5 3841.5
Reviewer fvsu · CommentOpenReview ↗

Thank you for the detailed rebuttal and additional experiments. The authors have addressed my main concerns. I will increase my score accordingly. Remaining limitations include further isolating the contribution of the TGE reward itself from downstream policy learning choices and better characterizing failure modes, but these do not substantially change my overall assessment.

Authors · CommentOpenReview ↗

Thank you very much for your thoughtful review and for reconsidering our work. We are grateful for your constructive feedback, which has helped us improve the presentation and analysis of our work.

We agree that further isolating the contribution of the TGE reward and more comprehensively characterizing failure modes are valuable directions for future investigation. We will continue to explore these aspects in our future work.

Reviewer oJdaOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies offline imitation learning from observations (LfO), where the expert demonstrations contain only states and the offline dataset contains suboptimal state-action trajectories. The proposed method, Trajectory-level Generative Embeddings (TGE), trains a trajectory diffusion model on the offline dataset and uses its encoder to map trajectory segments into a latent space. The method then constructs a surrogate reward using a logarithmic nearest-neighbor distance to expert trajectory embeddings, motivated by a particle-based cross-entropy estimator. The resulting reward-augmented dataset is used with standard offline RL algorithms such as ReBRAC or IQL. Empirically, the paper evaluates TGE on D4RL locomotion, Adroit manipulation, Franka Kitchen, severe support-mismatch settings, and mismatched-dynamics settings. The method performs strongly in several support-mismatch regimes, but its advantages are less consistent in some standard settings.

Strengths and weaknesses

Strengths:

  • The proposed idea of using trajectory-level generative embeddings to construct dense surrogate rewards is interesting. Instead of directly estimating density ratios, the method measures similarity to expert trajectories in the latent space of a temporal diffusion model.
  • Broad evaluation on D4RL locomotion, Adroit, and Franka Kitchen with five seeds and multiple mixture regimes, including new “medium” and “medium+random” settings with no expert in the offline buffer.
  • The paper is generally well written and organized. The method pipeline is easy to follow, and the figures and tables make the main idea clear.

Weaknesses:

  • The method is not consistently strong across all standard LfO settings. In particular, TGE underperforms recent baselines such as IOSTOM and DILO on cloned+expert Adroit tasks.
  • The explanation for the cloned+expert failure mode is plausible but insufficient. The authors argue that cloned data has stronger overlap with the expert distribution, making occupancy-matching methods more effective. However, the paper does not provide a practical way to detect this failure case, or a mitigation strategy.
  • The theoretical justification is weaker than the main claims suggest. The paper connects the proposed reward to particle-based cross-entropy estimation, but the practical algorithm involves several additional approximations, including learned diffusion embeddings, finite trajectory windows, nearest-neighbor estimation, unit-sphere projection, temperature scaling, per-step reward assignment, and approximate offline RL optimization.
  • Because of these approximations, I view the entropy-based derivation as useful motivation rather than a strong theoretical guarantee. The paper should be more careful with claims suggesting that optimizing the proposed reward is equivalent to minimizing cross-entropy with the expert distribution or maximizing expert likelihood.
  • The method appears sensitive to the trajectory horizon length H, as performance drops clearly when using short horizons such as H=1. This raises concerns about its applicability to fragmented or incomplete trajectory datasetsa setting that has been studied in prior LfO works such as TAILO [1] and IOSTOM.
  • The method requires substantial preprocessing cost due to diffusion model training and reward annotation. The paper does not sufficiently justify when this added complexity is worthwhile compared with simpler nearest-neighbor or occupancy-matching baselines.
  • The originality is somewhat limited. The method combines existing components: diffusion-based trajectory representation learning, nearest-neighbor reward construction, particle-based entropy motivation, and offline RL. The combination is useful, but the paper provides limited new conceptual insight beyond this integration.

[1]: Yan, Kai, Alex Schwing, and Yu-Xiong Wang. "A simple solution for offline imitation from observations and examples with possibly incomplete trajectories." NeurIPS 2023.

Questions
  • Can the authors provide a more detailed analysis of the cloned+expert Adroit failure mode? In particular, how can one detect in practice when TGE is likely to underperform occupancy-matching methods, and is there a principled mitigation strategy?
  • I have a question about the reported IOSTOM result on the Franka Kitchen mixed task. In my own prior experiments with IOSTOM, I observed substantially stronger performance on this task, around 45-50 normalized score per seed. Did the authors use the same hyperparameters reported in the IOSTOM paper (Appendix C.3)?
  • Can the authors soften or further justify the theoretical claims connecting the proposed reward to cross-entropy minimization? The current derivation passes through several approximations before reaching the actual offline RL objective.
  • Can the authors evaluate on genuinely fragmented or incomplete trajectory datasets?
  • Can the authors provide a compute-normalized or complexity-aware comparison against simpler reward-construction baselines such as SEABO and against occupancy-matching methods in settings where those baselines already perform well?
  • Would it be fairer to also provide representation learning benefits to the baselines? Recent online LfO work [1] uses Intention-Conditioned Value Function (ICVF) embeddings to train discriminators for constructing better imitation rewards. A similar recipe could potentially be applied to SMODICE, LobsDICE, or related DICE-style methods by computing rewards or density-ratio estimates in an ICVF embedding space rather than the raw observation space.

[1]: Yang, Siqi, et al. "Latent Wasserstein Adversarial Imitation Learning." ICLR 2026.

Limitations

yes

Final justification

the author address almost of my concerns. therefore, i raise my score to 4

Formatting concerns

no

5 comments
Authors · CommentOpenReview ↗

Rebuttal by Authors (1)

Thank you for your supportive review and constructive suggestions. We address your questions as follows.

Q1. Can you provide a more detailed analysis of the cloned+expert Adroit failure mode?

A1. Our additional experiments suggest that the cloned-data gap is not consistently explained by stronger expert–behavior support overlap, as originally hypothesized. We will therefore revise this explanation. Instead, the results point to a limitation of TGE’s independent nearest-neighbor reward assignment.

TGE treats the expert trajectory as an unordered collection of local trajectory embeddings, where each behavior segment independently retrieves its nearest expert segment, without explicitly preserving the ordering or direction of the expert trajectory. This approximation is relatively benign in locomotion, where trajectories are dominated by recurrent patterns, while manipulation trajectories are less recurrent and more progress-dependent. Locally similar segments can correspond to forward progress, stalling, or recovery, depending on their temporal context and contact history. Consequently, independent nearest-neighbor retrieval can produce many-to-one or progress-inconsistent correspondences, assigning high reward without guaranteeing that the learner follows the directed expert transition sequence.

To verify this interpretation, we evaluate a phase-aware variant of TGE that changes the retrieval rule. For each transition, we compute a normalized within-episode progress variable$φ∈[0,1]$ by linear interpolation between episode start and termination, and restrict nearest-neighbor matching to expert windows satisfying$∣ϕ_{behavior}−ϕ_{expert}∣≤b$ (hard phase band with b=0.2). Results are as follows:

TGE phase-aware TGE
pen-cloned 63.15±5.11 52.46±6.49
door-cloned 11.20±7.8 72.11±15.84
hammer-cloned 37.84±8.05 28.42±8.67

Pen is affected least by phase inconsistency, so TGE remains reasonably competitive with other baselines on cloned Pen. Door is a strongly ordered and approximately monotonic task, progressing from reaching and grasping to opening. Under global retrieval, high-reward segments are often matched to expert segments at very different stages of the trajectory with the average normalized progress mismatch 0.442. Phase-aware retrieval reduces it to 0.232 and clearly improves performance. Hammer remains challenging even after phase-aware retrieval as normalized time is not a reliable representation of semantic task progress in this environment. The timing of grasping and impact varies across trajectories, and unsuccessful trajectories may contain misses, rebounds, and retries. Thus, phase-aware retrieval selects a more appropriate expert region but still cannot distinguish an effective strike from an unsuccessful transition.

Therefore, TGE may underperform on tasks where temporal order is essential. Its nearest-neighbor reward treats expert segments as an unordered set and matches each behavior segment independently, so individually similar matches may not form a temporally consistent or forward-progressing trajectory. Occupancy-matching methods are less vulnerable to this particular failure mode because they optimize a globally coupled state-visitation objective under Bellman-flow constraints. A possible direction of TGE for mitigation is to replace independent nearest-neighbor retrieval with structured trajectory alignment, including partial soft-DTW in the latent space, monotone or unbalanced optimal transport, and transition-level matching based on consecutive latent windows. For event-driven tasks such as Hammer, transition-level or outcome-aware alignment is likely necessary in addition to monotonic temporal alignment.


Q2. Can you verify the IOSTOM result on the Franka Kitchen mixed task?

A2. Thank you for pointing this out. We were able to polish the performance of IOSTOM baseline on Kitchen-mixed using a better and specially selected actor_temp. We also reverified all other IOSTOM results and corrected the Ant medium+few-expert score. The corresponding tables will be updated in the revised manuscript.

IOSTOM TGE
medium+few-expert ant 119.69±2.22 130.23±1.36
kitchen-mixed 46.67±1.44 45.92±2.93
Authors · CommentOpenReview ↗

Rebuttal by Authors (2)

Q3. Can you justify the theoretical claims connecting the proposed reward to cross-entropy minimization?

A3. We are happy to provide more justification connecting the proposed reward to cross-entropy minimization.

Let dk(z)=∥z−zEk∥2d_k(z)=\lVert z-z_E^k\rVert_2 denote the distance from$z$ to its$k$-th nearest expert embedding. Since log⁡dk(z)dz=dzlog⁡dk(z)\log d_k(z)^{d_z}=d_z\log d_k(z) and dz>0d_z>0 is independent of the policy, minimizing the particle cross-entropy is equivalent to minimizing the normalized objective

H0(π)=Ez∼ρπ[1m∑k=1mlog⁡dk(z)].\mathcal H_0(\pi)=\mathbb E_{z\sim\rho_\pi}[\frac{1}{m}\sum_{k=1}^m \log d_k(z)].

To avoid the logarithmic singularity when dk(z)=0d_k(z)=0, we introduce the σ\sigma-smoothed objective

Hσ(π)=Ez∼ρπ[1m∑k=1mlog⁡(dk(z)+σ)].\mathcal H_\sigma(π)=\mathbb E_{z\sim\rho_\pi}[\frac{1}{m}\sum_{k=1}^m\log(d_k(z)+\sigma)].

Using the fact that log⁡(d+σ)=log⁡σ+log⁡(1+dσ)\log(d+\sigma)=\log \sigma+\log(1+\frac{d}{\sigma}), maximizing the TGE reward rTGE(z)=−1m∑k=1mlog⁡(1+dk(z)σ)r_{\text{TGE}}(z)=-\frac{1}{m}\sum_{k=1}^m \log(1+\frac{d_k(z)}{\sigma}) is exactly equivalent to minimizing$\mathcal H_\sigma(\pi)$.

Moreover, suppose that the nearest-neighbor distances satisfy δ≤dk(z)≤D\delta \le d_k(z)\le D over the considered policy class. Since all embeddings are normalized onto the unit sphere in our implementation, we additionally have D≤2D \le 2. Then log⁡(1+σD)≤Hσ(π)−H0(π)≤log⁡(1+σδ)\log(1+\frac{\sigma}{D}) \le\mathcal H_\sigma(\pi)-\mathcal H_0(\pi) \le \log(1+\frac{\sigma}{\delta}). Consequently, if π^\widehat{\pi} is an η\eta-approximate minimizer of Hσ\mathcal H_\sigma, we can verify that

H0(π^)−inf⁡πH0(π)≤η+log⁡1+σ/δ1+σ/D≤η+σδ.\mathcal H_0(\widehat\pi)-\inf_\pi\mathcal H_0(\pi) \le \eta+\log\frac{1+\sigma/\delta}{1+\sigma/D} \le \eta+\frac{\sigma}{\delta}.

Therefore, the proposed reward exactly optimizes a smoothed particle cross-entropy and admits an explicit approximation guarantee with respect to the original particle objective. We will add this proposition and its proof to the revised manuscript accordingly.


Q4. Can the authors evaluate on genuinely fragmented or incomplete trajectory datasets? A4. As TGE requires locally contiguous observations to construct an HH-step trajectory embedding, constructing incomplete trajectory like IOSTOM is not directly compatible with the current formulation. Reducing the horizon to accommodate such sparse observations is possible, but Fig. 4 shows that substantially shorter horizons can reduce performance.

We instead evaluate a fragmented-expert setting that preserves only short local trajectory segments. Specifically, we randomly extract non-overlapping contiguous clips of length$L$ from multiple expert episodes, discard their original episode identities and temporal ordering, and treat each clip as an independent fragment. Embedding windows are constructed only within each fragment and are never allowed to cross fragment boundaries.

We consider three settings:

  • Complete: one complete expert episode
  • Fragment-1×: the fragments contain the same total number of expert observations as the complete setting.
  • Fragment-0.25×: the fragments contain only 25% as many expert observations as the complete setting.

We use L=32L=32, matching the default embedding horizon$H=32$. The results show that fragmentation causes almost no degradation. Even in the more data-limited Fragment-0.25× setting, results also remain close to the complete-episode result. These findings indicate that TGE does not rely on complete expert trajectories or global episode ordering. Its core requirement is that each fragment retain sufficient local continuity to construct an$H$-step embedding.

We also conduct other experiments on expert sensitivity in our response to Reviewer fvsu Q2 and Reviewer Mhik Q4.

Complete Fragment-1× Fragment-0.25×
hopper-medium 67.90±1.59 67.80±3.75 67.08±3.70
halfcheetah-medium 48.00±0.30 45.11±0.18 45.22±0.06
walker2d-medium 84.56±0.68 83.67±0.10 82.80±0.56
ant-medium 124.12±1.79 118.45±0.14 121.34±0.76
Authors · CommentOpenReview ↗

Rebuttal by Authors (3)

Q5. Can the authors provide a compute-normalized or complexity-aware comparison against simpler reward-construction baselines such as SEABO and against occupancy-matching methods in settings where those baselines already perform well?

A5. We report a wall-clock table in our response to Reviewer fvsu Q5. The table shows that the only main additional complexity of TGE is a one-time diffusion pretrain, after which labeling uses a frozen trajectory encoder.

For simpler reward-construction baselines like SEABO and the VAE / raw-state variants can be viewed as restricted instantiations of the same overall recipe as TGE, which all use nearest-neighbor or KDE-style rewards followed by the same ReBRAC learner. But with better representations, as shown in our table for Reviewer Mhik Q2, TGE improves over SEABO and VAE across the reported settings. Thus the extra representation capacity is not redundant complexity but yields better returns under a shared downstream optimizer.

For occupancy method like DILO/IOSTOM, they have no separate labeling stage but typically require longer training (500k steps in our timing runs). TGE’s full pipeline including diffusion pretrain is on the same order as DILO and is faster than IOSTOM after pretraining, while achieve better performances than both methods. Therefore, we argue the one-time pretrain is compute-well-spent, as it buys a reusable representation that makes fast relabeling practical and outperforms both simpler reward constructors and occupancy matching on the benchmarks we report.


Q6. Would it be fairer to also provide representation learning benefits to the DICE baselines?

A6. We agree that DICE-style methods can also benefit from stronger learned representations and ICVF-style embeddings are a promising related direction, but they are designed for a different online setup. Given limited rebuttal time, we did not retrain an online ICVF pipeline. To address the concern as closely as possible under our offline setting, we apply the same frozen diffuser latents used by TGE to SMODICE and train its state-only discriminator in this latent space

Results on hopper show no meaningful gain over SMODICE, suggesting that simply relocating density-ratio estimation into a stronger embedding does not overcome SMODICE’s own limits. However, this does not weaken our contribution, as the core of this work is trajectory-level generative embeddings for imitation from observations, and using their geometry to construct offline imitation rewards, not merely improving discriminators via representation learning.

SMODICE latent-SMODICE
hopper-medium+few-expert 53.55±7.89 54.22±2.66
hopper-medium+expert 56.62±6.84 55.70±3.90

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…