mlsanityData to 7 Oct 2026

Emergent Agentic Transformer from Chain of Hindsight Experience

arXiv 2305.16554 ↗First posted 26 May 2023cs.LGcited by 33

On the map: LLM agents and tool use → Reinforcement learning for LLM agents

Abstract (arXiv)

Large transformer models powered by diverse data and model scale have dominated natural language modeling and computer vision and pushed the frontier of multiple AI areas. In reinforcement learning (RL), despite many efforts into transformer-based policies, a key limitation, however, is that current transformer-based policies cannot learn by directly combining information from multiple sub-optimal trials. In this work, we address this issue using recently proposed chain of hindsight to relabel experience, where we train a transformer on a sequence of trajectory experience ascending sorted according to their total rewards. Our method consists of relabelling target return of each trajectory to the maximum total reward among in sequence of trajectories and training an autoregressive model to predict actions conditioning on past states, actions, rewards, target returns, and task completion tokens, the resulting model, Agentic Transformer (AT), can learn to improve upon itself both at training and test time. As we show on D4RL and ExoRL benchmarks, to the best our knowledge, this is the first time that a simple transformer-based model performs competitively with both temporal-difference and imitation-learning-based approaches, even from sub-optimal data. Our Agentic Transformer also shows a promising scaling trend that bigger models consistently improve results.

Key facts. Cited by 33 papers in the map (data through 7 Oct 2026). Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use. Builds on 52 of its 61 references that are in the map. First posted on arXiv 26 May 2023.

Builds on

52 of 61 references.

References · 52

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2017Proximal Policy Optimization Algorithmscited by 14,441
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  8. 2016Layer Normalizationcited by 5,579
  9. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  10. 2013Playing Atari with Deep Reinforcement Learningcited by 3,211
  11. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  12. 2015Trust Region Policy Optimizationcited by 2,503
38 more
  1. 2018Addressing Function Approximation Error in Actor-Critic Methodscited by 2,302
  2. 2015Deep Reinforcement Learning with Double Q-learningcited by 1,704
  3. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
  4. 2020D4RL: Datasets for Deep Data-Driven Reinforcement Learningcited by 1,406
  5. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
  6. 2017Curiosity-driven Exploration by Self-supervised Predictioncited by 1,173
  7. 2017Hindsight Experience Replaycited by 1,096
  8. 2018Exploration by Random Network Distillationcited by 966
  9. 2021A Minimalist Approach to Offline Reinforcement Learningcited by 882
  10. 2022A Generalist Agentcited by 802
  11. 2018Diversity is All You Need: Learning Skills without a Reward Functioncited by 734
  12. 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
  13. 2021CLIPort: What and Where Pathways for Robotic Manipulationcited by 617
  14. 2016RL2: Fast Reinforcement Learning via Slow Reinforcement Learningcited by 490
  15. 2022LM-Nav: Robotic Navigation with Large Pre-Trained Models of Language, Vision, and Actioncited by 435
  16. 2016Learning to reinforcement learncited by 369
  17. 2022Behavior Transformers: Cloning k modes with one stonecited by 299
  18. 2021History Aware Multimodal Transformer for Vision-and-Language Navigationcited by 268
  19. 2019Self-Supervised Exploration via Disagreementcited by 263
  20. 2022Multi-Game Decision Transformerscited by 212
  21. 2019Efficient Exploration via State Marginal Matchingcited by 186
  22. 2022In-context Reinforcement Learning with Algorithm Distillationcited by 186
  23. 2021Reinforcement Learning with Prototypical Representationscited by 179
  24. 2021Behavior From the Void: Unsupervised Active Pre-Trainingcited by 173
  25. 2022Masked World Models for Visual Controlcited by 169
  26. 2020What Matters In On-Policy Reinforcement Learning? A Large-Scale Empirical Studycited by 157
  27. 2023Chain of Hindsight Aligns Language Models with Feedbackcited by 147
  28. 2021URLB: Unsupervised Reinforcement Learning Benchmarkcited by 138
  29. 2023Human-Timescale Adaptation in an Open-Ended Task Spacecited by 136
  30. 2021APS: Active Pretraining with Successor Featurescited by 109
  31. 2019Training Agents using Upside-Down Reinforcement Learningcited by 106
  32. 2022From Play to Policy: Conditional Behavior Generation from Uncurated Robot Datacited by 103
  33. 2022Don't Change the Algorithm, Change the Data: Exploratory Data for Offline Reinforcement Learningcited by 93
  34. 2022Instruction-driven history-aware policies for robotic manipulationscited by 93
  35. 2022VLMbench: A Compositional Benchmark for Vision-and-Language Manipulationcited by 68
  36. 2022Masked Autoencoding for Scalable and Generalizable Decision Makingcited by 44
  37. 2023Masked Trajectory Models for Prediction, Representation, and Controlcited by 40
  38. 2022Transformers are Meta-Reinforcement Learnerscited by 39

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 9; 2024: 11; 2025: 9; 2026: 4.

