Proceedings

Beyond the Known: Decision Making with Counterfactual Reasoning Decision Transformer

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 5994-6002.

https://doi.org/10.24963/ijcai.2025/667

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’s 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.

  1. [Agarwal et al., 2020] Rishabh Agarwal, Dale Schuurmans, and Mohammad Norouzi. An optimistic perspective on offline reinforcement learning. In Proceedings of the 37th International Conference on Machine Learning, 2020.
  2. [Bahadori et al., 2022] Taha Bahadori, Eric Tchetgen Tch- etgen, and David Heckerman. End-to-end balancing for causal continuous treatment-effect estimation. In Kama- lika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepes- vari, Gang Niu, and Sivan Sabato, editors, Proceedings of the 39th International Conference on Machine Learn- ing, volume 162 of Proceedings of Machine Learning Re- search, pages 1313-1326. PMLR, 17-23 Jul 2022.
  3. [Bellemare et al., 2013] Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253-279, 2013.
  4. [Bhargava et al., 2024] Prajjwal Bhargava, Rohan Chitnis, Alborz Geramifard, Shagun Sodhani, and Amy Zhang. When should we prefer decision transformers for offline reinforcement learning? In The Twelfth International Con- ference on Learning Representations, 2024.
  5. [Chen et al., 2021] Lili Chen, Kevin Lu, Aravind Ra- jeswaran, Kimin Lee, Aditya Grover, Michael Laskin, Pieter Abbeel, Aravind Srinivas, and Igor Mordatch. De- cision transformer: reinforcement learning via sequence modeling. In Proceedings of the 35th International Con- ference on Neural Information Processing Systems, pages 15084-15097, 2021.
  6. [Frauen et al., 2023] Dennis Frauen, Tobias Hatt, Valentyn Melnychuk, and Stefan Feuerriegel. Estimating average causal effects from patient trajectories. In Proceedings of the Thirty-Seventh AAAI Conference on Artificial Intelli- gence. AAAI Press, 2023.
  7. [Fu et al., 2020] Justin Fu, Aviral Kumar, Ofir Nachum, George Tucker, and Sergey Levine. D4rl: Datasets for deep data-driven reinforcement learning. arXiv preprint arXiv:2004.07219, 2020.
  8. [Kamath, 2015] Gautam Kamath. Bounds on the expecta- tion of the maximum of samples from a gaussian. URL http://www. gautamkamath. com/writings/gaussian max. pdf, 10(20-30):31, 2015. Link
  9. [Kidambi et al., 2020] Rahul Kidambi, Aravind Rajeswaran, Praneeth Netrapalli, and Thorsten Joachims. Morel: model-based offline reinforcement learning. In Proceed- ings of the 34th International Conference on Neural Infor- mation Processing Systems, pages 21810-21823, 2020.
  10. [Killian et al., 2022] Taylor W Killian, Marzyeh Ghassemi, and Shalmali Joshi. Counterfactually guided policy trans- fer in clinical settings. In Conference on Health, Inference, and Learning, pages 5-31. PMLR, 2022.
  11. [Kim et al., 2023] Jeonghye Kim, Suyoung Lee, Woojun Kim, and Youngchul Sung. Decision convformer: Local filtering in metaformer is sufficient for decision making. arXiv preprint arXiv:2310.03022, 2023.
  12. [Kostrikov et al., 2021a] Ilya Kostrikov, Rob Fergus, Jonathan Tompson, and Ofir Nachum. Offline reinforce- ment learning with fisher divergence critic regularization. In Marina Meila and Tong Zhang, editors, Proceedings of the 38th International Conference on Machine Learn- ing, volume 139 of Proceedings of Machine Learning Research, pages 5774-5783. PMLR, 18-24 Jul 2021.
  13. [Kostrikov et al., 2021b] Ilya Kostrikov, Ashvin Nair, and Sergey Levine. Offline reinforcement learning with im- plicit q-learning. arXiv preprint arXiv:2110.06169, 2021.
  14. [Kumar et al., 2020] Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative q-learning for offline reinforcement learning. In Proceedings of the 34th International Conference on Neural Information Process- ing Systems, NIPS '20, 2020.
  15. [Le Pham Van et al., 2024] Linh Le Pham Van, Hung The Tran, and Sunil Gupta. Policy learning for off- dynamics RL with deficient support. In Proceedings of the International Conference on Autonomous Agents and Multiagent Systems, pages 1093-1100, 2024.
  16. [Levine et al., 2020] Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tu- torial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020.
  17. [Li et al., 2020] Rui Li, Zach Shahn, Jun Li, Mingyu Lu, Prithwish Chakraborty, Daby Sow, Mohamed Ghalwash, and Li-wei H Lehman. G-net: a deep learning ap- proach to g-computation for counterfactual outcome pre- diction under dynamic treatment regimes. arXiv preprint arXiv:2003.10551, 2020.
  18. [Melnychuk et al., 2022] Valentyn Melnychuk, Dennis Frauen, and Stefan Feuerriegel. Causal transformer for estimating counterfactual outcomes. In Kamalika Chaud- huri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato, editors, Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 15293-15329. PMLR, 17-23 Jul 2022.
  19. [Neyman, 1923] Jerzy Neyman. On the application of prob- ability theory to agricultural experiments. essay on princi- ples. Ann. Agricultural Sciences, pages 1-51, 1923.
  20. [Pearl and Mackenzie, 2018] Judea Pearl and Dana Macken- zie. The book of why: The new science of cause and effect, 2018.
  21. [Pitis et al., 2020] Silviu Pitis, Elliot Creager, and Animesh Garg. Counterfactual data augmentation using locally fac- tored dynamics. In Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS '20, Red Hook, NY, USA, 2020.
  22. [Pitis et al., 2022] Silviu Pitis, Elliot Creager, Ajay Man- dlekar, and Animesh Garg. Mocoda: model-based coun- terfactual data augmentation. In Proceedings of the 36th International Conference on Neural Information Process- ing Systems, NIPS '22, Red Hook, NY, USA, 2022.
  23. [Pomerleau, 1988] Dean A. Pomerleau. Alvinn: an au- tonomous land vehicle in a neural network. In Proceedings of the 2nd International Conference on Neural Information Processing Systems, NIPS'88, page 305-313, Cambridge, MA, USA, 1988. MIT Press.
  24. [Robins and Hernan, 2008] James Robins and Miguel Her- nan. Estimation of the causal effects of time-varying ex- posures. Chapman & Hall/CRC Handbooks of Modern Statistical Methods, pages 553-599, 2008.
  25. [Rubin, 1978] Donald B Rubin. Bayesian inference for causal effects: The role of randomization. The Annals of statistics, pages 34-58, 1978.
  26. [Schmidhuber, 2019] Juergen Schmidhuber. Reinforcement learning upside down: Don't predict rewards-just map them to actions. arXiv preprint arXiv:1912.02875, 2019.
  27. [Silver et al., 2017] David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. nature, 550(7676):354-359, 2017.
  28. [Sun et al., 2023] Zexu Sun, Bowei He, Jinxin Liu, Xu Chen, Chen Ma, and Shuai Zhang. Offline imitation learning with variational counterfactual reasoning. In Proceedings of the 37th International Conference on Neural Informa- tion Processing Systems, NIPS '23, 2023.
  29. [Sun et al., 2024] Yuewen Sun, Erli Wang, Biwei Huang, Chaochao Lu, Lu Feng, Changyin Sun, and Kun Zhang. Acamda: improving data efficiency in reinforcement learning through guided counterfactual data augmentation. In Proceedings of the Thirty-Eighth AAAI Conference on Artificial Intelligence. AAAI Press, 2024.
  30. [Sutton and Barto, 2018] Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. A Brad- ford Book, Cambridge, MA, USA, 2018.
  31. [van Hoof et al., 2015] Herke van Hoof, Tucker Hermans, Gerhard Neumann, and Jan Peters. Learning robot in- hand manipulation with tactile features. In 2015 IEEE- RAS 15th International Conference on Humanoid Robots (Humanoids), pages 121-127. IEEE, 2015.
  32. [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In I. Guyon, U. Von Luxburg, S. Bengio, H. Wal- lach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, vol- ume 30, 2017.
  33. [Wang et al., 2018] Lu Wang, Wei Zhang, Xiaofeng He, and Hongyuan Zha. Supervised reinforcement learning with recurrent neural network for dynamic treatment recom- mendation. In Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining, pages 2447-2456, 2018.
  34. [Wu et al., 2023] Yueh-Hua Wu, Xiaolong Wang, and Masashi Hamaya. Elastic decision transformer. In Pro- ceedings of the International Conference on Neural Infor- mation Processing Systems, pages 18532-18550, 2023.
  35. [Xie et al., 2021] Tengyang Xie, Ching-An Cheng, Nan Jiang, Paul Mineiro, and Alekh Agarwal. Bellman- consistent pessimism for offine reinforcement learning. In Proceedings of the 35th International Conference on Neu- ral Information Processing Systems, NIPS '21, 2021.
  36. [Xie et al., 2023] Zhihui Xie, Zichuan Lin, Deheng Ye, Qiang Fu, Wei Yang, and Shuai Li. Future-conditioned unsupervised pretraining for decision transformer. In Pro- ceedings of the 40th International Conference on Machine Learning, ICML'23. JMLR.org, 2023.
  37. [Yamagata et al., 2023] Taku Yamagata, Ahmed Khalil, and Raul Santos-Rodriguez. Q-learning decision transformer: Leveraging dynamic programming for conditional se- quence modelling in offline RL. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett, editors, Proceedings of the 40th International Conference on Machine Learning, vol- ume 202 of Proceedings of Machine Learning Research, pages 38989-39007. PMLR, 23-29 Jul 2023.
  38. [Yu et al., 2020] Tianhe Yu, Garrett Thomas, Lantao Yu, Ste- fano Ermon, James Zou, Sergey Levine, Chelsea Finn, and Tengyu Ma. Mopo: model-based offline policy optimiza- tion. In Proceedings of the 34th International Conference on Neural Information Processing Systems, pages 14129- 14142, 2020.
  39. [Zhao et al., 2024] Ziqi Zhao, Zhaochun Ren, Liu Yang, Fa- jie Yuan, Pengjie Ren, Zhumin Chen, Xin Xin, et al. Offline trajectory generalization for offline reinforcement learning. arXiv preprint arXiv:2404.10393, 2024.
  40. [Zheng et al., 2022] Qinqing Zheng, Amy Zhang, and Aditya Grover. Online decision transformer. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato, editors, Proceedings of the 39th International Conference on Machine Learning, vol- ume 162 of Proceedings of Machine Learning Research, pages 27042-27059. PMLR, 17-23 Jul 2022.
  41. [Zhu et al., 2015] Yeying Zhu, Donna L Coffman, and De- bashis Ghosh. A boosting algorithm for estimating gener- alized propensity scores with continuous treatments. Jour- nal of causal inference, 3(1):25-40, 2015.
  42. [Zhuang et al., 2024] Zifeng Zhuang, Dengyun Peng, Jinxin Liu, Ziqi Zhang, and Donglin Wang. Reinformer: max- return sequence modeling for offline rl. In Proceedings of the 41st International Conference on Machine Learning, pages 62707-62722, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards