Emergent Agentic Transformer from Chain of Hindsight Experience
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2016Layer Normalizationcited by 5,579
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2013Playing Atari with Deep Reinforcement Learningcited by 3,211
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2015Trust Region Policy Optimizationcited by 2,503
38 more
- 2018Addressing Function Approximation Error in Actor-Critic Methodscited by 2,302
- 2015Deep Reinforcement Learning with Double Q-learningcited by 1,704
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2020D4RL: Datasets for Deep Data-Driven Reinforcement Learningcited by 1,406
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2017Curiosity-driven Exploration by Self-supervised Predictioncited by 1,173
- 2017Hindsight Experience Replaycited by 1,096
- 2018Exploration by Random Network Distillationcited by 966
- 2021A Minimalist Approach to Offline Reinforcement Learningcited by 882
- 2022A Generalist Agentcited by 802
- 2018Diversity is All You Need: Learning Skills without a Reward Functioncited by 734
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
- 2021CLIPort: What and Where Pathways for Robotic Manipulationcited by 617
- 2016RL2: Fast Reinforcement Learning via Slow Reinforcement Learningcited by 490
- 2022LM-Nav: Robotic Navigation with Large Pre-Trained Models of Language, Vision, and Actioncited by 435
- 2016Learning to reinforcement learncited by 369
- 2022Behavior Transformers: Cloning k modes with one stonecited by 299
- 2021History Aware Multimodal Transformer for Vision-and-Language Navigationcited by 268
- 2019Self-Supervised Exploration via Disagreementcited by 263
- 2022Multi-Game Decision Transformerscited by 212
- 2019Efficient Exploration via State Marginal Matchingcited by 186
- 2022In-context Reinforcement Learning with Algorithm Distillationcited by 186
- 2021Reinforcement Learning with Prototypical Representationscited by 179
- 2021Behavior From the Void: Unsupervised Active Pre-Trainingcited by 173
- 2022Masked World Models for Visual Controlcited by 169
- 2020What Matters In On-Policy Reinforcement Learning? A Large-Scale Empirical Studycited by 157
- 2023Chain of Hindsight Aligns Language Models with Feedbackcited by 147
- 2021URLB: Unsupervised Reinforcement Learning Benchmarkcited by 138
- 2023Human-Timescale Adaptation in an Open-Ended Task Spacecited by 136
- 2021APS: Active Pretraining with Successor Featurescited by 109
- 2019Training Agents using Upside-Down Reinforcement Learningcited by 106
- 2022From Play to Policy: Conditional Behavior Generation from Uncurated Robot Datacited by 103
- 2022Don't Change the Algorithm, Change the Data: Exploratory Data for Offline Reinforcement Learningcited by 93
- 2022Instruction-driven history-aware policies for robotic manipulationscited by 93
- 2022VLMbench: A Compositional Benchmark for Vision-and-Language Manipulationcited by 68
- 2022Masked Autoencoding for Scalable and Generalizable Decision Makingcited by 44
- 2023Masked Trajectory Models for Prediction, Representation, and Controlcited by 40
- 2022Transformers are Meta-Reinforcement Learnerscited by 39
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2023: 9; 2024: 11; 2025: 9; 2026: 4.
33 papers.
Sort:
By area:
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learnerscited by 29
- 2023Learning to Modulate pre-trained Models in RLcited by 28
- 2023Emergence of In-Context Reinforcement Learning from Noise Distillationcited by 26
- 2024In-Context Decision Transformer: Reinforcement Learning via Hierarchical Chain-of-Thoughtcited by 25
- 2023Unleashing the Power of Pre-trained Language Models for Offline Reinforcement Learningcited by 24
- 2023Waypoint Transformer: Reinforcement Learning via Supervised Learning with Intermediate Targetscited by 22
- 2024Jack of All Trades, Master of Some, a Multi-Purpose Transformer Agentcited by 20
- 2024Empowering Large Language Model Agents through Action Learningcited by 20
- 2024Retrieval-Augmented Decision Transformer: External Memory for In-context RLcited by 20
- 2024Decision Mamba: Reinforcement Learning via Hybrid Selective Sequence Modelingcited by 18
- 2023Rethinking Decision Transformer via Hierarchical Reinforcement Learningcited by 14
21 more
- 2024XLand-100B: A Large-Scale Multi-Task Dataset for In-Context Reinforcement Learningcited by 13
- 2023Blockwise Parallel Transformer for Large Context Modelscited by 12
- 2025Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planningcited by 12
- 2023Free from Bellman Completeness: Trajectory Stitching via Model-based Return-conditioned Supervised Learningcited by 11
- 2023Cross-Episodic Curriculum for Transformer Agentscited by 10
- 2024A2PO: Towards Effective Offline Reinforcement Learning from an Advantage-aware Perspectivecited by 10
- 2024Reinforcement Learning Gradients as Vitamin for Online Finetuning Decision Transformerscited by 8
- 2024Tackling Data Corruption in Offline Reinforcement Learning via Sequence Modelingcited by 7
- 2025Mixture-of-Experts Meets In-Context Reinforcement Learningcited by 7
- 2025Scalable In-Context Q-Learningcited by 5
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptationcited by 4
- 2024Return-Aligned Decision Transformercited by 3
- 2024NOLO: Navigate Only Look Oncecited by 3
- 2025In-Context Reinforcement Learning via Communicative World Modelscited by 3
- 2025Towards Provable Emergence of In-Context Reinforcement Learningcited by 2
- 2026Benchmarking the Limits of In-Context Reinforcement Learning for Ad-Hoc Teamworkcited by 2
- 2025Hybrid Sequence Modeling and Reinforced Verification for Controllable Target-Conditioned Decision Makingcited by 0
- 2025Towards Monotonic Improvement in In-Context Reinforcement Learningcited by 0
- 2026In-Context Planning with Latent Temporal Abstractionscited by 0
- 2026Meta-Learning and Meta-Reinforcement Learning -- Tracing the Path towards DeepMind's Adaptive Agentcited by 0
- 2026One for All: A Non-Linear Transformer can Enable Cross-Domain Generalization for In-Context Reinforcement Learningcited by 0
- 2026Benchmarking the Limits of In-Context Reinforcement Learning for Ad-Hoc Teamwork23 May 2026
- 2026One for All: A Non-Linear Transformer can Enable Cross-Domain Generalization for In-Context Reinforcement Learning10 May 2026
- 2026Meta-Learning and Meta-Reinforcement Learning -- Tracing the Path towards DeepMind's Adaptive Agent23 Feb 2026
- 2026In-Context Planning with Latent Temporal Abstractions21 Feb 2026
- 2025Towards Monotonic Improvement in In-Context Reinforcement Learning27 Sep 2025
- 2025Towards Provable Emergence of In-Context Reinforcement Learning22 Sep 2025
- 2025Hybrid Sequence Modeling and Reinforced Verification for Controllable Target-Conditioned Decision Making22 Aug 2025
- 2025In-Context Reinforcement Learning via Communicative World Models8 Aug 2025
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptation11 Jul 2025
- 2025Mixture-of-Experts Meets In-Context Reinforcement Learning5 Jun 2025
- 2025Scalable In-Context Q-Learning2 Jun 2025
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learners21 May 2025
21 more
- 2025Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planning26 Feb 2025
- 2024Reinforcement Learning Gradients as Vitamin for Online Finetuning Decision Transformers31 Oct 2024
- 2024Retrieval-Augmented Decision Transformer: External Memory for In-context RL9 Oct 2024
- 2024NOLO: Navigate Only Look Once2 Aug 2024
- 2024Tackling Data Corruption in Offline Reinforcement Learning via Sequence Modeling5 Jul 2024
- 2024XLand-100B: A Large-Scale Multi-Task Dataset for In-Context Reinforcement Learning13 Jun 2024
- 2024Decision Mamba: Reinforcement Learning via Hybrid Selective Sequence Modeling31 May 2024
- 2024In-Context Decision Transformer: Reinforcement Learning via Hierarchical Chain-of-Thought31 May 2024
- 2024A2PO: Towards Effective Offline Reinforcement Learning from an Advantage-aware Perspective12 Mar 2024
- 2024Empowering Large Language Model Agents through Action Learning24 Feb 2024
- 2024Jack of All Trades, Master of Some, a Multi-Purpose Transformer Agent15 Feb 2024
- 2024Return-Aligned Decision Transformer6 Feb 2024
- 2023Emergence of In-Context Reinforcement Learning from Noise Distillation19 Dec 2023
- 2023Rethinking Decision Transformer via Hierarchical Reinforcement Learning1 Nov 2023
- 2023Unleashing the Power of Pre-trained Language Models for Offline Reinforcement Learning31 Oct 2023
- 2023Free from Bellman Completeness: Trajectory Stitching via Model-based Return-conditioned Supervised Learning30 Oct 2023
- 2023Cross-Episodic Curriculum for Transformer Agents12 Oct 2023
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Context3 Oct 2023
- 2023Learning to Modulate pre-trained Models in RL26 Jun 2023
- 2023Waypoint Transformer: Reinforcement Learning via Supervised Learning with Intermediate Targets24 Jun 2023
- 2023Blockwise Parallel Transformer for Large Context Models30 May 2023
- 2023Unleashing the Power of Pre-trained Language Models for Offline Reinforcement Learningcited by 24
- 2023Waypoint Transformer: Reinforcement Learning via Supervised Learning with Intermediate Targetscited by 22
- 2023Rethinking Decision Transformer via Hierarchical Reinforcement Learningcited by 14
- 2024A2PO: Towards Effective Offline Reinforcement Learning from an Advantage-aware Perspectivecited by 10
- 2024Reinforcement Learning Gradients as Vitamin for Online Finetuning Decision Transformerscited by 8
- 2024Tackling Data Corruption in Offline Reinforcement Learning via Sequence Modelingcited by 7
- 2024Return-Aligned Decision Transformercited by 3
- 2024Reinforcement Learning Gradients as Vitamin for Online Finetuning Decision Transformers31 Oct 2024
- 2024Tackling Data Corruption in Offline Reinforcement Learning via Sequence Modeling5 Jul 2024
- 2024A2PO: Towards Effective Offline Reinforcement Learning from an Advantage-aware Perspective12 Mar 2024
- 2024Return-Aligned Decision Transformer6 Feb 2024
- 2023Rethinking Decision Transformer via Hierarchical Reinforcement Learning1 Nov 2023
- 2023Unleashing the Power of Pre-trained Language Models for Offline Reinforcement Learning31 Oct 2023
- 2023Waypoint Transformer: Reinforcement Learning via Supervised Learning with Intermediate Targets24 Jun 2023
- 2025Scalable In-Context Q-Learningcited by 5
- 2025In-Context Reinforcement Learning via Communicative World Modelscited by 3
- 2025In-Context Reinforcement Learning via Communicative World Models8 Aug 2025
- 2025Scalable In-Context Q-Learning2 Jun 2025
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learnerscited by 29
- 2023Learning to Modulate pre-trained Models in RLcited by 28
- 2023Emergence of In-Context Reinforcement Learning from Noise Distillationcited by 26
- 2024Jack of All Trades, Master of Some, a Multi-Purpose Transformer Agentcited by 20
- 2024XLand-100B: A Large-Scale Multi-Task Dataset for In-Context Reinforcement Learningcited by 13
- 2023Blockwise Parallel Transformer for Large Context Modelscited by 12
- 2025Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planningcited by 12
- 2023Free from Bellman Completeness: Trajectory Stitching via Model-based Return-conditioned Supervised Learningcited by 11
- 2023Cross-Episodic Curriculum for Transformer Agentscited by 10
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptationcited by 4
- 2024NOLO: Navigate Only Look Oncecited by 3
12 most cited of 19 All 19 (JSON)
- 2026Benchmarking the Limits of In-Context Reinforcement Learning for Ad-Hoc Teamwork23 May 2026
- 2026One for All: A Non-Linear Transformer can Enable Cross-Domain Generalization for In-Context Reinforcement Learning10 May 2026
- 2026Meta-Learning and Meta-Reinforcement Learning -- Tracing the Path towards DeepMind's Adaptive Agent23 Feb 2026
- 2026In-Context Planning with Latent Temporal Abstractions21 Feb 2026
- 2025Towards Monotonic Improvement in In-Context Reinforcement Learning27 Sep 2025
- 2025Towards Provable Emergence of In-Context Reinforcement Learning22 Sep 2025
- 2025Hybrid Sequence Modeling and Reinforced Verification for Controllable Target-Conditioned Decision Making22 Aug 2025
- 2025Behavioral Exploration: Learning to Explore via In-Context Adaptation11 Jul 2025
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learners21 May 2025
- 2025Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planning26 Feb 2025
- 2024NOLO: Navigate Only Look Once2 Aug 2024
- 2024XLand-100B: A Large-Scale Multi-Task Dataset for In-Context Reinforcement Learning13 Jun 2024
12 newest of 19 All 19 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2022TransDreamer: Reinforcement Learning with Transformer World Models
- 2026ValueFormer: A Causal Transformer Value Function with Stage-Aware Labels for Semi-Autonomous Vision-Language-Action Policies
- 2026In-Context Reinforcement Learning From Suboptimal Historical Data
- 2023PASTA: Pretrained Action-State Transformer Agents
- 2026Agentic Transformers Provably Learn to Search via Reinforcement Learning
- 2026Spinning Straw into Gold: Relabeling LLM Agent Trajectories in Hindsight for Successful Demonstrations
- 2026Learning More from Less: Reinforcement Learning from Hindsight
- 2025Transformer World Model for Sample Efficient Multi-Agent Reinforcement Learning