33 papers.

Sort:

By area:

  1. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
  2. 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learnerscited by 29
  3. 2023Learning to Modulate pre-trained Models in RLcited by 28
  4. 2023Emergence of In-Context Reinforcement Learning from Noise Distillationcited by 26
  5. 2024In-Context Decision Transformer: Reinforcement Learning via Hierarchical Chain-of-Thoughtcited by 25
  6. 2023Unleashing the Power of Pre-trained Language Models for Offline Reinforcement Learningcited by 24
  7. 2023Waypoint Transformer: Reinforcement Learning via Supervised Learning with Intermediate Targetscited by 22
  8. 2024Jack of All Trades, Master of Some, a Multi-Purpose Transformer Agentcited by 20
  9. 2024Empowering Large Language Model Agents through Action Learningcited by 20
  10. 2024Retrieval-Augmented Decision Transformer: External Memory for In-context RLcited by 20
  11. 2024Decision Mamba: Reinforcement Learning via Hybrid Selective Sequence Modelingcited by 18
  12. 2023Rethinking Decision Transformer via Hierarchical Reinforcement Learningcited by 14
21 more
  1. 2024XLand-100B: A Large-Scale Multi-Task Dataset for In-Context Reinforcement Learningcited by 13
  2. 2023Blockwise Parallel Transformer for Large Context Modelscited by 12
  3. 2025Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planningcited by 12
  4. 2023Free from Bellman Completeness: Trajectory Stitching via Model-based Return-conditioned Supervised Learningcited by 11
  5. 2023Cross-Episodic Curriculum for Transformer Agentscited by 10
  6. 2024A2PO: Towards Effective Offline Reinforcement Learning from an Advantage-aware Perspectivecited by 10
  7. 2024Reinforcement Learning Gradients as Vitamin for Online Finetuning Decision Transformerscited by 8
  8. 2024Tackling Data Corruption in Offline Reinforcement Learning via Sequence Modelingcited by 7
  9. 2025Mixture-of-Experts Meets In-Context Reinforcement Learningcited by 7
  10. 2025Scalable In-Context Q-Learningcited by 5
  11. 2025Behavioral Exploration: Learning to Explore via In-Context Adaptationcited by 4
  12. 2024Return-Aligned Decision Transformercited by 3
  13. 2024NOLO: Navigate Only Look Oncecited by 3
  14. 2025In-Context Reinforcement Learning via Communicative World Modelscited by 3
  15. 2025Towards Provable Emergence of In-Context Reinforcement Learningcited by 2
  16. 2026Benchmarking the Limits of In-Context Reinforcement Learning for Ad-Hoc Teamworkcited by 2
  17. 2025Hybrid Sequence Modeling and Reinforced Verification for Controllable Target-Conditioned Decision Makingcited by 0
  18. 2025Towards Monotonic Improvement in In-Context Reinforcement Learningcited by 0
  19. 2026In-Context Planning with Latent Temporal Abstractionscited by 0
  20. 2026Meta-Learning and Meta-Reinforcement Learning -- Tracing the Path towards DeepMind's Adaptive Agentcited by 0
  21. 2026One for All: A Non-Linear Transformer can Enable Cross-Domain Generalization for In-Context Reinforcement Learningcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2022TransDreamer: Reinforcement Learning with Transformer World Models
  2. 2026ValueFormer: A Causal Transformer Value Function with Stage-Aware Labels for Semi-Autonomous Vision-Language-Action Policies
  3. 2026In-Context Reinforcement Learning From Suboptimal Historical Data
  4. 2023PASTA: Pretrained Action-State Transformer Agents
  5. 2026Agentic Transformers Provably Learn to Search via Reinforcement Learning
  6. 2026Spinning Straw into Gold: Relabeling LLM Agent Trajectories in Hindsight for Successful Demonstrations
  7. 2026Learning More from Less: Reinforcement Learning from Hindsight
  8. 2025Transformer World Model for Sample Efficient Multi-Agent Reinforcement Learning