Causal Action Influence Aware Counterfactual Data Augmentation

Núria Armengol Urpí, Marco Bagatella, Marin Vlastelica, Georg Martius

Abstract

Offline reinforcement learning for robotics often suffers from causal confusion, where agents learn spurious correlations between independent environment states and actions. This paper introduces Causal Action Influence Aware Counterfactual Data Augmentation (CAIAC), a method designed to enhance robustness by distinguishing between action-influenced and action-independent entities. By identifying uncontrollable components of the state and performing counterfactual swapping, CAIAC generates physically feasible synthetic transitions that expand the training distribution. Evaluation across multiple robotic manipulation benchmarks demonstrates that CAIAC effectively mitigates spurious correlations and significantly improves performance in low-data regimes compared to existing heuristic-based augmentation methods.

1. Introduction

Teaching robots from offline datasets—pre-recorded demonstrations—is a practical and safe alternative to online exploration. However, a major pitfall in this approach is causal confusion. Standard neural networks often learn spurious correlations; for example, if a dataset consistently shows a robot opening a microwave before turning on a light, the model may incorrectly conclude that the microwave must be open for the light switch to function.

This phenomenon leads to catastrophic failure under distributional shift. Real-world datasets are inherently sparse and cannot cover every possible combination of object states. When a robot encounters a state outside its training distribution, it lacks the causal understanding to identify which parts of the scene are relevant to the task at hand. CAIAC addresses this by using counterfactual reasoning to "fill in the gaps" of the dataset.

2. Methodology

CAIAC identifies action-independent entities to create realistic synthetic training data. The process is divided into three primary stages:

  1. Causal Action Influence (CAI) Detection: The system employs an information-theoretic measure—conditional mutual information—to determine which components of the environment state are directly influenced by the robot's actions.
  2. Local Factorization: The environment is partitioned into "controllable" entities (those currently being manipulated) and "uncontrollable" entities (those unaffected by the current action).
  3. Counterfactual Swapping: Synthetic transitions are generated by taking the "uncontrollable" state components from one trajectory and swapping them into another.
Overview of the CAIAC approach. By identifying action-independent entities, the system swaps their states to create feasible counterfactual data.

Because the swapped components are independent of the robot's action, the resulting data is physically feasible. This represents a significant advancement over prior methods like CoDA, which relied on less reliable transformer attention weights to infer causality.

3. Experimental Evaluation

The researchers evaluated CAIAC on three challenging robotic manipulation benchmarks:

  • Franka-Kitchen (D4RL): A high-dimensional environment where a 7-DoF arm interacts with kitchen objects. This was modified to include heavy spurious correlations (tasks performed in a strict, repetitive order).
  • Fetch-Push: A task requiring a robot to slide blocks to target locations.
  • Fetch-Pick&Lift: A task involving picking up and arranging cubes.

4. Results and Analysis

4.1 Breaking Spurious Correlations

In the Franka-Kitchen "Motivating Experiment," the baseline model (No Augm.) failed completely (0% success) when tested on out-of-distribution (OOD) configurations. In contrast, CAIAC achieved a 75-81% success rate by successfully ignoring irrelevant object states. This demonstrates the method's ability to focus on true causal factors.

4.2 Data Efficiency and Feasibility

In low-data regimes (e.g., using only 20% of the Fetch-Push dataset), CAIAC significantly outperformed all baselines. By synthesizing new combinations of object positions, it effectively expanded the support of the joint state space. Crucially, as shown in the log-likelihood analysis, CAIAC ensures that its synthetic samples remain consistent with the environment's underlying physics, unlike heuristic methods that often produce "garbage" transitions.

CAIAC samples (orange) are consistent with environment dynamics and significantly increase the support of the joint state space compared to no augmentation (red dashed).

5. Conclusion and Future Work

CAIAC leverages the inductive bias that most robotic actions only affect a small fraction of the world at any given time. This "action-centric causality" provides a powerful shortcut for learning effective policies in high-dimensional spaces.

However, limitations remain. The current framework assumes that interactions between objects (e.g., collisions) are negligible and requires pre-factorized state representations (object coordinates). Future research will focus on applying CAIAC to raw pixel data through automatic object discovery and extending the method to actively rebalance biased datasets.

Summary updated

BibTeX
@inproceedings{urpi2024causal,
  author = {Núria Armengol Urpí and Marco Bagatella and Marin Vlastelica and Georg Martius},
  title = {{Causal Action Influence Aware Counterfactual Data Augmentation}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=6Zl9rv6PDx},
}
Figure