Manuscript Offprint
arXiv:2611.12747Clique Constraints for Exact Causal Structure Learning
Xiaoyu He
AI Center
Czech Technical University in Prague
Karlovo namesti 13, Prague 12135
Pavel Rytíř
AI Center
Czech Technical University in Prague
Karlovo namesti 13, Prague 12135
Petr Ryšavý
AI Center
Czech Technical University in Prague
Karlovo namesti 13, Prague 12135
Jakub Mareček
AI Center
Czech Technical University in Prague
Karlovo namesti 13, Prague 12135
November 10, 2026
ABSTRACT
Exact score-based causal structure learning supports explicit structural constraints and optimisation certificates, but its branch-and-cut search can be computationally demanding. We augment exact causal structure learning methods with an upper bound on the maximum clique size of the learned undirected skeleton, enforced at integer candidates through lazy cycle and clique constraints. On static linear-Gaussian Erdős–Rényi and scale-free DAGs, we evaluate callback order, alternative clique-cut policies, incumbent repair, fractional separation, and Big-M bounds. We report causal-recovery metrics jointly with optimality gaps, primal and dual bounds, node throughput, MIPSOL events, and callback cost. Two variants receive particular attention: B3 selects the most violated minimal -clique inequality at each callback, whereas C3 repairs an infeasible integer candidate by deleting violating edges and refitting affected regression columns using QR-based least squares. The results do not indicate that clique constraints uniformly accelerate optimisation. However, their benefit depends on graph density, sample size, and cut-management policy, while large collections of correlated constraints can reduce node throughput. Tighter valid Big-M bounds reduced the fixed-budget optimality gap in most tested settings, without necessarily changing SHD or F1 at a fixed time limit. These findings characterize the computational trade-offs of clique-constrained exact causal learning, and identify selective separation and incumbent repair as promising directions.
1 Introduction
Causal structure learning from observational data is a fundamental problem in statistics and machine learning. Continuous methods such as NOTEARS represent acyclicity through a differentiable equality constraint [1]. Exact score-based methods instead introduce binary edge-selection variables and impose graph validity through integer or mixed-integer constraints, thereby providing globally optimal or certifiably near-optimal solutions under the specified model and stopping tolerance [2, 3, 4]. Related exact formulations apply this principle to causal structure learning under different graphical assumptions, including extensions that represent latent confounding [5, 6, 7, 8]. Although these formulations provide a principled mechanism for encoding graph validity, sparsity, degree restrictions, and prior knowledge, their computational cost remains substantial: the number of admissible structures grows exponentially, and solver performance depends on the formulation, relaxation strength, branching behavior, and management of constraints generated during the search.
Graph inequalities and on-demand separation are established techniques in combinatorial optimisation. Rather than enumerating every structural constraint in the initial formulation, a branch-and-cut method identifies a violated inequality at the current solution and adds it during the search [9]. Following this principle, we impose an upper bound on the clique size of the learned undirected skeleton. Unlike a global edge-count or degree restriction, a maximum-clique constraint directly excludes locally complete subgraphs and therefore serves as a local-density prior.
Enumerating all forbidden node subsets in advance is generally impractical, so we enforce the maximum-clique condition lazily. At a MIPSOL event, the callback examines an integer candidate and submits a lazy inequality through cbLazy() when the candidate violates the prescribed clique bound. This mechanism rejects structurally invalid integer candidates but does not directly strengthen fractional node relaxations. Strengthening a fractional relaxation instead requires a valid user cut submitted through cbCut() at MIPNODE. The computational effect of lazy clique separation is therefore empirical: a selected inequality may prevent repeated integer violations, whereas separation and additional model rows may increase callback overhead and node-relaxation cost.
The proposed condition should be interpreted specifically as a bound on the maximum clique of the learned skeleton. It is not a bound on clique-width or treewidth, and subsequent moralization or triangulation may introduce cliques that are absent from the original skeleton. We consequently do not assume that the restriction necessarily reduces downstream chordal complexity or accelerates optimisation. Instead, we examine when the structural prior improves causal-structure recovery or redirects the branch-and-cut search, and when its additional separation cost outweighs the reduction in the feasible graph class.
Our contributions are fourfold. First, we formulate and implement a lazy maximum-clique-size restriction for exact DAG structure learning. Second, we compare callback order and controlled clique-cut selection, including first and most-violated minimal- policies. Third, we evaluate complementary strategies involving incumbent repair, fractional separation, and tighter Big-M bounds. Fourth, we introduce detailed instrumentation that separates primal progress, dual-bound progress, MIPSOL events, node throughput, cut submission, and callback time. These measurements expose when clique constraints improve DAG recovery, when they merely redirect the search, and when their additional optimisation cost outweighs the reduction in the feasible graph class.
The adjacency matrix of a graph is denoted by , where we put ones on its diagonal. For two graphs and , we say that is a subgraph of if
which is denoted by .
For a graph , a cycle of length is a sequence of distinct nodes such that for and . A clique of a graph is a subset of vertices where every two distinct nodes are adjacent, i.e., for all with .
3 Formulation
We formulate causal structure learning as a mixed-integer optimisation problem. Let be the number of observations, the number of variables, the contemporaneous data matrix and , , the lagged data matrices. The optimisation variables are the contemporaneous weighted adjacency matrix , lagged coefficient matrices , and binary edge-selection variables indicating whether edge is selected. For each sample and node , the residual is
This yields the following regularized least-squares objective:
(1) where
With squared loss, the formulation is a mixed-integer quadratic program (MIQP). An MILP variant is obtained with absolute loss by introducing auxiliary variables , satisfying and replacing (1) by
which linearizes the absolute residuals.
Big-M constraints Binary variables are linked with edge weights through the standard big-M constraints,
where is a valid upper bound on the absolute edge weight. A smaller valid value strengthens the continuous relaxation, whereas an excessively large value permits a small fractional to support a comparatively large . Reducing without validating the coefficient range can, however, exclude feasible solutions. To exclude two-node cycles, we impose
Longer directed cycles are eliminated lazily during branch-and-bound. Whenever the callback detects a directed cycle , it generates the cut
forcing at least one edge in every directed cycle to be removed.
Lazy clique constraints Let be a clique in this skeleton such that , where is the maximum permitted clique size (set to five in our experiments), and let
denote the set of unordered node pairs in . Since , the callback submits the lazy inequality
which removes the violating clique while preserving all skeletons whose maximum clique size is at most k. The callback separates violated cliques during branch-and-cut. The complete optimisation and callback workflow is summarized in Figure 1.
4 Methodology
Strength and selection of clique cuts. A limitation of Constraint (5) is that it only breaks the particular complete clique detected by the callback; it does not force the remaining graph to satisfy the maximum clique size k immediately. For example, an eight-node clique contains
undirected edges, so the callback adds
This cut requires only one of the 28 edges to be removed. It excludes the complete 8-clique, but the resulting graph may still contain a 7-clique or a 6-clique. When , such candidates remain infeasible even though they satisfy Constraint (7). The original maximal-clique cut is therefore exact for the detected clique but weak with respect to all forbidden subcliques, and several similar infeasible MIPSOL candidates may be generated before repeated callback rounds eliminate them.
A stronger alternative separates minimal forbidden sets of size . For each with , the valid inequality is
For the 8-clique example with , there are six-node subsets, each requiring at least one of its 15 skeleton edges to be absent. Adding every row excludes more related integer candidate at once, but can increase separation, model updating, and subsequent node-processing costs. We therefore evaluate policies that vary the number and diversity of submitted rows, including violation-based ranking, per call cut limits, duplicate suppression, Jaccard diversity, and search history [10, 11, 12].
B3: most-violated minimal clique cut. At a MIPSOL callback, B3 first detects each oversized clique in the integer candidate and generates its minimal forbidden subsets , . For each subset it evaluates the violation
The subsets are ranked by and the highest-ranked row is submitted through cbLazy() (subject to the configured per-callback limit). B3 is consequently an integer-candidate cut-selection policy, not a MIPNODE fractional separator. At a binary clique candidate, multiple minimal subsets can have identical violation; in that case B3 reduces to a deterministic tie-breaking rule and may behave similarly to the first- policy in method B1 (included in the Appendix). The Clique-Most-Violated (B3) implementation proceeds as follows.
Step 1. Read the integer edge-selection candidate and detect every maximal clique whose size exceeds .
Step 2. Generate the unique minimal forbidden node sets with . If several maximal cliques contain the same , that subset appears only once in the candidate list.
Step 3. For every candidate , construct its unordered node pairs and evaluate in Equation 9. The implementation also computes the normalized efficiency .
Step 4. Rank candidates lexicographically by decreasing violation, decreasing efficiency, and then increasing sorted node tuple. The node tuple therefore provides deterministic tie-breaking.
Step 5. Select the highest-ranked row and apply the configured callback cut limit. In the B3 experiments, max_clique_cuts_per_callback=1 and clique-cut deduplication is disabled, so at most one row is submitted during the callback.
Step 6. Submit the selected inequality through cbLazy(), reject the current structurally invalid integer candidate, return control to Gurobi, and resume branch-and-cut search.
C3: QR-based incumbent repair. C3 supplements lazy rejection with a primal heuristic. When a MIPSOL candidate violates acyclicity or the clique bound, it retains the candidate support and weights initially, greedily deletes edges implicated in the violations, and records the parent sets that changed. Only regression columns associated with those parent sets are refitted by QR-based least squares. Before submission, the repaired assignment is validated against integrality, Big- linking, acyclicity, and the maximum-clique constraint. A valid repair is submitted with cbSetSolution() and evaluated with cbUseSolution(), while the original infeasible candidate remains rejected through the required lazy constraints. C3 can improve the primal search by reusing an otherwise rejected candidate, but it neither adds fractional user cuts nor directly strengthens the dual bound.
5 Experiments
This section describes the data-generation procedure, solver configuration, experimental design, and empirical results.

