Context-Former: Stitching via Latent Conditioned Sequence Modeling
On the map: Offline RL and imitation learning from data → Decision transformers and sequence modeling
Abstract (arXiv)
Offline reinforcement learning (RL) algorithms can learn better decision-making compared to behavior policies by stitching the suboptimal trajectories to derive more optimal ones. Meanwhile, Decision Transformer (DT) abstracts the RL as sequence modeling, showcasing competitive performance on offline RL benchmarks. However, recent studies demonstrate that DT lacks of stitching capacity, thus exploiting stitching capability for DT is vital to further improve its performance. In order to endow stitching capability to DT, we abstract trajectory stitching as expert matching and introduce our approach, ContextFormer, which integrates contextual information-based imitation learning (IL) and sequence modeling to stitch sub-optimal trajectory fragments by emulating the representations of a limited number of expert trajectories. To validate our approach, we conduct experiments from two perspectives: 1) We conduct extensive experiments on D4RL benchmarks under the settings of IL, and experimental results demonstrate ContextFormer can achieve competitive performance in multiple IL settings. 2) More importantly, we conduct a comparison of ContextFormer with various competitive DT variants using identical training datasets. The experimental results unveiled ContextFormer's superiority, as it outperformed all other variants, showcasing its remarkable performance.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Decision transformers and sequence modeling, one of 13 directions in Offline RL and imitation learning from data. Builds on 34 of its 50 references that are in the map. First posted on arXiv 29 Jan 2024.
Builds on
34 of 50 references.
Closest ancestors · 5
Same direction, newest first
- 2022Q-learning Decision Transformer: Leveraging Dynamic Programming for Conditional Sequence Modelling in Offline RL8 Sep
- 2022Prompting Decision Transformer for Few-Shot Policy Generalization27 Jun
- 2022You Can't Count on Luck: Why Decision Transformers and RvS Fail in Stochastic Environments31 May
- 2021Generalized Decision Transformer for Offline Hindsight Information Matching19 Nov
- 2021Decision Transformer: Reinforcement Learning via Sequence Modeling2 Jun
Other references · 29
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2018Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actorcited by 4,635
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,873
- 2020Conservative Q-Learning for Offline Reinforcement Learningcited by 1,777
- 2016Generative Adversarial Imitation Learningcited by 1,576
- 2020D4RL: Datasets for Deep Data-Driven Reinforcement Learningcited by 1,406
- 2021Offline Reinforcement Learning with Implicit Q-Learningcited by 1,245
- 2019Advantage-Weighted Regression: Simple and Scalable Off-Policy Reinforcement Learningcited by 750
- 2021Uncertainty-Based Offline Reinforcement Learning with Diversified Q-Ensemblecited by 297
- 2021IQ-Learn: Inverse soft-Q Learning for Imitationcited by 191
17 more
- 2019Imitation Learning via Off-Policy Distribution Matchingcited by 182
- 2017Imitation from Observation: Learning to Imitate Behaviors from Raw Video via Context Translationcited by 167
- 2019Recent Advances in Imitation Learning from Observationcited by 92
- 2019Diagnosing Bottlenecks in Deep Q-learning Algorithmscited by 73
- 2022Supported Policy Optimization for Offline Reinforcement Learningcited by 73
- 2020Offline Learning from Demonstrations and Unlabeled Experiencecited by 72
- 2021Scalar reward is not enough: A response to Silver, Singh, Precup and Sutton (2021)cited by 55
- 2022Versatile Offline Imitation from Observations and Examples via Regularized State-Occupancy Matchingcited by 43
- 2023Pre-Training to Learn in Contextcited by 41
- 2023Beyond Reward: Offline Preference-guided Policy Optimizationcited by 35
- 2023DITTO: Offline Imitation Learning with World Modelscited by 20
- 2023Prompt-Tuning Decision Transformer with Preference Rankingcited by 19
- 2022Discriminator-Guided Model-Based Offline Imitation Learningcited by 17
- 2023CEIL: Generalized Contextual Imitation Learningcited by 12
- 2023CLUE: Calibrated Latent Guidance for Offline Reinforcement Learningcited by 11
- 2023Offline RL with Observation Histories: Analyzing and Improving Sample Complexitycited by 7
- 2022Imitation Learning by State-Only Distribution Matchingcited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 2.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2022Model-based Trajectory Stitching for Improved Offline Reinforcement Learning
- 2025Graph-Assisted Stitching for Offline Hierarchical Reinforcement Learning
- 2022Contextual Transformer for Offline Meta Reinforcement Learning
- 2024DiffStitch: Boosting Offline Reinforcement Learning with Diffusion-based Trajectory Stitching
- 2024Reinformer: Max-Return Sequence Modeling for Offline RL
- 2026In-Context Reinforcement Learning From Suboptimal Historical Data
- 2022Model-based trajectory stitching for improved behavioural cloning and its applications
- 2025Robust Offline Imitation Learning Through State-level Trajectory Stitching