Certified Circuits: Stability Guarantees for Mechanistic Circuits
1Max Planck Institute for Informatics2CISPA Helmholtz Center for Information Security* Equal contribution
ICML 2026
TL;DRCertified Circuits wraps any circuit discovery algorithm and keeps only the components that provably stay in the circuit when the concept dataset is edited. The resulting circuits are up to 80% smaller and up to 56% more accurate than uncertified baselines.

Introduction
Circuits are minimal subnetworks responsible for a specific model behavior, discovered from a concept dataset of example inputs. Existing discovery methods are brittle: swapping a few semantically equivalent examples can change the circuit, and circuits often fail on out-of-distribution data, so it is unclear whether they capture the concept or dataset-specific artifacts. Certified Circuits gives the first provable guarantee against this: for any dataset within r insertions, deletions, or substitutions of the original, the certified circuit stays the same. Components without a stable decision are left out, which makes circuits both smaller and more accurate (Figure 1).
Method
Certified Circuits works with any black-box discovery algorithm. We create n random sub-datasets by deleting each concept example with probability p_del, run discovery on each one, and record how often each neuron or edge is selected (Figure 2).
A component whose inclusion probability exceeds a threshold τ is certified in; one whose exclusion probability exceeds τ is certified out; all others are abstained and dropped from the circuit. With confidence 1 − α, certified decisions hold for every dataset within edit distance r = ⌊log(1.5 − τ) / log p_del⌋.
Experimental Setup
For vision, we certify top-K relevance circuits on ResNet-101 and ResNet-50 for 100 ImageNet classes, and test them on four out-of-distribution (OOD) datasets: OOD-CV, ImageNet-A, ImageNet-O, and ImageNet-C. For language, we certify EAP-IG circuits on GPT-2 Small for IOI, IOI-Hard, and Greater-Than.
We report circuit-class accuracy (cACC), the accuracy of the model restricted to the circuit, and circuit size K, the fraction of components kept. All results use n = 1,000 and α = 0.001; the vision radius is r = 1 (p_del = 0.6, τ = 0.95).
Results
Circuit Sufficiency and Compactness
Certified circuits match or exceed the baseline’s peak accuracy on every dataset and task while being smaller. On ImageNet, they reach 95% cACC versus 83%, with 52% fewer components (Table 1).
Large vision circuits admit competing or spurious features, so accuracy drops as K grows. Certified circuits peak earlier and higher (Figure 3).
On GPT-2 Small, both methods reach 100% cACC in distribution, but certified circuits need 58%, 38%, and 75% fewer edges on IOI, IOI-Hard, and Greater-Than (Figure 4).
Feature Visualization of Circuits
For the digital-watch class, certified-in neurons respond to watch faces and dials. The neurons that certification abstains on, but the baseline keeps, fire on hands, wrists, or spurious patterns. Removing them raises cACC from 78% to 98% with 34% fewer components (Figure 5).
More neuron examples from other classes
Accuracy of the digital watch circuit: 78% with the baseline, 98% certified (+26%), with a 34% smaller circuit.
Kept by the baseline, dropped by certification. They tend to fire on co-occurring or spurious cues.

Top-activating image patches, two neurons per layer, ResNet-101.
Out-of-Distribution Generalization
Circuits discovered on ImageNet transfer to shifted data without rediscovery. Certified circuits reach 93% cACC on OOD-CV (baseline 73%) and 94% on ImageNet-A (baseline 60%), where the full model reaches only 20% and 7%. On OOD language prompts, they use up to 80% fewer edges at equal or higher accuracy (Table 1).
Structural Stability Under Distribution Shift
When a circuit is rediscovered on shifted data, certified circuits overlap more with the original ImageNet circuit: their intersection-over-union is generally higher and varies less across classes. ImageNet-O is the exception, with high variance for both methods (Figure 6).
Conclusion
Certified Circuits certifies that a circuit stays unchanged under bounded edits to its concept dataset. Abstaining on unstable components gives circuits that are smaller, at least as accurate, and more reliable under distribution shift.
Citation
@inproceedings{anani2026certified,
title = {Certified Circuits: Stability Guarantees for Mechanistic Circuits},
author = {Anani, Alaa and Lorenz, Tobias and Schiele, Bernt and Fritz, Mario and Fischer, Jonas},
booktitle = {Proceedings of the 43rd International Conference on Machine Learning},
series = {Proceedings of Machine Learning Research},
volume = {306},
pages = {2650--2676},
year = {2026}
}