Figure 1: Workflow of clique-constrained exact causal structure learning. The solver alternates between branch-and-cut node processing, cycle separation, clique separation, incumbent acceptance, and bound updates until optimality or a stopping limit is reached.
5.1 Synthetic Data Generation
We use synthetic data because they provide a known ground-truth adjacency matrix. The benchmark contains clique-filtered scale-free (cliquefree-SF) and Erdős-Rényi (cliquefree-ER) DAGs in a static linear-Gaussian setting (), following the general simulation protocol of NOTEARS [1]. The SF generator produces sparse, hub-dominated graphs. For ER data, an undirected graph is sampled at the target edge ratio and oriented according to a random topological ordering. In both families, oversized cliques are detected and low-weight edges are removed until the prescribed clique bound is satisfied. Observations are then sampled from the resulting linear structural equation model (SEM).
Let denote the weighted adjacency matrix of the ground-truth DAG, where and if and only if the edge is present in the data-generating graph. A sample is generated according to
Because the ground-truth graph is acyclic, is invertible.
Samples are generated in topological order, with nonzero coefficients drawn from the configured weight intervals and unit-variance Gaussian noise. We consider nodes and observations. The nominal ER edge ratio is 4 or 5. Because the reported experiments are static, the inter-slice edge-ratio parameter is inactive. Detailed density and linearity statistics are reported in the supplementary material.
5.2 Solver Configuration
We use Gurobi with lazy cycle separation enabled. Unless otherwise stated, each run has a 1,800-second time limit, a target relative MIP gap of , , squared loss, and the regularization parameters . Dedicated Big-M experiments evaluate alternative valid bounds. Hydra manages configurations and MLflow records parameters, metrics, and run metadata [13, 14]. Experiments were executed on MetaCentrum [15] using jobs allocated two CPUs, 32 GB RAM, and 30 GB of local scratch storage. The software environment uses Python 3.10, Gurobi, NetworkX, NumPy, and SciPy. Detailed implementation and environment information are provided in the supplementary code-and-data package.
| Method | Integer-separation policy | Repair | M |
|---|---|---|---|
| ExDBN | None: the baseline enforces acyclicity but imposes no clique-size restriction. | None | 100 |
| Clique | At each infeasible integer candidate, submit lazy cycle constraints and all detected violated clique constraints. | None | 100 |
| Clique · Most-Violated | At each infeasible integer candidate, submit lazy cycle constraints and only the most-violated minimal clique constraint. | None | 100 |
| Clique · QR Repair | Use the default Clique integer separation: submit lazy cycle and violated clique constraints. | Delete violation-causing edges, locally refit affected regressions by QR, validate the repaired assignment, and submit it via cbSetSolution(). | 100 |
| Clique · | Use the default Clique integer separation. | None | 20 |
Table 1: Compared methods. Integer separation is performed at MIPSOL events through lazy constraints; fractional MIPNODE separation is evaluated separately.

