TL;DR
This paper introduces Functional Actual Cause (FAC), a refined causal framework that helps AI agents distinguish between true causes and irrelevant environmental factors by identifying context-specific independencies. Alongside it, the authors present Joint Optimization for Actual Cause Inference (JACI), a deep learning algorithm that successfully scales this theoretical concept to complex, continuous-valued reinforcement learning (RL) environments, significantly outperforming existing heuristics.
What Problem Does This Paper Address?
Reinforcement learning agents often suffer from "causal confusion." They might learn that a specific outcome is caused by an irrelevant background factor simply because they co-occurred. While the field of actual causality (pioneered by Judea Pearl and Joseph Halpern) provides a formal way to define causes for specific events, it is often "overly permissive."
For example, if a robot pushes a block across a table, traditional definitions might label every other object in the room as an "actual cause" because, counterfactually, if any of them had been placed in front of the block, it wouldn't have moved. This is known as the normality problem: humans intuitively know that a distant object is "normal" and shouldn't be considered a cause unless it actually obstructs the path. Existing solutions to this problem rely on manual rankings of "normality," which are impossible to define for high-dimensional, continuous state spaces like those found in robotics.
Methods
The authors propose two major contributions:
- Functional Actual Cause (FAC): This framework formalizes the intuition of normality using Invariant Preimages (IVPs). An IVP is a set of states where the outcome is guaranteed to be invariant to changes in certain variables. By requiring that a cause must belong to a globally minimal set of variables that maintain this invariance, FAC naturally prunes away "distracting" events.
- Joint Optimization for Actual Cause Inference (JACI): To make FAC practical, the authors developed JACI. It uses two neural networks:
- A forward model that predicts the next state but is "masked" to only see a subset of variables.
- An inference network that maps the current state to a binary vector indicating which variables are the "actual causes."
JACI jointly optimizes these networks using a Lagrangian dual objective. It tries to make the forward model as accurate as possible while simultaneously trying to make the set of identified causes as small (sparse) as possible.
Datasets
The researchers evaluated their approach across several domains:
- Classic Causal Puzzles: A suite of established philosophical examples (e.g., "Forest Fire," "Rock Throwing") to ensure FAC aligns with human-agreed causal verdicts.
- Random Vectors: A synthetic domain with various causal graph structures (chains, multi-parent, high-dimensional) to test the limits of the inference algorithm.
- 2D Robot Pushing: A continuous environment where a robot must push a block while navigating obstacles.
- Mini-Breakout: A simplified version of the Atari game where a ball interacts with a paddle and bricks, requiring precise causal identification of infrequent collisions.
Key Insights and Ideas
- Invariance as Normality: Instead of subjective "normality" rankings, the paper uses the physical property of invariance. If changing a variable has no effect on the outcome in a specific context, it isn't a cause.
- Global vs. Local Minimality: Traditional actual causality looks for the smallest set of causes for a single state. FAC looks for a mapping across all states that minimizes the total number of variables needed, which forces the model to ignore rare, irrelevant interactions.
- Bridging Logic and Deep Learning: JACI transforms a discrete, logical search problem into a continuous optimization problem, allowing causal theory to be applied to the high-dimensional data typical of modern AI.
Key Results
JACI demonstrated a massive leap in accuracy over common RL heuristics like input gradients or attention weights:
- Higher Accuracy: In the 2D Pushing domain, JACI achieved an error rate of 13%, compared to 22% for gradient-based methods and 41% for counterfactual baselines.
- Robustness to Irrelevant Factors: In a high-dimensional synthetic test (d-20), JACI maintained a low error rate (~7.7%) while other methods struggled to distinguish the true cause from the 19 irrelevant dimensions.
- Sparsity: JACI successfully identified that obstacles are only causes when they are physically in the way, matching human intuition and providing a much cleaner signal for an RL agent to learn from.
Limitations and Future Work
The authors note that JACI can sometimes get stuck in local minima—for instance, deciding that everything is a cause or nothing is a cause—requiring careful hyperparameter tuning.
Future work aims to extend FAC to causal chains (where A causes B, which causes C) and to incorporate probabilistic normality, where the likelihood of a state occurring helps determine its causal weight. They also suggest that integrating FAC directly into RL policy training could lead to agents that generalize much better to new, unseen environments.
Summary updated