Adversarial Counterfactual Environment Model Learning

Xiong-Hui Chen, Yang Yu, Zhenghong Zhu, Zhihua Yu, Zhen-Yu Chen +6 more
2/12/2026

No official code found. Best implementation: xionghuichen/GALILEO (7 stars, Apache-2.0, last commit 2024-01-10).

Abstract

A good model for action-effect prediction, named environment model, is important to achieve sample-efficient decision-making policy learning in many domains like robot control, recommender systems, and patients’ treatment selection. We can take unlimited trials with such a model to identify the appropriate actions so that the costs of queries in the real world can be saved. It requires the model to correctly handle unseen data, also called counterfactual data. However, standard data fitting techniques do not automatically achieve such generalization ability and commonly result in unreliable models. In this work, we introduce counterfactual-query risk minimization (CQRM) in model learning for generalizing to a counterfactual dataset queried by a specific target policy. Since the target policies can be various and unknown in policy learning, we propose an adversarial CQRM objective in which the model learns on counterfactual data queried by adversarial policies, and finally derive a tractable solution GALILEO. We also discover that adversarial CQRM is closely related to the adversarial model learning, explaining the effectiveness of the latter. We apply GALILEO in synthetic tasks and a real-world application. The results show that GALILEO makes accurate predictions on counterfactual data and thus significantly improves policies in real-world testing.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The official code of "Adversarial Counterfactual Environment Model Learning" (NeurIPS'23 spotlight)

71PythonMay 31, 20222 years agoApache-2.0
causal-inferencedynamics-modelsofflinerlreinforcement-learningtreatment-effect-estimation

Similar Papers

Cite this paper

@article{chen2026adversarial,
  title  = {Adversarial Counterfactual Environment Model Learning},
  author = {Xiong-Hui Chen and Yang Yu and Zhenghong Zhu and Zhihua Yu and Zhen-Yu Chen and Chenghe Wang and Yinan Wu and Hongqiu Wu and Rongjun Qin and Rui Ding and Fangsheng Huang},
  year   = {2026},
  eprint = {2206.04890},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2206.04890},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.04890.svg)](https://codeofpaper.com/paper/2206.04890)

Discussion