Manuscript Offprint
arXiv:2608.24815Auditing Return Conditioning as a Control Knob: An Offline Diagnostic for Decision Transformer Recommendation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Offline return-to-go (RTG) sweeps can test whether a recommender conditioned on return is controllable, but the intervention is rarely audited. Rewriting every historical RTG token creates an increasingly synthetic context, while rewriting only the current token is more local. We test this distinction in an offline setting with a fixed window. On MovieLens 25M and MyAnimeList 2020 (MAL), we evaluate a Decision Transformer using an RTG locality ladder, a control without RTG, a logged match and score reward check, and a within-trajectory shuffled RTG ablation. On MovieLens, a intervention that covers the full context, applied only to real context positions, shifts the share of Crime predictions by percentage points from the validation 5th to 95th percentile, whereas changing only the current slot shifts it by points. The shuffled RTG model largely removes this response ( points at ). On MAL, the same protocol does not produce a Drama response: changes Drama by points, and by . Genre prediction accuracy is numerically close across real RTG, no RTG, and shuffled RTG, and at logged match rates and matched ratings change little. Because dataset and focus-genre selection were exploratory, these magnitudes are descriptive; the cross-diagnostic pattern across locality, shuffled RTG, and the null result on MAL does not establish reward control. We propose four checks: intervention locality, a no-RTG baseline, a reward check, and RTG-content ablation.
CCS Concepts
• Information systems → Recommender systems; • Computing methodologies → Sequential decision making.
1 Motivation
Decision Transformers (DTs) act from past interaction tokens and a requested return-to-go (RTG) [3]. In recommendation, this suggests that a higher target return may steer recommendations toward longer-term objectives. Several recommenders use this idea [4, 7, 12]. MocDT, for example, conditions generated item sequences on specified multi-objective targets [6]. Some studies provide interactive evidence. EDT4Rec uses an online simulator [4], while TADT-CSA reports simulation and live A/B test results [7]. These studies show policy improvement but do not isolate the effect of changing the return prompt. We study the static sweep used when interaction is unavailable. The original DT evaluation, for example, compares achieved and target returns [3]. What does such an offline sweep alone establish?
We audit an evaluation where a DT predicts one action from a context of 20 logged interactions. Historical RTGs use future logged behavior. Replacing all of them with one target constructs a synthetic history. Replacing only the current RTG changes less of the context, but still mixes a requested target with unavailable hindsight RTGs. This gap between logged data and intervention has motivated counterfactual evaluation and policy evaluation from logged data in recommendation [14], and the offline RL literature has documented closely related failure modes for supervised learning conditioned on return [1, 5, 13]. We ask whether an offline RTG response reflects local control or sensitivity to a synthetic rewritten context.
Our RTG locality ladder replaces the logged RTG at the trailing K real context positions with one target value; states, actions, and padding remain unchanged. K = 1 is the closest static perturbation to an intervention at the current decision. K = 20 is our endpoint that covers the full context. Varying K tests whether the response requires an increasingly synthetic context. We pair it with three checks. We ask whether RTG content improves prediction over a baseline without RTG, whether distribution shifts improve matched rewards, and whether per-position RTG alignment matters during training. A probe that predicts RTG from state provides a descriptive redundancy check. Concurrent work addresses related problems: Decoupled DT removes historical RTGs as unnecessary for action prediction [15], while Q-ALIGN trains for agreement between requested RTG and policy value on D4RL benchmarks [16]. Our ladder instead audits what historical RTG rewriting establishes in logged recommendation windows without policy rollouts.
2 Setup
Each user trajectory is represented as . The state summarizes interactions strictly before : a running histogram of genre preferences plus mean rating and logarithmically normalized count. The action is the logged item's primary genre. The reward is rating/5 on MovieLens and rating/10 on MAL. With positions indexed from 0 to , the RTG is a fixed sum over a forward window of length ,
not an episodic return through the end of a trajectory. Positions without a complete future window of W interactions are excluded. Our formulation treats the end of a dataset record as censoring, not as a terminal state with zero reward. Related recommendation objectives include delayed conversion [2] and notification objectives with multiple rewards [12]. Here, the RTG is the sum of normalized ratings over 20 interactions starting at t. The model and probe
Wang
Table 1: Experimental scope. Filtered counts precede the minimum-history requirement (MovieLens: 10 and MAL: 15). Effective test counts additionally require complete RTGs.
| Dataset | Filtered users | Filtered events | Test users | Test contexts | Actions |
|---|---|---|---|---|---|
| MovieLens | 162K | 25.0M | 15,805 | 2.18M | 18 |
| MAL | 309K | 49.3M | 25,819 | 4.36M | 15 |
receive . Sweep targets are reported on the unscaled summed-return axis. We use interactions rather than calendar time because MAL has no timestamps and this choice aligns the reward window with the model context. The context length is also 20. We keep these terms separate in the text, using for the reward window and “” for the number of overwritten context positions. Table 1 summarizes the evaluation scope: MovieLens 25M [8] with 18 genre actions and MyAnimeList Database 2020 (MAL) [9] with 15 genre actions. Genre actions make distribution shifts measurable, but limit the conclusion to genre prediction. To form one action from multi-genre items, MovieLens chooses the least frequent genre to limit dominance by common tags; MAL uses a fixed niche-to-broad priority. These mappings can shape which genre responds; alternative mappings remain future work. MAL has no timestamps, so each user’s order follows dataset rows after filtering. It provides a replication that is sensitive to ordering and cannot support claims about temporal behavior over a long horizon.
Dataset selection was exploratory, not preregistered. We screened seven alternatives for sufficient trajectories, a usable action space and ordering, and a catalog distinct from MovieLens. Five failed these feasibility checks. Amazon CDs reached exploratory modeling but was not retained as a replication dataset: its action distribution was concentrated (Pop comprised 30.9% of actions), and its preliminary RTG sweep was null. Because this outcome-aware selection can favor datasets with detectable effects, we treat MovieLens as exploratory rather than confirmatory. MAL was retained as the cross-domain replication. Its final result is also null.
The observed genre is a proxy action. These datasets record consumed and rated items, not recommendation exposures from a known policy. Our experiments diagnose the next genre in a user's history, not the value of a recommender policy.
The primary protocol predicts the next action from the current state. The model sees and , but the current action is replaced with a PAD token:
The DT has 3 transformer layers, hidden size 128, 4 heads, and context length 20. DT-no-RTG zeros the RTG embedding while keeping the architecture. The shuffled RTG control keeps the RTG channel active but permutes RTG values within each user's training trajectory. This breaks alignment between a position and its own future return while preserving that user's RTG multiset and user-level correlations. SASRec is included as a sequence model that uses attention and has no RTG input [11].
Logged includes future outcomes and the current rating for the target item. Thus, accuracy with real RTG is diagnostic rather than deployable. We test control by overwriting RTG tokens at evaluation time.
Table 2: MovieLens Crime share shift, validation q95 target minus q05 target, across seeds on the test split.
| K | s42 | s0 | s1 | mean ± std |
|---|---|---|---|---|
| 1 | 3.05 | 0.75 | 1.52 | 1.77 ± 1.17 |
| 5 | 15.49 | 10.86 | 10.43 | 12.26 ± 2.81 |
| 10 | 23.02 | 17.93 | 18.61 | 19.85 ± 2.76 |
| 15 | 25.44 | 20.36 | 22.23 | 22.68 ± 2.57 |
| 20 | 26.62 | 20.71 | 23.49 | 23.61 ± 2.96 |
Two details make the setup conservative. First, the model receives the current state and RTG while only the unknown action is masked. Second, shuffled RTG keeps the input channel and each user's value distribution, but removes the alignment between a position and its future return. A gain that depends on RTG should decrease.
3 Diagnostics and Results
Unless noted, is the mean and sample standard deviation over three training seeds, not a confidence interval. Within each seed, 95% bootstrap percentile intervals use 1,000 resamples at the user level. Metrics pool eligible contexts, so users contribute in proportion to eligible history length. Resampling handles dependence within each user but still weights each context equally.
3.1 Intervention Locality
For each sampled test context, we sweep target RTG from the validation 5th to 95th percentile and overwrite only the trailing RTG positions. The final test ranges are from 9.70 to 17.70 on MovieLens and from 11.80 to 18.20 on MAL. For every reported shift, we evaluate the same test contexts at both endpoints and compute , where the targets are fixed from the validation RTG distribution. Figure 1 and Table 2 show that the MovieLens response depends sharply on . Changing the full context shifts Crime by percentage points. Changing one slot shifts it by only points and varies across seeds. The shuffled model keeps the RTG channel but breaks positional content, yielding points at and at . Validation yields and , respectively, confirming the pattern across splits. For seeds 42, 0, and 1, the user-level cluster-bootstrap 95% intervals span 2.63–3.46, 0.66–0.84, and 1.36–1.68pp at , whereas at , they span 24.31–29.09, 18.95–22.56, and 21.43–25.66pp. Crime was chosen in exploratory validation, not preregistered. Across all test genres, it has the largest absolute response at both endpoints. Sci-Fi is next, shifting by pp at and pp at .
MAL gives a different caution. Table 3 shows no Drama lever under the current state protocol with PAD masking. Across three seeds, changes Drama by pp and by pp. Validation is likewise null, making this a null steering result rather than local control with a failed reward check. A post hoc audit over all 15 MAL genres finds a one-slot maximum of only pp for Slice of Life and a full-context maximum of only pp for Supernatural. The largest difference between real and shuffled RTG over the full context and all MAL
RTG Control Diagnostics for DT Recommendation
Table 3: MAL Drama share shift, validation q95 target minus q05 target, across seeds on the test split.
| K | s42 | s0 | s1 | mean ± std |
|---|---|---|---|---|
| 1 | -0.01 | -0.01 | 0.00 | |
| 5 | -0.04 | -0.09 | 0.00 | |
| 10 | -0.08 | -0.09 | 0.00 | |
| 15 | -0.10 | -0.07 | 0.00 | |
| 20 | -0.10 | -0.01 | 0.03 |
genres is 0.147pp. These numbers are about two orders of magnitude smaller than the MovieLens saturated effect and leave no plausible alternative MAL genre for a positive steering claim.
Adjacent RTGs share most future rewards over W steps. One changed RTG is therefore surrounded by hindsight RTGs from the same trajectory. Changing all RTGs removes this conflict, but creates a synthetic context where every position claims the same future return. The ladder changes both signal consistency and distance from logged data. Thus, the gap between K = 1 and K = 20 shows that the large response depends on rewriting the full context and cannot estimate a local decision effect.
3.2 Reward Check Beyond Distribution Shift
To separate action changes from reward changes, we use logged test data. When the model's top prediction matches the logged genre, we record its rating. This metric is not a counterfactual value estimate. It only tests whether matched rewards rise with the target. This K = 1 check is the closest static approximation to a current-decision intervention and does not assess synthetic K = 20.
Figure 2 shows little movement at K = 1. Across three seeds, the match rate for the top prediction changes by pp and the matched rating changes by only stars (Table 4), consistent with the weak K = 1 genre shift in Table 2. MAL likewise

