Causal Imitability Under Context-Specific Independence Relations

Fateme Jamshidi, Sina Akbari, Negar Kiyavash

Introduction

Imitation learning (IL) is a powerful paradigm for teaching autonomous agents to perform complex tasks by mimicking expert behavior. However, a persistent challenge in IL is "causal confusion," where an agent learns spurious correlations rather than the underlying causal mechanisms of the expert's policy. This often occurs when the imitator has access to a different set of observations than the expert, leading to unobserved confounding.

This paper investigates the conditions under which an expert's policy can be successfully recovered—a property known as imitability. While previous research established graphical criteria for imitability based on standard Directed Acyclic Graphs (DAGs), these criteria are often overly pessimistic. By incorporating Context-Specific Independence (CSI), the authors demonstrate that many scenarios previously deemed "unimitable" can, in fact, be solved.

The Problem: Causal Confusion and Unobserved Confounding

Causal confusion arises when an imitator mistakenly attributes an expert's action to a symptom rather than a cause. For example, consider an autonomous driving scenario where an expert driver brakes because they see a pedestrian (a variable latent to the imitator). If the imitator sees the car's brake lights turn on simultaneously, it might incorrectly learn that the brake light causes the car to slow down.

In formal terms, if the imitator lacks access to the full state used by the expert, the expert's actions are confounded by unobserved variables. Traditional causal analysis uses d-separation in DAGs to determine if a policy is imitable. If the causal path between the expert's observations and actions is blocked by latent confounders, the task is labeled unimitable. This paper argues that this binary view ignores the nuances of context.

Context-Specific Independence (CSI) and LDAGs

The core innovation of this research is the application of Labeled Directed Acyclic Graphs (LDAGs) to represent CSI. In an LDAG, edges between variables are conditional; an edge may exist in one context but "disappear" in another.

For instance, a driver might generally follow the speed limit ($S$), but in the specific context of heavy traffic ($T=1$), the speed limit becomes irrelevant to their braking behavior. This context-specific disappearance of a causal link can break confounding paths that would otherwise render a task unimitable. CSI acts as a "rescue" mechanism, allowing the imitator to identify the true policy by focusing on specific contexts where the influence of latent confounders is neutralized.

Technical Contributions

The paper provides a rigorous theoretical framework for analyzing imitability under CSI:

  1. Complexity Analysis: The authors prove that determining imitability under CSI is NP-hard. This represents a significant increase in complexity compared to standard imitability, which can be checked in polynomial time using simple d-separation tests.
  2. Graphical Criteria: The researchers establish a necessary and sufficient graphical criterion for imitability in cases where context variables are determined only by other context variables.
  3. Algorithmic Solutions: Two primary algorithms are introduced:
  4. Algorithm 1: A sound and complete method for the restricted structural case mentioned above.
  5. Algorithm 2: A more general, recursive algorithm that utilizes CSI-calculus—an extension of Judea Pearl’s do-calculus. This algorithm identifies "imitation surrogates" (observable variables that serve as proxies for hidden rewards) to resolve causal effects that are otherwise non-identifiable.

Experimental Results

The authors validated their framework through both large-scale simulations and specific synthetic models:

  • Increased Feasibility: In tests involving randomly generated graphs with 100 vertices, accounting for CSI relations increased the fraction of imitable instances from approximately 20% to nearly 70%. This suggests that many real-world problems currently thought to be impossible for imitation learning might be solvable with a CSI-aware approach.
  • Performance Benchmarks: In synthetic economic and driving simulations, Algorithm 2 significantly outperformed standard Behavioral Cloning (BC). While BC agents suffered from causal confusion and achieved lower rewards (approx. 1.19), the CSI-aware algorithm nearly matched the expert's performance (1.358 vs. 1.367).
  • Data Efficiency vs. Structural Clarity: The results demonstrated that the failure of naive imitation learning is not a matter of data volume. Even with large datasets, standard models remained "confused" because they lacked the structural understanding to account for latent variables. The CSI-based approach succeeded by correctly interpreting the underlying causal structure.

Limitations and Future Directions

While this work expands the boundaries of what is imitable, several challenges remain:

  • Structural Knowledge: The current framework assumes that the LDAG and specific CSI relations are known a priori. Developing methods to discover these relations from raw observational data is a critical next step.
  • Theoretical Completeness: Algorithm 2 is sound but not yet proven to be complete for all possible LDAG structures, meaning there may be imitable cases it cannot yet identify.
  • Scalability: Due to the NP-hard nature of the problem, future research must focus on developing efficient heuristics to apply these concepts to high-dimensional systems with hundreds of variables.

Conclusion

By moving beyond static causal graphs and embracing the conditional nature of independence, this paper provides a more optimistic and accurate framework for imitation learning. Recognizing Context-Specific Independence allows agents to navigate unobserved confounding, turning previously "impossible" imitation tasks into achievable goals.

Summary updated

BibTeX
@inproceedings{jamshidi2023causal,
  author = {Fateme Jamshidi and Sina Akbari and Negar Kiyavash},
  title = {{Causal Imitability Under Context-Specific Independence Relations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=X3IeHRD0zf},
}
Figure