Figure 2: Comparison of the SHD score and number of lazy-constraint submissions between Clique and ExDBN under different time limits setting and various dimensions . The solid line represents the mean across multiple trials, with the shaded region indicating the standard deviation.
5.3 Experiment Setup
Table 1 summarizes ExDBN, Clique, and the principal variants evaluated on static cliquefree-SF and cliquefree-ER data. For each graph family and each pair, we use four seeds . We record structural Hamming distance (SHD), F1 score, the relative MIP gap, submitted lazy constraints, primal and dual bounds, and solver diagnostics. We evaluate the best incumbent available at time limits of 5, 60, 120, 300, 600, 1200, 1800, 2700, 3600, 5400, and 7200 seconds. Thus, each fixed-time comparison concerns the best solution found within the specified budget rather than a final globally optimal solution.
5.4 Observations
Most large instances terminate at the time limit with a nonzero optimality gap. Accordingly, every fixed-time comparison concerns the best incumbent and best bound available at that budget, not a proven global optimum. A higher SHD for Clique at a fixed time therefore indicates weaker time-limited recovery on that run; it does not establish that the

Figure 3: SHD results over the ER and scale-free synthetic graph families. Solid lines and shaded areas denote the mean and standard deviation of multiple runs, respectively.
structural constraint reduces the accuracy of the fully optimized model. Under the fixed 1000-second computational budget, the reported gaps and node throughputs reflect solver progress rather than certified final-optimum quality.
SHD and F1 evolve only when a newly accepted incumbent changes the learned graph. They can therefore remain constant while the solver continues to improve the dual bound and close the MIP gap. This stepwise behavior is visible in the time-limit experiments: recovery metrics often stabilize before the optimality certificate. It would nevertheless be incorrect to infer a monotone relation between gap and SHD. A smaller gap certifies the current objective more tightly, whereas SHD measures agreement with an external ground-truth graph; either quantity can improve without the other.
Thus, the poorer SHD of Clique in Figure 2 cannot be directly interpreted as “the constraints reduce accuracy.” A more accurate statement is that, under the same time budget, Clique has not yet found an incumbent of the same quality as ExDBN. For , after 1,200 seconds, the gaps of the Clique and ExDBN optimisation models continue to decrease gradually, while the SHD score (and F1 score) of the predicted causal graphs tend to stabilize. For , the overall change in SHD slows after 2,700 seconds. For , the overall change in SHD score slows after 3,000 seconds.
The distance of the corresponding graphical causal-model solution gradually decreases, but the numbers of callbacks are different when the solutions reach a stable state. For , after the optimisation process reaches a stable regime, the stable number of lazy callbacks for ExDBN is larger than that for Clique, while their SHDs are similar. It cannot be concluded that ExDBN produces a more accurate causal model. Because Clique introduces violation checks for cliques larger than 5, when the clique and cycle violation checks do not overlap, Clique should have more callbacks than ExDBN. One plausible explanation, consistent with the callback diagnostics, is adding clique callbacks reduces the number of cycle callbacks, and the number of added clique callbacks is smaller than the corresponding reduction in cycle callbacks.
Figure 3 shows the Structural Hamming Distance (SHD) of four different methods as the number of nodes () increases from 5 to 55. In the cliquefree-er-4-0 and cliquefree-er-5-0 graph settings, the SHD of all methods remains low when , but increases when . Among them, Clique · QR Repair generally results in a lower SHD than ExDBN and standard Clique in these two settings when the graph scale grows larger. For the cliquefree-sf-5-0 setting, the SHD values of all four methods stay below 50 across all tested values of , which is lower than the values observed in the other two graph types. For , Clique · QR Repair attains the lowest SHD on both ER settings at ; for , this advantage disappears and the methods are not consistently ordered.
In Figure 4, clique-5 provides the most stable performance, while the optimal clique bound remains dependent on graph size and sample size.
Big- and fractional separation. Table 2 reports fixed-budget optimisation diagnostics. Under the 1,000-second budget, the effect of the linking bound is dataset-dependent. For ER-4-0, achieved the smallest mean optimality gap (10.03%, compared with 17.60% for ) and the highest node throughput. This advantage did not transfer uniformly to ER-5-0: obtained the smallest gap (11.05%), while the results for and were close (11.39% and 11.65%, respectively). Thus, the results support using a tighter valid linking bound, but do not identify as uniformly optimal across instances.