Figure 1: MovieLens RTG locality ladder. Sweeping RTG across the full context produces a large Crime shift, but changing one slot produces a small shift that varies across seeds. Shuffled RTG largely removes the response. Faint lines are seeds. Bold lines are means.

Figure 2: Match and score at K = 1 for seed 42. Curves change little. Table 4 reports endpoint means across three seeds.
Table 4: Logged match and score at K = 1, mean ± std over seeds 42, 0, and 1. Endpoints are validation q05 and q95 targets. Ratings are on the native dataset scale.
| Dataset | Match@q05 | Match@q95 | Rating@q05 | Rating@q95 |
|---|---|---|---|---|
| MovieLens | ||||
| MAL |
Table 5: Test genre-prediction hit rates at 1 (HR@1) and 5 (HR@5), mean ± sample std over three seeds. Real RTG's advantage over no RTG is small.
| Dataset | Model | HR@1 | HR@5 |
|---|---|---|---|
| MovieLens | DT+RTG | ||
| MovieLens | DT-no-RTG | ||
| MovieLens | DT shuffled | ||
| MovieLens | SASRec | ||
| MAL | DT+RTG | ||
| MAL | DT-no-RTG | ||
| MAL | DT shuffled | ||
| MAL | SASRec |
changes little. The match rate for the top prediction changes by and the matched rating by on a 10-point scale. The reward check gives no indication that the target improves logged ratings. These changes are descriptive: no paired difference interval or equivalence margin is reported.
This is weaker than sequential policy evaluation from logged data [10] and remains subject to selection bias in logged data [14]. It only scores logged actions, and the matched set can change with the target. Small changes therefore give no evidence that the distribution shift improves reward at the user level.
3.3 Channel Content
The shuffled RTG control tests whether RTG values carry the effect, motivated by work on the capabilities and limits of return-conditioned supervised learning in offline RL [1, 5]. It preserves the channel and each user's RTG multiset, but breaks per-position alignment between the state-action context and its own future return. User-level correlations can remain. If correct RTG content matters, shuffled RTG should approach no RTG.
Wang
Table 6: Probe that predicts scaled RTG from state on test examples. The target is , matching the model input, and is invariant to this scaling.
| Dataset | Ridge | MLP | std(R/20) |
|---|---|---|---|
| MovieLens | 0.341 | 0.505 | 0.124 |
| MAL | 0.736 | 0.755 | 0.094 |
Table 7: Failure mode each diagnostic probes.
| Diagnostic | Failure mode | Observed here |
|---|---|---|
| RTG locality | saturated response read as local control | MovieLens: full local. MAL max < 0.3pp |
| No RTG control | predictive lift attributed to RTG without a matched baseline | lift 0.14pp at HR@1/5 |
| Match and score | action shift read as reward gain | small changes |
| Shuffled RTG | channel presence conflated with aligned content | MovieLens response collapses. Accuracy no RTG |
Table 5 shows that aligned RTG content gives only a small predictive lift. On MovieLens, real RTG is 0.14pp above the model without RTG in both HR@1 and HR@5, while shuffled RTG is only 0.01pp above that model in HR@1. On MAL, real RTG, no RTG, and shuffled RTG are numerically close. These results are compatible with weak use of the RTG channel, but they cannot demonstrate reward control. SASRec confirms that the task is predictable without an RTG channel.
The probe that predicts RTG from state shows that RTG is partly predictable from state, and on MAL largely so. Ridge regression explains 34.1% of MovieLens RTG variance and 73.6% of MAL variance, while an MLP with one hidden layer explains 50.5% and 75.5% (Table 6).
4 Implications
The four diagnostics in Table 7 support a limited interpretation. In this setting with a fixed window and genre actions, MovieLens RTG conditioning changes the aggregate genre mix, but the large effect requires rewriting the full context and is largely removed by shuffled RTG. On MAL, neither the genre share ladder nor match and score shows a target response. Correctly aligned RTGs yield at most a small advantage in prediction accuracy, which is distinct from reward steering. We therefore read the MovieLens sweep as tracking the aggregate genre distribution rather than demonstrating rating-based return control for individual users. We read the MAL sweep as a null steering result. This interpretation draws on aggregate action shares and logged reward checks without directly estimating policy value.
These findings leave open the effectiveness of recommendation with DTs, control at the item level, learned control tokens, and canonical autoregressive DT rollouts. Offline RTG sweeps should be reported as sensitivity analyses unless a local intervention links the response to reward improvement. The relevant question is whether movement caused by the target is local, conditioned on the user, and able to improve reward under an intervention the system could actually use.
4.1 Relation to Canonical DT Control
Our analysis covers only a subset of Decision Transformer protocols. In canonical offline RL, a target return is set at the beginning of an autoregressive rollout and decremented by realized reward after each action [3]. Here, prediction is a single forward pass on a logged window of fixed length, and each historical RTG is a statistic of a future window computed from the log. The RTG locality ladder is therefore an input sensitivity diagnostic for studies where interaction is unavailable. A response only under may describe a learned correlation rather than a deployable knob for target return. A response under still requires a reward check.
4.2 Scope and Failure Modes
The genre action space is diagnostic rather than realistic for production. It makes distribution shifts caused by the target measurable, but deployment at the item level would add exposure bias, popularity effects, sparse items, and confounds that are specific to the catalog. Match and score is also limited. It evaluates only actions present in the test log and cannot recover ratings for unobserved recommendations. These small changes cannot determine whether a deployed policy would fail. They show only that this logged diagnostic supplies no positive evidence of reward improvement.
4.3 Reproducibility
One trajectory builder computes states, genre actions, normalized rewards, and RTGs over steps. The same trajectories feed DT, DT-no-RTG, shuffled RTG, and SASRec. Experiments use the current state protocol with PAD masking in Section 2, a seeded randomized 80/10/10 split by users for training, validation, and testing, complete reward windows, and seeds 42, 0, and 1. Diagnostic sweeps use seeded samples for tractability. We use 1,000 test trajectories for the RTG locality sweep and 2,000 for match and score. Final tables use RTG targets within the observed support, fixed from the validation 5th to 95th percentiles and evaluated on the test split. The test users are disjoint from training and validation users, but the test cohort is not a pristine prospective holdout: earlier exploratory models had been trained on most users in these public datasets. Training budgets are 50K steps for MovieLens and 20K for MAL, with checkpoints selected by validation loss every 5K steps. In the shuffled RTG control, only the assignment of RTG values within each user's training trajectory changes. Validation and test RTGs remain real.
5 Conclusion
Four checks audit offline return conditioning: current-slot versus full-context RTG, no-RTG and shuffled-RTG controls, and a logged reward check. MovieLens's large response requires a synthetic full-context rewrite; its check shows no local reward improvement. MAL yields a null steering result. The contribution is the audit protocol and cross-diagnostic pattern, not any genre response.
RTG Control Diagnostics for DT Recommendation
References
[1] David Brandfonbrener, Alberto Bietti, Jacob Buckman, Romain Laroche, and Joan Bruna. 2022. When Does Return-Conditioned Supervised Learning Work for Offline Reinforcement Learning?. In Advances in Neural Information Processing Systems, Vol. 35. Curran Associates, Inc., Red Hook, NY, USA, 1542–1553.
[2] Olivier Chapelle. 2014. Modeling Delayed Feedback in Display Advertising. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. Association for Computing Machinery, New York, NY, USA, 1097–1105. doi:10.1145/2623330.2623634
[3] Lili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee, Aditya Grover, Michael Laskin, Pieter Abbeel, Aravind Srinivas, and Igor Mordatch. 2021. Decision Transformer: Reinforcement Learning via Sequence Modeling. In Advances in Neural Information Processing Systems, Vol. 34. Curran Associates, Inc., Red Hook, NY, USA, 15084–15097.
[4] Xiaocong Chen, Siyu Wang, and Lina Yao. 2024. Maximum-Entropy Regularized Decision Transformer with Reward Relabelling for Dynamic Recommendation. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. Association for Computing Machinery, New York, NY, USA, 376–384. doi:10.1145/3637528.3671750
[5] Scott Emmons, Benjamin Eysenbach, Ilya Kostrikov, and Sergey Levine. 2022. RvS: What is Essential for Offline RL via Supervised Learning?. In International Conference on Learning Representations. OpenReview.net, Virtual Event. https://openreview.net/forum?id=S874XAIpkR-
[6] Chongming Gao, Kexin Huang, Ziang Fei, Jiaju Chen, Jiawei Chen, Jianshan Sun, Shuchang Liu, Qingpeng Cai, and Peng Jiang. 2025. Future-Conditioned Recommendations with Multi-Objective Controllable Decision Transformer. arXiv:2501.07212 [cs.IR]
[7] Xiang Gao, Tianyuan Liu, Yisha Li, Jingxin Liu, Lexi Gao, Xin Li, Haiyang Lu, and Liyin Hong. 2025. TADT-CSA: Temporal Advantage Decision Transformer with Contrastive State Abstraction for Generative Recommendation. arXiv:2507.20327 [cs.IR]
[8] GroupLens. 2019. MovieLens 25M Dataset. https://grouplens.org/datasets/movielens/25m/. Released 12/2019.
[9] Hernan4444. 2020. MyAnimeList Database 2020. https://www.kaggle.com/datasets/hernan4444/anime-recommendation-database-2020. Kaggle dataset. Collection code and documentation at https://github.com/Hernan4444/MyAnimeList-Database.
[10] Nan Jiang and Lihong Li. 2016. Doubly Robust Off-policy Value Evaluation for Reinforcement Learning. In Proceedings of the 33rd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 48). PMLR, New York, NY, USA, 652–661. https://proceedings.mlr.press/v48/jiang16.html
[11] Wang-Cheng Kang and Julian McAuley. 2018. Self-Attentive Sequential Recommendation. In 2018 IEEE International Conference on Data Mining. IEEE, Piscataway, NJ, USA, 197–206. doi:10.1109/ICDM.2018.00035
[12] Borja Ocejo, Ruofan Wang, Ke Liu, Rohit K. Patra, Haotian Shen, David Liu, Yiwen Yuan, Gokulraj Mohanasundaram, Fedor Borisyuk, and Prakruthi Prabhakar. 2025. Generative Sequential Notification Optimization via Multi-Objective Decision Transformers. arXiv:2509.02458 [cs.LG]
[13] Keiran Paster, Sheila McIlraith, and Jimmy Ba. 2022. You Can't Count on Luck: Why Decision Transformers and RvS Fail in Stochastic Environments. In Advances in Neural Information Processing Systems, Vol. 35. Curran Associates, Inc., Red Hook, NY, USA, 38966–38979.
[14] Tobias Schnabel, Adith Swaminathan, Ashudeep Singh, Navin Chandak, and Thorsten Joachims. 2016. Recommendations as Treatments: Debiasing Learning and Evaluation. In Proceedings of the 33rd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 48). PMLR, New York, NY, USA, 1670–1679. https://proceedings.mlr.press/v48/schnabel16.html
[15] Yongyi Wang, Hanyu Liu, Lingfeng Li, Bozhou Chen, Ang Li, Qirui Zheng, Xionghui Yang, and Wenxin Li. 2026. Decoupling Return-to-Go for Efficient Decision Transformer. arXiv:2601.15953 [cs.AI]
[16] Yuxiao Yang and Weitong Zhang. 2026. Return-to-Go Is More Than a Number: Q-Guided Alignment for Return-Conditioned Supervised Learning. arXiv:2605.29028 [cs.LG]