acceptodds
Published as a conference paper at NeurIPS 2026

Online Finetuning Decision Transformers with Pure RL Gradients

Junkai Luo, Yinglun Zhu

Abstract

Decision Transformers (DTs) have emerged as a powerful framework for sequential decision making by formulating offline reinforcement learning (RL) as a sequence modeling problem. However, extending DTs to online settings with pure RL gradients remains largely unexplored, as existing approaches continue to rely heavily on supervised sequence-modeling objectives during online finetuning. We identify hindsight return relabeling—a standard component in online DTs—as a critical obstacle to RL-based finetuning: while beneficial for supervised learning, it is fundamentally incompatible with importance sampling-based RL algorithms such as GRPO, leading to unstable training. Building on this insight, we propose new algorithms that enable online finetuning of Decision Transformers using pure reinforcement learning gradients. We adapt GRPO to DTs and introduce several key modifications, including sub-trajectory optimization for improved credit assignment, sequence-level likelihood objectives for enhanced stability and efficiency, and active sampling to encourage exploration in uncertain regions. Through extensive experiments, we demonstrate that our methods outperform existing online DT baselines and achieve new state-of-the-art performance across multiple benchmarks, highlighting the effectiveness of pure-RL-based online finetuning for Decision Transformers.

Keywords:
Atlanta, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_CiXDOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper proposes a new paradigm for finetuning online decision transformer, which is using pure RL gradients (with GRPO/PPO). The paper first identifies hindsight return labeling, which is the practice of replacing the Return-To-Go (RTG) token, as the major issue for the failure of utilizing PPO gradients. Based on this, the paper proposes a finetuning recipe with GRPO gradient including three key modifications: operation on sub-trajectories, sequence-level importance weights, and uncertainty-aware active sampling. On a variety of experiments, the paper shows that their method outperforms previous state-of-the-art, TD3+ODT, and also tests ablation versions such as PPO-DT.

Strengths and weaknesses