Figure 4: Comparison between ExDBN and Cliques with maximum clique sizes under different time limit settings.
| Study | Setting | ER-4-0 | ER-5-0 |
|---|---|---|---|
| Big-M | 16.75% / 2147 | 11.05% / 2733 | |
| 10.03% / 2621 | 11.39% / 2779 | ||
| 13.81% / 2412 | 12.03% / 2755 | ||
| 17.60% / 2453 | 11.65% / 2774 | ||
| Fractional separation | No cbCut | 20.20% / 2110 | 11.66% / 2760 |
| Root exhaustive | 20.24% / 2096 | 11.69% / 2718 | |
| Root greedy | 20.27% / 2088 | 11.69% / 2721 | |
| Root + sparse non-root | 20.18% / 1297 | 12.82% / 1330 | |
| History-guided | 20.53% / 2001 | 11.79% / 2582 |
Table 2: Big-M and fractional-separation ablation. Each cell reports Gap (%) / nodes per second under the fixed 1,000-second budget. D2, D3, and D5 submitted no user cuts. D4 submitted 146.5 / 108.5 user cuts on ER-4-0 / ER-5-0, respectively, while spending 41.09% / 47.38% of runtime in callbacks.
Figure 5 complements these optimisation diagnostics with graph-recovery results on ER-4-0 over increasing numbers of variables. The SHD curves show that Clique with is generally competitive with the default Clique formulation and ExDBN, particularly at larger problem sizes; however, the uncertainty intervals widen substantially as the number of variables increases, and no method dominates uniformly for both sample sizes. Therefore, the improvement observed for in the fixed-budget ER-4-0 optimisation experiment should not be interpreted as a universal improvement in structural-recovery accuracy.
Fractional clique separation did not improve performance in the current implementation. The root-exhaustive, root-greedy, and history-guided variants (D2, D3, and D5) submitted no user cuts in these runs and therefore remained close to the no-fractional-cut baseline (D1), as shown in Table 2. The sparse non-root variant (D4) submitted, on average, 146.5 and 108.5 user cuts on ER-4-0 and ER-5-0, respectively; however, callback time increased to 41.09% and 47.38% of total runtime, while node throughput decreased substantially. In particular, its ER-5-0 gap increased from 11.66% for D1 to 12.82% for D4. These results do not support enabling the current fractional-separation procedure by default.
Callback-order comparison. Table 3 compares Cycle-only, Cycle-then-Clique, and Clique-then-Cycle under a fixed 1,800-second budget. Since the remaining MIP gaps are large, the reported quantities reflect intermediate solver progress rather than certified optimality.
For ER-4-0, the mixed policies explore substantially fewer nodes than Cycle-only (348,106 and 379,203 versus 1,914,601). Both mixed policies also submit fewer lazy constraints on ER-4-0 and ER-5-0; when cycles are separated first, the later clique stage submits relatively few clique constraints. However, this search-tree reduction does not improve the fixed-budget Gap: Cycle-only has the smallest Gap and largest best bound on both datasets. Thus,

