atlas

Research map / Probabilistic and scientific modeling / Causal discovery

Teaching Transformers Causal Reasoning through Axiomatic Training

ICML 2025 · Probabilistic and scientific modeling › Causal discovery · approach: Causal representation identifiability · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Trains a 67M GPT-2-style transformer from scratch on synthetic axiomatic demonstrations of transitivity and d-separation, then fine-tunes Llama-3-8B-Instruct on the same data to improve causal benchmarks (Corr2Cause, CLEAR).

Problem

Whether causal reasoning (transitivity axiom and d-separation rule) can be learned by language models directly from symbolic demonstrations of causal axioms, and whether this generalizes to more complex causal graphs and to existing causal reasoning benchmarks.

Approach

Axiomatic training: generate large synthetic <premise, hypothesis, conclusion> tuples from simple chain-like causal graphs and train models (from scratch or via fine-tuning) to apply causal axioms, relying on data diversity (random edge flipping) and positional encoding choice for out-of-distribution generalization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
fine-tune Llama-3-8B-Instruct on d-separation axiomatic dataLlama-3-8B-Instruct · CLEAR D-Separation YNaccuracy: 60.0 -> 70.0Helped
fine-tune Llama-3-8B-Instruct on d-separation axiomatic dataLlama-3-8B-Instruct · CLEAR D-Separation MCaccuracy: 33.0 -> 50.0Helped
fine-tune Llama-3-8B-Instruct on transitivity axiomatic dataLlama-3-8B-Instruct · Corr2CauseF1: 0.11 -> 0.32Helped
add random edge flipping to sequential-chain training data (TS1/TS2 instead of OCC) (ablation)67M transformer trained for transitivity · Transitivity, reversed chainsaccuracy: OCC w NoPE: 0.41, 0.24, 0.18, 0.13; OCC w RoPE: 0.59, 0.26, 0.22, 0.20Helped
increase the proportion of sequential chains and reduce random-flipping examples (TS2 versus TS1) (ablation)67M transformer trained for transitivity · Transitivity, generalization across evaluation setupsaccuracyHelped
use sinusoidal or learnable positional encoding instead of no positional encoding (ablation)67M transformer trained for transitivity · Transitivity, longer node namesaccuracyHurt
use sinusoidal positional encoding instead of rotary positional encoding (ablation)67M transformer trained for transitivity · Transitivity, branching and order-based settingsaccuracyHurt
use rotary positional encoding rather than NoPE, LPE, or SPE (ablation)67M transformer trained for transitivity · Transitivity, branching factor 1.4accuracy: TS2 w RoPE: 0.88; TS2 w LPE: 0.80; TS2 w SPE: 0.79; TS2 w NoPE: 0.82Helped
use rotary positional encoding instead of NoPE (ablation)67M transformer trained for d-separation · d-separation, branching factor 1.4accuracy: 0.70, 0.58, 0.54, 0.52Mixed

Surprising findings

Limitations

Experimental setup

Datasets: synthetic transitivity demonstrations (chains of 3-6 nodes with random flipping) synthetic d-separation demonstrations (3-6 nodes)

Benchmarks: Corr2Cause CLEAR synthetic transitivity evaluation (MultiEval_SLR, reversed chains, branched ER graphs) synthetic d-separation evaluation

Metrics: accuracy F1

Baselines: GPT-4 Gemini Pro Phi-3 Llama-3-8B-Instruct

Builds on: Llama-3-8B-Instruct GPT-2 Corr2Cause CLEAR

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy