# Attention-Based Pretraining for Unsupervised Amortized Causal Discovery

*Naiyu Yin, Tian Gao, Yue Yu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153811) · [Open on the map](../papers.html#p153811)

Category: [Causality, Privacy & Learning Theory](../pcat/11.md) › [Causal Discovery](../pgroup/355.md) · Type: new method · Keywords: causal discovery, DAG learning, linear transformer, amortized inference, multi-domain pretraining

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Dynamic and relational architectures › Causal Models; [Causal Inference](../areas/causal-inference.md) › Causal Learning › Causal Discovery for Temporal Systems; [Graph Learning](../areas/graph-learning.md) › Multidimensional Graph Learning › Causal Discovery

## Summary
Attention-DAG introduces a linear transformer architecture that amortizes DAG learning across multiple domains, enabling zero-shot inference of causal structures.

## Explained to a 5-year-old
The paper wants to figure out how things cause each other by drawing pictures called DAGs. It makes a special kind of brain (a linear transformer) that learns from many different sets of things at once. This brain learns a rule that can guess the cause picture for new things it has never seen before. Because it learns from many examples, it becomes fast and works well even when there are only a few examples. This helps researchers understand how things influence each other without having to redo a lot of work.

## Explained to a 5-year-old, longer
The paper is about finding out which things cause other things in the world. It draws a picture called a DAG that shows the direction of cause and effect. Usually, figuring this out is hard because it takes a lot of time and needs many examples. The authors created a new kind of learning tool that can look at many different groups of things at the same time. This tool learns a general rule that works for many different kinds of problems. Because it learns from many examples, it can quickly guess the cause picture for a new set of things without any extra training. The tool also works well even when there are only a few examples to learn from. The researchers showed that this approach beats older methods in how accurate and fast it is. They also proved that the tool’s learning process follows a special mathematical pattern, like a fixed-point iteration. This gives a better understanding of why the tool works and how it can be used in other areas. Overall, the work makes it easier to discover causal relationships in many scientific and AI tasks. It reduces the need to start from scratch each time a new problem is tackled.

## For a technical reader
The paper addresses the challenge of learning causal Directed Acyclic Graphs (DAGs) from limited data, which is computationally intensive and often inaccurate. They propose a linear transformer architecture pretrained on multiple domains that learns a mapping from observations to both graph structures and underlying structural equation model parameters. This amortized design enables zero-shot inference of causal graphs in new domains without retraining, effectively turning attention mechanisms into a fixed-point solver for the underlying optimization. Empirical evaluations on synthetic and realistic benchmarks demonstrate superior accuracy and efficiency, especially in low-sample regimes. The work also provides theoretical insight linking attention dynamics to constraint optimization, offering a new perspective on how neural models can solve causal discovery problems.

## Problem
Learning causal Directed Acyclic Graphs (DAGs) from data is computationally expensive and suffers from low accuracy when sample sizes are small. Existing methods typically learn a graph per domain, lacking efficient generalization to new domains.

## Method
The approach employs a linear transformer pretrained on multiple domains to learn a nonlinear mapping from observational data to both graph structures and SEM parameters. This enables amortized inference, allowing zero-shot prediction of causal graphs in unseen domains without retraining.

## Results
The approach achieves significantly higher accuracy and efficiency than existing baselines, especially in low-data regimes.

## Contributions
It introduces a novel linear transformer architecture for amortized DAG learning that leverages multi-domain knowledge and enables zero-shot inference of causal structures. Additionally, it provides theoretical insight that attention acts as a fixed-point iterative solver for the underlying optimization problem.

## Research questions this paper is counted under

- [How can we reliably infer causal structures from limited, noisy, or heterogeneous data across diverse domains?](../q/98.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153811)
