Can Circuit Alignment Predict OOD Generalization?

Ayan Banerjee, Abhra Chaudhuri, Josep Llados, Umapada Pal, Anjan Dutta
9/25/2026
cs.LG

Official code: ayanban011/ACE (0 stars, Jupyter Notebook, GPL-2.0, last commit 2026-09-25).

Abstract

Can out-of-distribution (OOD) generalization be predicted from a trained model's weights alone, without any target-domain data? Existing representational similarity metrics (CKA, SVCCA, RSA) compare activations rather than forecast generalization.

Show full abstract

We show they are provably insensitive to structural rerouting in the computational graph, the very change distribution shift induces. We close this gap with the Circuit Alignment Score (CAS), which compares class-specific circuits across domains via graph kernels, decomposed into same-class coherence and cross-class confusion. Casting CAS as a Lebesgue integral over the domain distribution, we prove its Monte Carlo estimate recovers the ground-truth ranking of learners by OOD accuracy, with pairwise inversion error vanishing at rate $O(1/M)$, where $M$ is the number of sampled domains. Across $48$ learners on PACS, CAS attains $0.88$ rank correlation with OOD accuracy, versus $0.58$ (CKA), $0.23$ (SVCCA), and $0.14$ (RSA), with similar trends on other benchmarks and even against data-dependent methods, making it the first provably consistent predictor of distributional robustness requiring neither target-domain data nor labels. The code is available at: https://github.com/ayanban011/ACE

View on arXivView PDF

Code Implementations(1)

ayanban011/ACEOfficial100%
GPL-2.0

[NeurIPS 2026] Can Circuit Alignment Predict OOD Generalization?

00Jupyter Notebook, PythonMay 2, 20262 months agoGPL-2.0

Similar Papers

Cite this paper

@article{banerjee2026circuit,
  title  = {Can Circuit Alignment Predict OOD Generalization?},
  author = {Ayan Banerjee and Abhra Chaudhuri and Josep Llados and Umapada Pal and Anjan Dutta},
  year   = {2026},
  eprint = {2609.31996},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.31996v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.31996.svg)](https://codeofpaper.com/paper/2609.31996)

Discussion