Figure 5: SHD on ER-4-0 as the number of variables increases. Clique with is competitive with ExDBN and the default Clique formulation, but its advantage is not uniform across node counts or sample sizes. Shaded regions show variability across seeds.
| Ratio | Metric | Cycle-only | Cycle→Clique | Clique→Cycle |
|---|---|---|---|---|
| 4 | Submitted () | 23.72 | 18.42 | 20.16 |
| Nodes () | 1.915 | 0.348 | 0.379 | |
| Gap (%) | 52.81 | 59.69 | 59.91 | |
| Best bound | 11.234 | 9.600 | 9.545 | |
| MIPSOL events | 532 | 398 | 433 | |
| 5 | Submitted () | 31.18 | 29.23 | 29.56 |
| Nodes () | 1.586 | 1.128 | 1.014 | |
| Gap (%) | 53.68 | 55.32 | 56.29 | |
| Best bound | 11.336 | 11.017 | 10.779 | |
| MIPSOL events | 546 | 529 | 580 |
Table 3: Callback-order diagnostics under a fixed budget. All experiments use static Erdős–Rényi synthetic data with and edge ratios of 4 and 5. Results are averages over seeds 1–4 with , , , and a 1,800-second time limit. Submitted constraints and explored nodes are reported in thousands and millions, respectively.
mixed callback orders reduce constraint submissions and may reduce node exploration, but do not uniformly improve dual-bound progress in the current implementation.
6 Conclusion
We studied an explicit maximum-clique-size restriction for exact causal structure learning in the ExDBN mixed-integer formulation. Lazy constraints exclude violating integer candidates without enumerating all forbidden subsets in advance. When the solver terminates with a nonzero gap, the returned incumbent is feasible under the generated structural constraints but is not claimed to be globally optimal.
The experiments show that clique constraints introduce a trade-off rather than a uniform speedup. Selective minimal cuts can reduce redundant model growth, but integer violation scores often tie, which limits the distinction between B3 and a deterministic first- rule. C3 reuses rejected candidates through QR-based repair and can improve primal search on some datasets, but its benefit is not consistent across all graph families. Fractional user cuts must be evaluated separately from MIPSOL lazy cuts because only the former directly strengthen node relaxations.
Finally, the Big- results support tighter validated coefficient bounds: relative to , smaller valid values generally improve relaxation quality and dual-bound progress, although the best tested value depends on the dataset. Future work should validate edge-specific bounds, evaluate B3 with fractional-aware scores, and report repair acceptance and incumbent-improvement rates for C3. These conclusions are limited to synthetic linear-Gaussian instances and runs that frequently terminate before proven optimality; evaluation on real, nonlinear, and larger-scale data remains necessary.
Acknowledgements
This work was supported by the Ministry of Education, Youth and Sports of the Czech Republic through the e-INFRA CZ (ID:90254) project.
References
[1] Xun Zheng, Bryon Aragam, Pradeep K. Ravikumar, and Eric P. Xing. Dags with no tears: Continuous optimization for structure learning. In Advances in Neural Information Processing Systems 31, 2018.
[2] James Cussens. Integer programming for bayesian network structure learning. Quality Technology & Quantitative Management, 11(1):99–110, 2014.
[3] Mark Bartlett and James Cussens. Integer linear programming for the bayesian network structure learning problem. Artificial Intelligence, 244:258–271, 2017.
[4] James Cussens. Gobnilp: Learning bayesian network structure with integer programming. In Proceedings of the 10th International Conference on Probabilistic Graphical Models, pages 605–608, 2020.
[5] Pavel Rytří, Aleš Wodecki, and Jakub Mareček. Exdag: an miqp algorithm for learning dags. arXiv preprint arXiv:2406.15229, 2024.
[6] Pavel Rytří, Aleš Wodecki, Georgios Korpas, and Jakub Mareček. Exdbn: Learning dynamic bayesian networks using extended mixed-integer programming formulations. Transactions on Machine Learning Research, 2025. arXiv:2410.16100.
[7] Rui Chen, Sanjeeb Dash, and Tian Gao. Integer programming for causal structure learning in the presence of latent variables. In Proceedings of the 38th International Conference on Machine Learning, pages 1550–1560, 2021.
[8] Petr Ryšavý, Pavel Rytří, Xiaoyu He, Georgios Korpas, and Jakub Mareček. Exmag: Learning of maximally ancestral graphs. arXiv preprint arXiv:2503.08245, 2025.
[9] Sibel B. Sonuc, J. Cole Smith, and Illya V. Hicks. A branch-and-price-and-cut method for computing an optimal bramble. Discrete Optimization, 18:168–188, 2015.
[10] Paul Jaccard. The distribution of the flora in the alpine zone. New Phytologist, 11(2):37–50, 1912.
[11] Zeren Huang, Kerong Wang, Furui Liu, Hui-Ling Zhen, Weinan Zhang, Mingxuan Yuan, Jianye Hao, Yong Yu, and Jun Wang. Learning to select cuts for efficient mixed-integer programming. Pattern Recognition, 123:108353, 2022.
[12] Mark Turner, Thorsten Koch, Felipe Serrano, and Michael Winkler. Adaptive cut selection in mixed-integer linear programming. Open Journal of Mathematical Optimization, 4:1–28, 2023.
[13] Omry Yadan. Hydra - a framework for elegantly configuring complex applications. Github, 2019.
[14] Matei Zaharia, Andrew Chen, Aaron Chow, David Chu, Robert Grandl, Ali Kulkarni, Li Li, Siddharth Murching, Tomas Nykodym, Paul Ogilvie, Mani Parkhe, Areg Podgorny, Patrick Reynolds, Tatiana Tang, and Corey Zumar. Developments in MLflow: A system to accelerate the machine learning lifecycle. In Proceedings of the 2020 International Conference on Management of Data (SIGMOD/DEEM), pages 1–4. ACM, 2020.
[15] Jiří Sitera, Petr Mukařovský, Miroslav Kuda, Hana Rudová, and Luděk Matyska. Metacentrum—The Czech National Grid Infrastructure. In Proceedings of the International Conference on High Performance Computing and Simulation, pages 42–50, 2011.
| Nodes | ER-4-0 | Nodes | ER-5-0 | Nodes | SF-5-0 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Nom. | Real. | Nom. | Real. | Nom. | Real. | ||||||
| 11 | 80.00% | 75.45% / 77.27% | 0.847 / 0.875 | 11 | 100.00% | 57.58% / 58.18% | 0.737 / 0.808 | 11 | 100.00% | 70.18% / 70.38% | 0.890 / 0.884 |
| 15 | 57.14% | 56.90% / 56.90% | 0.928 / 0.923 | 15 | 71.43% | 62.82% / 63.33% | 0.897 / 0.916 | 15 | 71.43% | 55.57% / 55.60% | 0.875 / 0.874 |
| 20 | 42.11% | 41.97% / 42.01% | 0.900 / 0.897 | 20 | 52.63% | 48.31% / 49.25% | 0.907 / 0.926 | 20 | 52.63% | 43.87% / 42.63% | 0.874 / 0.879 |
| 25 | 33.33% | 33.33% / 33.33% | 0.910 / 0.913 | 25 | 41.67% | 41.16% / 41.16% | 0.929 / 0.930 | 25 | 41.67% | 35.05% / 35.28% | 0.866 / 0.865 |
| 30 | 27.59% | 27.59% / 27.59% | 0.909 / 0.908 | 30 | 34.48% | 34.03% / 33.93% | 0.918 / 0.921 | 30 | 34.48% | 29.90% / 30.06% | 0.875 / 0.881 |
| 35 | 23.53% | 23.53% / 23.53% | 0.927 / 0.925 | 35 | 29.41% | 29.41% / 29.41% | 0.941 / 0.941 | 35 | 29.41% | 26.06% / 26.11% | 0.871 / 0.874 |
| 40 | 20.51% | 20.51% / 20.51% | 0.902 / 0.902 | 40 | 25.64% | 25.64% / 25.64% | 0.951 / 0.951 | 40 | 25.64% | 23.03% / 23.12% | 0.861 / 0.864 |
| 45 | 18.18% | 18.18% / 18.18% | 0.929 / 0.930 | 45 | 22.73% | 22.73% / 22.73% | 0.943 / 0.943 | 45 | 22.73% | 20.66% / 20.73% | 0.866 / 0.866 |
| 50 | 16.33% | 16.33% / 16.33% | 0.924 / 0.926 | 50 | 20.41% | 20.41% / 20.41% | 0.956 / 0.957 | 50 | 20.41% | 18.70% / 18.68% | 0.887 / 0.875 |
Table S4: Synthetic-data density and linearity. Nom. is the nominal skeleton density, and Real. is the mean realized skeleton density after clique-free filtering. Each entry is reported as . All values are means across the available generated instances.
This supplementary appendix extends the main paper “Clique Constraints for Exact Causal Structure Learning” by providing detailed method explanations, technical clarifications, and additional empirical results. Specifically, we evaluate synthetic graph densities and linear , dissect the diagnostic timeline while defining the core MIPSOL and MIPNODE callback quantities, catalog the experiments A-G based on improving directions and attach a table of mathematical notations and optimization terminology. Collectively, these materials serve as diagnostic support for the theoretical and empirical claims established in the main manuscript.
A Synthetic Data Density and Linearity
| Edge Ratio | Target Edges | Max Capacity | |
|---|---|---|---|
| 2 | 5 | 10 | 10 |
| 3 | 7 | 21 | 21 |
| 4 | 9 | 36 | 36 |
| 5 | 11 | 55 | 55 |
Table S5: Theoretical limits for complete network saturation. The maximum node number represents the upper bound where an edge ratio can force a 100% nominal skeleton density.
In the main results, we observed that the clique-constrained callback enhances search efficiency more significantly in denser causal graphs. To dig deeper into the performance of these constraints across different scenarios, we examine three key dataset characteristics: nominal skeleton density, realized skeleton density, and linear . The nominal skeleton density is calculated during the initial random graph generation step and remains invariant across random seeds. Conversely, the realized density represents the ratio of surviving edges in the true adjacency matrix to the maximum possible skeleton capacity after applying the clique-free filter (which removes cliques larger than ). These metrics are formalized as follows:
where denotes the target edge ratio and represents the number of nodes.
As reported in Table S4, while ER-5-0 generates denser causal graphs than ER-4-0 prior to filtering, its realized skeleton density drops below that of ER-4-0 at . This structural inversion occurs because a higher initial edge ratio paired with a low node count severely exacerbates the formation of large, dense cliques; consequently, the clique-free filter must aggressively remove a substantially larger volume of violating edges to satisfy the structural constraint. This phenomenon highlights why comparative analyses should rely on the realized density rather than the nominal edge-ratio label alone. Complementing this finding, a comparison between the realized skeleton densities of ER-5-0 and SF-5-0 highlights the structural impact of their underlying generation algorithms. Specifically, unlike the random graph model, the scale-free model (SF-5-0) does not exhibit an unusually depressed realized density at Nodes = 11. This stability arises because its power-law degree distribution naturally distributes edges in a way that minimizes the dense, localized clique clusters typically found in Erdős-Rényi configurations. Consequently, structural evaluations must distinguish between different graph typologies rather than relying solely on the edge-ratio baseline.
This structural behavior at low dimensions is directly linked to network saturation boundaries. As established previously, for a given edge ratio , a graph achieves full saturation—reaching a 100% nominal skeleton density where the target edge count equals or exceeds the total capacity of a complete graph, i.e.,
—only when the node count is sufficiently small. Because , this condition implies , which analytically simplifies to the deterministic boundary . As grows beyond this threshold, the quadratic capacity quickly outpaces the linear growth of the target edge allocation. The exact maximum node numbers () for which each edge ratio completely saturates a graph are summarized in Table S5. Given these boundary constraints, cross-model performance comparisons should avoid configurations starting at or below these minimal saturation thresholds to ensure fair evaluation.
Additionally, to quantify the degree of linearity and data-generating fidelity of our synthetic graphs, we evaluate the mean linear across all variables. For a specific node , let denote its observed data vector and represent the set of its true structural parents determined by . The linear for node is formalized as:
where is the value predicted by an ordinary least squares (OLS) linear regression of on , is the empirical mean of , is the residual sum of squares, and is the total sum of squares.
The globally reported linear profile in Table S4 represents the macro-average across all non-root nodes with non-empty parent sets, computed as:
The linear values, which strictly range between 0 and 1, directly quantify the capability of true structural parents to linearly explain the variance of their corresponding child variables. In our experiments, the consistently high baseline (, with many configurations exceeding 0.90) demonstrates that a vast majority of the variable variance is fully accounted for by linear combinations of true causal ancestors, signifying a robust causal signal-to-noise ratio with minimal noise interference. Conversely, an exceptionally depressed (e.g., ) would imply either a dominance of random error or severe underlying non-linearities, under which standard linear Mixed-Integer Programming (MIP) optimization models would encounter immense difficulty in accurately recovering the true graph topology.
When scaling the sample size from to , the observed narrow oscillations and marginal shifts in (such as the transition from 0.737 to 0.808 for ER-5-0 at ) reflect standard asymptotic behavior rather than structural instability. In smaller samples () coupled with dense local configurations, ordinary least squares (OLS) estimations are susceptible to minor small-sample overfitting biases and random noise fluctuations. Expanding the horizon to invokes the law of large numbers, allowing the empirical sample to cleanly converge toward its true population parameter dictated by the underlying coefficient matrix and error variance . This asymptotic alignment provides a more precise and stable empirical characterization of the robust causal linear pathways surviving the clique-free filtering process, particularly within low-dimensional saturated boundaries.
B Callback Events, Timing, and MIPSOL Interpretation
In this section, we formally define the MIPSOL, MIPNODE, cut, bound, timing, and checkpoint quantities used throughout our analysis, illustrating exactly where they are recorded during the branch-and-bound search in Figure S6. To support the empirical results presented in the main manuscript regarding the distinction between cycle-only, clique-only, and jointly violating candidates in the callback analysis, as well as the fractional user cuts findings.
The callback mechanism operates via two main event types: MIPSOL and MIPNODE, corresponding to integer candidate solutions and node LP relaxations, respectively. As distinguished in Table S6, these events delineate the computational workload triggered inside a callback from the solver's subsequent independent search. At a MIPSOL event, the callback intercepts an integer candidate, verifies cycle and clique compliance, and rejects infeasible configurations by submitting lazy constraints via cbLazy(). Once the callback returns, Gurobi resumes its standard branch-and-bound routine until the next candidate is generated. Consequently, callback duration precisely measures the computational cost of

