Attention-Based Pretraining for Unsupervised Amortized Causal Discovery
Naiyu Yin, Tian Gao, Yue Yu
NeurIPS 2026
TL;DR. We propose an amortized learning approach using attention mechanisms for DAG learning tasks, enabling accurate and efficient causal discovery, especially in low-data regimes.
Abstract. Directed Acyclic Graphs (DAGs) are foundational to many areas of AI research, providing a formal language for causal reasoning and model interpretability. However, learning DAGs remains challenging, due to super-exponential computational cost and diminished accuracy in small sample regimes. To address these challenges, we introduce Attention-DAG (ADAG), a novel linear transformer architecture for unsupervised amortized DAG learning. Unlike traditional unsupervised DAG learning methods which recover the graph structure from data of each individual domain, ADAG leverages the knowledge from multiple domains. It provides a nonlinear mapping from observational data of each domain to both the corresponding graph structure and the underlying parameters of Structural Equation Models (SEMs). This enables efficient zero-shot inference of causal structures in new domains with unseen SEM parameters. Remarkably, we demonstrate that for the DAG learning problem, attention acts as a fixed-point iterative scheme, so the training on multiple domains effectively discovers an efficient solver for the constraint optimization problem. Extensive evaluations on synthetic and realistic benchmarks demonstrate that ADAG significantly outperforms existing baselines in accuracy and efficiency, particularly when data is scarce. Our code accompanying this paper is provided at \url{https://github.com/fishmoon1234/Attention-Based-Causal-Discovery}.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper presents an unsupervised amortized causal discovery method, Attention-DAG (ADAG), for learning directed acyclic graphs (DAGs) from observational data. The main claim is that ADAG is pretrained across many domains and then used for zero-shot inference on unseen domains.
The reviewers’ opinions on the paper are diverse. I believe constructive discussion on the following issues would be very helpful for the decision-making process:
-
The generalizability of the model beyond the pretraining distribution, including how its performance varies with the number of pretraining domains.
-
The zero-shot performance in nonlinear settings.
-
The performance of the model compared with LiNGAM baselines on non-Gaussian cases.
Final justification
After considering the rebuttal and the additional experimental evidence, all reviewers were satisfied with the authors’ explanations and the new results. The paper is therefore acceptable.
The authors should ensure that all promised revisions are incorporated into the final version.
Read meta-review
Meta-review
This paper presents an unsupervised amortized causal discovery method, Attention-DAG (ADAG), for learning directed acyclic graphs (DAGs) from observational data. The main claim is that ADAG is pretrained across many domains and then used for zero-shot inference on unseen domains.
The reviewers’ opinions on the paper are diverse. I believe constructive discussion on the following issues would be very helpful for the decision-making process:
-
The generalizability of the model beyond the pretraining distribution, including how its performance varies with the number of pretraining domains.
-
The zero-shot performance in nonlinear settings.
-
The performance of the model compared with LiNGAM baselines on non-Gaussian cases.
Final justification
After considering the rebuttal and the additional experimental evidence, all reviewers were satisfied with the authors’ explanations and the new results. The paper is therefore acceptable.
The authors should ensure that all promised revisions are incorporated into the final version.
5 comments
Response to Area Chair tE5L (point 2)
2. Zero-shot performance in nonlinear settings. Understood literally, this concern is already addressed in the submission. Section 5 develops the nonlinear formulation, in which the causal mechanisms are modeled by MLPs, and Section 6 evaluates it zero-shot on ER2 data with training domains, against NOTEARS-MLP, DAG-GNN, GraN-DAG, and AVICI. As reported in Table 5, ADAG attains the lowest SHD at every tested dimension: 2.3 against 5.7 for the best baseline at , 11.7 against 13.0 at , and 27.5 against 36.0 at . The nonlinear formulation therefore achieves strong zero-shot accuracy under the same protocol as the linear case, with no re-training on the test domains. Sachs and Sergio point the same way: both involve nonlinear mechanisms never seen during training, and ADAG outperforms all baselines on both.
After carefully reading the reviewers' comments on "zero-shot" and on the nonlinear formulation, however, we do not believe empirical performance in nonlinear settings is what is being questioned. We read their concerns as lying in the following three places, and we answer each directly rather than pointing back at the table.
-
(a) What "zero-shot" is claimed to mean (KqNn, W2). We were not sufficiently precise, and we will make this precise in the revision. The ideal case for training ADAG is to cover as many causal graphs, data-generation mechanisms, and noise types as possible. Once trained, ADAG applies directly to new data, whose causal graph, generation mechanism, and noise type are likely to have been covered during training, without any re-adaptation or re-training. This "no re-adaptation or re-training at test time" property is what we refer to as zero-shot. This is the same sense used in the amortized-inference literature, and differs from zero-shot transfer to arbitrary systems whose generative processes lie far outside the training coverage. We will state this distinction explicitly in the introduction and in Section 6. Under this definition, the generalizability question becomes how far the test distribution may deviate before accuracy degrades, which is what the four axes in point 1 quantify.
-
(b) Whether the nonlinear formulation is tied to a fixed variable set and dimension (KqNn, W3). We would like to clarify two possible misunderstandings. First, ADAG detects relations between variables from their data samples, so we do not limit our variables to a specific set: the per-variable parameters in Section 5 are indexed by input position rather than by semantic identity, so a trained nonlinear ADAG applies to any new dataset over variables, including new ones. Second, a trained ADAG is not restricted to the problem size used in training: a model trained with variables handles any test problem with variables by zero-padding the missing variables: the padded variables are recovered as isolated nodes, so the top-left block yields the target graph. This is the edge-coverage property of point 1, applied along the variable dimension. Analogously, a model trained with samples handles smaller test sample sizes by resampling with replacement (Footnote 2, with cross-sample-size transfer reported in Table 2).
-
(c) Whether the theory covers the nonlinear case (ccuy, W1). We agree that most of our theoretical results are established under the linear SEM assumption, and we would like to explain why the nonlinear case is fundamentally more difficult for our approach. Because the SEM parameters are the direct output of our model, we must consider not only graph identifiability, as in other causal discovery approaches, but also parameter identifiability. Nonlinear SEMs with multiple layers of parameters automatically lack the latter. Consider a two-layer case with weights : one can directly construct another solution with and for a scalar (for positively homogeneous activations such as ReLU), which produces exactly the same output while rendering the same causal graph, since the rescaling preserves the support of the first-layer weights. Guaranteeing identifiability would therefore require restricting the first-layer weights, for example through normalization constraints, which we regard as promising future work but outside the scope of the current formulation. Of the existing results, only the PAC generalization bound of Theorem 4.4 carries over, since it depends on the contraction regime of the architecture rather than on linearity of the SEM. We would also note that the identifiability analysis is provided to help readers understand the nature of ADAG, and is not among the major contributions claimed in the introduction; our support for the nonlinear formulation is empirical, and we prefer to state this plainly rather than overclaim.
Response to Area Chair tE5L (Point 1 - part 2)
On sensitivity to , we would like to clarify a possible misunderstanding, which we believe lies behind Reviewer ccuy's Question 2. Examining how the training objective varies with would be uninformative, since an expressive model drives the training loss down at every . That is not what we report. Figure 6 (Appendix D.2) shows zero-shot inference performance on 1000 held-out test domains that never appear in training. To remove any ambiguity we tabulate the training-set and test-set quantities side by side below (this table also appears in our response to Reviewer ccuy, Q2, who raised the same reading).
| Settings | Training Set: | Training Set: | Test Set (1000): | Test Set (1000): |
|---|---|---|---|---|
| M=100 | 2.4971 | 0.0278 | 82.1892 | 2.0284 |
| M=500 | 2.5113 | 0.0615 | 202.5777 | 3.2549 |
| M=1000 | 2.4975 | 0.0293 | 173.0602 | 2.9258 |
| M=5000 | 2.4984 | 0.0241 | 38.3471 | 1.4694 |
| M=10000 | 2.4980 | 0.0241 | 20.6954 | 1.3039 |
| M=15000 | 2.4984 | 0.0253 | 10.0936 | 0.9147 |
| M=20000 | 2.4980 | 0.0246 | 4.1831 | 0.5262 |
| M=30000 | 2.4986 | 0.0258 | 4.0971 | 0.5122 |
| M=40000 | 2.4998 | 0.0300 | 3.7676 | 0.4640 |
| M=50000 | 2.4992 | 0.0290 | 3.0680 | 0.3359 |
| M=60000 | 2.5015 | 0.0354 | 3.2758 | 0.3896 |
| M=70000 | 2.4980 | 0.0242 | 2.5030 | 0.0386 |
The training-set columns are already saturated at every , confirming that they carry no information about the effect of . The test-set columns, which are the zero-shot inference performance, improve steadily and only reach the training level at . This is exactly the quantity that Figure 6 reports.
We have additionally run the sweep of test SHD against at higher dimension requested by Reviewer FnkC (Q3), on the ER1 real-data setting.
| 1,000 | 35.2 | 55.3 |
| 10,000 | 24.7 | 48.5 |
| 50,000 | 3.56 | 10.6 |
| 70,000 | 1.9 | 4.9 |
| 100,000 | 1.3 | 3.1 |
Accuracy improves sharply between and and is close to saturated by at both dimensions, and the number of domains needed grows far more slowly than the space of candidate structures does with . Both trends match the rate of Theorem 4.4. We will revise the caption and axis labels of Figure 6 to state explicitly that it reports held-out inference performance.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes ADAG, an unsupervised amortized DAG-learning architecture based on linear Transformers. Given observational data from multiple domains, ADAG learns a nonlinear mapping from observations to DAG structures and SEM parameters, enabling zero-shot causal structure inference on new datasets. The paper's central theoretical claim is that the linear attention mechanism can be interpreted as a fixed-point iteration scheme, where each Transformer layer corresponds to one contraction-mapping update that progressively approaches the optimal solution while implicitly imposing an acyclicity bias. The paper further provides a near-fixed-point residual bound, contraction guarantees, an implicit acyclicity bias result, and a PAC generalization bound, and reports 2-4 orders of magnitude faster inference than per-dataset optimization methods on synthetic and real data.
Strengths and weaknesses
-
S1: Important problem. Causal discovery often requires expensive per-dataset optimization. A reliable amortized model would be useful in applications involving many related datasets or repeated graph-inference queries.
-
S2: Interesting theoretical perspective. The proposed connection between attention layers and fixed-point iterations is novel and intellectually appealing. This perspective may be useful even beyond the specific ADAG architecture.
-
S3: Broad experimental intent and notable inference speedups. The paper includes theory, synthetic experiments, real-data experiments, and efficiency comparisons. The reported 2-4 orders of magnitude inference speedups are potentially significant if the total amortized cost is properly characterized.
-
W1: Missing sample permutation-invariance guarantee. Since observational samples are i.i.d. and unordered, the inferred DAG should be invariant, or at least stable, under sample permutation. The paper provides neither a proof nor a simple shuffling experiment.
-
W2: Inconsistent attention dimensions and complexity analysis. The formulation and appendix appear to imply different attention maps and different computational bottlenecks. This inconsistency makes it difficult to evaluate both the method and the efficiency claims.
-
W3: Insufficient evidence for training-phase scalability. The paper emphasizes fast inference, but does not adequately analyze how many pretraining domains are needed as increases or when the amortized approach breaks even against per-dataset methods.
Questions
-
Q1: Sample permutation invariance. in the paper appear to operate directly on the sample dimension. For i.i.d. observational data, is the model output invariant to sample permutation? Please provide either a theoretical proof or a simple experiment: randomly shuffle the sample order within the same dataset and report whether the output DAG or SHD remains stable.
-
Q2: Attention-map dimensions and complexity. Please clarify the actual attention-map dimensions in the implementation. In Eq. 4, , so and the corresponding complexity appears closer to . However, Appendix B claims the dominant cost is with the memory bottleneck from an attention map. Please provide the formulas, complexity, and memory analysis that match the implementation.
-
Q3: Training-scale requirements. The paper attributes the limitation mainly to academic compute constraints and claims that the architecture itself is scalable. However, per-dataset methods such as NOTEARS and DAGMA require no pretraining and have been tested at -500 under comparable or lower compute budgets. Could the authors provide vs. test SHD curves at ? If the required for convergence at is far greater than 70,000, this would indicate a methodological scalability bottleneck rather than merely a compute limitation.
-
Q4: Break-even analysis. Please more clearly distinguish training cost from inference cost. ADAG's forward inference is fast, but if pretraining requires many domains and expensive acyclicity-related optimization, the paper should state how many downstream test domains are needed before the amortized approach becomes cheaper than per-dataset methods.
If the authors can resolve the sample permutation-invariance issue, correct the inconsistency between the complexity analysis and the model formulation, and provide stronger evidence on training-scale requirements at and , I would consider raising the score. Otherwise, I will maintain my current borderline-reject assessment.
Limitations
Partially. The paper acknowledges that current experiments cover only and defers larger-scale validation to future work. However, it does not adequately discuss sample-order permutation invariance, the inconsistency between formulation and implementation complexity, or training-phase scalability. I recommend that the authors clearly distinguish fast inference from total amortized training cost and state more carefully the graph scales that the method can realistically support at present.
Final justification
The authors’ additional experiments and clarifications have addressed most of my concerns.
Formatting concerns
No major formatting or anonymity issues identified.
5 comments
Response to Reviewer FnkC (part 1)
We thank the reviewer for a rigorous review and for stating explicit conditions for reassessment. We address all four in order.
Sample-permutation invariance (W1 and Q1). We thank the reviewer for raising this point. We address it in four parts: what the architecture does guarantee, an honest clarification of what it does not, a practical remedy, and the shuffling experiment the reviewer requests.
- (1) What ADAG does guarantee: node-permutation equivariance. Sample-permutation invariance is not hard-wired into the architecture, but node-permutation equivariance, the symmetry that directly matters for graph recovery, is. Because the trainable weights act only on the sample dimension, relabeling the variables by any permutation matrix propagates through every layer: an induction gives , hence for every . The inferred DAG is therefore independent of the arbitrary ordering of the variables: relabeling the nodes relabels the estimated graph consistently.
- (2) Sample order: an honest clarification. We agree that the architecture does not enforce exact sample-permutation invariance. The dependence enters through , and exact invariance holds if and only if every lies in , the commutant of the permutation group. Two observations explain why the absence of a hard constraint is benign. First, because the samples are i.i.d., and , so the population training objective is already averaged over sample orders; deviating from invariance cannot reduce the population risk, and the trained model is correspondingly stable under shuffling, as the experiment below confirms. Second, indirect evidence was already present in the submission: the cross-regime experiments (Section 6, footnote 2) build test inputs by resampling with replacement, which destroys the original sample order entirely, and recovery accuracy remained stable.
- (3) A simple and proven remedy: sample-permutation augmentation in pretraining. Sample-permutation invariance can be instilled without any architectural change, by randomly permuting the sample order of every domain at each training iteration. This optimizes exactly the permutation-symmetrized training objective and drives the learned map toward invariance at no additional cost. It is the same strategy used in the Nonlocal Attention Operator (NAO) [1], where attention likewise mixes the sample dimension and shuffle augmentation renders the trained operator insensitive to sample ordering in practice. We adopt this augmentation in the revision, with results below. In addition, exact invariance can always be obtained at inference by averaging predictions over random shuffles: since the reconstruction loss is convex in and the samples are exchangeable, Jensen's inequality shows that this symmetrized predictor never increases the population reconstruction loss.
- (4) Shuffling experiment. For each of the 1000 test domains we draw random permutations of the samples, run zero-shot inference on each shuffled copy, and compare the resulting DAG against the one inferred from the original sample order. We evaluate on a ADAG model with and . We report the mean SHD between the two, and the fraction of pairs whose thresholded DAG is identical.
| Metrics | Value |
|---|---|
| Mean SHD (shuffled vs. original DAG) | 0.1495 |
| Fraction of pairs with unchanged thresholded DAG | 94.10% |
Reordering the samples leaves the inferred graph completely unchanged in 94.10% of cases, and the residual disagreement averages 0.15 edges per domain. Sample-permutation invariance is therefore not guaranteed by the architecture, but the trained model attains it to a close approximation in practice.
We will (i) add the node-equivariance proposition and the exact-invariance criterion to the appendix, (ii) adopt sample-permutation augmentation as the default pretraining protocol, noting the NAO precedent, (iii) include the shuffling-stability table, and (iv) discuss the inference-time symmetrization option.
[1] Yu, Liu, Zhang, You, Yu. "Nonlocal Attention Operator: Materializing Hidden Knowledge Towards Interpretable Physics Discovery." NeurIPS 2024.
Response to Reviewer FnkC (part 2)
Attention-map dimensions and complexity (W2 and Q2). The reviewer's reading is correct and we thank them for the careful check. Since the tokens are variables, , the attention map is and not . We should, however, have been explicit about where the term in our reported complexity actually comes from, because it does not come from the size of the attention map. The term originates in how our code implements the layer. Writing $ Q K^\top = H W^Q( W^K)^\top H^\top = H G H^\top$ with $ G = W^Q( W^K)^\top \in \mathbb{R}^{n\times n}$, our implementation materializes once per layer and applies it to $ H$ before contracting to , rather than forming $ Q$ and $ K$ separately. The per-layer, per-domain accounting is then $ H G$ at , the contraction at , and the residual update at , giving per layer and memory. The quadratic dependence on is therefore a property of how we evaluate the attention map, not of its dimensions. The same quantity can be computed in the factored order, forming $ Q = HW^Q$ and $ K = H W^K$ before their product. This costs per layer with memory, removing the term entirely, since the rank- factorization of $ G$ is never discarded. The two routes produce identical outputs, so no reported result changes, and at our scales (, , ) the factored form roughly halves the per-layer cost. We will adopt it and state the corrected formulas consistently in Section 3 and Appendix B, together with the derivation above, so that the source of each term is unambiguous.
Training-scale requirements (Q3). We understand the reviewer's concern: at higher dimension , ADAG needs enough training domains to cover the space of causal structures before the learned mechanism generalizes. The table below reports test SHD on the ER1 real-data setting as a function of the number of training domains , at and .
| 1,000 | 35.2 | 55.3 |
| 10,000 | 24.7 | 48.5 |
| 50,000 | 3.56 | 10.6 |
| 70,000 | 1.9 | 4.9 |
| 100,000 | 1.3 | 3.1 |
The requirement turns out to be milder than one might expect. Accuracy improves sharply between and and is close to saturated by at both dimensions, and the number of domains needed grows far more slowly than the space of candidate structures does with . Matching the per-domain baselines requires fewer domains still, well before ADAG's own accuracy saturates. The reason is the mechanism described in our response to Reviewer KqNn. Because a graph is a composition of local edge patterns and the learned operator acts locally, the training domains do not need to enumerate DAG structures; they only need to cover the candidate edges. This also gives a concrete and inexpensive recipe for assembling training data at large : rather than sampling dense graphs, select a variety of sparse graphs whose union covers every entry (except the diagonal entries) of the adjacency matrix. Our sparse-to-dense results (Table 3, ER1 to ER2 and ER4) confirm that models trained this way recover denser unseen structures. Combined with ADAG's demonstrated transfer across noise families, causal mechanisms, and graph families (scale-free and stochastic block model, see our response to Reviewer 541N), the coverage required in practice is far less demanding than exhaustive enumeration would suggest. Even so, we agree that a different strategy is likely preferable at very large . A natural option is to partition the variables into subsets of moderate size, apply the trained ADAG model to each subset, and aggregate the local estimates into a global graph. We regard this divide-and-conquer route as a promising direction for scalability, which remains one of the most persistent challenges in causal discovery. Given inference of roughly seconds per domain and high accuracy at moderate sizes (F1 above 0.95 at ), ADAG is well suited to serve as the local structure-inference primitive in such a scheme, and we will discuss this explicitly in the revision.
Response to Reviewer FnkC (part 3)
Break-even analysis (Q4). We agree this belongs in the paper, and we can state it from Table 2 directly. At , ADAG pretraining takes about 3 hours (10,800 s) and inference s per domain, while NOTEARS takes 84.35 s per domain. Amortization therefore breaks even after only about 128 test domains, and against DAGMA (3.6 s per domain) after about 3,000. We would emphasize how small 128 is. Any setting in which an amortized method is worth considering involves far more than a hundred datasets, and our own evaluation already uses 1000 test domains, roughly eight times the break-even point: the totals there are about 3 hours for ADAG against about 23.4 hours for NOTEARS, so the one-time pretraining cost is recovered nearly eight times over. The break-even point also falls sharply as grows, which is exactly the regime where per-dataset solvers become expensive: at it is about 8,600 domains, simply because a single five-variable problem is solved in a fraction of a second. Pretraining is thus a good trade precisely where the per-dataset cost is high, and where it is not, ADAG's advantage lies in accuracy rather than speed. Finally, break-even understates the benefit, since accuracy also favors ADAG in the low-sample regime (Table 4); beyond roughly 128 domains the comparison is not a speed-for-accuracy trade-off but an improvement on both. We will add this analysis to the revision.
The reviewer set out three explicit conditions for reassessment, and we believe all three are now met: the requested shuffling experiment is reported above, alongside a node-equivariance guarantee and an augmentation remedy that makes near-invariance a property of the trained model; the complexity accounting is corrected, with the origin of every term derived explicitly; and the training-scale evidence at and is provided, together with a practical recipe for assembling training domains and a divide-and-conquer route to larger . We hope these responses have addressed all of the reviewer's concerns. Should any point remain unclear, or should the reviewer wish to see further experiments, we would be glad to provide them during the discussion period. Otherwise, we would be very grateful if the reviewer would consider re-evaluating our submission and raising their score.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
ADAG is an unsupervised amortized method for learning Directed Acyclic Graphs from observational data. It trains a linear-attention transformer on multiple domains using only a reconstruction loss and an acyclicity constraint. No ground-truth DAG labels are needed at training time. At test time, the model performs zero-shot inference on new domains via a single forward pass. The paper provides a theoretical analysis. Each attention layer is cast as a fixed-point iteration, with contraction, acyclicity-bias, and zero-shot generalization guarantees for linear SEMs. Experiments use synthetic linear and nonlinear SEMs over Erdős–Rényi graphs of varying density and two real datasets.
Strengths and weaknesses
Strengths
-
The unsupervised amortized setting is a genuine contribution, backed by theory. ADAG trains without ground-truth DAG labels, using only a reconstruction loss and an acyclicity constraint. The theory shows each attention layer is a fixed-point iteration, with contraction, acyclicity-bias, and zero-shot generalization guarantees, all proved in full.
-
The paper runs structural-sensitivity experiments. Figure 3 sweeps over node count, graph density, and structural-prior regime. Table 3 tests sparse-to-dense generalization, with a companion TV bound (Proposition E.7) explaining the transfer.
-
The training-domain ablation confirms the theoretical scaling. Appendix D.2 sweeps the number of training domains from 0 to 70,000 and qualitatively confirms the 1/√M generalization bound predicted by Theorem 4.4.
Weaknesses
-
All methods are evaluated at a fixed 1000 test domains. The paper does not compare SHD and SID against baselines at varying numbers of test domains. Please Correct me if I missed something.
-
All experiments use Erdős–Rényi graphs only; report SHD only, SID is not reported.
Questions
-
Q1 — Add LiNGAM baselines on the non-Gaussian experiments. Appendix D.3 tests Exponential and Gumbel noise. Please add DirectLiNGAM, ICA-LiNGAM (per-domain), and [1] (multi-domain). All have public implementations. If ADAG is competitive, my score moves up. If dominated, the non-Gaussian claim weakens.
-
Q2 — Report SHD and SID [2] versus the number of test domains, with baselines on the same plot. The paper evaluates all methods at a fixed 1000 test domains. Run on at least the general setting at d ∈ {10, 20}. If ADAG stays ahead across a wide range, my score moves up. If multi-domain baselines catch up at moderate counts, the advantage is diminished.
-
Q3 — Clarify whether CD-NOD was given the domain index. Section 6 states that observations are concatenated into a single dataset without mentioning a domain indicator. Without the domain index, CD-NOD cannot detect heterogeneous structure as designed. If CD-NOD was run without it, please re-run with the domain index included.
-
Q4 — Test on graph families beyond Erdős–Rényi. Please evaluate on scale-free (Barabási–Albert) and at least one other family, reporting both SHD and SID. If ADAG generalizes, my score moves up. If performance degrades, the inductive bias may be overfit to the ER degree distribution.
[1] Joint estimation of linear non-Gaussian acyclic models
[2] Structural Interventional Distance for evaluating causal graphs
Limitations
Yes
Final justification
My concerns have been sufficiently addressed. The additional information from authors has clearly strengthen the research claim.
Formatting concerns
NA
5 comments
Response to Reviewer 541N (part 1)
We thank the reviewer for an exceptionally precise review with actionable requests. We address the four questions directly; all four will be included in the revision.
LiNGAM baselines on non-Gaussian data (Q1). We thank the reviewer for the suggestion. Under exponential and Gumbel noise the linear non-Gaussian model is exactly identifiable, so this is the regime that is most favorable to LiNGAM and the most demanding test for ADAG. We have now run DirectLiNGAM and ICA-LiNGAM per domain, together with the multi-domain joint variant (MultiGroupDirectLiNGAM), across d = 5, 10, 20 on both of our data types under non-Gaussian noise. Runtimes are per domain, averaged over the 1000 held-out test domains.
| Data | d | Method | SHD ↓ | SID ↓ | Runtime (s) |
|---|---|---|---|---|---|
| real | 5 | ADAG | 0.09 | 0.06 | 3e-4 |
| real | 5 | DAGMA | 0.26 | 0.40 | 0.4 |
| real | 5 | DirectLiNGAM | 4.25 | 7.95 | 0.9 |
| real | 5 | ICA-LiNGAM | 1.68 | 3.29 | 3.5 |
| real | 5 | MultiGroup (joint) | 4.09 | 8.03 | 0.8 |
| real | 10 | ADAG | 0.27 | 0.25 | 4e-4 |
| real | 10 | DAGMA | 0.90 | 0.40 | 0.70 |
| real | 10 | DirectLiNGAM | 9.69 | 20.87 | 4.6 |
| real | 10 | ICA-LiNGAM | 4.28 | 10.30 | 7.2 |
| real | 10 | MultiGroup (joint) | 10.53 | 23.65 | 4.5 |
| real | 20 | ADAG | 1.35 | 2.12 | 4e-4 |
| real | 20 | DAGMA | 2.60 | 2.56 | 0.70 |
| real | 20 | DirectLiNGAM | 22.41 | 57.77 | 29.7 |
| real | 20 | ICA-LiNGAM | 8.11 | 22.44 | 9.2 |
| real | 20 | MultiGroup (joint) | 22.34 | 59.03 | 29.5 |
| heterogeneous | 5 | ADAG | 0.03 | 0.46 | 3e-4 |
| heterogeneous | 5 | DirectLiNGAM | 4.17 | 7.93 | 1.0 |
| heterogeneous | 5 | ICA-LiNGAM | 2.39 | 6.76 | 0.8 |
| heterogeneous | 5 | MultiGroup (joint) | 1.50 | 4.26 | 3.6 |
| heterogeneous | 10 | ADAG | 0.08 | 0.40 | 3e-4 |
| heterogeneous | 10 | DirectLiNGAM | 10.95 | 24.70 | 4.6 |
| heterogeneous | 10 | ICA-LiNGAM | 6.21 | 15.31 | 7.1 |
| heterogeneous | 10 | MultiGroup (joint) | 3.56 | 8.66 | 4.4 |
| heterogeneous | 20 | ADAG | 0.24 | 0.50 | 4e-4 |
| heterogeneous | 20 | DirectLiNGAM | 25.52 | 78.37 | 29.8 |
| heterogeneous | 20 | ICA-LiNGAM | 21.47 | 56.23 | 29.3 |
| heterogeneous | 20 | MultiGroup (joint) | 13.43 | 41.81 | 9.4 |
ADAG is the most accurate method in every setting, across all dimensions and both data types, at a per-domain inference cost three to five orders of magnitude lower. Among the LiNGAM baselines the ranking is informative. On the heterogeneous data, where all domains share the same DAG, the joint MultiGroup variant is the strongest LiNGAM method at every d, which is the expected outcome: it is the only variant whose assumptions this setting satisfies, and the only one able to pool evidence across domains. On the real data, where that assumption no longer holds, it loses the advantage and ICA-LiNGAM becomes the strongest. We believe the remaining gap to ADAG is mainly a consequence of our evaluation protocol: to keep the comparison consistent across all baselines we fix n = 100 samples per domain, whereas LiNGAM's identifiability guarantees are asymptotic and its higher-order-moment estimators require substantially more samples as d grows. We would expect these baselines to improve considerably at larger n, and we are happy to add such a study if the reviewer would find it informative.
We will add this table and protocol to Appendix D.3 in the revision.
Response to Reviewer 541N (part 2)
SHD and SID vs. number of test domains (Q2). One clarification of what this sweep can show: for ADAG and the per-domain baselines (NOTEARS, DAGMA), per-domain accuracy does not depend on the size of the test set, so the sweep affects only the reliability of the reported average; the methods that could genuinely benefit from more test domains are the multi-domain baselines (MultiDAG, CD-NOD). We report the sweep for ADAG below. At each size we subsample the 1000-domain test set and report the mean and standard deviation over repeated draws, with the full set used at 1000.
| # test domains | d = 10, SHD ↓ | d = 10, SID ↓ | d = 20, SHD ↓ | d = 20, SID ↓ |
|---|---|---|---|---|
| 10 | ||||
| 20 | ||||
| 50 | ||||
| 100 | ||||
| 500 | ||||
| 1000 |
This is why we do not think a reduced test set is a sound evaluation choice. Small sets are biased, since whichever few graphs happen to be drawn dominate the average: at 10 domains the d = 10 SHD reads 0.140 against 0.272 on the full set, and the SID 0.060 against 0.251. The bias is optimistic, so fewer domains would have flattered ADAG rather than penalized it. Small sets are also high-variance: the SHD standard deviation at d = 10 falls from 0.049 at 10 domains to 0.007 at 500 and effectively 0 at 1000. Evaluating on 1000 domains is what makes the reported averages trustworthy, and we will include this table in the revision.
CD-NOD domain index (Q3). We thank the reviewer for raising this point. We have re-checked our experimental code and can confirm that the domain index is indeed provided to CD-NOD. We use the original MATLAB implementation released by the authors of the CD-NOD paper, in which the domain index is passed as the surrogate-variable argument c_indx of nonsta_cd_new(X, cond_ind_test, c_indx, maxFanIn, alpha, Type, pars). This follows the package documentation, which specifies that c_indx is "the time index" for nonstationary data and "the domain index" for data from multiple domains, and it matches the usage in the authors' own multi-domain example script. We apologize that our wording in the submission was ambiguous and likely caused this concern. By "concatenating the data" we do not mean that domain membership was discarded: we mean that CD-NOD receives the 1000 held-out test domains jointly, as a single stacked data matrix together with the accompanying domain-index vector, rather than being applied to one domain at a time. This is the intended use of CD-NOD as a multi-domain method; running it per domain would remove precisely the cross-domain variation it is designed to exploit. Most of the other baselines (NOTEARS, DAGMA, and the LiNGAM variants added in Q1) are single-domain methods and are therefore run domain-by-domain, with the reported metrics averaged over domains. In the revision we will state this protocol explicitly in Section 6, clearly distinguishing the multi-domain baselines (CD-NOD, MultiDAG), which are given all domains and the domain index at once, from the per-domain baselines, so that no ambiguity remains.
Response to Reviewer 541N (part 3)
SHD and SID vs. number of test domains (Q2). One clarification of what this sweep can show: for ADAG and the per-domain baselines (NOTEARS, DAGMA), per-domain accuracy does not depend on the size of the test set, so the sweep affects only the reliability of the reported average; the methods that could genuinely benefit from more test domains are the multi-domain baselines (MultiDAG, CD-NOD). We report the sweep for ADAG below. At each size we subsample the 1000-domain test set and report the mean and standard deviation over repeated draws, with the full set used at 1000.
| # test domains | d = 10, SHD ↓ | d = 10, SID ↓ | d = 20, SHD ↓ | d = 20, SID ↓ |
|---|---|---|---|---|
| 10 | ||||
| 20 | ||||
| 50 | ||||
| 100 | ||||
| 500 | ||||
| 1000 |
This is why we do not think a reduced test set is a sound evaluation choice. Small sets are biased, since whichever few graphs happen to be drawn dominate the average: at 10 domains the d = 10 SHD reads 0.140 against 0.272 on the full set, and the SID 0.060 against 0.251. The bias is optimistic, so fewer domains would have flattered ADAG rather than penalized it. Small sets are also high-variance: the SHD standard deviation at d = 10 falls from 0.049 at 10 domains to 0.007 at 500 and effectively 0 at 1000. Evaluating on 1000 domains is what makes the reported averages trustworthy, and we will include this table in the revision.
Graph families beyond Erdős–Rényi (Q4). Per the reviewer's suggestion, we have run the experiment. We take the amortized ADAG model trained for d = 5 with n = 100 samples per domain on Erdős–Rényi / fullDAG graphs, and evaluate it zero-shot on two graph families never seen during training: scale-free graphs from the Barabási–Albert model, and block-structured graphs from a stochastic block model with 2 blocks. For each family we generate 1000 fresh test domains, assign random edge weights in ±[0.5, 2.0], and draw 100 observations per domain from a linear SEM with standard Gaussian noise. Each domain is passed through the frozen model in a single forward pass, the predicted weighted adjacency is thresholded at 0.3, and we report the mean SHD and SID against the ground-truth DAG over the 1000 domains. The Erdős–Rényi row is the in-distribution reference, computed on the model's own held-out fullDAG test set under an identical protocol.
| Graph family | Edges/graph | SHD ↓ | SID ↓ |
|---|---|---|---|
| Erdős–Rényi (in-distribution) | ~5.0 | 0.092 | 0.055 |
| Scale-free (Barabási–Albert) | ~4.0 | 0.068 | 0.022 |
| Stochastic block model (SBM) | ~4.7 | 0.078 | 0.033 |
We do not observe the degradation the reviewer hypothesizes: accuracy on both unseen families is at least as good as in-distribution. We would caution against reading this as the out-of-family setting being easier, since the sampled BA and SBM graphs are also slightly sparser than the ER reference; normalizing by edge count, the three settings are essentially indistinguishable (SHD per edge 0.018, 0.017, 0.017). The appropriate conclusion is therefore that the learned operator does not degrade under a shift in graph family, which is consistent with the mechanism described in our response to Reviewer KqNn: because a DAG is a composition of local edge patterns and the learned map acts locally, it is coverage of the candidate edge set during training, rather than exposure to a particular degree profile, that determines generalization. Training on fullDAG graphs covers that edge set completely, so BA and SBM structures are recovered by composing edge patterns already learned. This also matches the total-variation bound of Prop. E.7, under which the degradation is controlled by the shift in structural distribution and is small when the induced edge marginals remain within the training coverage.
We will include this table and protocol in the revision. We note that d = 5 limits how pronounced a scale-free degree profile can be, so we are extending the same evaluation to d = 10 and d = 20 during the discussion period and will report those numbers as soon as they are available.
We hope our responses have addressed all of the reviewer's concerns. Should any point remain unclear, or should the reviewer wish to see further experiments, we would be glad to provide them during the discussion period. Otherwise, we would be very grateful if the reviewer would consider re-evaluating our submission and raising their score.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes an unsupervised amortization method for simultaneous discovery of causal structures and parameters from multi-domain data, ADAG, using linear transformer. The authors theoretically analyze the proposed linear attention architecture, which shows that the layer-wise update between the linear attention layers becomes a fixed-point iteration in the linear-SEM cases. A PAC-style zero-shot generalization bound is also theoretically proposed for the method. The experimental evaluations demonstrate the effectiveness of ADAG with higher accuracy and lower runtime compared to current unsupervised and amortized baselines.
Strengths and weaknesses
Strengths
- Due to the simultaneous inference of the causal graphs and parameters, the training process does not require ground-truth DAGs and, instead, utilizes the multi-domain data for training.
- The theoretical analyses for linear SEM setting are comprehensive and accompanied by necessary proofs and assumptions.
- The reported SHDs and inference runtime are significantly lower than current baseline methods on all major settings.
Weaknesses
- Most theoretical results are built from the linear SEM assumption and do not cover the nonlinear SEM cases.
- The comparisons against the baselines are solely based on SHD scores with a fixed threshold of 0.3, which may not fully reflect the confidence of the estimated DAGs and parameters.
- The results in Figure 6 (Section D.2) show that the method requires at least 20 000 training domains for the training loss to meaningfully drop. In the main experimental results, 70 000 domains and 100 000 domains are respectively used for the linear and nonlinear setting. These numbers of training domains are significantly high and may be difficult to obtain in real-world scenarios. Moreover, the limited data regime is with a lower number of samples per domain, but it still requires a higher number of domains.
- The method structurally expects and, for , training another model with a lower number of training samples or resampling the test data with replacement are recommended. There is no discussion on how the model would behave when and whether the trained models would be able to benefit from a larger test set.
Questions
- Besides SHD, other evaluation metrics should also be used for comparison, such as F1, AUROC, and SID for structures, and MSE or (intervention) likelihood for joint structures and parameters.
- Since the training loss is influenced by the number of training domains. I suggest that the authors include the inference performance with different number of training domains in addition to the training losses to evaluate how the number of training domains affects the inference performance and the trade-off between training cost and inference performance.
- Does the requirement on large number of training domains affect the adoption of real-world dataset for training?
- How the model would behave when and would the trained models be able to benefit from a larger test set?
- In Figure 1, the linear transformer block is illustrated with Q, K, and V components as in typical transformers. However, in Section 3, only Q and K are mentioned in the formulations. Could the authors clarify this difference between the illustration and the mathematical formula?
- Because the training objective is unsupervised, ground-truth DAGs (or partial structural knowledge) for a subset of domains could be incorporated as an auxiliary supervised term without changing the architecture. Have the authors considered such a semi-supervised variant, and would even a small fraction of labeled domains improve accuracy and relax the requirement on the number of training domains?
Limitations
Yes. The authors have addressed the limitations that they mentioned.
Final justification
The authors have addressed most major concerns with additional experimental results. The only remaining weakness is the lack of evaluation on nonlinear cases, which is non-trivial as they have suggested.
Formatting concerns
None
7 comments
Response to Reviewer ccuy (part 1)
We thank the reviewer for the positive assessment of the unsupervised training scheme, the theory, and the empirical results, and for several constructive suggestions.
Regarding theoretical results built on the linear SEM assumption (Weakness 1). We agree with the reviewer that most of our theoretical results are established under the linear SEM assumption, and we would like to explain why the nonlinear case is fundamentally more difficult for our approach. Due to the special nature of ADAG, we need to consider not only graph identifiability, as in all other causal discovery approaches, but also parameter identifiability, since the SEM parameters are the direct output of our attention-based model. Unfortunately, nonlinear SEMs with multiple layers of parameters automatically lack parameter identifiability. Consider a two-layer case with weights : one can directly construct another solution with and , where is a scalar (for positively homogeneous activations such as ReLU), which produces exactly the same output while still rendering the same causal graph, since the rescaling preserves the support of the first-layer weights. To guarantee identifiability in the nonlinear case, one possible direction is to restrict the distribution of the first-layer weights, for example through normalization constraints; exploring such identifiability theorems is promising future work, but it is out of the scope of the current formulation. Nevertheless, we would like to note that the identifiability analysis is provided to help readers better understand the nature and capability of the ADAG approach; it is not among the major contributions we claimed in the introduction.
Evaluation metrics beyond SHD with a fixed threshold (Weakness 2 and Question 1). We thank the reviewer for the suggestion: metrics beyond SHD under a single fixed threshold provide a more complete picture of the estimated DAGs and parameters. Per the reviewer's request, we provide further evaluation on the new metrics. Due to the short response period, we first showcase the performance on the ER1 real data with linear SEM setting across to demonstrate that ADAG achieves consistently optimal performance across the various metrics; the complete results on the remaining settings will be included in the revision.
| d | Method | SHD ↓ | SID ↓ | F1 ↑ | AUROC ↑ | MSE |
|---|---|---|---|---|---|---|
| 5 | ADAG | 0.092 | 0.055 | 0.991 | 0.9997 | 1.008 |
| 5 | DAGMA | 0.260 | 0.400 | 0.971 | 0.987 | 1.001 |
| 5 | NOTEARS | 0.440 | 0.430 | 0.951 | 0.984 | 0.983 |
| 5 | AVICI | 4.730 | 6.810 | 0.494 | 0.733 | 1.558 |
| 10 | ADAG | 0.280 | 0.210 | 0.967 | 0.999 | 1.001 |
| 10 | DAGMA | 0.900 | 0.400 | 0.958 | 0.995 | 1.001 |
| 10 | NOTEARS | 0.630 | 2.130 | 0.959 | 0.984 | 0.970 |
| 10 | AVICI | 12.680 | 14.990 | 0.481 | 0.860 | 1.470 |
| 20 | ADAG | 1.350 | 2.120 | 0.953 | 0.999 | 1.004 |
| 20 | DAGMA | 2.597 | 2.560 | 0.935 | 0.989 | 1.024 |
| 20 | NOTEARS | 2.823 | 3.370 | 0.928 | 0.986 | 1.028 |
| 20 | AVICI | 33.280 | 39.890 | 0.442 | 0.884 | 1.470 |
This consistency is within our expectation. According to the very low relative error between the estimated and the ground-truth (Table 1 and Appendix Table 6), our estimation is very close to the ground truth in terms of both the graph and the parameters. Hence, the binarized graph remains stable across a wide range of thresholds, and strong performance under one metric translates into strong performance under the others, including threshold-free metrics such as AUROC. We will report the full set of metrics (F1, AUROC, SID, and parameter estimation error) across all main linear and nonlinear settings in the revision.
Response to Reviewer ccuy (part 2)
Requirement of a large number of training domains (Weakness 3 and Question 3). We acknowledge that in some real-world settings, collecting data from many domains can be difficult. However, practical sources of training domains exist: (1) synthetic data covering a wide range of DAG types and mechanisms can be generated cheaply; (2) simulators such as Sergio (one of our semi-real datasets) can generate realistic single-cell data, since the underlying physical or biological laws can be modeled; and (3) limited real datasets can be augmented by resampling or permutation. Together, these options make the requirement for multiple training domains substantially less restrictive in practice. In particular, our current evaluations on Sachs (real) and Sergio (semi-realistic) follow exactly this recipe: the ADAG models are trained purely on synthetic data and then applied directly to the real data. The good performance demonstrates that synthetic data can, to a meaningful extent, support the training of amortized models and make them useful on real datasets.
Inference performance with varying numbers of training domains (Question 2). We would like to clarify a misunderstanding here. The reconstruction loss and relative error reported in Figure 6 (Appendix D.2) are not computed on the training domains: they are exactly the zero-shot inference performance, evaluated on the 1000 held-out test domains that never appear during training. Since we employ an expressive transformer architecture, the training objective can be expected to converge and achieve low reconstruction loss and relative error on the training domains for every , so evaluating the training metrics alone would not be informative. To avoid confusion, the table below reports the training-set and test-set quantities separately: the training-set values are already saturated at every , while the test-set values, which are the inference performance the reviewer asks about, improve steadily as grows and match the training-set level at . We will revise the caption and axis labels of Figure 6 to state explicitly that it reports held-out inference performance, and we will additionally report the training wall-clock time at each to make the trade-off between training cost and inference performance explicit.
| Settings | Training Set: | Training Set: | Test Set (1000): | Test Set (1000): |
|---|---|---|---|---|
| M=100 | 2.4971 | 0.0278 | 82.1892 | 2.0284 |
| M=500 | 2.5113 | 0.0615 | 202.5777 | 3.2549 |
| M=1000 | 2.4975 | 0.0293 | 173.0602 | 2.9258 |
| M=5000 | 2.4984 | 0.0241 | 38.3471 | 1.4694 |
| M=10000 | 2.4980 | 0.0241 | 20.6954 | 1.3039 |
| M=15000 | 2.4984 | 0.0253 | 10.0936 | 0.9147 |
| M=20000 | 2.4980 | 0.0246 | 4.1831 | 0.5262 |
| M=30000 | 2.4986 | 0.0258 | 4.0971 | 0.5122 |
| M=40000 | 2.4998 | 0.0300 | 3.7676 | 0.4640 |
| M=50000 | 2.4992 | 0.0290 | 3.0680 | 0.3359 |
| M=60000 | 2.5015 | 0.0354 | 3.2758 | 0.3896 |
| M=70000 | 2.4980 | 0.0242 | 2.5030 | 0.0386 |
Regarding the trade-off between training cost and inference performance: the training cost grows approximately linearly in (for reference, the full pre-training in this setting takes about 10 minutes on a single GPU, as reported in Table 2), while the test-set error improves with diminishing returns, consistent with the generalization rate of Theorem 4.4. We also note that the relation between the number of domains and the final inference performance is not entirely linear: unless the relative error can be reduced to a relatively small value, preferably smaller than 30%, the resulting DAG is very wrong and yields high SHD. In the table above, this level is reached only around to . In practice, one should therefore increase until performance on a held-out validation set saturates, as it does at ; the resulting one-time training cost is then amortized over every subsequent zero-shot inference at roughly seconds per domain.
Response to Reviewer ccuy (part 3)
Handling test domains with (Question 4). The trained ADAG model takes inputs of a fixed sample length . When a test domain provides more samples than , the model can still benefit from the larger test set through subsample ensembling: we draw random subsamples of size , run the (sub-millisecond) forward pass times, and average the predicted adjacency matrices before thresholding. This ensembling makes use of the full test set, and the averaging reduces the variance of the estimate as grows. We will include this protocol in Appendix A. The table below reports the resulting SHD of an ADAG model trained with samples per domain, applied with subsample ensembling to test domains of growing . This table extends the ablation study on in Table 2 of the main paper, which covered test domains with fewer samples than training (), to the regime.
| Heterogeneous Data | Order-consistent Data | General Data | |
|---|---|---|---|
| 100 () | 0.125 | 0.192 | 0.164 |
| 200 | 0.113 | 0.125 | 0.124 |
| 500 | 0.032 | 0.033 | 0.039 |
The results confirm that the trained model indeed benefits from a larger test set: with subsample ensembling, SHD decreases monotonically as grows on all three data types, and at the SHD is roughly 4 to 6 times lower than the single-pass result at (for example, 0.125 to 0.032 on heterogeneous data). Intuitively, each subsample provides an estimate whose error is partly driven by sampling noise, and averaging the predicted adjacency matrices before thresholding cancels much of this noise, while the total inference cost remains negligible ( sub-millisecond forward passes). Hence, a trained ADAG model can readily exploit additional test samples without any re-training.
Q5. Q/K/V in Figure 1 vs. Q/K in Section 3. We thank the reviewer for the careful observation and clarify the correspondence between Figure 1 and Eqs. (3)–(6). The value component V is indeed used, but in a reduced form. In the layer update of Eq. (3), the attention map from Eq. (4) multiplies the hidden state directly; that is, $ H_{(l-1)}$ itself serves as the value matrix, with the value projection fixed to the identity (, ) rather than learned, which is why the trainable parameters in Eq. (4) are only and . In the output layer of Eq. (5), no value multiplication is applied, because the attention map itself is the predicted weighted adjacency matrix . This simplification is deliberate: it aligns the architecture with the linear SEM in Eqs. (1) and (6), where the adjacency matrix multiplies the data directly, so the attention matrix at every layer can be interpreted and decoded as an estimate of the adjacency matrix (the fixed-point analysis in Section 4 relies on this correspondence). A learned value projection would break this correspondence without adding necessary expressivity in the linear-attention setting. We will revise Figure 1 to annotate the value path as with no trainable projection, so that the illustration matches the formulation exactly.
Semi-supervised variant (Question 6). We thank the reviewer for this suggestion. We have indeed explored a few training strategies and training objectives, and we agree that our current training process can be modified to include an auxiliary loss for a labeled subset of domains in Eq. (8). We agree that, with partial ground-truth causal graphs involved, the accuracy of the ADAG model can be expected to improve. In the following table, we add and labeled domains in the ER2 general data case; the reported test SHD and relative error improve as more domains are labeled.
| Settings | SHD (0.3) | Relative Error |
|---|---|---|
| Unsupervised | 0.1874 | 0.1090 |
| Semi-supervised (1%) | 0.1756 | 0.1077 |
| Semi-supervised (5%) | 0.0562 | 0.0828 |
In particular, labeling only 5% of the training domains reduces the test SHD by more than a factor of three (0.1874 to 0.0562), indicating that even a small labeled fraction substantially accelerates the learning of the data-to-graph mapping. We will include this semi-supervised variant in the revision as a practical middle ground between our fully unsupervised setting and supervised amortized approaches.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes Attention-DAG (ADAG), an unsupervised amortized causal discovery method for learning Directed Acyclic Graphs from observational data. Instead of solving a separate constrained DAG-learning optimization problem for every new dataset, ADAG is pretrained across many domains and then used for zero-shot inference on unseen domains.
Strengths and weaknesses
Strengths
-
Promising causal foundation model direction. The paper makes a valuable effort toward amortized / pretrained causal discovery, aiming to shift expensive per-dataset DAG optimization into a pretraining stage.
-
Clear and well-motivated core idea. The mapping from observational data to weighted adjacency matrices / SEM parameters is presented clearly, and the zero-shot inference framing is compelling.
-
Strong in-distribution performance with efficient inference. Under the paper’s synthetic and pretraining-compatible settings, ADAG achieves strong SHD results, including in low-sample regimes, while providing very fast inference compared with per-domain optimization methods.
-
Substantial experimental effort. The experiments cover multiple graph densities, dimensions, data regimes, baselines, low-sample settings, and nonlinear SEMs. The empirical section is fairly involved and supports the method’s effectiveness under the tested settings.
Weaknesses / areas for improvement
-
Generalizability beyond the pretraining distribution remains unclear. The authors partially acknowledge related limitations, including the need for diverse training domains, limited scale, and open identifiability questions for general data. However, the empirical evidence still relies heavily on synthetic SEMs drawn from controlled graph/noise/mechanism distributions, with real-data validation limited to Sachs and Sergio. It is not clear whether ADAG transfers to genuinely different real-world variable sets, dimensions, or causal mechanisms without retraining or adaptation.
-
The scope of “zero-shot” should be clarified. The test domains appear to mostly be new domains drawn from the same or closely related meta-distribution as training. This is different from zero-shot transfer to arbitrary new scientific systems or variable sets.
-
Nonlinear extension may be tied to fixed variables. In Section 5, the nonlinear SEM formulation uses per-variable parameters, which raises the question of whether the trained model can handle new variable sets or different dimensions without retraining.
-
Presentation could be improved. Several figure legends, axis labels, and annotations are very small and hard to inspect. There are also minor typos and notation inconsistencies that should be cleaned up.
Questions
Questions for authors
-
Consistent real-data setup: Could the authors evaluate more real or semi-real datasets under a consistent protocol, e.g. same sample size, preprocessing, metric, thresholding, and baseline tuning, to better support the generalization claim?
-
Relation to attention-as-optimization literature: How does the fixed-point interpretation of ADAG relate to broader optimization interpretations of attention, such as primal-dual or SVR-based views? Is the behavior specific to DAG learning and acyclicity, or an instance of a more general attention-as-optimization phenomenon?
-
Figure readability: Could the authors improve figure readability, especially legends, axis labels, and annotations in Figures 2, 3, and the appendix trajectory plots?
Limitations
yes
Final justification
Thank you author for your constructive response. I decided to raise my evaluation accordingly.
Formatting concerns
N/A
5 comments
Response to Reviewer KqNn (part 1)
We thank the reviewer for the careful reading and for the constructive assessment of our work. We address each concern below.
The Scope of Zero-shot (Weakness 2). We thank the reviewer for this comment, and we will make this precise in the revision. The ideal case for training ADAG is to include a sufficiently rich set of training domains that covers as many causal graphs, data-generation mechanisms, and noise types as possible. Once trained, ADAG can then be directly applied to new data, whose true causal graph, generation mechanism, and noise type are likely to have been covered and learned during training, without any re-adaptation or re-training. This "no re-adaptation or re-training at test time" property is what we refer to as zero-shot. It is the same sense in which the term is used in the amortized-inference literature, and it is indeed different from zero-shot transfer to arbitrary scientific systems whose generative processes lie far outside the training coverage; we will state this distinction explicitly in the introduction and in Section 6.
Generalizability (Weakness 1). Under this definition of zero-shot, the generalizability question the reviewer raises becomes: how far can the test distribution deviate from the training coverage before accuracy degrades? Although the ideal case is to train on a set of domains covering as much variety as possible, in practice this is challenging, or even impossible, especially at large variable dimensions. We therefore deliberately probe ADAG's generalization by controlling the data-generation distribution along three axes: graph structural pattern (heterogeneous, order-consistent, and general), noise type (Gaussian, exponential, and Gumbel), and causal mechanism (linear and nonlinear).
- Graph structure. ADAG is an amortized method that learns the inverse mapping from data to the graph and SEM parameters. Because a graph is a composition of local edge patterns and our learned operator acts locally (the fixed-point analysis of Section 4), an ADAG model need not see a target structure during training: as long as the sparse training graphs collectively cover the candidate edges, ADAG recovers denser unseen graphs by composing locally learned edge patterns. This is confirmed in Table 3, where models trained only on sparse graphs match in-distribution training on denser test structures (ER1→ER2: 0.04/0.12/0.17 vs. ER2→ER2: 0.04/0.10/0.15; ER1→ER4: 1.25/2.60/2.10 vs. ER4→ER4: 1.20/2.45/1.80, for the heterogeneous/order-consistent/general settings). This is practically important: it means we do not need to enumerate the super-exponential space of dense structures during training: covering the edge space with cheap sparse graphs suffices.
- Noise type. ADAG generalizes across noise families. In Appendix D.3 (Table 6), a model trained on Gaussian noise is evaluated zero-shot on data with exponential and Gumbel noise and remains the most accurate method (SHD 0.113 exponential, 0.057 Gumbel), confirming that the learned inverse map is not tied to the training noise distribution.
- Mechanism. ADAG is not limited to a specific mechanism and applies to both linear and nonlinear SEMs. We deliberately develop separate formulations for the linear and nonlinear cases because each admits its own theoretical guarantees. For the nonlinear case, we model the causal relations with MLPs, which are universal approximators of general nonlinear data-generation processes (Gaussian processes, MLPs, and so on) and are widely used in prior nonlinear causal discovery approaches (NOTEARS-MLP, GraN-DAG, DAG-GNN). In both cases, ADAG achieves consistently strong performance. Moreover, even though the two formulations are distinct, we discover transferability across mechanisms when one only has access to an easily trained linear ADAG model: the table below reports the ER2 d = 10 setting, where an ADAG model trained on data generated from linear SEMs is applied directly to data generated from nonlinear SEMs. Even under this mechanism mismatch, ADAG retains a certain level of generalizability and achieves performance comparable to baseline DAG learning approaches. | Methods | Heterogeneous Data | Order-consistent Data | General Data | |---------|-------------------|--------------------|--------------| | NOTEARS-MLP | 0.52 | 0.46 | 0.67 | | DAGMA | 0.41 | 0.32 | 0.53 | | AVICI | 2.58 | 4.32 | 6.10 | | ADAG | 0.42 | 0.35 | 0.45 |
- From synthetic to real data. We apologize for not being explicit about how ADAG is trained and evaluated on the real Sachs and semi-real Sergio data; full details are given in our response to Question 1 below. In short, our ADAG model is trained on synthetic data only and then evaluated on real observational data. Given its strong empirical performance under this train/test split, we believe a well-trained ADAG model can be genuinely useful for causal discovery in real-world applications.
Response to Reviewer KqNn (part 2)
Flexibility in variable size for the nonlinear extension (Weakness 3). We would like to clarify two possible misunderstandings. (1) ADAG detects the relations between variables from their provided data samples, so we do not limit our variables to a specific set. The per-variable parameters in Section 5 are indexed by input position, not tied to the identity of any particular semantic variable; a trained nonlinear ADAG therefore applies to any new dataset over variables, with new variable sets. (2) A trained ADAG is not restricted to the exact problem size used in training. A model trained with variables handles any test problem with variables by zero-padding the missing variables: the padded variables are recovered as isolated nodes, so the top-left block yields the target graph. This is the same subgraph/edge-coverage property as above, now along the variable dimension. Analogously, a model trained with samples handles smaller test sample sizes by resampling with replacement (Footnote 2; cross-sample-size transfer in Table 2).
Consistent real-data setup (Question 1). We appreciate the reviewer raising this issue and clarify our real-data evaluation setup below.
- We would like to emphasize that for the current evaluation on the two datasets (one real, one semi-real), we indeed follow a consistent protocol that guarantees fairness across all methods. (1) Matched inputs via preprocessing: for Sachs, we sample a held-out subset of observations from the widely recognized 853 Sachs observations, and the exact same set of samples is used as input to every causal discovery method; we repeat this process for 10 trials and average the resulting SHD values. For Sergio, we randomly sample 10-variable subgraphs as ground-truth DAGs and generate 100 data samples for each; we report the mean and variance over the 10 (DAG, data) pairs. (2) Same thresholding: a fixed threshold of 0.3 is applied to the inferred adjacency matrices of all methods, following the standard protocol of Zheng et al. (2018). (3) Per-baseline tuning for best performance: for AVICI, we explored the different pre-trained models released by the original authors and report the best-performing one; for NOTEARS and DAGMA, we tune the sparsity coefficients to achieve their optimal SHD.
- For ADAG, we pre-train one model with , for Sergio and one with , for Sachs. Each model is trained on training domains of synthetic data generated from linear SEMs with a variety of DAG structural patterns. ADAG is thus trained entirely on abundant synthetic data and evaluated directly on real observational data; the optimal performance in Table 4 demonstrates that ADAG generalizes to real data.
- We fully agree that a broader real-data evaluation would strengthen the paper; the practical obstacle is that available real or semi-real datasets for causal discovery are limited: Sachs is the de facto standard real benchmark and Sergio the standard semi-real one. We can, however, incorporate additional evaluations that better position ADAG among the baselines on Sachs. Our current evaluation uses the limited-sample case (), which simultaneously demonstrates ADAG's advantage in low-sample regimes; the most standard protocol, though, is to evaluate on the full 853 observations. In the following table, each baseline reproduces the exact performance reported in its original paper. We pre-train an additional ADAG model with and using synthetic data: ADAG matches the optimal SHD of 13 while achieving better F1 and SID scores. Please let us know if there is any other real or semi-real dataset the reviewer has in mind, and we would be happy to evaluate on it. | Methods | SHD (0.3) | F1 | SID | # Edges | |---------|------------|--------------------|--------------|--------------| | NOTEARS-MLP | 13 | 0.348 | 49 | 6 | | DAGMA | 14 | 0.273 | 50 | 5 | | AVICI | 14 | 0.308 | 55 | 9 | | ADAG | 13 | 0.385 | 46 | 9 | In the revision we will include a detailed description of how to evaluate amortized methods on real and semi-real data, including the pre-processing, pre-training, thresholding, and baseline-tuning protocol above, so that the evaluation is fully reproducible and extensible to new datasets as they become available.
Response to Reviewer KqNn (part 3)
Relation to the attention-as-optimization literature (Question 2). We appreciate the reviewer raising this insightful question, and we will add the following discussion to the related work. The existing attention-as-optimization literature falls broadly into three views. (i) The in-context-learning-as-gradient-descent line [1–5] shows that attention layers can implement (preconditioned) gradient steps on an in-context least-squares objective; these are forward prediction problems with unconstrained, convex objectives. (ii) Primal-dual views (e.g., [6], on the duality between optimal balancing and attention) connect the attention operation to the dual of a constrained optimization problem. (iii) SVR-based views [7] derive the self-attention operation itself from a primal-dual construction: the attention output emerges as the dual expansion of a support vector regression problem, so a single attention operation computes a kernel-regression-style prediction over support tokens. Our fixed-point interpretation is related but distinct in two ways. First, gradient descent is itself a fixed-point iteration (of the map ), so the gradient-based views can be seen as special cases of the fixed-point perspective; what is different in ADAG is that the learned single-step map (Eq. 7) is not a gradient step of any explicit objective: it is a quadratic iteration whose stable fixed points are shaped by pre-training to coincide with the solutions of a constrained, non-convex inverse problem. Second, the constraint handling is structurally interesting from the primal-dual angle the reviewer mentions: during training, acyclicity is enforced explicitly via augmented Lagrangian dual updates (Appendix A), but at inference no dual variables exist; Proposition 4.3 shows the constraint has been internalized into the spectral contraction of the learned map, which drives iterates toward the nilpotent (acyclic) cone. In other words, training compiles the dual dynamics into the primal iteration. As to whether the behavior is DAG-specific: we believe the fixed-point mechanism itself is general, since any residual attention update is a candidate fixed-point iteration, consistent with the broader phenomenon the reviewer alludes to. The DAG-specific ingredient is only which fixed points are stable, namely the acyclicity bias induced by the reconstruction-plus-constraint training objective. Making this precise beyond DAG learning (e.g., for other constrained inverse problems) is an exciting direction we now discuss in the revision.
[1] Von Oswald, Johannes, et al. "Transformers learn in-context by gradient descent." International Conference on Machine Learning. PMLR, 2023.
[2] Ahn, Kwangjun, et al. "Transformers learn to implement preconditioned gradient descent for in-context learning." Advances in Neural Information Processing Systems 36 (2023): 45614-45650.
[3] Vladymyrov, Max, et al. "Linear transformers are versatile in-context learners." Advances in Neural Information Processing Systems 37 (2024): 48784-48809.
[4] Zhang, Ruiqi, Spencer Frei, and Peter L. Bartlett. "Trained transformers learn linear models in-context." Journal of Machine Learning Research 25.49 (2024): 1-55.
[5] Lu, Yue M., et al. "Asymptotic theory of in-context learning by linear attention." Proceedings of the National Academy of Sciences 122.28 (2025): e2502599122.
[6] Zhang, Jiaqi, et al. "Towards causal foundation model: on duality between optimal balancing and attention." Forty-first International Conference on Machine Learning. 2024.
[7] Nguyen, Tan M., et al. "A primal-dual framework for transformers and neural networks." arXiv preprint arXiv:2406.13781 (2024).
Regarding Weakness 4 and Question 3. We thank the reviewer for pointing this out and apologize for the inconvenience in inspecting the figures. In the revision we have regenerated Figures 2 and 3 and the appendix trajectory plots with substantially larger legends, axis labels, and annotations, and we have carefully proofread the manuscript to fix the typos and notation inconsistencies (a full list of corrections is included in the revision summary).
We hope our responses have addressed all of the reviewer's concerns. If any point remains unclear or unresolved, please let us know and we would be glad to provide further clarification or additional experiments during the discussion period. Otherwise, we would be very grateful if the reviewer would consider re-evaluating our submission and raising their score.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Area Chair tE5L (Point 1 - part 1)
We thank the AC for distilling the discussion into three concrete issues. We address each of them below, and report the new experiments that we have run in response.
1. Generalizability beyond the pretraining distribution, and sensitivity to the number of pretraining domains M. This concern is raised by Reviewer KqNn (W1) and, in the form of the number of pretraining domains, by Reviewer ccuy (W3, Q2) and Reviewer FnkC (W3, Q3); we give the full answer here as well as in the individual responses. We would first emphasize that ADAG's generalization is not limited to the pretraining distribution. The ideal case is to train on a set of domains covering as much variety as possible, but in practice this is challenging, or even impossible, at large variable dimensions. We therefore deliberately probe generalization by controlling the data-generating distribution along four axes, and in every case below the trained model is applied zero-shot to data it never saw during training.
We observe no degradation on either unseen family. We would caution against reading this as the out-of-family setting being easier, since the sampled BA and SBM graphs are also slightly sparser; normalizing by edge count, the three settings are essentially indistinguishable (SHD per edge 0.018, 0.017, 0.017). The appropriate conclusion is that the learned operator does not degrade under a shift in graph family, exactly as the edge-coverage mechanism above predicts.
Noise type. In Appendix D.3 (Table 6), a model trained on Gaussian noise is evaluated zero-shot on exponential and Gumbel noise and remains the most accurate method (SHD 0.113 and 0.057), confirming that the learned inverse map is not tied to the training noise distribution.
Causal mechanism. ADAG applies to both linear and nonlinear SEMs, and we develop separate formulations because each admits its own guarantees. Beyond that, we find transferability across mechanisms when only an easily trained linear model is available: the table below reports the ER2 d=10 setting, where an ADAG model trained on linear SEM data is applied directly to data generated from nonlinear SEMs.
Even under this mechanism mismatch, ADAG retains its accuracy and remains competitive with methods designed for the nonlinear setting.
Taken together, these results support a claim considerably stronger than in-distribution generalization. They are also consistent with Proposition E.7, whose total-variation bound predicts degradation controlled by the size of the structural shift, and with the edge-coverage mechanism: training needs to cover the candidate edges rather than enumerate structures.