Transformers Provably Learn Directed Acyclic Graphs via Kernel-Guided Mutual Information
Not on the map. Why?
Abstract (arXiv)
Uncovering hidden graph structures underlying real-world data is a critical challenge with broad applications across scientific domains. Recently, transformer-based models leveraging the attention mechanism have demonstrated strong empirical success in capturing complex dependencies within graphs. However, the theoretical understanding of their training dynamics has been limited to tree-like graphs, where each node depends on a single parent. Extending provable guarantees to more general directed acyclic graphs (DAGs) -- which involve multiple parents per node -- remains challenging, primarily due to the difficulty in designing training objectives that enable different attention heads to separately learn multiple different parent relationships. In this work, we address this problem by introducing a novel information-theoretic metric: the kernel-guided mutual information (KG-MI), based on the f-divergence. Our objective combines KG-MI with a multi-head attention framework, where each head is associated with a distinct marginal transition kernel to model diverse parent-child dependencies effectively. We prove that, given sequences generated by a K-parent DAG, training a single-layer, multi-head transformer via gradient ascent converges to the global optimum in polynomial time. Furthermore, we characterize the attention score patterns at convergence. In addition, when particularizing the f-divergence to the KL divergence, the learned attention scores accurately reflect the ground-truth adjacency matrix, thereby provably recovering the underlying graph structure. Experimental results validate our theoretical findings.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 32 of its 52 references that are in the map. First posted on arXiv 29 Oct 2025.
Builds on
32 of 52 references.
References · 32
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023GPT-4 Technical Reportcited by 18,132
- 2017Graph Attention Networkscited by 8,854
- 2019A Comprehensive Survey on Graph Neural Networkscited by 2,906
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2016Variational Graph Auto-Encoderscited by 1,373
- 2021How Attentive are Graph Attention Networks?cited by 818
- 2018DAGs with NO TEARS: Continuous Optimization for Structure Learningcited by 745
- 2020A Generalization of Transformer Networks to Graphscited by 653
- 2023Trained Transformers Learn Linear Models In-Contextcited by 331
- 2019DAG-GNN: DAG Structure Learning with Graph Neural Networkscited by 329
20 more
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2013Learning Bayesian Networks: The Combination of Knowledge and Statistical Datacited by 185
- 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 115
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 114
- 2023In-Context Convergence of Transformerscited by 112
- 2022Vision Transformers provably learn spatial structurecited by 92
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2024Transformers Provably Solve Parity Efficiently with Chain of Thoughtcited by 49
- 2024Unveiling Induction Heads: Provable Training Dynamics and Feature Learning in Transformerscited by 46
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 36
- 2024How Do Nonlinear Transformers Learn and Generalize in In-Context Learning?cited by 35
- 2014Addendum on the scoring of Gaussian directed acyclic graphical modelscited by 32
- 2024Graph Transformers: A Surveycited by 32
- 2024From Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample Efficiencycited by 28
- 2024Transformers on Markov Data: Constant Depth Sufficescited by 26
- 2025How Transformers Learn Regular Language Recognition: A Theoretical Study on Training Dynamics and Implicit Biascited by 10
- 2024On Limitation of Transformer for Learning HMMscited by 9
- 2025Multi-head Transformers Provably Learn Symbolic Multi-step Reasoning via Gradient Descentcited by 7
- 2024A Theoretical Analysis of Self-Supervised Learning for Vision Transformerscited by 6
- 2024An Information-Theoretic Approach to Understanding Transformers' In-Context Learning of Variable-Order Markov Chainscited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.