Causal Discovery from Data Assisted by Large Language Models

Kamyar Barakati, Alexander Molak, Chris Nelson, Xiaohang Zhang, Ichiro Takeuchi, Sergei V. KalininarXiv 2025 · DOI

Abstract: Determining causal relationships in complex materials systems remains a significant challenge due to the limitations of purely data-driven methods and the slow pace of traditional physics-based modeling. This paper introduces a hybrid framework that integrates Large Language Models (LLMs) with statistical causal discovery algorithms. By leveraging GPT-4 to extract domain-specific priors from scientific literature, we refine data-driven models to map the structural and chemical influences on polarization in Samarium-doped Bismuth Ferrite ($SmBiFeO_3$). Our results demonstrate that LLM-informed causal graphs are more physically consistent and interpretable than those derived from observational data alone, identifying a critical $I_{14} \rightarrow a \rightarrow P_x$ causal pathway.

Introduction

In the field of materials science, high-resolution characterization techniques like Scanning Transmission Electron Microscopy (STEM) provide a wealth of observational data. However, translating these observations into a fundamental understanding of causality—distinguishing between mere correlation and true physical influence—is difficult. For instance, while chemical composition and electrical polarization often vary together, determining if one causes the other or if both respond to a latent structural variable is a non-trivial task.

Traditional physics-based models are the gold standard for reliability but are often too slow or complex to derive for novel materials. Conversely, machine learning models can rapidly identify patterns but frequently fall prey to "spurious correlations"—patterns that look meaningful in a specific dataset but do not represent actual physical laws. This work addresses this gap by using LLMs to inject established scientific knowledge into the causal discovery process, acting as a bridge between data-driven speed and physical rigor.

Methods and Data

The study focuses on Samarium-doped Bismuth Ferrite (SmBFO), a complex ferroelectric material. The researchers utilized high-resolution STEM to extract local descriptors, including atomic column intensities ($I_{14}$ for A-site cations like Bi and Sm, and $I_5$ for B-site cations like Fe) and lattice parameters such as the unit cell angle ($\alpha$) and lattice constant ($a$).

STEM imaging and structural model of Sm-doped BiFeO3, showing A-site and B-site cation distributions and the resulting polarization domains.

The core of the methodology involves a multi-step hybrid workflow:

  1. Statistical Discovery: The Peter-Clark (PC) algorithm was used to perform conditional independence tests on the experimental data, initially generating an undirected or partially directed graph.
  2. LLM Integration: GPT-4-turbo was deployed as an agent to query the scientific literature (specifically the arXiv database). The model was tasked with evaluating potential causal relationships between pairs of variables based on existing research.
  3. Refinement: The LLM's outputs were converted into structural priors—rules that "require" or "forbid" specific edges in the causal graph. This ensures the final model respects known physical laws.

Key Insights and Results

The integration of LLMs significantly improved the interpretability of the resulting Directed Acyclic Graphs (DAGs). While purely statistical methods often produce "fully connected" graphs where every variable appears related to every other, the LLM-informed approach acts as a physical filter, removing connections that contradict known physical laws.

Evolution of causal graphs: (a) initial undirected correlations, (b) partially directed graph, and (c) the final LLM-informed directed acyclic graph showing clear causal pathways.

A primary result of this refinement was the identification of the $I_{14} \rightarrow a \rightarrow P_x$ pathway. This suggests that modifications in the A-site chemistry ($I_{14}$) cause specific structural lattice distortions ($a$), which then directly dictate the material's in-plane polarization ($P_x$). This clear causal chain provides a specific "design knob" for engineers. Furthermore, the hybrid approach's results converged with those of the LiNGAM (Linear non-Gaussian Acyclic Model), providing robust cross-validation of the identified physical relationships.

Conclusion

This hybrid framework demonstrates the potential of LLMs to serve as structured knowledge extractors, transforming thousands of unstructured research papers into actionable priors for statistical algorithms. While challenges such as LLM hallucination and the need for more granular microscopic data remain, this approach paves the way for a more automated, physically-grounded discovery process in materials science. Future work will aim to create a continuous loop where real-time experimental data and literature-driven insights work together to engineer materials with precisely tuned functionalities.

Summary updated

BibTeX
@misc{barakati2025causal,
  author = {Kamyar Barakati and Alexander Molak and Chris Nelson and Xiaohang Zhang and Ichiro Takeuchi and Sergei V. Kalinin},
  title = {{Causal Discovery from Data Assisted by Large Language Models}},
  year = {2025},
  eprint = {2503.13833},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.13833},
}
Figure