ACAMDA: Improving Data Efficiency in Reinforcement Learning through Guided Counterfactual Data Augmentation

Yuewen Sun, Erli Wang, Biwei Huang, Chaochao Lu, Lu Feng, Changyin Sun, Kun Zhang

Abstract

Reinforcement learning (RL) is often limited by the high cost of data collection. ACAMDA (Adversarial Causal Modeling for Data Augmentation) addresses this by generating high-fidelity counterfactual data. By integrating causal structure discovery with a bidirectional generative model (BiCCGAN), ACAMDA "imagines" realistic alternative scenarios grounded in the underlying physics of the environment. Our results show that ACAMDA can reduce real-world data requirements by up to 36x while improving policy robustness in heterogeneous environments.

Introduction

Reinforcement learning agents typically require millions of interactions to master a task. While data augmentation is a common strategy to improve efficiency, standard methods often produce physically impossible transitions because they rely on statistical correlations rather than causal mechanisms. This leads to "model bias," where agents learn from hallucinated data that fails to generalize, particularly across different environmental domains. ACAMDA overcomes these hurdles by asking "what if" in a way that respects causal constraints.

The ACAMDA Framework

The ACAMDA pipeline consists of four integrated phases designed to ensure synthetic data quality and physical consistency.

The ACAMDA framework overview, illustrating the four-phase process from causal recovery to policy optimization.
  1. Causal Structure Recovery (P1): The system uses neural networks with group-lasso sparsity penalties to identify the temporal causal relationships within the environment. This step determines which state-action pairs truly influence future states, filtering out spurious correlations.
  2. Adversarial Model Estimation (P2): A Bidirectional Conditional Causal GAN (BiCCGAN) is employed. Unlike standard GANs, it includes an encoder that "abducts" the specific environmental noise (uncertainty) from real observations.
  3. Counterfactual Data Augmentation (P3): Following Pearl’s structural causal model framework, ACAMDA performs abduction (extracting noise), action (applying a hypothetical change), and prediction (generating the outcome). This ensures that "imagined" data is an individual-level reflection of reality.
  4. Policy Optimization and Transfer (P4): The agent is trained on a combination of real and high-quality counterfactual data, facilitating better transfer to unseen target domains.

Experimental Results

We evaluated ACAMDA on synthetic datasets, modified CartPole environments (CP-Noisy and CP-Windy), and a complex inventory management task.

Comparison of model bias and performance metrics across different baselines, highlighting ACAMDA's (BiCCGAN) superior generalization.

The results demonstrate significant improvements in both data efficiency and performance. In the CP-Noisy task, ACAMDA achieved a 36x reduction in required source samples compared to standard model-free RL. Furthermore, as shown in the performance metrics, ACAMDA (BiCCGAN) consistently outperformed baselines like CoGAN and BiCoGAN in heterogeneous settings, achieving higher average rewards and success rates. The model also proved highly accurate in causal discovery, recovering over 90% of the ground-truth causal links.

Conclusion

ACAMDA represents a significant step forward in making RL more practical for real-world applications where data is scarce or expensive. By using causality as a "guardrail" for generative modeling, it produces synthetic data that is both diverse and physically grounded. Future work will address the challenges of hidden confounders and the computational overhead associated with bidirectional adversarial training.

Summary updated

BibTeX
@inproceedings{sun2024acamda,
  author = {Yuewen Sun and Erli Wang and Biwei Huang and Chaochao Lu and Lu Feng and Changyin Sun and Kun Zhang},
  title = {{ACAMDA: Improving Data Efficiency in Reinforcement Learning through Guided Counterfactual Data Augmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i14.29442},
}
Figure