Linear-Time Primitives for Algorithm Development in Graphical Causal Inference
Wienöbst, Marcel, Weichwald, Sebastian, Henckel, Leonard
We introduce CIfly, a framework for efficient algorithmic primitives in graphical causal inference that isolates reachability as a reusable core operation. It builds on the insight that many causal reasoning tasks can be reduced to reachability in purpose-built state-space graphs that can be constructed on the fly during traversal. We formalize a rule table schema for specifying such algorithms and prove they run in linear time. We establish CIfly as a more efficient alternative to the common primitives moralization and latent projection, which we show are computationally equivalent to Boolean matrix multiplication. Our open-source Rust implementation parses rule table text files and runs the specified CIfly algorithms providing high-performance execution accessible from Python and R. We demonstrate CIfly's utility by re-implementing a range of established causal inference tasks within the framework and by developing new algorithms for instrumental variables.
Jun-23-2025
- Country:
- Europe
- Denmark > Capital Region
- Copenhagen (0.04)
- Germany (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- United Kingdom > England
- Cambridgeshire > Cambridge (0.04)
- Denmark > Capital Region
- North America > United States
- California > Los Angeles County
- Los Angeles (0.14)
- Virginia (0.04)
- California > Los Angeles County
- Europe
- Genre:
- Research Report (0.50)
- Industry:
- Health & Medicine (0.67)
- Technology: