Beyond the Known: Decision Making with Counterfactual Reasoning Decision Transformer
Minh Hoang Nguyen, Linh Le Pham Van, Thommen George Karimpanal, Sunil Gupta, Hung Le
TL;DR
CRDT addresses the challenge of suboptimal or limited offline data for Decision Transformers by introducing counterfactual reasoning. It learns separate Treatment and Outcome models to generate plausible counterfactual experiences, filters them by predicted quality and uncertainty, and augments DT training with these samples, enabling improved generalization and stitching without changing the DT architecture. Across continuous and discrete domains, CRDT yields consistent gains and demonstrates stitching capabilities, particularly in data-scarce or modified-dynamics scenarios. This approach leverages the potential outcomes framework to reason about unobserved actions and their consequences, offering a scalable way to extend offline RL with counterfactual data.
Abstract
Decision Transformers (DT) play a crucial role in modern reinforcement learning, leveraging offline datasets to achieve impressive results across various domains. However, DT requires high-quality, comprehensive data to perform optimally. In real-world applications, the lack of training data and the scarcity of optimal behaviours make training on offline datasets challenging, as suboptimal data can hinder performance. To address this, we propose the Counterfactual Reasoning Decision Transformer (CRDT), a novel framework inspired by counterfactual reasoning. CRDT enhances DT ability to reason beyond known data by generating and utilizing counterfactual experiences, enabling improved decision-making in unseen scenarios. Experiments across Atari and D4RL benchmarks, including scenarios with limited data and altered dynamics, demonstrate that CRDT outperforms conventional DT approaches. Additionally, reasoning counterfactually allows the DT agent to obtain stitching abilities, combining suboptimal trajectories, without architectural modifications. These results highlight the potential of counterfactual reasoning to enhance reinforcement learning agents' performance and generalization capabilities.
