Linear-Time Algorithms for Front-Door Adjustment in Causal Graphs

Marcel Wienöbst, Benito van der Zander, Maciej Liskiewicz

Introduction

In causal inference, determining the effect of a treatment $X$ on an outcome $Y$ is often complicated by unobserved confounders—hidden variables that influence both the treatment and the result. While the standard Back-Door (BD) adjustment requires measuring all such confounders, the Front-Door (FD) adjustment offers a powerful alternative. It uses "mediators"—variables on the causal path between $X$ and $Y$—to estimate causal effects even when confounders remain hidden.

Despite its theoretical utility since the 1990s, the FD method has been computationally bottlenecked. Previous state-of-the-art algorithms for finding these mediator sets scaled poorly, with a complexity of $O(n^3(n+m))$, making them impractical for large-scale systems. This paper presents a breakthrough: the first linear-time ($O(n+m)$) algorithms for identifying and minimizing front-door adjustment sets.

The Front-Door Adjustment Challenge

The FD criterion involves finding a set of variables that intercepts all directed paths from $X$ to $Y$ while satisfying specific independence conditions to avoid bias from back-door paths. A significant challenge is that the FD criterion is non-monotonic; adding a valid variable to an existing set can sometimes make the entire set invalid.

A causal graph illustrating the Front-Door adjustment problem with unobserved confounders (U) and mediators (A, B, D).

Methods: Achieving Linear Time

The researchers achieved $O(n+m)$ complexity by decomposing the FD criterion into three efficient steps:

  1. Candidate Identification: Using the "Bayes-Ball" algorithm to quickly find variables meeting the independence requirements.
  2. Forbidden Vertex Detection: The core innovation is an algorithm that identifies "forbidden" variables—those that would violate FD conditions if included—in a single graph pass.
  3. Minimization: A new algorithm to find a minimal FD set. Smaller sets are statistically superior as they require less data and provide more stable estimates.

Key Results and Scalability

The proposed algorithms, FIND (for identification) and MIN (for minimization), were evaluated against synthetic and real-world causal graphs. The results demonstrate a transformative leap in performance.

Runtime comparison between the proposed FIND/MIN algorithms and the previous state-of-the-art JTB algorithm.

In empirical tests, the FIND algorithm outperformed the previous state-of-the-art (JTB) by a factor of over 10,000 on medium-sized graphs. While JTB failed to process graphs with more than 256 vertices within a 30-second window, the new linear-time algorithms handled systems with over 100,000 vertices in mere seconds.

Conclusion

By bringing Front-Door adjustment into the realm of linear-time complexity, this work ensures that FD adjustment is as computationally accessible as Back-Door adjustment. This allows for robust causal inference in massive, complex systems where hidden confounders are a reality.

The authors have released their implementations in Python, Julia, and JavaScript to encourage widespread adoption in the research community.

Summary updated

BibTeX
@inproceedings{wienobst2024linear,
  author = {Marcel Wienöbst and Benito van der Zander and Maciej Liskiewicz},
  title = {{Linear-Time Algorithms for Front-Door Adjustment in Causal Graphs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i18.30043},
}
Figure