Strengths

  1. The idea of adopting recent progress in the Reinforcement Learning with Verifiable Reward (RLVR) community to continuous control is interesting and inspiring. For example, the idea of sequence-level importance ratio somewhat resembles the idea of GSPO (https://arxiv.org/pdf/2507.18071).

  2. Overall, the paper clearly conveys its high-level idea: using pure GRPO/PPO gradient to finetune decision transformer, and overcoming the blocking factors (such as hindsight return labeling) accordingly. I find the story of the paper easy to follow.

  3. I appreciate that the authors test alternative architecture such as Reinformer, which broadens the application of the proposed method.

Weaknesses

The existence of LevalL_\text{eval} requires careful balance between evaluation quality of future trajectories and training time, especially in sparse-reward scenarios and long horizon tasks. On the contrary, if the reward is dense, having long LevalL_\text{eval} potentially increases the variance of estimated returns and could lead to training instability. This is admitted in line 560-561, "Our method also requires extensive hyperparameter tuning when applied to new environments".

Questions
  1. Since GRPO-DT and PPO-DT requires much less gradient updates than TD3+ODT and the paper claims that this is one of the major advantage, could the authors report the wall clock time for training for comparison (preferably list out the time ratio for sampling / preprocessing vs. training)? According to line 738, the typical wall-clock time to reproduce results on MuJoCo is 36 hours, which is longer than that reported in Appendix H in TD3+ODT (https://arxiv.org/pdf/2410.24108). I understand that there might be training length difference (as mentioned in line 254-255), so an apples-to-apples comparison will be helpful.

  2. I think a more detailed investigation and explanation on why PPO-DT fail on particular environments (e.g. antmaze) instead of others (e.g. MuJoCo) will better help the readers to understand the work.

  3. The paper does not seem to specify what "reference policy" is in the paper. If it is the pretrained policy, unlike LLM which yields already highly reasonable output compared to random tokens, could the finetuned policy be negatively influenced from a decision transformer pretrained on poor quality data (which is the central motivation of this paper's main baseline, TD3+ODT)?

Limitations

The paper discusses limitations in Appendix B and societal impact in Appendix F. Often in the (continuous control) RL community, people will argue that requiring multiple environment resets in a trajectory is a major drawback. I personally view otherwise, as (at least one of) the current trend for physical AI agents is in world model, and it allows for simulations and resets. However, I think showing the ability overcome the sim2real gap and noises in a potential simulator would strengthen the paper.

Paper formatting concerns

N/A

Final justification

I think this is a good work that meets NeurIPS's expectation in my initial review, and the authors' response well-addresses my concern. Therefore, My rating remain positive on this paper. However, the impact of this work is relatively limited as an improvement on decision transformer, which is why I do not further increase my rating.

Reviewer_T6idOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
2
Quality
3
Significance
3
Read review
Summary

This paper investigates whether Decision Transformers can be finetuned online using pure reinforcement learning gradients, rather than the supervised sequence-modeling objectives that dominate existing online DT methods. The authors identify hindsight return relabeling, a standard component of online DTs, as incompatible with importance-sampling-based RL because conditioning rollouts on a high target return while training on the realized return produces unreliable importance ratios. Building on this, they adapt GRPO to Decision Transformers and introduce three modifications: sub-trajectory optimization for finer credit assignment, sequence-level importance ratios for stability, and active sampling toward high-uncertainty states for exploration. They also adapt PPO to DTs. Experiments on D4RL MuJoCo, Adroit, and AntMaze show the proposed methods outperform online DT baselines on most tasks.

Strengths and weaknesses

Strengths

The central insight, that hindsight relabeling breaks the consistency required by importance sampling, is clean, well-motivated, and clearly supported by the diagnostic experiment showing ratio explosion and collapse. The resulting framework is the first to finetune DTs with pure RL gradients, which is a meaningful gap in the literature. The three modifications are each justified with targeted ablations, and the empirical coverage is broad, spanning dense-reward locomotion, high-dimensional manipulation, and sparse-reward navigation, with consistent gains over a strong ODT+TD3 baseline. The reported reduction in gradient updates and the RTG-conditioning analysis add practical value.

Weaknesses

The method depends on access to environment resets for its core sub-trajectory mechanism, and although a Q-guided variant is offered, it is validated on only a single task, leaving the reset-free case underexplored. The approach also requires extensive per-environment hyperparameter tuning, as evidenced by the large configuration tables. Policy-gradient methods consume substantially more environment interactions than the replay-based baselines, so the comparison axis is not fully controlled and the claimed efficiency gains deserve more careful framing. PPO-DT is unstable, failing outright on some tasks including AntMaze, which weakens the generality claim. There are no theoretical results.

Questions

1.How robust is the Q-guided variant across the full benchmark suite, given that it is the proposed answer to the reset-free setting but is shown on only one task?
2.The comparison counts outer iterations on the x-axis while the methods differ by orders of magnitude in both gradient updates and environment interactions. How should readers interpret the relative sample and compute efficiency under a more controlled budget?
3.Why does PPO-DT fail on AntMaze and certain Adroit tasks while GRPO-DT does not, given both remove relabeling? Is the difference attributable to token-level versus sequence-level ratios?
4.How sensitive is performance to the sub-trajectory length and evaluation horizon, and does the recommended short-rollout setting generalize beyond the tested environments?

Limitations

The authors acknowledge that the method assumes environment resets, may struggle in sparse-reward or very long-horizon tasks, slows down with long evaluation rollouts, and needs substantial hyperparameter tuning for new environments. These are appropriately disclosed. Beyond what is stated, the limited validation of the Q-guided reset-free variant and the instability of PPO-DT are the most material constraints on the generality of the claims, and all evaluation remains confined to simulated proprioceptive benchmarks.

Paper formatting concerns

N/A

Final justification

The rebuttal clarified the Q-guided variant's scope and added pen-cloned / hopper-medium results and a Door-cloned sensitivity analysis, resolving my main concerns. Budget-matched comparisons and the variant's value-estimation error remain open, but these concern the extension and presentation rather than the solid core results, so I have raised my final score to 4.

Reviewer_BU9pOpenReview ↗
Rating
4
Clarity
2
Confidence
3
Originality
2
Quality
3
Significance
3
Read review
Summary

This paper focuses on the online finetuning of Decision Transformer (DT) using pure reinforcement learning gradients. It first identifies that the "hindsight return relabeling" mechanism in traditional ODT causes inconsistency between the RTG used during online interaction and training, undermining the foundation of importance sampling. Building on this insight, the paper proposes removing this relabeling mechanism and adapts GRPO to the online finetuning of DT, introducing four key modifications: sub-trajectory optimization, environment resetting, sequence-level importance ratio, and active sampling. The authors further extend this idea to PPO (PPO-DT) and demonstrate state-of-the-art performance across MuJoCo, Adroit, and AntMaze benchmarks.

Strengths and weaknesses

Strengths:The identification of the incompatibility between hindsight return relabeling and importance sampling-based RL gradients is a clear and valuable insight, well supported by Figure 1. The overall framework is modular, with each design choice (sub-trajectory optimization, sequence-level importance ratio, active sampling) individually validated through ablation studies. The paper is well-organized and the experimental coverage across three distinct environment families is reasonably broad.

Weaknesses:

  1. No direct evaluation of trajectory stitching ability is provided beyond aggregate normalized returns, particularly for AntMaze where stitching is a core capability of interest.
  2. PPO-DT fails almost completely on certain tasks (e.g., Door-cloned-v1: 0.19, AntMaze-U-v2: 0.00) while GRPO-DT succeeds on the same tasks, but no analysis is given for this discrepancy.
  3. Baselines are limited to IQL; the experimental setting overlaps with the broader offline-to-online RL literature (e.g., SAC, AWAC, Cal-QL), but no such comparisons are included.
  4. The environment reset assumption required for sub-trajectory rollouts is impractical for many real-world systems and complex simulators, limiting the method's general applicability.
Questions

See above

Limitations

yes

Paper formatting concerns

None

Final justification

The rebuttal addressed most of my concerns through a detailed analysis of PPO-DT’s failure modes and additional SAC-DT comparisons. I recognize the paper’s meaningful contribution to online finetuning of Decision Transformers. However, environment resetting remains an important limitation, while the Q-guided alternative still depends on critic quality. Balancing these contributions and limitations, I maintain my score of 4.

Comments on the paper

1 comment
Meta-review

The paper argues that hindsight RTG relabeling is incompatible with importance-sampling-based policy gradients: trajectories are collected using an optimistic target RTG but later optimized using the realized RTG, making the likelihood ratios inconsistent. It therefore proposes GRPO-DT, combining removal of relabeling with reset-based sub-trajectory optimization, sequence-level importance ratios, and uncertainty-based active sampling; it also presents PPO-DT. GRPO-DT performs best on many MuJoCo and Adroit tasks. However, ODT+TD3 remains slightly stronger on AntMaze, while PPO-DT fails on several environments, including Door-cloned and AntMaze-U. Thus, the evidence supports GRPO-DT more strongly than the broader claim that pure policy-gradient finetuning is generally reliable for DTs.

The strongest contribution is the clear identification of the RTG-relabeling inconsistency, supported by experiments showing exploding importance ratios and performance collapse. The method is modular, and the ablations provide evidence for sub-trajectories, state-consistent rollouts, sequence-level ratios, and active sampling. The evaluation also spans locomotion, manipulation, and sparse-reward navigation.

However, the core sub-trajectory mechanism requires resetting multiple environments to exactly the same intermediate state; the paper itself shows that this consistency is essential for convergence. This assumption is unrealistic for many physical systems, while the proposed reset-free Q-guided alternative is evaluated on only one task. The efficiency comparison is also misleading: GRPO-DT uses fewer gradient updates but several-to-tens of times more environment interactions, and no matched wall-clock or total-compute comparison is given. The baseline set omits relevant offline-to-online methods such as SAC, AWAC, and Cal-QL. Finally, PPO-DT’s severe failures are unexplained, AntMaze trajectory-stitching ability is never directly measured, and the approach requires substantial environment-specific tuning.

My recommendation could change with new evidence: full-suite evaluation of the reset-free variant; comparisons against strong offline-to-online baselines under matched interaction, update, and wall-clock budgets; an explanation or correction of PPO-DT’s failures; and direct AntMaze stitching or long-horizon credit-assignment diagnostics. A convincing sensitivity analysis for sub-trajectory and evaluation horizons would also be necessary. Clarifications alone would not resolve these concerns.

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

Related papers

Loading the map…

Discussion (0)

Sign in to comment.