Traditional causal discovery often feels like a game of "hot or cold." Algorithms like PC or GES start with a graph and iteratively add, remove, or flip edges based on statistical tests, hoping to stumble upon the structure that best fits the data. But as the number of variables grows, the space of possible graphs explodes, and these local search heuristics can easily get stuck in local optima or fail to account for complex, global constraints.
A different approach, pioneered by researchers like Antti Hyttinen, Frederick Eberhardt, and Matti Järvisalo, reframes causal discovery not as a search problem, but as a Boolean Satisfiability (SAT) or Answer Set Programming (ASP) problem. Instead of building a graph, we define the logical rules that any valid causal graph must follow and let high-performance solvers prune the space of billions of possibilities until only the mathematically consistent ones remain.
Encoding the Rules of Causality
The core intuition is that causal properties—like d-separation, acyclicity, and the Markov condition—can be translated into propositional logic. For instance, if we observe that variable $X$ is independent of $Y$ given $Z$, we can encode this as a logical constraint: "In any valid graph, all paths between $X$ and $Y$ must be blocked by $Z$."
As Sofia Triantafillou and Ioannis Tsamardinos demonstrated in A constraint-based approach to incorporate prior knowledge in causal models, this framework allows us to seamlessly integrate "hard" scientific knowledge. If a biologist knows for a fact that "Protein A does not cause Protein B," this becomes a simple Boolean constraint that the solver respects globally. This ensures that the resulting model isn't just statistically likely, but logically necessitated by both the data and existing expertise.
Solving the "Slow Camera" Problem
This logic-based framing is particularly powerful when the data is messy or incomplete. In neuroscience, fMRI scanners are often too slow to capture the rapid firing of neurons—a problem called undersampling. Standard algorithms might see a correlation and assume a direct causal link, when in reality, the "true" cause happened in the gaps between measurements.
In Causal Discovery from Subsampled Time Series Data by Constraint Optimization, Antti Hyttinen and colleagues showed that we can encode the mechanism of undersampling itself as a set of logical rules. By mapping observed dependencies back to potential system-level graphs through these constraints, solvers can recover the high-frequency causal truth from low-frequency snapshots. Mohammadsajad Abavisani and Sergey Plis further extended this in GRACE-C, achieving speedups of three orders of magnitude over traditional methods by shifting the burden from manual search to optimized logical inference.
Stitching Together Overlapping Studies
Perhaps the most impressive feat of this approach is its ability to combine disparate datasets. Imagine one study measures variables $\{A, B, C\}$ and another measures $\{B, C, D\}$. No single experiment has ever seen $A$ and $D$ together.
Traditional methods struggle here, but logic-based discovery excels. In Learning Causal Structure from Overlapping Variable Sets, Sofia Triantafillou showed that by encoding the dependencies from each local study into a centralized SAT solver, we can infer the causal relationship between $A$ and $D$. The solver essentially asks: "What global graph structures are consistent with the partial views seen in Study 1 AND Study 2?" This allows for the discovery of unified networks from "fragmented" data, a process further refined in the ION-C algorithm.
Beyond Rigid Assumptions
Most causal discovery relies on the "Faithfulness" assumption—the idea that every independence in the data corresponds to a missing edge in the graph. In the real world, this often fails due to noise or perfectly canceling paths.
By using logic solvers, researchers like Jiji Zhang and Frederick Eberhardt have been able to experiment with weaker assumptions. In SAT-Based Causal Discovery under Weaker Assumptions, they demonstrated that you can simply swap out the "Faithfulness" constraint for a more relaxed version in the solver's input. This flexibility makes the discovery process more robust to real-world errors without requiring a complete rewrite of the underlying algorithm.
Why It Works: The Power of the Equivalence Class
The ultimate strength of the constraint-based approach is that it doesn't just give you one answer; it identifies the entire equivalence class of all possible graphs that satisfy the constraints.
As explored by Antti Hyttinen in Do-calculus when the True Graph Is Unknown, this allows us to perform causal reasoning even when the exact graph is uncertain. If every single graph that satisfies our logical constraints agrees that "X causes Y," we can be certain of that relationship even if other parts of the network remain mysterious. By treating causal discovery as a declarative logic problem, we move away from "best guesses" and toward a rigorous, exhaustive accounting of what our data actually allows us to conclude.