Abstract
There has been a growing interest in causal learning in recent years. Commonly used representations of causal structures, including Bayesian networks and structural equation models (SEM), take the form of directed acyclic graphs (DAGs). We provide a novel mixed-integer quadratic programming formulation and an associated algorithm that identifies DAGs with a low structural Hamming distance between the identified DAG and the ground truth, under identifiability assumptions. The eventual exact learning is guaranteed by the global convergence of the branch-and-bound-and-cut algorithm, which is utilized. In addition to this, integer programming techniques give us access to the dual bound, which allows for a real time assessment of the quality of solution. Previously, integer programming techniques have been shown to lead to limited scaling in the case of DAG identification due to the super exponential number of constraints, which prevent the formation of cycles. The algorithm proposed circumvents this by selectively generating only the violated constraints using the so-called "lazy" constraints methodology. Our empirical results show that ExDAG outperforms state-of-the-art solvers in terms of structural Hamming distance and $F_1$ score when considering Gaussian noise on medium-sized graphs.
Introduction
Causal structure learning is a central task in machine learning, typically involving the estimation of Directed Acyclic Graphs (DAGs) from observational data. This task is inherently difficult due to the combinatorial nature of the search space and the non-convexity of the acyclicity constraint. Modern approaches often rely on continuous relaxations, such as NOTEARS, which offer scalability but lack global optimality guarantees and can converge to local minima. Conversely, exact methods based on integer programming provide global guarantees but have historically struggled with scalability due to the exponential number of cycle-elimination constraints.
Methodology: MIQP with Lazy Constraints
ExDAG bridges the gap between scalability and exactness by formulating the DAG learning problem as a Mixed-Integer Quadratic Programming (MIQP) task. The core innovation lies in the use of "lazy constraints." Instead of populating the model with all possible cycle-exclusion constraints, ExDAG starts with a relaxation. As the solver identifies candidate solutions, it checks for cycles using a Depth-First Search (DFS). If a cycle is found, a specific constraint is added to the model to block it. This approach ensures that only necessary constraints are ever considered, keeping the optimization efficient.
The algorithm is implemented within a branch-and-bound-and-cut framework. A key finding in the development of ExDAG was the importance of the simplex algorithm over interior-point methods; the former's focus on the vertices of the feasible region makes it more compatible with the iterative addition of lazy constraints.
Experimental Setup
The researchers evaluated ExDAG using standard synthetic benchmarks, including Erdős-Rényi (ER) and Scale-Free (SF) graph models with varying edge densities (e.g., SF-2 vs. SF-5). Performance was measured against popular solvers such as NOTEARS, DAGMA, and BOSS. Additionally, the algorithm was tested on the real-world alarm.csv dataset from the NeurIPS 2023 "gCastle" competition.
Results and Discussion
Empirical results demonstrate that ExDAG consistently outperforms existing continuous solvers in structural accuracy.
As illustrated in Figure 1, ExDAG (represented in red) maintains a lower Structural Hamming Distance (SHD) across most tested scenarios, particularly as the number of nodes ($d$) increases. This indicates a more reliable recovery of the underlying causal structure compared to relaxation-based methods.
Furthermore, Figure 2 shows that ExDAG achieves higher F1 scores, reflecting a superior balance between precision and recall in edge identification. On the alarm.csv benchmark, ExDAG achieved an SHD of 55, a significant improvement over the 65 achieved by NOTEARS.
One of the practical advantages of the MIQP approach is the availability of the "MIP GAP"—a dual bound that provides a real-time estimate of how close the current solution is to the global optimum. This allows practitioners to terminate the search early with a known confidence level in the solution's quality, often finding near-optimal solutions within the first 2000 seconds for medium-sized problems.
Conclusion
ExDAG represents a significant step forward in exact DAG learning, demonstrating that MIQP with lazy constraints can effectively scale to medium-sized problems while maintaining superior accuracy. While scalability remains a challenge for very large networks, the integration of global optimality guarantees and real-time quality assessment makes ExDAG a powerful tool for reliable causal inference. Future research will focus on incorporating graph-theoretic pruning techniques to further enhance scalability.
Summary updated