· 1 min readsuper

Causal Discovery: Making LLMs Better with Causal Ordering

Originally published in Causal Python weekly. Sign up and get up-to-date coverage of Causal AI for free.

causal-order-diagram

Over the past few years, large language models (LLMs) have been increasingly gaining attention in the causal community as potential helpers in causal discovery, even though they’re not perfect experts.

A recent paper presented at the ICLR by Aniket Vashishtha, Amit Sharma and a cross-disciplinary team (Microsoft Research, UIUC, CISPA, MIT, and IIT Hyderabad), argues that causal order is a more effective approach for leveraging expert knowledge than forcing it to convey a completely defined causal graph.

As they point out, an optimal (perfect) expert prompted with only two variables at a time could incorrectly predict the underlying causal graph but will always predict the causal order correctly.

The authors also propose a new strategy to prompt any expert (human or not, perfect or not).

Instead of asking about each pair of variables in isolation, include a third variable for context.

This triplet method improves performance across several metrics, including the number of cycles, Structural Matching Error (SME), and a novel measure based on topological divergence.

By balancing additional context with minimal added complexity, the triplet method reliably reduces error.

In fact, the probability of error when using triplets is always less than or equal to the probability of error with standard pairwise prompts.

The code is not currently available, but the authors promised to add it soon here.

Explore the paper

Written by Alberto D. Horner