mlsanityData to 14 Oct 2026

Understanding the Training and Generalization of Pretrained Transformer for Sequential Decision Making

arXiv 2405.14219 ↗First posted 23 May 2024cs.LG cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

In this paper, we consider the supervised pre-trained transformer for a class of sequential decision-making problems. The class of considered problems is a subset of the general formulation of reinforcement learning in that there is no transition probability matrix; though seemingly restrictive, the subset class of problems covers bandits, dynamic pricing, and newsvendor problems as special cases. Such a structure enables the use of optimal actions/decisions in the pre-training phase, and the usage also provides new insights for the training and generalization of the pre-trained transformer. We first note the training of the transformer model can be viewed as a performative prediction problem, and the existing methods and theories largely ignore or cannot resolve an out-of-distribution issue. We propose a natural solution that includes the transformer-generated action sequences in the training procedure, and it enjoys better properties both numerically and theoretically. The availability of the optimal actions in the considered tasks also allows us to analyze the properties of the pre-trained transformer as an algorithm and explains why it may lack exploration and how this can be automatically resolved. Numerically, we categorize the advantages of pre-trained transformers over the structured algorithms such as UCB and Thompson sampling into three cases: (i) it better utilizes the prior knowledge in the pre-training data; (ii) it can elegantly handle the misspecification issue suffered by the structured algorithms; (iii) for short time horizon such as T≤50, it behaves more greedy and enjoys much better regret than the structured algorithms designed for asymptotic optimality.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 32 of its 57 references that are in the map. First posted on arXiv 23 May 2024.

Builds on

32 of 57 references.

References · 32

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2020Scaling Laws for Neural Language Modelscited by 6,586
  4. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  5. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
  6. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  7. 2022Transformers learn in-context by gradient descentcited by 732
  8. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  9. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  10. 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 644
  11. 2022Is Conditional Generative Modeling all you need for Decision-Making?cited by 516
  12. 2017A Tutorial on Thompson Samplingcited by 433
20 more
  1. 2021Transformers Can Do Bayesian Inferencecited by 360
  2. 2020Performative Predictioncited by 327
  3. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
  4. 2022Online Decision Transformercited by 196
  5. 2022In-context Reinforcement Learning with Algorithm Distillationcited by 190
  6. 2021RvS: What is Essential for Offline RL via Supervised Learning?cited by 185
  7. 2019Goal-conditioned Imitation Learningcited by 162
  8. 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 139
  9. 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 118
  10. 2020Stochastic Optimization for Performative Predictioncited by 93
  11. 2023Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretrainingcited by 83
  12. 2022When does return-conditioned supervised learning work for offline reinforcement learning?cited by 76
  13. 2021How to Learn when Data Reacts to Your Model: Performative Gradient Descentcited by 71
  14. 2023Elastic Decision Transformercited by 67
  15. 2024An Information-Theoretic Analysis of In-Context Learningcited by 40
  16. 2024Do LLM Agents Have Regret? A Case Study in Online Learning and Gamescited by 35
  17. 2016Dynamic Pricing with Demand Covariatescited by 31
  18. 2019Learning in structured MDPs with convex cost functions: Improved regret bounds for inventory managementcited by 22
  19. 2023Waypoint Transformer: Reinforcement Learning via Supervised Learning with Intermediate Targetscited by 22
  20. 2021On Dynamic Pricing with Covariatescited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 1; 2026: 3.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Pretraining Decision Transformers with Reward Prediction for In-Context Multi-task Structured Bandit Learning
  2. 2023Future-conditioned Unsupervised Pretraining for Decision Transformer
  3. 2024Predictive Coding for Decision Transformer
  4. 2023Rethinking Decision Transformer via Hierarchical Reinforcement Learning
  5. 2024Q-value Regularized Transformer for Offline Reinforcement Learning
  6. 2026Vintix II: Decision Pre-Trained Transformer is a Scalable In-Context Reinforcement Learner
  7. 2025Adjusting the Output of Decision Transformer with Action Gradient
  8. 2026Beyond Autoregressive RTG: Conditioning via Injection Outside Sequential Modeling in Decision Transformer