Figure S6: Timing points in branch-and-bound search. For each integer candidate, the callback first performs cycle and clique separation and may submit lazy constraints. After control returns to Gurobi, the solver continues branch-and-bound search until a subsequent candidate, bound update, or termination event.
separation and constraint submission, whereas the remaining runtime reflects baseline model processing, LP relaxations, branching decisions, primal heuristics, and node search.
When analyzing these events, callback frequencies, detected violations, and successfully submitted constraints must be treated as distinct metrics. A MIPSOL record represents a downstream outcome of the global search process rather than a direct measure of immediate relaxation strength. Similarly, the volume of MIPNODE invocations, the frequency of violated fractional clique inequalities, and the total of submitted user cuts describe separate structural dimensions of the optimization trajectory.
Interpreting MIPSOL Counts. A larger MIPSOL count is neither inherently beneficial nor detrimental; its utility must be evaluated jointly with incumbent improvements, dual bound progress, rejection rates, and node pruning efficiency. An elevated count is productive when accepted candidates repeatedly update the incumbent, thereby tightening the objective cutoff and allowing more branch-and-bound nodes to be pruned. Conversely, it becomes an optimization bottleneck when lazy cycle or clique constraints continuously reject candidates without advancing either the primal or dual bounds. For example, under the configuration with seed 3, Clique generated 741 MIPSOL events compared to 735 for ExDBN. However, both models converged to nearly identical objective/bound pairs (24.8/8.2 versus 24.6/8.3) and relative gaps (0.67 versus 0.66). In this scenario, the six additional MIPSOL events yielded negligible optimization progress, primarily incurring redundant separation and search overhead.
Incorporating fractional user cuts introduces a severe performance bottleneck. The intensive separation overhead outweighs its dual-bound strengthening benefits, with the Root + sparse non-root configuration spending a substantial portion of runtime (41.09% on ER-4-0 and 47.38% on ER-5-0) confined within callbacks. Under the fixed 1,000-second budget, the computational burden of active separation drastically reduces node exploration speeds. For instance, the throughput drops from 2,110 to 1,297 nodes/second compared to the baseline No cbCut configuration, yielding negligible improvements or even slight degradation in the final relative optimality gap. These trends demonstrate that exhaustive or heuristic fractional cut generation at the root or non-root nodes fails to alleviate the dual-bound bottleneck efficiently. Consequently, standard integer-candidate lazy constraints via MIPSOL remain a computationally superior strategy over fractional MIPNODE separation for this causal structure learning framework.
Table S6: Operational distinction between MIPSOL and MIPNODE events.
| Event Type | Description | Callback Action |
|---|---|---|
| MIPSOL | Triggered when the solver finds an integer candidate, originating either from a branch-and-bound node or an internal primal heuristic. | cbLazy() may reject the candidate by appending valid lazy constraints. |
| MIPNODE | Triggered when a continuous LP relaxation is available at a branch-and-bound node. The solution is typically fractional. | cbCut() may submit globally valid user cuts; root-node diagnostics are also logged. |

