Manuscript Offprint

arXiv:2609.31586

Trust Guided Decision Transformer

Chainesh Gautam, Raghuram Bharadwaj Diddigi, Chandramouli Kamanchi, Pankaj Dayama, Sumanta Mukherjee, Kameshwaran Sampath

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

Abstract

Decision Transformer performance degrades on long rollouts because the conditioning context drifts out of the training distribution. We show that this drift is visible through the model's own next state prediction error, which rises during rollout and stays elevated, giving a direct signal of when context has become unreliable. We introduce Trust Guided Decision Transformer (TGDT), which selects context before applying value guidance. At each step, TGDT evaluates several recent context suffixes using rolling next state prediction error, calibrated against held out offline data via split conformal prediction. It keeps only suffixes whose error stays within the calibrated threshold, then uses a frozen critic to choose the highest value action among the trusted suffixes. This reverses the order used by value only elastic selection, where the critic may choose an action generated from a context the model itself has flagged as unreliable. Experiments on D4RL navigation and locomotion tasks show that state prediction, critic guidance, and hard context reset each solve only part of the problem. TGDT reduces persistent high error runs and improves return over vanilla Decision Transformer, reset based context control, and value only context selection.

1 Introduction

Decision Transformer (DT) [Chen et al., 2021] policies can degrade over long evaluation rollouts even when training has converged on offline data. We argue the cause is not the policy itself but the input the policy is being conditioned on. A DT is trained on context windows drawn from offline trajectories, but at evaluation time the context is generated by the model one step at a time. After enough self-generated steps, this rollout context can drift away from the offline distribution and the policy is asked to act on histories no training example resembles. The action it produces is then poorly constrained by the training objective. We call this failure mode rollout context mismatch.

This mismatch has a measurable precursor. On an example D4RL Maze2D-medium (Figure 1a) task, the rolling next-state prediction error of a frozen probe rises above its held-out offline range during DT rollouts and stays elevated for long stretches, with the violation fraction increasing over episode time. The failure is not driven by isolated prediction spikes. It comes from persistent stretches in which the rollout context has left the regime where DT's training objective is informative. Because the probe is external to DT, this signal is a property of the rollout, not an artifact of the architecture we introduce later.

Most existing fixes for DT improve action quality given a context. Value-guided variants add a critic [Yamagata et al., 2023, Wang et al., 2024, Zheng et al., 2025]. Behavior-regularized variants keep actions near the offline distribution [Fujimoto and Gu, 2021, Tarasov et al., 2023]. Adaptive-context methods change the amount of trajectory history used at test time to improve stitching [Wu

*Work done during an internship at IBM Research.

Preprint.

et al., 2023]. These methods largely ask which action is best given a context. Our observation suggests that a different question must come first: which contexts can be trusted to produce actions worth ranking at all? Critic value does not tell us whether the context that produced an action is reliable. Ranking actions generated from an unreliable context can mean choosing among options the model itself has already flagged as suspect.

We introduce Trust Guided Decision Transformer (TGDT), which separates context reliability from action value at the decision level. At each step, TGDT queries the model on several context-suffix lengths, maintains a rolling next-state prediction error per suffix, rejects suffixes whose recent error has exceeded a held-out offline threshold, and only then asks the critic to rank actions among the surviving suffixes.

TGDT shares the premise of adaptive-context methods that context length should be chosen online, but it uses a different selection criterion. In a controlled ablation using the same trained model, frozen critic, and candidate suffix set, critic-only suffix selection ranks every candidate by critic value and executes the winner. TGDT removes candidates whose recent prediction error exceeds the reliability threshold, then ranks only among the rest. On Maze2D-medium, this reordering reduces the longest above-threshold run by approximately 8×8\times and improves normalized return. The contribution is the order of operations, not a new critic or a larger model.

TGDT uses a learned next-state predictor, but it is not model-based offline reinforcement learning. The predictor is never used to roll out trajectories, generate synthetic transitions, or optimize a policy through model rollouts [Yu et al., 2020, Kidambi et al., 2020, Yu et al., 2021]. It is used only as a per-step reliability sensor for the realized rollout context. The policy remains a return-conditioned sequence model, and the frozen critic is used only to rank candidate actions produced by trusted context suffixes.

Our contributions are as follows:

  1. We identify rollout context mismatch as a DT failure mode with a measurable precursor. Persistent rolling next-state prediction error precedes return degradation, and the signal is observable from a frozen external probe, which establishes it as a property of the rollout rather than an artifact of a specific architectural choice.

  2. We show that training-side improvements alone are insufficient for reliability. Auxiliary next-state prediction, frozen IQL critic guidance, and a bounded behavior-regularized residual action head each improve return, but the resulting policies still produce long above-threshold runs of high prediction error during evaluation.

  3. We introduce TGDT, a trust-filtered context-selection rule that conditions the critic's ranking on a held-out reliability threshold derived from offline data. On D4RL Maze2D, AntMaze, and MuJoCo locomotion, TGDT improves over the same trained model evaluated with full context, hard reset, and critic-only suffix selection.

References (69)