potentialpaper

ECAM: Enhancing Causal Reasoning in Foundation Models with Endogenous Causal Attention Mechanism

Ziyi Liu, Yuxuan Xiong

ICLR 2026 submission

Edit this page

Or clone it with git

The page gets its repository with its first edit, so start in the web editor.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Attention mechanisms in foundation models are powerful but often capture spurious correlations rather than true causal dependencies. We propose the Endogenous Causal Attention Mechanism (ECAM), a plug-and-play module that integrates structural causal modeling into transformer-based architectures. ECAM learns Local Causal Graphs (LCGs) from data or expert priors and leverages them to modulate attention scores, enabling interventional and counterfactual reasoning within the model. Unlike prior approaches such as CausalVAE or causal regularization in pretraining, ECAM directly embeds causal graphs into the attention computation, making it task-agnostic and adaptable to both NLP and vision tasks. We provide theoretical analysis of its structural guarantees and extensive empirical results on causal reasoning benchmarks (CLUTRR, causal VQA, and synthetic data), showing that ECAM improves robustness, interpretability, and generalization. Our work highlights a novel pathway to endow foundation models with causal-awareness, offering a reusable causal reasoning layer that can serve as a building block for future causal foundation models.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…