Figure S7: Relative MIP gap and F1 score for Clique and ExDBN across time limits and dimensions . Lines show averages over seeds and shaded regions report variability across runs.
C Additional Results
This section presents the supplementary figures and detailed experimental protocols for Improvements A–G discussed in the main manuscript.
Figure S7 illustrates that the relative MIP gap often continues to decrease monotonically long after the F1 score has stabilized. This trajectory profile reflects a fundamental decoupling between bounding progress and structural recovery: the gap evolves whenever either the primal or dual bound improves, whereas the F1 score adapts exclusively when a newly accepted incumbent alters the underlying graph topology. Consequently, these trends demonstrate that causal graph recovery quality is bounded by computational convergence, yet further numerical optimization faces diminishing returns regarding structural refinement once the search layout settles.
Stability Diagnostics In addition to the clique-constrained MILP formulation, we evaluate an edge-limit MILP variant to analyze stability, where structural complexity is controlled by static linear constraints imposed at model construction time rather than dynamically separated clique cuts. These constraints restrict both the in-degree and out-degree of every node, remaining invariant throughout the optimization trajectory. To match our experimental envelope where the maximum dimensionality reaches , we evaluate degree bounds ranging from 0 to 35 formalized as:
where denotes the binary edge-selection variable associated with the learned adjacency matrix. By enforcing a global degree envelope through a priori linear structures rather than via runtime lazy cuts, this formulation establishes a controlled environment to study algorithmic behavior, where relaxing the edge boundaries expands the
| Improvements | Methods | Experiments |
|---|---|---|
| Reduce redundant searches | A. Delayed Separation | Reduce clique separation, increase solving nodes per sec and close gap. |
| C. Repair Incumbent | Repair an infeasible MIPSOL, locally refitting support with ridge/QR. | |
| Control adding constraint number | B. Controlled Cut Addition | First oversized cliques (original), First size-min-k+1-clique, most-violated size-min-k+1-clique. |
| F. Stronger Clique Cuts | Top-3-size-min-k+1-cliques, Top-5-size-min-k+1-cliques, All-unique-size-min-k+1-cliques (adding constraints). | |
| Strengthen the LP relaxation and dual bound | D. Fractional Separation | Inspect the fractional MIPNODE relaxation and submit valid violated clique inequalities through cbCut(). |
| E. Big-M Relaxation | and edge-specific linking bounds. | |
| Checkpoints | G. Time-Limit Optimization | Run one continuous solve and record metrics at fixed checkpoints. |
Table S7: Improvements and experimental directions. Variants B1–F2, B3, C3, and E2 are systematically compared in the main manuscript.
feasible search space of graph topologies but simultaneously exacerbates the combinatorial complexity of the underlying branch-and-bound tree.
The continuous empirical trajectories and exact structural plateaus resulting from this setup are collectively systematized in Figure S8. As illustrated in the graphical profiles (a and b), relaxing the edge limits initially enhances statistical recovery if a tighter bound previously excluded true causal relationships, yet it eventually slows down dual bound progression and optimality-gap closure, capturing a clear statistical–computational trade-off. The empirical stability boundaries cataloged in the unified subtable (c) further confirm this trade-off; for lower dimensions (), expanding the horizon from to cleanly reduces the minimal stable SHD bound from 11.5 to an exceptionally tight value of 2.0. These combined diagnostics demonstrate that causal graph recovery quality is fundamentally driven by computational convergence, showing that further structural refinement faces diminishing returns long before the full optimality gap is closed.
D Notation Table
Notations and terminologies are listed in Table S8.

(a) Structural Hamming Distance (SHD) trends

(b) Relative MIP gap progression
| Nodes (d) | Minimal Stable SHD Bound | Minimal Stable GAP Bound | ||||||
|---|---|---|---|---|---|---|---|---|
| Sample n = 200 | Sample n = 2000 | Sample n = 200 | Sample n = 2000 | |||||
| Degree | SHD Value | Degree | SHD Value | Degree | GAP Value | Degree | GAP Value | |
| 5 | 3 | 3.0 | 3 | 2.0 | 1 | 0.0000 | 1 | 0.0000 |
| 10 | 7 | 7.0 | 8 | 5.0 | 9 | 0.0100 | 9 | 0.0099 |
| 15 | 10 | 11.5 | 11 | 2.0 | 20 | 0.27* | 14 | 0.29* |
| 20 | 20 | 2.0 | 14 | 0.0 | 25 | 0.61* | 18 | 0.56* |
| 25 | 18 | 1.0 | 18 | 0.0 | 23 | 0.63* | 24 | 0.65* |
| 30 | 20 | 0.0 | 20 | 0.0 | 28 | 0.79* | 29 | 0.78* |
| 35 | 25 | 1.0 | 24 | 0.0 | 34 | 0.8517 | 19 | 0.82* |
(c) Empirical thresholds for structural and optimization stability
Figure S8: Edge-limit stability trajectories and empirical plateaus across dimension regimes. Panels (a) and (b) trace the global continuous optimization dynamics, while the unified data subtable (c) catalogs the exact minimal degree boundaries () beyond which additional metric relaxation yields marginal structural variation. Asterisks (*) denote approximate plateaus resolved to two decimal places. These thresholds are descriptive diagnostic references and do not represent formal asymptotic convergence guarantees.
| Concept | Notation / Gurobi term | Definition |
|---|---|---|
| Branch-and-bound | B&B | Tree-search for mixed-integer optimization; nodes define subproblems whose continuous relaxations supply bounds. |
| Search tree | Collection of generated B&B nodes; a root-to-node path records the branching decisions. | |
| Node queue | ; MIP_NODLFT | Unexplored B&B nodes remaining in the solver queue. |
| Current node | The B&B subproblem currently processed. Its LP relaxation can be fractional. | |
| Callback | MIPSOL; MIPNODE | User code at solver events. MIPSOL inspects integer candidates; MIPNODE inspects fractional relaxations. |
| Incumbent | ; MIP_OBJBST | Best globally feasible integer solution found so far. |
| Primal bound / upper bound | Objective value of the current incumbent (minimization convention). | |
| Dual bound / lower bound | ; MIP_OBJBND | Global lower bound on the optimal objective, derived from active node relaxations. |
| Relative optimality gap | Normalized separation between primal and dual bounds. | |
| Clique separation | Detection of violated cliques. cbLazy() rejects candidates at MIPSOL; cbCut() adds cuts at MIPNODE. | |
| Clique lazy constraint | cbLazy() | Dynamically generated constraint enforcing integer feasibility without directly strengthening fractional relaxations. |
| Clique user cut | cbCut() | Globally valid inequality submitted at fractional MIPNODE relaxations to strengthen them. |
| Samples, variables, and lags | Numbers of observations, graph variables, and temporal lags ( represents static data). | |
| Data matrices | Contemporaneous and lag- data matrices. | |
| Coefficient matrices | Contemporaneous adjacency matrix () and lag- coefficient matrix. | |
| Edge-selection variable | Binary indicator whether directed edge is selected. | |
| Residual and absolute-loss | Regression residual and its linearized absolute-value auxiliary variable. | |
| Regularization | ; | Penalty weights and regularizers for contemporaneous and lagged coefficients. |
| Big- bound | Bound in . Tighter valid values strengthen relaxation. | |
| Graph | Selected directed graph. | |
| Support | Edge skeleton. | |
| Cycle | Directed cycle. | |
| Clique and clique bound | Clique , maximum permitted clique size , and graph clique number (). | |
| Clique-pair set | Unordered pairs in , with . | |
| Minimal forbidden subset | Smallest subset violating the clique bound. | |
| Clique-cut violation | Violation score used by B3 to rank minimal () clique inequalities. | |
| B3 | Most-violated minimal clique cut | MIPSOL policy submitting highest-ranked minimal () inequalities via cbLazy() under cut limit. |
| C3 | QR-based incumbent repair | Primal heuristic that deletes violating edges, refits columns via QR, and submits via cbSetSolution(). |
| Recovery metrics | SHD; F1 | SHD measures graph-edit distance to ground truth; F1 is the harmonic mean of precision and recall. |
Table S8: Notation used throughout the paper. The table consolidates optimization terminology, statistical-model notation, and graph, method, and evaluation notation.