Paper deep dive
Certified Circuits: Stability Guarantees for Mechanistic Circuits
Alaa Anani, Tobias Lorenz, Bernt Schiele, Mario Fritz, Jonas Fischer
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 92%
Last extracted: 7/20/2026, 9:36:14 AM
Summary
The paper introduces 'Certified Circuits', a framework for mechanistic interpretability that provides provable stability guarantees for circuit discovery in neural networks. By wrapping black-box discovery algorithms with randomized data subsampling (specifically dataset deletion smoothing), the method certifies that circuit components (neurons or edges) are invariant to bounded edit-distance perturbations of the concept dataset. This results in more compact, accurate, and out-of-distribution (OOD) generalizable circuits compared to baseline methods, validated across ResNet, ViT, and GPT-2 architectures on vision and language tasks.
Entities (10)
Relation Signals (10)
Certified Circuits â uses â Randomized Smoothing
confidence 95% · Our framework wraps any black-box discovery algorithm with randomized data subsampling
Certified Circuits â validateson â ResNet
confidence 95% · We validate across three architectures (ResNet, ViT, GPT-2)
Certified Circuits â validateson â ViT
confidence 95% · We validate across three architectures (ResNet, ViT, GPT-2)
Certified Circuits â validateson â GPT-2
confidence 95% · We validate across three architectures (ResNet, ViT, GPT-2)
Certified Circuits â validateson â ImageNet
confidence 92% · on vision (ImageNet and four OOD datasets)
Certified Circuits â validateson â IOI
confidence 92% · and language (IOI, IOI-Hard, Greater-Than) tasks.
Certified Circuits â improves â Accuracy
confidence 90% · Certified circuits achieve up to 56% higher accuracy
Certified Circuits â reduces â Circuit Size
confidence 90% · up to 80% fewer components
RS-Del â istypeof â
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Understanding how neural networks arrive at their predictions is essential for debugging, auditing, and deployment. Mechanistic interpretability pursues this goal by identifying circuits--minimal subnetworks responsible for specific behaviors. However, existing circuit discovery methods are brittle: circuits depend strongly on the chosen concept dataset and often fail to transfer out-of-distribution, raising doubts whether they capture the concept or merely dataset-specific artifacts. We introduce Certified Circuits, which provide provable stability guarantees for circuit discovery. Our framework wraps any black-box discovery algorithm with randomized data subsampling to certify that inclusion decisions over circuit components--neurons or edges of the model graph, depending on the base algorithm--are invariant to bounded edit-distance perturbations of the concept dataset. Unstable components are abstained from, yielding circuits that are more compact and more accurate. We validate across three architectures (ResNet, ViT, GPT-2) on vision (ImageNet and four OOD datasets) and language (IOI, IOI-Hard, Greater-Than) tasks. Certified circuits achieve up to 56% higher accuracy and up to 80% fewer components, and remain reliable where baselines degrade. Certified Circuits puts circuit discovery on formal ground by producing mechanistic explanations that are provably stable and better aligned with the target concept. Code: this https URL.
Tags
Links
- Source: https://arxiv.org/abs/2602.22968v3
- Canonical: https://arxiv.org/abs/2602.22968v3
Trouble viewing inline? Open PDF directly â
Full Text
85,719 characters extracted from source content.
Expand or collapse full text
Certified Circuits: Stability Guarantees for Mechanistic Circuits Alaa Anani 1 2 Tobias Lorenz 2 Bernt Schiele 1 Mario Fritz * 2 Jonas Fischer * 1 predict Semantic features Spurious cues Crocodile dataset D Layer 1Layer 2Layer 3Layer 4 Neuronâs top activating patches predict 94% accuracy 58% accuracy Certified Circuit Baseline Circuit Certified Circuit (ours) Baseline Circuit (a) Certified circuits, here for âAfrican crocodileâ, remove spurious cues. ImageNet (IN) IN-C corruption IN-A natural adversarial IOI distracting prompts IN-O anomalies OOD-CV context shift IOI-Hard Certified (ours) Baseline OOD test Circuit size â Accuracy â Better Vision ResNet-101 Language GPT-2 Small IOI ImageNet Corruption Natural adversarial IOI-Hard Distracting prompts Anomalies Context shift Certified (ours) Baseline OOD test Circuit size â Accuracy â Better Vision (ResNet101) Language (GPT2-Small) IOI (b) Certified circuits are more compact (x) and more accurate (y). Figure 1. Certified circuits are smaller, more accurate, and generalize to OOD. Given a concept dataset, we isolate a circuitâa subnetwork encoding that conceptâthat is provably stable under dataset edits. (a) Certified circuits keep stable semantic neurons (e.g., teeth) and abstain from unstable spurious ones (e.g., bird), improving the âAfrican crocodileâ circuit accuracy to94%. (b) Across distribution shifts (OOD test), certified circuits are significantly smaller and more accurate than baseline circuits. Abstract Understanding how neural networks arrive at their predictions is essential for debugging, auditing, and deployment. Mechanistic interpretability pur- sues this goal by identifying circuitsâminimal subnetworks responsible for specific behaviors. However, existing circuit discovery methods are brittle: circuits depend strongly on the chosen concept dataset and often fail to transfer out-of- distribution, raising doubts whether they capture the concept or merely dataset-specific artifacts. We introduce Certified Circuits, which provide provable stability guarantees for circuit discov- ery. Our framework wraps any black-box dis- covery algorithm with randomized data subsam- pling to certify that inclusion decisions over cir- * Equal contribution 1 Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbr Ì ucken, Germany 2 CISPA Helmholtz Center for Information Security, Saarbr Ì ucken, Germany. Correspondence to: Alaa Anani <aanani@mpi-inf.mpg.de>. Proceedings of the43 rd International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s). cuit componentsâneurons or edges of the model graph, depending on the base algorithmâare in- variant to bounded edit-distance perturbations of the concept dataset. Unstable components are ab- stained from, yielding circuits that are more com- pact and more accurate. We validate across three architectures (ResNet, ViT, GPT-2) on vision (Im- ageNet and four OOD datasets) and language (IOI, IOI-Hard, Greater-Than) tasks. Certified circuits achieve up to 56% higher accuracy and up to 80% fewer components, and remain reliable where baselines degrade. Certified Circuits puts circuit discovery on formal ground by producing mechanistic explanations that are provably stable and better aligned with the target concept. Code: https://github.com/AlaaAnani/certified-circuits. 1. Introduction Understanding how neural networks arrive at their predic- tions is a central challenge in machine learning. Mecha- nistic interpretability tackles this by identifying circuitsâ minimal subnetworks responsible for specific model behav- 1 arXiv:2602.22968v3 [cs.AI] 28 May 2026 Certified Circuits iors (Olah et al., 2020; Conmy et al., 2023; Elhage et al., 2021). In vision models, for instance, a circuit for recog- nizing âcrocodileâ might comprise particular convolutional filters detecting scales, sharp teeth, and elongated snouts, connected through specific neurons across subsequent lay- ers. Discovering such circuits promises not only scientific insight into learned representations but also practical ben- efits: debugging failure modes, auditing for biases, and enabling targeted model editing. Circuit discovery methods have emerged across modalities. In language models, activation patching and causal tracing isolate attention heads and MLP neurons responsible for factual recall, indirect object identification, and other behav- iors (Meng et al., 2022; Wang et al., 2023; Goldowsky-Dill et al., 2023). In vision, analogous methods prune model components to find minimal sufficient subnetworks for rec- ognizing visual concepts (Rajaram et al., 2023; Olah et al., 2020; Dreyer et al., 2024; Ì Zukowska et al., 2026). These ap- proaches start with a concept dataset: a collection of inputs representing the target behavior. They then identify which model components are necessary or sufficient to maintain performance on this dataset, discarding the rest. The re- sult is a sparse circuit, i.e., a subgraph of the model graph intended to capture the mechanistic basis of the behavior. However, current circuit discovery methods lack robust- ness (M Ì eloux et al., 2025; uit de Bos & Garriga-Alonso, 2024; Miller et al., 2024; Friedman et al., 2024). The identified circuits are sensitive to the choice of concept dataset: adding, removing, or substituting a few semanti- cally equivalent examples can change the discovered cir- cuit unpredictably. They also fail to generalize to out-of- distribution (OOD) data. A circuit found using photographs of crocodiles on land may perform poorly on crocodiles in water, cartoon crocodiles, or crocodiles from unusual an- gles. Both issues stem from the same underlying problemâ current methods overfit to the particular concept dataset rather than recovering the actual concept representation. This undermines confidence in the mechanistic explanation these methods produce. To address this, we introduce Certified Circuits (Fig. 2), a framework that computes the first dataset-level robustness guarantees for circuit discovery. Given a concept datasetD and any black-box circuit discovery algorithm, we construct a certified circuit C â with the following guarantee: For any concept datasetD âČ within edit distancerofD, the certified circuit C â provably remains unchanged. Edit distance counts insertions, deletions, or substitutions of examplesâsor = 5guarantees stability under any combi- nation of up to five such changes. This covers an exponen- tially large family of datasets. Our framework is algorithm-agnostic: we (i) randomly sub- sample the concept dataset several times, (i) run the base al- gorithm on each subsample to obtain candidate circuits, and (i) aggregate votes for each individual circuit component to determine which components are guaranteed to represent the concept across perturbed datasets. A key byproduct is adaptive sparsity: certification identifies components for which no robust decision can be made, yielding circuits that are more compact and accurate than fixed top-K baselines. In summary, we make the following contributions: 1.We introduce Certified Circuits, the first framework providing provable, algorithm-agnostic robustness guarantees for circuit discovery. 2. We derive provable bounds on certified radii and char- acterize their dependence on a probability threshold and deletion probability required for subsampling. 3.We demonstrate empirically across three architectures (ResNet, ViT, GPT-2), two modalities (vision, lan- guage) and four discovery algorithms that Certified Circuits are more compact, more sufficient, and gen- eralize better to OOD than uncertified baselines while being highly structurally stable. We validate Certified Circuits across two modalities and three architectures, evaluating sufficiency (does the circuit preserve model behavior?) and compactness (how small can the circuit be while sufficient?). For vision, we test ResNet- 50/101 and ViT-B/16 on ImageNet and four OOD bench- marks (OOD-CV, ImageNet-A, ImageNet-O, ImageNet- C) with neuron-level top-Kscoring (relevance, activation, rank). For language, we test GPT-2 Small on IOI, IOI- Hard, and Greater-Than with EAP-IG (Hanna et al., 2024) as the base edge-level algorithm. Certified circuits consis- tently outperform uncertified baselines: certified accuracy improves by up to 56% on OOD shifts using up to 41% fewer neurons, and language circuits use up to 80% fewer edges at matched or higher accuracy. These gains hold across modalities, architectures, and base algorithms, con- firming that certification captures more transferable mech- anistic structure while pruning components that are not ro- bustly necessary (Fig. 1). We further analyze structural convergence when circuits are rediscovered on shifted dis- tributions and across random seeds. Certified Circuits lift classic circuit-based mechanistic explanations to provably robust and more compact explanations that empirically bet- ter generalize to OOD data. 2. Related works 2.1. Mechanistic Interpretability Mechanistic interpretability aims to reverse-engineer the internal computations of neural networks, moving beyond input-output behavior to understand how models arrive at 2 Certified Circuits their predictions (Olah et al., 2020; Elhage et al., 2021; Bereska & Gavves, 2024). The field spans observational methods that analyze learned representations (e.g., prob- ing, sparse autoencoders) and interventional methods that causally localize computations through targeted ablations and activation patching (Zeiler & Fergus, 2014; Zimmer- mann et al., 2021; Meng et al., 2022). Circuit discovery. Circuit discovery aims to identify mini- mal subnetworks (circuits) that implement a target behavior or concept. Circuit componentsânodes and edges of the computational graphâcan correspond to feature channels in CNNs, attention heads or head-to-head connections in transformers, MLP neurons, etc., depending on the chosen granularity (Bereska & Gavves, 2024). Typically, one (i) defines a concept via a dataset, (i) represents the model as a computational graph with nodes and edges connect- ing them, and (i) extracts a sparse subgraph whose com- ponents are necessary and/or sufficient for that behavior (Conmy et al., 2023). In language models, this approach has revealed circuits for factual recall (Meng et al., 2022), indirect object identification (Wang et al., 2023), and most recently for verifying chain-of-thought reasoning (Zhao et al., 2026). ACDC (Conmy et al., 2023) automates dis- covery via iterative edge pruning. In vision, circuits have been studied via feature-preserving subnetworks (Hamblin et al., 2022), connectivity-based tracing of concept-specific computations (Rajaram et al., 2023; Wang et al., 2019), disentanglement of polysemantic neurons into concept cir- cuits (Dreyer et al., 2024), and qualitative connectome-style visualizations spanning all layers (Kowal et al., 2024). Stability limitations. A core limitation is that discovered circuits can be highly unstable: swapping in different (but semantically equivalent) examples to represent the same concept (or making small additions/removals) can yield substantially different circuits. This raises a basic ques- tion: is the circuit capturing the concept, or overfitting to dataset-specific spurious cues? Recent work documents and diagnoses such fragility. M Ì eloux et al. (2025) cast circuit discovery as statistical estimation and show that EAP-IG (a transformer circuit discovery method) circuits change markedly even when the same behavior is defined using paraphrased prompts, indicating high variance in the dis- covered structure. Miller et al. (2024) further find that com- mon circuit faithfulness metrics are not robust to evaluation choices. Finally, Friedman et al. (2024) show that explana- tions can appear faithful on the discovery distribution yet fail to generalize, creating interpretability illusions. These works highlight the problem but do not provide solutions that rule out instability. Concurrent work uses neural network verification to certify the faithfulness of a fixed circuit under small input-level perturbations (Hadad et al., 2026); in contrast, our concern is dataset-to-circuit instability, where the discovered circuit itself changes when the concept dataset changes. To our knowledge, no prior method certifies invariance of circuit structure under bounded dataset-level perturbations. 2.2. Robustness Certification A robustness certificate is a worst-case guarantee of output invariance: given an inputxand a radiusr, the certified model provably returns the same prediction for every per- turbed inputx âČ withdist(x,x âČ )†r(otherwise it abstains). Randomized smoothing yields such certificates by aggre- gating the base modelâs predictions under random perturba- tions and converting the resulting probability margin into a certified radius (L Ì ecuyer et al., 2019; Cohen et al., 2019; Anani et al., 2025). Beyond classification, smoothing has been extended to (i) structured outputs via per-component abstention, certifying only confident components in seg- mentation (Fischer et al., 2021; Anani et al., 2024), and (i) discrete objects under edit distance, where RS-Del uses randomized deletions to certify invariance against insertions, deletions, and substitutions within an edit budget (Huang et al., 2023). We build on these ideas to certify circuit component stability under dataset-level edit perturbations. Summary. Circuit discovery is unstable: small edits to the concept dataset, even replacing examples with seman- tically equivalent ones, can produce entirely different cir- cuits, blurring whether the circuit encodes the concept or dataset-specific artifacts. We address this by certifying the dataset-to-circuit mapping: using deletion-based smoothing (RS-Del) (Huang et al., 2023) to model bounded dataset edits, together with circuit component-level certification to exclude the unstable circuit components (Fischer et al., 2021), we return certified circuits whose certified compo- nents are provably invariant to edits within an edit distance. 3. Certified Circuits To overcome the circuit instability in prior work, we for- malize circuit discovery as a dataset-level mapping and ask: which circuit components are provably stable under bounded edits to the concept dataset? Our approach is driven by three goals. First, we seek guarantees (not empiri- cal heuristics) that circuit structure is invariant, ruling out brittleness by construction. Second, edit distance provides a threat model: it captures the scenario where a practitioner adds examples, removes outliers, or swaps in semantically equivalent images, and expects the discovered circuit to re- main unchanged if it encodes the concept. Third, stability under such edits is a prerequisite for out-of-distribution gen- eralization: a circuit that changes when the concept dataset is perturbed cannot be expected to transfer to shifted test distributions. Enumerating all bounded-edit datasets is in- 3 Certified Circuits feasible, so we use randomized smoothing: we run circuit discovery on many random subsamples and aggregate the outcomes to certify stability for all edits within the radius. Our approach (Figure 2). Given a model graphG=(V,E ), a concept datasetD, and any black-box circuit discovery algorithmA, we certify which circuit components (vertices v â Vor edgese â E) are provably stable under bounded dataset edits. After briefly reviewing randomized smoothing, we formalize our setup (§3.1). We then define dataset dele- tion smoothing (RS-Del (Huang et al., 2023); §3.2) and a smoothed circuit discovery rule that aggregates component- wise inclusion probabilities and thresholds them to output certified in/out or abstain (§3.3). We present Theorem 3.1, which guarantees certified decisions are invariant for all datasets within edit-distancer. Finally, we describe the Monte Carlo estimation of the certified circuit discovery algorithm (§3.4) and summarize its key properties (§3.5). Background: Randomized Smoothing We introduce randomized smoothing (L Ì ecuyer et al., 2019; Cohen et al., 2019) as the main technical tool for turning empirical stability under random perturbations into certified robustness guarantees. Letf b :X âYbe a base classifier and letÏ : X â D(X )be a perturbation mechanism that maps an inputxto a distributionÏ(x)over perturbed inputs. Randomized smoothing defines the smoothed classifier f (x) := arg max yâY P zâŒÏ(x) [f b (z) = y].(1) A certificate is obtained by lower-bounding the probability of the predicted class and deriving a radiusrsuch that, with confidence at least 1â α, the prediction is invariant within the corresponding neighborhood, i.e.,f (x) = f (x âČ )for all x âČ satisfying dist(x,x âČ )†r. 3.1. Setup and Inputs LetG = (V,E )denote the model as a directed computa- tional graph, where verticesVare computation units (e.g., neurons, attention heads) and edgesErepresent connec- tions between them. A circuitCis a subgraph ofGspec- ified by selecting some subset of components. LetUde- note the set of circuit components over which the base al- gorithm operates:U â Vfor node-level methods (e.g., neuron-level top-K) andU â Efor edge-level methods (e.g., EAP-IG). We additionally define a concept dataset D = (x 1 ,...,x |D| ) â X â , viewed as a finite sequence of inputs that contain the same concept (e.g., same-class images). Let black-box circuit discovery algorithmAmap a concept dataset to a binary mask over circuit components: A :X â ââ 0, 1 |U| ,(2) whereA u (D) = 1indicates that componentu â Uis included in the circuit associated withDandA u (D) = 0 indicates exclusion. Two common examples ofAare: (i) node-level top-K, which scores vertices onD(e.g., by mean activation, gradient-based relevance, or per-example rank) and retains the top fraction per layer as sparse mask overv â V(Olah et al., 2020; Hamblin et al., 2022; Rajaram et al., 2023; Dreyer et al., 2024); and (i) edge-level attribution (e.g., EAP-IG (Hanna et al., 2024)), which scores edges of the computational graph via integrated gradients and retains the top-scoring fraction, yielding a sparse mask overeâE. The goal is to construct a smoothed (certified) variant Ì A Ï ofAwhose component-wise decisions are provably stable under bounded edit perturbations ofD. 3.2. Dataset Deletion Smoothing To certify robustness of circuit discovery under dataset-level edits, we model the concept datasetD = (x 1 ,...,x |D| ) as a sequence and measure perturbations via edit distance dist edit (D,D âČ ), counting insertions, deletions, and substitu- tions required to transformDtoD âČ . Checking stability un- der all edits is intractable; instead, following RS-Del (Huang et al., 2023), we use randomized deletions as a smoothing perturbation, which yields certificates with respect to the full edit distance. Although concept datasets are naturally un- ordered, we fix an arbitrary ordering solely to definedist edit ; this does not affect the certificate since our base algorithms A depend only on permutation-invariant statistics. We define a deletion-based perturbation distribution Ï p del (D) by sampling an i.i.d. binary mask Δ = (Δ 1 ,...,Δ |D| ), Δ i ⌠Bernoulli(1â p del ), whereΔ i = 1keepsx i andΔ i = 0deletes it. This produces an ordered subsequence: Dâ Δ := (x i | Δ i = 1) = (x i 1 ,...,x i m ),with 1†i 1 <· < i m â€|D|. The random sub-datasetDâ Δis distributed according to Ï p del (D). This perturbation model is the input-side mech- anism underlying our certified guarantees, and it directly connects our setting to RS-Delâs edit-distance certification under deletion-based smoothing (Huang et al., 2023). 3.3. Smoothed Circuit Discovery Given a base circuit discovery algorithmAand the deletion perturbation distributionÏ p del (D), we define the smoothed circuit discovery algorithm Ì A Ï :X â â0, 1,â |U| , which returns for each componentu â Uone of three outcomes: certified in (1), certified out (0), or abstain (â). 4 Certified Circuits A. Concept dataset í B. Model as a graph (í±, í) G= C. Circuit discovery algorithm A A â Inputs Draw masks and apply on the dataset í = í n Δ j âŒBernoulli(1âp del ) j âΔ j í 1 í 2 í n ⥠Sample deletions Run algorithm per dataset sample í A j í A( 1 ) í A( 2 ) í A( n ) âą Circuit per sample Certified in p u >Ï Majority in â Certified out 1âp u >Ï Abstain Otherwise Majority out Unstable Compute per-component inclusion probability (Eq. 3) If is high certify in u p u p u â ⣠Aggregate & Certify Circuit components p u Ï â †Certified circuit With high confidence, every non-abstain component remains in/out for any íâČ with í, íâČ. dist edit ()â€r Figure 2. Certified circuit discovery via concept deletion smoothing. (§3.1) Given a concept datasetD, model graphG, and circuit discovery algorithmA: (§3.2) We sample dataset variants via per-example deletion with probabilityp del , (§3.3) runAon each to obtain per-sample circuits, (§3.4) aggregate per-component (e.g., vertex) inclusion frequencies, (§3.4) certify components as in, out, or abstain (â) based on votes consistency. (§3.5) The certified circuit is provably invariant to concept dataset edits within radius r. The confidence thresholdÏ â [0.5, 1)controls how much posterior mass is required to make a non-abstaining decision: if neither inclusion nor exclusion is sufficiently likely under randomized deletions, the method abstains. To define Ì A Ï , we quantify how consistently algorithmA includes a componentuunder randomized deletions as the smoothed inclusion probability: p u (D) :=P Δ A u Dâ Δ = 1 , Δ i ⌠Bernoulli(1â p del ) i.i.d. (3) i.e., the probability thatAincludesuwhen run on a ran- domly deleted sub-datasetDâ Δ. Values near1meanuis selected almost always (stable inclusion), while values near 0 mean it is rarely selected (stable exclusion). The smoothed algorithm Ì A Ï converts these probabilities into certified per-component decisions by requiring a margin of at leastÏin favor of inclusion or exclusion. Following segmentation-style smoothing (Fischer et al., 2021), we set Ì A Ï u (D) = ïŁ± ïŁŽ ïŁČ ïŁŽ ïŁł 1if p u (D) > Ï, 0if 1â p u (D) > Ï, â otherwise, (4) so Ì A Ï u (D) = 1certifies thatuis robustly included, Ì A Ï u (D) = 0certifies that it is robustly excluded, and Ì A Ï u (D) = âabstains when neither decision has enough evidence. We write Ì A Ï (D) := ( Ì A Ï u (D)) uâU â0, 1,â |U| for the resulting three-valued mask over all components. Guarantees. The rule defining Ì A Ï converts vote consistency under randomized deletions into a worst-case guarantee over all datasets within an edit-distance neighborhood ofD. Combining RS-Del (Huang et al., 2023) with component- wise certification (Fischer et al., 2021) yields a certified stability guarantee for every non-abstaining component: Theorem 3.1: Certified Circuit Robustness With confidence at least1â α, for any circuit compo- nentu â Uwith Ì A Ï u (D) â 0, 1 and any perturbed datasetD âČ satisfyingdist edit (D,D âČ )†r, the member- ship decision is invariant: Ì A Ï u (D âČ ) = Ì A Ï u (D), where the certified radius is r := log(1.5â Ï ) logp del .(5) The guarantee in Theorem 3.1 states that any component that Ì A Ï certifies as in (1) or out (0) of the circuit remains so for all concept datasetsD âČ withdist edit (D,D âČ ) †r, with confidence at least1â α. Components assignedâare excluded from the certified circuit. The proof is in App. A. From certified mask to a circuit. Given the per-component guarantee in Theorem 3.1, we define the certified circuit as the subgraph ofGinduced by certified-in components. Let U â :=uâU | Ì A Ï u (D) = 1(6) denote the set of certified-in components. The certified circuitC â = (V â ,E â )is then defined as: (i) For node-level methods (U â V):V â = U â andE â = (v,w) â E | v,w âV â . (i) For edge-level methods (U âE):E â =U â andV â = S (v,w)âE â v,w. In both cases, components assignedâ are excluded as they are not certifiably stable. 5 Certified Circuits 3.4. Estimating the Certified Circuit In practice, the probabilitiesp u (D)(Eq. 3) are unknown and are estimated by Monte Carlo sampling: drawni.i.d. dele- tion masksΔ (1) ,...,Δ (n) ⌠Bernoulli(1â p del ) |D| , evalu- ateA u (DâΔ (j) )for eachj, and use the resulting empirical frequency to estimate the lower bound ofp u (D), from which a(1â α)lower confidence bound is computed to decide whether Ì A Ï u (D) â 0, 1orâ. We follow the standard evaluation scheme as in (Fischer et al., 2021) and (Huang et al., 2023) in our estimation Algorithm 1 in App. C.3. 3.5. Properties of Certified Circuits Smoothed circuit discovery yields certified circuits with three key properties: (i) provable dataset-level stability: all non-abstain certified components are invariant under any sequence of up tordataset edits; (i) spurious-feature suppression: components whose membership decisions are unstable across deletions are abstained from, producing strictly sparser circuits (Fig. 1 (a), Fig. 5, App. F.6); and (i) algorithm and model agnosticism: our framework wraps any circuit discovery methodAand modelGwithout requir- ing access to their internals. Next, we discuss that Certified Circuits also have practical benefits, better capturing the target concept prediction and generalizing to OOD data. 4. Experimental Setup Baseline circuit discovery algorithms. We instantiate our certification framework with four standard base algo- rithms (Eq. 2). For vision, we follow the common top-K flow (Hamblin et al., 2022; Conmy et al., 2023; Rajaram et al., 2023; Dreyer et al., 2024): candidate verticesv âV are feature channels at each residual blockâs output, scored and ranked per layer, with top-Kfraction retained. We condsider three scorers: relevance, activation, and rank â using relevance by default in §5 and evaluating others in App. F.1. For language, we use EAP-IG (Hanna et al., 2024), which scores edgese â Evia integrated gradients and retains the top-Kfraction. For certified circuits,K denotes the effective fraction of components retained after certification (averaged across layers) rather than the base algorithmâs targetK, since certification abstains on unsta- ble components that the uncertified base algorithm would otherwise include. Thus, at a fixedK, the certified circuits effective size is always†the baseline. Datasets and architectures. For vision, we use Ima- geNet (Russakovsky et al., 2015) as the ID dataset, with each class defining a concept, and evaluate under four OOD shifts: OOD-CV (Zhao et al., 2022), ImageNet-A and ImageNet- O (Hendrycks et al., 2021), and ImageNet-C (Hendrycks & Dietterich, 2019). Circuits are discovered on100randomly selected classes. Main results use ResNet-101 and ResNet- 50 (He et al., 2016); ViT-B/16 results are in App. F.3. For language, we evaluate GPT-2 Small (Radford et al., 2019) on three tasks: indirect object identification (IOI) (Wang et al., 2023), IOI-Hard, and Greater-Than (Hanna et al., 2023). The task concept dataset is a prompt set; circuits are discovered on ID splits and evaluated on held-out ID and OOD splits. Vision and language setups are in App. B.1 & B.2. Sufficiency. We measure circuit sufficiency by preserva- tion of model predictions when computation is restricted to the discovered circuit, following standard practice (Conmy et al., 2023; Meng et al., 2022; Wang et al., 2023; Dreyer et al., 2024). For class-ccircuitC c , we zero non-circuit channels at each residual block and evaluate on concept datasetD c . We report mean circuit-class accuracy cACC := 1 |Y| X câY CA(C c ,D c ),(7) whereCA(C c ,D c )is the pruned modelâs accuracy onD c andYis the set of evaluated classes. Language sufficiency is analogous, restricting computation to certified-in edges and measuring task accuracy on the prompt set. Certification hyperparameters.The choice ofp del andÏ trades off certification strength against the base algorithmâs operating conditions: highp del deletes more data, hindering the base algorithm, while highÏdemands higher consis- tency, increasing the abstain rate. For vision, we default top del = 0.6andÏ = 0.95(certified radiusr = 1) as a good sweet spot. For language, where larger concept datasets tolerate more aggressive deletion, we tunep del and Ïper task and report the best configuration (App. Table. 2). Results at larger radii are in App. F.4 (vision) and E.2 (lan- guage). We usen = 1,000Monte Carlo samples and failure probabilityα = 0.001throughout, following standard prac- tice (L Ì ecuyer et al., 2019; Cohen et al., 2019; Anani et al., 2025). The theoretical minimumnis analyzed in App. C.2. All certified results hold with confidence 1â α = 99.9%. 5. Results We evaluate Certified Circuits in four ways: sufficiency and compactness (§5.1), testing whether circuits preserve task performance when used in isolation and how small they can be; feature visualization (§5.2), qualitatively inspecting the features encoded by the circuits, out-of-distribution generalization (§5.3), measuring whether circuits discov- ered in-distribution retain accuracy under distribution shift; and structural stability (§5.4), assessing whether circuit structure remains stable when re-discovered on shifted data. 6 Certified Circuits cACCâSize K â DomainSettingDataset / TaskFullBaselineCertifiedâFullBaselineCertifiedâ Vision ResNet-101 IDImageNet0.780.830.95â14%1.0000.7000.336â52% OOD ImageNet-A0.070.600.94â56% 1.000 0.4000.342â15% OOD-CV0.200.730.93â28%0.4000.269â33% ImageNet-C0.570.720.92â28%0.7000.416â41% ImageNet-O0.810.930.98â6%0.7000.417â41% Language GPT-2 Small ID IOI1.001.001.000% 1.000 0.3000.129â58% IOI-Hard1.001.001.000%0.2000.125â38% Greater-Than1.001.001.000%0.0400.010â75% OOD IOI0.980.991.00â2% 1.000 0.8000.487â40% IOI-Hard0.790.850.91â8%0.3000.297â2% Greater-Than1.001.001.000%0.0400.008â80% Table 1. Certified vs. baseline circuit sufficiency. Peak cACC and corresponding circuit sizeKunder sufficiency pruning on ResNet-101 for vision datasets and GPT-2 Small for language tasks. Circuits are discovered on ID datasets and evaluated on ID or on OOD shifts.â is relative improvements on unrounded values. Certification hyperparameters are in App. Table 2. All three vision discovery algorithms in App. Table 5. 0.000.200.400.600.801.00 0.00 0.25 0.50 0.75 1.00 cACC â Circuit input ImageNet 0.200.400.600.801.00 Natural adversarial ImageNet-A 0.200.400.600.801.00 Context shift OOD-CV 0.200.400.600.801.00 Corruption ImageNet-C 0.200.400.600.801.00 Semantic anomalies ImageNet-O IDOOD Size Kâ (Neurons) Paradigm: Certified (ours) Top-K RelevanceArchitecture:ResNet-101ResNet-50 Figure 3. Circuit accuracy (cACC) vs. sizeK. Solid lines show certified circuits, dashed show the baseline, with colors distinguishing models. Circuits are discovered on ImageNet and evaluated on ID or OOD data. This figure is extended to ViT-B/16 in App. Fig. 12 and language circuits in App. Fig. 9 & 10. ID EAP-IG Certified (ours) r=9 58% fewer edges â0% peak cACC IOI r=42 38% fewer edges â0% peak cACC IOI-Hard r=50 75% fewer edges â0% peak cACC Greater-Than 0.00.20.40.60.81.0 OOD EAP-IG Certified (ours) r=8 40% fewer edges â2% peak cACC 0.00.20.40.60.81.0 Size K â r=42 2% fewer edges â8% peak cACC (Edges) 0.00.20.40.60.81.0 r=59 80% fewer edges â0% peak cACC Edge category:Certified inAbstainCertified outEAP-IG selected Figure 4. Edges of the certified vs. baseline EAP-IG circuits on GPT-2 Small at peak cACC. Annotations report the relative edge reduction and the gain in peak cACC of the certified circuit over EAP-IG. The certified radius r denotes the best value for every task. 5.1. Circuit Sufficiency and Compactness We study two questions: (i) sufficiency: does the circuit alone preserve the target class prediction? and (i) com- pactness: how small can the circuit be while remaining sufficient? We sweep the circuit sizeK â (0, 1](fraction of components retained), and report (a) the peak cACC overK and the correspondingK(Table 1), (b) the cACCâKcurves on vision across five datasets (Fig. 3) and (c) the edge-level circuit breakdown on language tasks at peak cACC (Fig. 4). Sufficiency. Does using the circuit alone preserve the 7 Certified Circuits Certified in Abstain (in Baseline) Certified out Layer 1Layer 2Layer 3Layer 4 Neuron's top activating patches cACC:Baseline 78%â Certified 98% (â26%)at(â34%) K Figure 5. Features encoded by certified-in, abstain (within Baseline), and certified-out neurons (class:digital watch, ResNet-101). Per layer, top-activating neurons in each category. class/task accuracy? Across vision and language, certi- fied circuits match or exceed baseline peak cACC (and the full model) on all datasets and tasks (Table 1, Fig. 3). On ImageNet (ID), certified circuits reach95%vs. the base- lineâs83%(â 14%). On language, peak cACC is saturated at 100% for both methods on all three ID tasks. Compactness. How small can the circuit be while suffi- cient? Across both modalities, certified circuits reach peak cACC at substantially smaller sizeKthan baselines (Table 1, Fig. 3 (vision), Fig. 4 (language)). On ImageNet, the certi- fied circuit is52%smaller while improving cACC by14%, with similar reductions across other datasets. On language, where sufficiency is already saturated, compactness is the dominant signal: certified circuits match EAP-IGâs peak cACC on ID while using58%,38%, and75%fewer edges on IOI, IOI-Hard, and Greater-Than respectively (Fig. 4). Effect of compactness on sufficiency. Fig 3 plots cACC against the circuit sizeKacross five vision datasets. Both certified and baseline circuits follow a three-stage pattern asKincreases: (i) small K yields insufficient circuits that omit class-critical neurons; (i) intermediate K captures the necessary evidence and cACC peaks; (i) large K introduces competing or spurious features, reducing class specificity and degrading cACC. Certified circuits shift this curve fa- vorably in both dimensions, peaking at smallerK(more compact) and at higher cACC (more sufficient), pruning components that are unnecessary and harmful, rather than trading one property for the other. On language, both curves plateau rather than degrade at largeK; certified circuits plateau at higher/equal cACC at smaller K (App. Fig. 9). Certified circuits are substantially smaller, more ac- curate on vision and matching accuracy on language. 5.2. Feature Visualization of Circuits To inspect what certification removes, Fig. 5 visualizes per-layer neurons in three categories: certified-in, abstain (within the baseline circuit), and certified-out. Certified- in neurons consistently respond to class-defining features (watch faces, dials). Abstained neurons, included by the baseline but dropped by certification, predominantly fire on co-occurring but non-class-specific cues (hands, wrists) or on spurious patterns. Certified-out neurons rarely fire on the concept dataset at all. The resultingdigital watch certified circuit improves cACC by26%at34%smaller size, suggesting that abstained components are not merely unin- formative but actively harmful, biasing the baseline toward spurious class correlates. Additional classes are in App. F.6. Certified circuits abstain from spurious cues. 5.3. Out-of-Distribution Generalization Do circuits discovered in-distribution retain accuracy on shifted data? Certified circuits transfer substantially better than baselines, with the largest gains on the hardest shifts (Table 1, Fig. 3 (vision), Fig. 4 (language)). On vision, ImageNet-discovered certified circuits reach93%cACC on OOD-CV (â 28%over baseline) at33%smallerK, and 94%on ImageNet-A (â 56%) at15%smallerKâshifts where the full model collapses to20%and7%. On lan- guage, certified circuits match or improve EAP-IGâs peak cACC under OOD prompts at40%,2%, and80%fewer edges on IOI, IOI-Hard, and Greater-Than (Fig. 4), with up toâ 8%cACC on IOI-Hard. Results suggest that certified circuits capture concept relevant features that transfer across shifts. Abstention removes components with unstable inclu- sion under dataset perturbations, often spurious, yielding circuits that generalize beyond the discovery distribution. Certified circuits generalize to OOD shifts. 8 Certified Circuits 5.4. Structural Stability Under Distribution Shift OOD_CV ImageNet-AImageNet-OImageNet-C 0.0 0.2 0.4 0.6 0.8 1.0 OOD dataset Structural stability (IoUâ) ÎcACC= 100% 85% 10% 31% Certified (ours) Baseline Figure 6. Structural stability under distribution shift. Per-class IoU between circuits discovered on ImageNet and re-discovered on each OOD dataset, at theKmaximizing the certifiedâbaseline âcACC gap. Boxes show the distribution over classes. The previous experiments used the same circuit on different distributions. A stronger test asks: does the certified circuit structure remain stable when re-discovered on shifted dis- tributions of the same concept? We measure this via IoU between circuits discovered on ImageNet and re-discovered on each shifted dataset (Fig. 6). For two circuits with vertex sets V and V âČ , the IoU is|V â© V âČ |/|V âȘ V âČ |. Overall, certified circuits have higher median IoU and tighter distributions than baselines across shifts, indicating more consistent structure. The largest stability gains align with the largestâcACC performance gains on OOD-CV (100%) and ImageNet-A (85%). ImageNet-O is the exception, where both methods show high variance, suggesting class- dependent circuit reconfiguration under semantic anomalies. These findings reinforce the OOD generalization results: abstention suppresses shift-sensitive vertices, concentrating circuits on an invariant core that better captures the underly- ing concept rather than dataset-specific artifacts. Certified circuits converge to a similar invariant core when re-discovered on shifted distributions. 6. Discussion and Limitations Discussion. Certified circuits outperform baselines across three architectures (ResNet, ViT, GPT-2) and two modalities (vision, language). For sufficiency and compactness, certi- fication shifts the accuracyâsparsity curve: circuits peak at smaller sizes with higher cACC, suggesting unstable components are not only unnecessary but harmful. Fea- ture visualization confirms this: abstained neurons fire on co-occurring but non-class-specific cues, while certified- in neurons consistently respond to class-defining features. For OOD generalization, certified circuits discovered in- distribution (ImageNet) transfer without re-discovery, im- proving cACC by up to 56% on ImageNet-A while reducing circuit size, and producing language circuits up to 80% smaller at matched or higher accuracy. Structural stabil- ity results support this mechanism: certified circuits show higher IoU when re-discovered on OOD data, indicating convergence to an invariant core. Beyond cross-distribution stability, certified circuits also converge across random seeds (App. F.2), confirming the certification procedure itself is reliable. Together, these findings support our hypothesis that the instability noted in prior work (M Ì eloux et al., 2025; Miller et al., 2024; Friedman et al., 2024) arises from com- ponents inconsistently selected across dataset variants; ab- stention removes them, yielding circuits that provably reflect the concept rather than dataset-specific artifacts. Limitations. Certifying a circuit requires running the dis- covery algorithm onnrandomized deletion masks, but caching forward and backward passes across masks keeps wall-clock cost close to running the base algorithm once (âŒ2.4Ăoverhead atn=1000; App. D), so runtime does not linearly scale inn. Larger certified radii require higher deletion rates, which can degrade the base algorithm on very small concept datasets; however, certification recovers full performance at larger|D|, supporting radii up tor=59 (App. F.4, E.2). We use a single sparsityKacross layers; layer-wise budgets inspired by pruning literature may yield finer sparsity allocation. Concurrent work (Hadad et al., 2026) certifies circuits via neural-network verification, but its guarantees are over continuous input perturbations to a fixed circuit, and its reliance on exact verifiers restricts it to small models and datasets (MNIST, CIFAR-10, GTSRB); our guarantees instead cover dataset-level edits to the discov- ered circuit, and scale to any standard vision and language models. While we expect the framework to extend to larger language models, multimodal models, and sparse-activation architectures, experimental validation remains open. 7. Conclusion We introduced Certified Circuits, a framework providing provable stability guarantees for circuit discovery. By combining deletion-based randomized smoothing with per- circuit-component abstention, our method certifies that circuits remain unchanged under bounded dataset editsâ directly addressing the instability undermining confidence in mechanistic explanations. Empirically, certified circuits are more compact, more sufficient, and generalize better to OOD data, while remaining structurally stable beyond their certified radius. Our work establishes that reliable circuit discovery is achievable: practitioners can obtain mechanis- tic explanations that are provably stable and empirically robust, bridging interpretability and trustworthiness. 9 Certified Circuits Impact Statement This paper advances the field of machine learning by intro- ducing Certified Circuits, a framework that provides formal stability guarantees for mechanistic circuit discovery meth- ods. By enabling provably robust mechanistic explanations, our work strengthens the reliability and scientific validity of interpretability analyses, particularly under dataset variation and distribution shift. We anticipate that this contribution will have positive down- stream impacts in areas where trustworthy model under- standing is critical, such as model debugging, robustness evaluation, and auditing of learned representations. More stable and transferable explanations may help practition- ers better identify spurious correlations, understand failure modes, and design safer machine learning systems. At the same time, as with interpretability tools more broadly, there is a risk that certified explanations could be misinter- preted as complete or definitive accounts of model behavior, despite capturing only a subset of the underlying computa- tion. We emphasize that certified circuits provide guarantees relative to a specific threat model and concept dataset, and should be used as one component within a broader inter- pretability and evaluation toolkit. Overall, we believe the societal implications of this work are aligned with established goals in machine learning inter- pretabilityâimproving transparency, robustness, and trust- worthinessâand do not raise new ethical concerns beyond those already present in the field. References Anani, A., Lorenz, T., Schiele, B., and Fritz, M. Adaptive hierarchical certification for segmentation using random- ized smoothing. In International Conference on Machine Learning (ICML), 2024. Anani, A., Lorenz, T., Fritz, M., and Schiele, B. Pixel- level certified explanations via randomized smoothing. In International Conference on Machine Learning (ICML), 2025. Bereska, L. and Gavves, E. Mechanistic interpretability for AI safety â a review. Transactions on Machine Learning Research (TMLR), 2024. Cohen, J., Rosenfeld, E., and Kolter, Z. Certified adversarial robustness via randomized smoothing. In International Conference on Machine Learning (ICML), 2019. Conmy, A., Mavor-Parker, A., Lynch, A., Heimersheim, S., and Garriga-Alonso, A. Towards automated circuit discovery for mechanistic interpretability. In Advances in Neural Information Processing Systems (NeurIPS), 2023. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., and Houlsby, N. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations (ICLR), 2021. Dreyer, M., Purelku, E., Vielhaben, J., Samek, W., and Lapuschkin, S. PURE: Turning polysemantic neurons into pure features by identifying relevant circuits. In XAI4CV Workshop at CVPR, 2024. Elhage, N., Nanda, N., Olsson, C., Henighan, T., Joseph, N., Mann, B., Askell, A., Bai, Y., Chen, A., Conerly, T., DasSarma, N., Drain, D., Ganguli, D., Hatfield- Dodds, Z., Hernandez, D., Jones, A., Kernion, J., Lovitt, L., Ndousse, K., Amodei, D., Brown, T., Clark, J., Kaplan, J., McCandlish, S., and Olah, C. A math- ematical framework for transformer circuits.Trans- former Circuits Thread, 2021.https://transformer- circuits.pub/2021/framework/index.html. Fischer, M., Baader, M., and Vechev, M. Scalable certified segmentation via randomized smoothing. In International Conference on Machine Learning (ICML), 2021. Friedman, D., Lampinen, A. K., Dixon, L., Chen, D., and Ghandeharioun, A. Interpretability illusions in the gener- alization of simplified models. In International Confer- ence on Machine Learning (ICML), 2024. Goldowsky-Dill, N., MacLeod, C., Sato, L., and Arora, A. Localizing model behavior with path patching. arXiv preprint arXiv:2304.05969, 2023. Hadad, I., Katz, G., and Bassan, S. Formal mechanistic interpretability: Automated circuit discovery with prov- able guarantees. In International Conference on Learning Representations (ICLR), 2026. Hamblin, C., Konkle, T., and Alvarez, G. Pruning for feature-preserving circuits in CNNs. arXiv preprint arXiv:2206.01627, 2022. Hanna, M., Liu, O., and Variengien, A. How does gpt-2 compute greater-than?: Interpreting mathematical abil- ities in a pre-trained language model. In Advances in Neural Information Processing Systems (NeurIPS), 2023. Hanna, M., Pezzelle, S., and Belinkov, Y. Have faith in faithfulness: Going beyond circuit overlap when finding model mechanisms. In Conference on Language Model- ing (COLM), 2024. He, K., Zhang, X., Ren, S., and Sun, J. Deep residual learn- ing for image recognition. In Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 10 Certified Circuits Hendrycks, D. and Dietterich, T. Benchmarking neural network robustness to common corruptions and perturba- tions. In International Conference on Learning Represen- tations (ICLR), 2019. Hendrycks, D., Zhao, K., Basart, S., Steinhardt, J., and Song, D. Natural adversarial examples. In Conference on Computer Vision and Pattern Recognition (CVPR), 2021. Huang, Z., Marchant, N. G., Lucas, K., Bauer, L., Ohri- menko, O., and Rubinstein, B. Rs-del: Edit distance robustness certificates for sequence classifiers via ran- domized deletion. In Advances in Neural Information Processing Systems (NeurIPS), 2023. Kowal, M., Wildes, R. P., and Derpanis, K. G. Visual concept connectome (vcc): Open world concept discov- ery and their interlayer connections in deep models. In Conference on Computer Vision and Pattern Recognition (CVPR), 2024. L Ì ecuyer, M., Atlidakis, V., Geambasu, R., Hsu, D., and Jana, S. Certified robustness to adversarial examples with differential privacy. In IEEE Symposium on Security and Privacy (S&P), 2019. M Ì eloux, M., Portet, F., and Peyrard, M. Mechanistic inter- pretability as statistical estimation: A variance analysis of EAP-IG. In NeurIPS Workshop on Mechanistic Inter- pretability, 2025. Meng, K., Bau, D., Andonian, A., and Belinkov, Y. Locating and editing factual associations in gpt. In Advances in Neural Information Processing Systems (NeurIPS), 2022. Miller, J., Chughtai, B., and Saunders, W. Transformer circuit faithfulness metrics are not robust. In Conference on Language Modeling (COLM), 2024. Olah, C., Cammarata, N., Schubert, L., Goh, G., Petrov, M., and Carter, S. Zoom in: An introduction to circuits. Distill, 2020. URLhttps://distill.pub/2020/ circuits/zoom-in. Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., and Sutskever, I. Language models are unsupervised multitask learners. OpenAI Blog, 2019. Rajaram, A., Chowdhury, N., Torralba, A., Andreas, J., and Schwettmann, S. Automatic discovery of visual circuits. In NeurIPS Workshop on Attributing Model Behavior at Scale (ATTRIB), 2023. Russakovsky, O., Deng, J., Su, H., Krause, J., Satheesh, S., Ma, S., Huang, Z., Karpathy, A., Khosla, A., Bernstein, M., Berg, A. C., and Fei-Fei, L. Imagenet large scale visual recognition challenge. International Journal of Computer Vision (IJCV), 2015. Syed, A., Rager, C., and Conmy, A. Attribution patching outperforms automated circuit discovery. In NeurIPS Workshop on Attributing Model Behavior at Scale, 2023. uit de Bos, N. and Garriga-Alonso, A. Adversarial circuit evaluation. In ICML Workshop on Mechanistic Inter- pretability, 2024. Wang, K. R., Variengien, A., Conmy, A., Shlegeris, B., and Steinhardt, J. Interpretability in the wild: a circuit for indirect object identification in GPT-2 small. In Interna- tional Conference on Learning Representations (ICLR), 2023. Wang, Y., Hu, X., and Su, H. Interpretable disentanglement of neural networks by extracting class-specific subnet- work. arXiv preprint arXiv:1910.02673, 2019. Wolf, T., Debut, L., Sanh, V., Chaumond, J., Delangue, C., Moi, A., Cistac, P., Rault, T., Louf, R., Funtowicz, M., Davison, J., Shleifer, S., von Platen, P., Ma, C., Jer- nite, Y., Plu, J., Xu, C., Le Scao, T., Gugger, S., Drame, M., Lhoest, Q., and Rush, A. M. Transformers: State- of-the-art natural language processing. In Conference on Empirical Methods in Natural Language Processing: System Demonstrations (EMNLP), 2020. Zeiler, M. D. and Fergus, R. Visualizing and understand- ing convolutional networks. In European Conference on Computer Vision (ECCV), 2014. Zhao, B., Yu, S., Ma, W., Yu, M., Mei, S., Wang, A., He, J., Yuille, A., and Kortylewski, A. Ood-cv: A benchmark for robustness to out-of-distribution shifts of individual nuisances in natural images. In European Conference on Computer Vision (ECCV), 2022. Zhao, Z., Koishekenov, Y., Yang, X., Murray, N., and Can- cedda, N. Verifying chain-of-thought reasoning via its computational graph. In International Conference on Learning Representations (ICLR), 2026. Zimmermann, R. S., Borowski, J., Geirhos, R., Bethge, M., Wallis, T., and Brendel, W. How well do feature visual- izations support causal understanding of cnn activations? In Advances in Neural Information Processing Systems (NeurIPS), 2021. Ì Zukowska, N., Stammer, W., Schiele, B., and Fischer, J. See- ing through circuits: Faithful mechanistic interpretability for vision transformers. arXiv preprint arXiv:2604.14477, 2026. 11 Certified Circuits Appendix A. Proof of Theorem 3.1 Proof. Fix a componentu â U. Define the per-component base classifierh u : X â â 0, 1byh u (D) := A u (D). Let Ï p del (D)denote the RS-Del perturbation that independently deletes each element of the sequenceDwith probabilityp del , producing a random subsequenceDâ Δ. Smoothed probabilities and abstaining decision. Define the smoothed inclusion probability p u (D) :=Pr ΔâŒBernoulli(1âp del ) |D| [h u (Dâ Δ) = 1], and let p u,0 (D) := 1â p u (D) and p u,1 (D) := p u (D). Let the (non-abstaining) smoothed label be Ì A u (D) := arg max câ0,1 p u,c (D), ÎŒ u (D) := maxp u (D), 1â p u (D). We output a certified (possibly partial) decision by thresholding as in segmentation-style smoothing with abstention: Ì A Ï u (D) = ïŁ± ïŁŽ ïŁČ ïŁŽ ïŁł 1if p u (D) > Ï, 0if 1â p u (D) > Ï, â otherwise. Note that Ï â„ 1 2 implies that whenever Ì A Ï u (D)â0, 1, the maximizer Ì A u (D) is unique and equals Ì A Ï u (D). RS-Del certificate on the input sequence.Apply RS-Del (Huang et al., 2023) to the smoothed binary classifier Ì A u under Levenshtein edit distance (allowing insertions, deletions, and substitutions). RS-Del (Theorem 7 and Table 1 in (Huang et al., 2023)) gives that if the predicted class atDhas confidenceÎŒ u (D), then the smoothed prediction is invariant for any edit-distance ball of radius r †r â (ÎŒ u (D)), where r â (ÎŒ) = $ log 1 + Μ(η)â ÎŒ logp del % . For binary outputs and symmetric thresholds (our case), Μ(η) = 1 2 , hence r â (ÎŒ) = log(1.5â ÎŒ) logp del . Moreover r â (ÎŒ) is nondecreasing in ÎŒ because logp del < 0 and 1.5â ÎŒ decreases with ÎŒ. Conclude invariance for certified vertices. Assume Ì A Ï u (D) â 0, 1. ThenÎŒ u (D) > Ï, so by monotonicity r â (ÎŒ u (D))â„ r â (Ï ). Define r := r â (Ï ) = log(1.5â Ï ) logp del . Then for everyD âČ with dist edit (D,D âČ )†r, RS-Del implies the smoothed label is invariant: Ì A u (D âČ ) = Ì A u (D) = Ì A Ï u (D). This is exactly the claimed circuit-membership invariance for all non-abstaining vertices. Statistical confidence. In practiceÎŒ u (D)is unknown and we certify based on a(1â α)lower confidence bound (e.g., ClopperâPearson) forÎŒ u (D). On the event that the true confidence exceeds this bound (which holds with probability at least1â α), the above argument applies. If one wants the guarantee to hold simultaneously for all vertices (Fischer et al., 2021), set per-vertex failure probability to α/|U| and apply a union bound. 12 Certified Circuits DomainSettingDataset / Task Ï p del r Vision ResNet-101 IDImageNet0.950.601 OOD ImageNet-A0.950.601 OOD-CV0.950.601 ImageNet-C0.950.601 ImageNet-O0.950.601 Language GPT-2 Small ID IOI0.900.959 IOI-Hard0.850.9942 Greater-Than0.900.9950 OOD IOI0.850.958 IOI-Hard0.850.9942 Greater-Than0.950.9959 Table 2. Certified algorithm configuration per dataset and task in Table 1. B. Experimental Setup Table 2 lists the certification hyperparameters (Ï , p del , radius r) used for each result in Table 1. B.1. Vision Setup Concept datasets. Each ImageNet class c defines a concept datasetD c as a set of same-class images. We use|D c | = 50 images per class from the ImageNet validation split. Circuits are discovered on100randomly selected classes and tested on ID (same validation images) and OOD evaluation sets. OOD evaluation datasets.We evaluate ImageNet-discovered circuits under four out-of-distribution shifts, each targeting a distinct failure mode. OOD-CV (Zhao et al., 2022) places objects in novel contexts, backgrounds, poses, and weather conditions (context shift). ImageNet-A (Hendrycks et al., 2021) consists of natural adversarial examples mined to fool standard ImageNet classifiers (natural adversarial). ImageNet-O (Hendrycks et al., 2021) contains images of object categories not present in the ImageNet-1k label set (semantic anomalies). ImageNet-C (Hendrycks & Dietterich, 2019) applies synthetic corruptions to ImageNet images, and we pick defocus blur at severity level 2 (corruption). For each OOD dataset we use the same 100 classes as on ID, except OOD-CV which only contains 6 classes. Architectures and vertex selection.Main results use ResNet-101 and ResNet-50 (He et al., 2016), ImageNet-pretrained fromtorchvision. Circuit vertices are the feature channels at the output of each of the four residual blocks, giving256, 512,1024, and2048candidate channels per block respectively, for a total of3,840vertices on ResNet-101. The top-K fraction is applied per layer. Transformer results use ImageNet-pretrained ViT-B/16 fromtorchvision. We instrument all 12 transformer encoder blocks. For blocki, vertices are the 768 embedding-channel outputs of the second linear layer in the MLP sub-block,encoder.layers[i].mlp[3](our hookblockimlpfc2), before the subsequent dropout and residual addition. Token positions are not treated as separate vertices; each vertex corresponds to one MLP-output channel in one block. Thus ViT-B/16 has12Ă 768 = 9,216candidate vertices. The top-Kfraction is applied independently within each block. B.2. Language Setup Model and tasks.We evaluate GPT-2 Small (Radford et al., 2019) via HuggingFace (Wolf et al., 2020) on three next-token binary prediction tasks. Each example provides a clean prompt, a corrupted prompt, an answer token, and a distractor. IOI (Wang et al., 2023) predicts the indirect object in a two-name sentence, with corruption randomizing names while preserving the answer/distractor pair. IOI-Hard applies the same rule with longer prompts and harder OOD distractor clauses. For Greater-Than (Hanna et al., 2023), adapted to the EAP setting (Conmy et al., 2023; Syed et al., 2023), the clean prompt sets up a year span whose immediate successor is the answer, and corruption shifts the interval so the distractor becomes the natural continuation. 13 Certified Circuits Data.We generate100training,100ID test, and100OOD test examples per task. Circuits are discovered on the training split and evaluated on held-out ID and OOD prompts. OOD splits are task-specific: object/place distractors (IOI), repeated Q&A detours (IOI-Hard), and pre-answer distractor insertion (Greater-Than). Table 3 shows example ID and OOD prompts. IDOOD (ours) IOIThen, Jessica and Rachel went to the garden. Rachel gave a drink to (Jessica / Rachel) Then in the morning, Jennifer and Nicholas went to the school. While Nicholas looked around the school, Jennifer talked about the snack, and after a while Nicholas gave a snack to (Jennifer / Nicholas) IOI-HardThen in the morning, Nicole and Katherine went to the restaurant. Katherine gave a ring to (Nicole / Katherine) Then in the morning, Elizabeth and Allison went to the of- fice. Elizabeth repeatedly asked Allison about the necklace . . . and resumed the discussion of the necklace, Allison gave a necklace to (Elizabeth / Allison) Greater-ThanIn scenario 920499 at the school with the drink, The war lasted from the year 1799 to the year (1800 / 1840) In scenario 794799 at the station with the necklace, The war lasted from the year 1399 to the year after a long and distracting discussion at the school about the basketball, followed by more unrelated details, (1400 / 1440) Table 3. OOD prompt construction for the three language tasks. ID prompts follow the original task formulations; OOD prompts (ours) introduce task-specific distractors. Each cell shows the prompt followed by (answer / distractor). Circuit graph and metric. EAP-IG operates on edges of the EAP computational graph (Syed et al., 2023). Nodes are the token embedding, every attention-head and MLP output, and the final logits. Candidate edges connect each earlier node to every downstream attention-head Q/K/V input, MLP input, and the final logits, yielding32,491candidate edges uâU. Circuit sizeKis the retained edge fraction, and cACC is exact next-token accuracy (correct iff the argmax under the circuit-restricted computation equals the answer token). Certification hyperparameters. We sweepÏ â 0.85, 0.90, 0.95andp del â 0.85, 0.95, 0.99. For each task/split, Fig. 9 reports the configuration with the highest peak cACC (ties broken by smaller effective size) while Fig. 10 fixes r â42, 50, 59 and shows the cACC-K curve across the three tasks. C. Certification Hyperparameter Theoretical Analysis C.1. Certified Radius r vs. p del and Ï The certified radius r in Theorem 3.1 is determined by the deletion probability p del and confidence threshold Ï (Eq. 5). Figure 7 shows the certified radiusrat varyingp del andÏvalues. The certified radius increases with bothp del andÏ: higher deletion probabilities mean the smoothed algorithm aggregates over more aggressively perturbed sub-datasets, while higher confidence thresholds require stronger agreement across perturbations before certifying a decision. Asp del â 1, the radius grows rapidly, but this comes at a cost: the base algorithmAreceives increasingly sparse sub-datasets, which can degrade its performance when concept datasets are small. Conversely, lowerp del values preserve more examples per run but yield smaller certified radii. In practice, we selectp del to balance two considerations: (i) achieving a meaningful certified radius (e.g.,r â„ 1edits), and (i) retaining enough examples per sub-dataset for the base algorithm to produce reliable circuits. For concept datasets of size|D|, the expected sub-dataset size is(1â p del )·|D|, so larger concept datasets permit higher deletion probabilities without starving the base algorithm. C.2. Sample Complexity Beyond the certified radius (App. C.1, Fig. 7), a second hyperparameter controlling the strength of our guarantees is the Monte Carlo sample budgetn, which determines how tightly the empirical inclusion frequencies bound the true probabilities p u (D), which in turn determines whether a component reaches the thresholdÏfor certification. Fig. 8 reports the theoretical minimumnrequired to certify a circuit under perfect agreement, as a function ofÏ, with Bonferroni correction over 14 Certified Circuits 0.50.60.70.80.91.0 Element-wise deletion probability p del 0 10 20 30 40 50 60 Certified radius r Ï=0.75 Ï=0.85 Ï=0.95 Figure 7. Certified radiusrat various deletion probabilityp del values for different confidence thresholdsÏ. Largerp del and largerÏ yield larger certified radii. 0.50.60.70.80.91.0 Certification threshold 10 100 1,000 10,000 Minimum samples n required n = 1,000 (this work) n = 53 n = 78 n = 154 n = 76 (no correction) Feasible region (n1,000) =0.01 =0.001 =0.0001 =0.001 (No union bound) Ï â at n = 1,000 (circuit-level): = 0.01: * > 0.9871 = 0.001: * > 0.9848 = 0.0001: * > 0.9825 Figure 8. Sample complexity vs. certification threshold. Minimum samples n required to certify a circuit at threshold Ï under perfect agreement and Bonferroni correction overN = 3,840components (the vertex setVof ResNet-101).Ï â is the largest threshold certifiable at a givenn; anyÏ â€ Ï â is certifiable, so largernraisesÏ â . Solid curves: circuit-level guarantees atαâ0.01, 0.001, 0.0001. Dashed: per-vertex (no correction). N = 3,840 components (the number of candidate neurons in ResNet-101). The requirednis small across the entire operating range: certification needs only53â154samples forÏ â [0.7, 0.9], and the union bound costs justâ 2Ăover uncorrected per-vertex certification despite covering3,840simultaneous decisions. Sampling is therefore not a bottleneck. In practice, the budget ofn = 1,000used throughout the paper is conservative since it certifies anyÏup toÏ â = 0.985atα = 0.001, and could be reduced an order of magnitude at lowerÏthresholds which produce a meaningful radius r. 15 Certified Circuits C.3. Estimating the Certified Circuit Since we cannot invoke our theoretically constructed smoothed algorithm Ì A Ï u (Eq. 4) directly, we estimate it by Monte Carlo sampling in Algorithm 1. Our estimator is a novel combination of two randomized-smoothing frameworks, unifying them for the first time to certify circuit discovery: we adopt the randomized-deletion sampling of RS-Del (Huang et al., 2023), which perturbs a dataset by dropping examples i.i.d. and yields a certificate in edit distance, and the component-wise output certification of SEGCERTIFY (Fischer et al., 2021), which certifies each component of a structured output independently via a per-component abstention test. The key observation enabling this combination is that certifying circuit components is an instance of binary segmentation: each componentuâUplays the role of a pixel whose inclusion (1) or exclusion (0) must be certified independently, while the datasetDâ rather than an image â is the object being perturbed. Casting circuit discovery this way lets us inherit SEGCERTIFYâs certification algorithm while replacing its Gaussian input perturbation with RS-Delâs dataset-level deletion, turning an â 2 certificate over pixels into an edit-distance certificate over datasets. Algorithm 1 CERTIFYCIRCUIT: estimating Ì A Ï (D) (Eq. 4), combining SEGCERTIFY (Fischer et al., 2021) with RS-Delâs deletion smoothing (Huang et al., 2023). Blue marks our changes. function CERTIFYCIRCUIT(A, p del ,D, n, n 0 , Ï , α) cnts 0 1 ,..., cnts 0 |U| â SAMPLE(A,D, n 0 , p del ) cnts 1 ,..., cnts |U| â SAMPLE(A,D, n, p del ) for uâU : Ëc u â top index in cnts 0 u n u â cnts u [Ëc u ] pv u â BINPVALUE(n u , n,â€, Ï ) r 1 ,...,r |U| â FWERCONTROL(α, pv 1 ,..., pv |U| ) for uâU : ifÂŹr u : Ëc u ââ r ââlog(1.5â Ï )/ logp del â return Ëc 1 ,..., Ëc |U| , r Algorithm 2 SAMPLE: per-component inclusion counts function SAMPLE(A,D, n, p del ) cnts u â 0 for all uâU for j = 1,...,n: Δ (j) ⌠Bernoulli(1â p del ) |D| // RS-Del (Huang et al., 2023) deletion smoothing C (j) â A(Dâ Δ (j) ) cnts u â cnts u + 1[uâ C (j) ] for all uâU return cnts = (cnts u ) uâU CERTIFYCIRCUIT (Algorithm 1) proceeds in two stages, each drawing samples through the primitive SAMPLE (Algorithm 2). SAMPLE drawsndeletion masks, runs the base algorithmAon each resulting sub-dataset, and counts how often each component is included, giving the per-componentuinclusion countscnts u . The two stages use independent samples to avoid biasing the test by the choice of hypothesis. In the first stage, CERTIFYCIRCUIT drawsn 0 selection samples and uses the counts to guess each componentâs likely decisionËc u (include or exclude). In the second stage, it drawsnfresh certification samples and tests that guess: it computes ap-valuepv u measuring how strongly the evidence supportsËc u at confidenceÏ. A component is certified if itsp-value is small enough (via the FWER correction below) and abstains (â) otherwise. Finally, CERTIFYCIRCUIT returns the edit-distance radiusr =âlog(1.5â Ï )/ logp del â(Eq. 5, from RS-Del), certifying every non-abstaining component against up to r dataset edits. Controlling the family-wise error rate. Because we certify|U|components simultaneously, the per-component failure probabilityαdoes not bound the probability that any certified decision is wrong; under the union bound this family-wise error rate (FWER) grows with|U|. We therefore inherit the multiple-hypothesis-testing correction of Fischer et al. (2021): applying a Bonferroni correction overU, we rejectH 0 (and thus certify) only whenÏ u †α/|U|. This bounds the FWER at α, so with confidence1â αevery non-abstaining component is certified correctly, and by Theorem 3.1 its membership is invariant for allD âČ with dist edit (D,D âČ )†r. 16 Certified Circuits D. Runtime Breakdown # SamplesParadigm 1Sample circuits2Decision ruleTotal =1+2 Optimized speedup NaiveOptimizedNaiveOptimized n = 1Baselineâ1.007 sâ1.007 sâ n = 100 Majority vote101 s0.990 s0.006 s101 s0.996 sĂ101 Certified101 s0.990 s0.024 s101 s1.014 sĂ99.33 n = 500 Majority vote504 s1.516 s0.013 s504 s1.529 sĂ329 Certified504 s1.516 s0.102 s504 s1.618 sĂ311 n = 1000 Majority vote1007 s2.226 s0.021 s1007 s2.247 sĂ448 Certified1007 s2.226 s0.194 s1007 s2.420 sĂ416 Table 4. Runtime breakdown for per-class ResNet-101 circuit discovery on the ImageNet validation set. Naive scales linearly withn while the optimized implementation caches per-image attribution score (e.g., relevance, activation) across samples. Hardware: Intel Core i7-14700 CPU, 62 GiB RAM, NVIDIA RTX 4090, batch size 50. A potential concern with certified circuit discovery is sampling: running the base algorithmntimes, once per deletion mask, could scale runtime linearly inn, making the method impractical at largern. Table 4 shows this concern does not materialize. We benchmark per-class circuit discovery on ResNet-101 over the ImageNet validation set, comparing a naive implementation (which re-runs the full discovery algorithm for each of thensamples) against our optimized implementation that caches per-image scores (relevance) and computes per-sample circuits from the cache. Two findings emerge. First, naive scaling is indeed linear: n = 1,000 samples takeâ1,007 s, which is 1,000Ă the baseline single-circuit cost. Second, the optimized implementation reduces this to2.42s, a416Ăspeedup, because the dominant cost â forward and backward passes through the model â is shared across allnsamples. The decision rule itself (Eq. 4) takes under0.2s even at n = 1,000. The optimized certified pipeline therefore runs inâ2.4Ăthe cost of a single baseline circuit, independent ofn in practice. 17 Certified Circuits E. Additional Language Results We extend on language circuit results illustrated earlier in §5. E.1. Certified Circuits at Best Radius r 0.00 0.25 0.50 0.75 1.00 cACC â IOI r=9 IOI-Hard r=42 Greater-Than r=50 0.000.250.500.751.00 0.00 0.25 0.50 0.75 1.00 cACC â Place distractor r=8 0.250.500.751.00 Q&A detours r=42 0.250.500.751.00 Pre-answer distractor r=59 ID OOD Size Kâ (Edges) CertifiedEAP-IG Figure 9. Best certified vs. baseline EAP-IG circuits on GPT-2 Small. cACCâKcurves for the certified circuit (highest peak cACC, blue solid) and EAP-IG (gold dashed) across three tasks (columns) and two settings (rows: ID, OOD). The certified radiusrfor each circuit is annotated in the bottom-right of each panel. Fig. 9 shows that on every task and setting, the certified curve reaches the EAP-IG peak at substantially smallerK, then remains saturated asKgrows. On IOI and Greater-Than, both ID and OOD curves are flat at100%from a smallKonward, with the certified curve reaching saturation2â10Ăearlier than EAP-IG. IOI-Hard under Q&A detours is the only setting with a non-trivial peak: the certified circuit reaches91%cACC atK â 0.3, exceeding the EAP-IG peak (85%) at matched size. Across all settings, certification matches or exceeds EAP-IGâs peak cACC while certifying invariance to radii r = 8â59. E.2. Higher Certified Radii Fig. 10 compares certified circuits atr = 42,50, and59against EAP-IG on the same tasks. All three certified radii produce cACCâKcurves that are nearly indistinguishable from each other and that match or exceed EAP-IG at everyK. On IOI and IOI-Hard, the three certified curves reach saturation at the same smallK, with no measurable cACC penalty for the larger radius. On Greater-Than and Pre-answer distractor, the three curves overlap so tightly that ther = 59certificate comes essentially for free: stability against up to59dataset edits is achieved with no loss in sufficiency. This confirms that, on tasks with sufficiently large concept datasets, the certified radius can be pushed well beyond the conservativer = 1used for vision without degrading the discovered circuit. 18 Certified Circuits 0.00 0.25 0.50 0.75 1.00 cACC â IOIIOI-HardGreater-Than 0.000.250.500.751.00 0.00 0.25 0.50 0.75 1.00 cACC â Place distractor 0.250.500.751.00 Q&A detours 0.250.500.751.00 Pre-answer distractor ID OOD Size Kâ (Edges) Certified r=42 Certified r=50 Certified r=59 EAP-IG Figure 10. Certified EAP-IG circuits at higher radii on GPT-2 Small. cACCâKcurves for certified circuits atr = 42(blue),r = 50 (teal), andr = 59(purple), compared against EAP-IG (gold dashed) across three tasks (columns) and two settings (rows: ID, OOD). Curves overlap tightly, indicating that larger certified radii are achieved without measurable loss in cACC. 19 Certified Circuits F. Additional Vision Results F.1. Comparison of three circuit discovery algorithms We extend the analysis in Table 1 from top-Krelevance to two additional scorers, activation and rank, on ResNet-101 (Table 5). The main results transfer across all three scorers: certified circuits are more accurate, smaller, and generalize better to OOD than their baselines. The largest cACC gains appear under OOD shifts: on ImageNet-A, certified circuits improve byâ 56%(relevance),â 84%(activation), andâ 20%(rank). Activation shows the largest relative gains because its uncertified baseline is weakest, while relevance reaches the highest absolute certified cACC (98%on ImageNet-O) and the largest compactness reductions (â 52%on ImageNet,â 41%on ImageNet-C and ImageNet-O). Rank yields smaller compactness reductions (â 2â18%), consistent with rank-based scoring producing flatter score distributions that leave fewer components confidently unstable. We use relevance as the default in §5 based on its consistently higher absolute cACC and larger compactness gains. cACCâSize K â SettingDatasetTop-KFullBaselineCertifiedâFullBaselineCertifiedâ IDImageNet Relevance 0.78±0.02 0.83±0.020.95±0.02 § â14% 1.000 0.7000.336â52% Activation0.80±0.020.82±0.02 § â3%0.7000.502â29% Rank0.81±0.020.82±0.02 ⥠â2%0.7000.585â17% OOD ImageNet-A Relevance 0.07±0.01 0.60±0.030.94±0.01 § â56% 1.000 0.4000.342â15% Activation0.20±0.020.36±0.03 § â84%0.4000.330â18% Rank0.24±0.020.28±0.02 § â20%0.6000.588â2% OOD-CV Relevance 0.20±0.09 0.73±0.110.93±0.03 â â28% 1.000 0.4000.269â33% Activation0.36±0.120.54±0.13 â â51%0.4000.268â33% Rank0.44±0.130.46±0.12â5%0.4000.394â2% ImageNet-C Relevance 0.57±0.02 0.72±0.020.92±0.02 § â28% 1.000 0.7000.416â41% Activation0.66±0.020.71±0.02 § â8%0.7000.502â29% Rank0.67±0.020.69±0.02 ⥠â3%0.7000.585â17% ImageNet-O Relevance 0.81±0.01 0.93±0.010.98±0.01 § â6% 1.000 0.7000.417â41% Activation0.87±0.010.90±0.01 â â3%0.7000.492â30% Rank0.88±0.010.89±0.01 â â2%0.7000.581â18% Table 5. Certified vs. baseline circuit sufficiency across three Top-K scoring algorithms with uncertainty estimates. Peak cACC and corresponding circuit sizeKunder sufficiency pruning on ResNet-101. Circuits are discovered on ImageNet and evaluated either in-distribution or on OOD shifts. Significance markers compare certified circuits against the corresponding baseline circuit using paired class-level tests: â p < 0.05, ⥠p < 0.01, § p < 0.001. F.2. Stability Across Random Seeds Recent work has raised concerns that mechanistic circuits are unstable across random seeds: M Ì eloux et al. (2025) cast circuit discovery as statistical estimation and showed that EAP-IG circuits can vary substantially across runs even with the same concept dataset, indicating high variance in the discovered structure. This calls into question whether a single discovered circuit is meaningful, or merely one realization of a noisy procedure. We investigate the stability of certified circuits across random seeds on ImageNet (Fig. 11). We run the certification pipeline (n = 1,000deletion masks)40times with independent seeds on100ImageNet classes, and report all pairwise IoUs per class. Even on the10least stable classes, pairwise IoU stays above0.95, with mean IoU0.973± 0.0015(95%CI) across all100classes. Certification is stable by construction: components are included only when their inclusion probability p u (D)exceeds the thresholdÏ, so noise that would flip a borderline inclusion under a fixed top-Krule instead resolves to abstention. Certification stabilizes circuits not only against bounded dataset edits (Theorem 3.1), but also empirically against the seed-level instability documented in prior work. 20 Certified Circuits Eft Salamandar Garden Spider Green Mamba Electric Ray Peacock Gila Monster Jay Black Grouse Cock Prairie Chicken Least stable class circuits in ImageNet 0.94 0.95 0.96 0.97 0.98 0.99 1.00 Pairwise IoU across 40 seeds perfect: 1.000 mean: 0.973 Mean IoU = 0.9726 SE = 0.0008 95% CI = ±0.0015 Seed-pair IoUClass medianIQR (25th-75th pctl) Less stableMore stable Figure 11. Certified circuits are highly stable across seeds, even for the least stable classes. Pairwise IoU between independent runs of the certification pipeline (n=1000masks) across 40 seeds, for the 10 least stable ImageNet classes (ordered least to most stable); each dot is one seed-pair. Even in the worst case IoU exceeds0.95. The dashed line marks the mean over 100 classes,0.973± 0.0015(95% CI). 0.000.200.400.600.801.00 0.00 0.25 0.50 0.75 1.00 cACC â Circuit input ImageNet 0.200.400.600.801.00 Natural adversarial ImageNet-A 0.200.400.600.801.00 Context shift OOD-CV 0.200.400.600.801.00 Corruption ImageNet-C 0.200.400.600.801.00 Semantic anomalies ImageNet-O IDOOD Size Kâ (Neurons) Paradigm: Certified (ours) Top-K RelevanceArchitecture:ResNet-101ResNet-50ViT-B/16 Figure 12. Circuit accuracy (cACC) vs. sizeKon ResNets and ViT-B/16. Solid lines show certified circuits, dashed show the baseline, with colors distinguishing models. Circuits are discovered on ImageNet and evaluated either ID or on OOD data. F.3. Extending circuits to ViT-B/16 architecture Fig. 12 extends the cACCâKcurves of Fig. 3 to ViT-B/16 (Dosovitskiy et al., 2021), alongside ResNet-101 and ResNet-50. Across all five datasets, certified circuits on ViT-B/16 closely track baseline top-Krelevance: peak cACC differs by at most âŒ2points, and both methods peak at smallK. The largest certified gains appear on ImageNet-A and OOD-CV, where certification recoversâŒ2points of peak cACC at substantially smallerKthan the baseline, mirroring the trend observed on ResNets and confirming that the framework remains effective on vision Transformer architectures. F.4. Certified Vision Circuits at Larger Radii In the main reported results §5, we use a conservative certified radiusr = 1for vision, which guarantees stability against a single dataset edit. Whether the framework can certify larger radii on vision depends on the relationship between the deletion probabilityp del , the confidence thresholdÏ, and the concept dataset size|D c |. Increasingrat a fixedÏrequires increasing p del (Eq. 5), which removes more examples per sample and can starve the base algorithm on small concept datasets. We characterize this trade-off across three experiments. Scaling to larger radii with larger|D c |. Fig. 13 sweepsr â 1, 3, 11, 59across|D c | â 50, 100, 500, 1000on all five vision benchmarks. At|D c | = 50, larger radii (r = 11, 59) degrade noticeably because the base algorithm receives sub-datasets of onlyâŒ0â3images per sample after deletion, too sparse to recover stable circuits. This degradation disappears as|D c |grows: by|D c | = 1,000, certified circuits atr = 59outperform the baseline on every dataset. The framework is not intrinsically limited to small radii on vision; the limitation is concept dataset size, and increasing it directly enables larger 21 Certified Circuits 0 25 50 75 100 cACC â |D c | = 50 In-distribution ImageNet Context shift OOD-CV Natural adversarial ImageNet-A Semantic anomalies ImageNet-O Corruption ImageNet-C 0 25 50 75 100 cACC â |D c | = 100 0 25 50 75 100 cACC â |D c | = 500 0.00.20.40.60.81.0 0 25 50 75 100 cACC â |D c | = 1000 0.00.20.40.60.81.00.00.20.40.60.81.00.00.20.40.60.81.00.00.20.40.60.81.0 Neurons â Radius at Ï = 0.95:r = 1 (p del = 0.60)r = 3 (p del = 0.85)r = 11 (p del = 0.95)r = 59 (p del = 0.99) Paradigm:CertifiedRelevance Top-K Figure 13. Certified circuits scale to large radii given sufficient concept data. cACC vs. circuit size forr â1, 3, 11, 59(colors) and |D c |â50, 100, 500, 1000(rows), across five ID/OOD benchmarks (columns). Solid: certified; dashed: baseline. Large radii degrade at small|D c | but recover by|D c | = 1,000. ResNet-101, Ï = 0.95, n = 1,000. certified radii. 0 25 50 75 100 cACC â p del In-distribution ImageNet Context shift OOD-CV Natural adversarial ImageNet-A Semantic anomalies ImageNet-O Corruption ImageNet-C 0.0 0.2 0.4 0.6 0.8 1.0 Neurons â K = 0.60K = 0.60K = 0.60K = 0.60K = 0.60 13511 0 25 50 75 100 % Abstain 13511135111351113511 0.600.850.900.950.600.850.900.950.600.850.900.950.600.850.900.950.600.850.900.95 Radius â Concept dataset size: |D c | = 50|D c | = 100|D c | = 500 Concept dataset size: |D c | = 50|D c | = 100|D c | = 500 Figure 14. Effect of radius and|D c |at fixedK = 0.60. cACC (top), effective circuit size (middle), and abstention rate (bottom) as a function of certified radius for|D c |â50, 100, 500. Larger|D c |stabilizes both cACC and abstention at high radii; effective circuit size stays roughly constant. ResNet-101, Ï = 0.95, n = 1,000. Effect on circuit size and abstention at fixedK. Fig. 14 fixes the circuit size atK = 0.60and examines how cACC, effective circuit size, and abstention rate vary with radius for three concept dataset sizes. Three patterns are visible. First, at small|D c | = 50, cACC drops sharply asrgrows pastâŒ3, while abstention rises toward50â75%â the certificate becomes too aggressive for the available data. Second, at|D c | = 100the cACC remains close to the baseline up tor = 5and then drops. Third, at|D c | = 500cACC is stable across the full radius ranger â [1, 11], with abstention staying below30%. Effective circuit size (middle row) remains roughly constant in all three settings, indicating that the certification budget is 22 Certified Circuits spent on abstaining from unstable components rather than shrinking the certified set. 0 25 50 75 100 Peak cACC â p del In-distribution ImageNet Context shift OOD-CV Natural adversarial ImageNet-A Semantic anomalies ImageNet-O Corruption ImageNet-C 0.0 0.2 0.4 0.6 0.8 1.0 Neurons â 13511 0 25 50 75 100 % Abstain 13511135111351113511 0.600.850.900.950.600.850.900.950.600.850.900.950.600.850.900.950.600.850.900.95 Radius â Concept dataset size: |D c | = 50|D c | = 100|D c | = 500 Concept dataset size: |D c | = 50|D c | = 100|D c | = 500 Figure 15. Effect of radius and|D c |at the per-setting optimalK. Peak cACC (top), corresponding circuit size (middle), and abstention rate (bottom) as a function of certified radius. WithKoptimized per setting, higher radii yield more compact circuits without sufficiency loss when|D c | is large enough. ResNet-101, Ï = 0.95, n = 1,000. Effect at the per-setting optimalK.Fig. 15 repeats the analysis withKoptimized per(r,|D c |, dataset)setting, reporting peak cACC. The picture is consistent with the fixed-Kanalysis but more favorable: with the freedom to shrink the circuit at higher radii, peak cACC degrades less, and the optimal circuit size visibly contracts asrgrows (middle row). This is the behavior we want from a certification procedure: at higher radii, more components are flagged as unstable and abstained from, yielding more compact circuits with no sufficiency penalty. At|D c | = 500, peak cACC is essentially flat across r â [1, 11] on every benchmark. Takeaway. Certified vision circuits scale to large radii given sufficient concept data: with large enough|D c |, certified circuits outperform baselines on both ID and OOD at r up to 59, while providing stronger guarantees. F.5. Comparison to Vanilla Majority Vote 0.00.20.40.60.81.0 0.00 0.25 0.50 0.75 1.00 cACC â In-distribution ImageNet 0.20.40.60.81.0 Natural adversarial ImageNet-A 0.20.40.60.81.0 Context shift OOD-CV 0.20.40.60.81.0 Corruption ImageNet-C 0.20.40.60.81.0 Semantic anomalies ImageNet-O IDOOD Size Kâ (Neurons) Paradigm: Certified (ours) Majority vote Baseline Figure 16. Certified circuits outperform majority vote at identical compute. cACC vs.Kfor certified, majority vote (samen,>50% inclusion, noÏ), and baseline across five benchmarks. The gap between certified and majority vote isolates the contribution of certification (through the threshold Ï ) beyond ensemble averaging. A natural question is whether the gains of certified circuits come from certification itself, or simply from the ensemble averaging effect of running the base algorithm onnsubsamples. To isolate this, we compare certified circuits against a majority vote baseline at matched compute. Majority vote uses the samen = 1,000deletion samples but includes each neuron appearing in more than50%of sampled circuits, with no confidence threshold â isolating the contribution ofÏ from ensemble averaging alone. Fig. 16 shows certified circuits outperform majority vote by a wide margin across all five 23 Certified Circuits benchmarks in ID and OOD, with the largest gaps on OOD-CV and ImageNet-A where instability is most pronounced. This is notable because prior certification methods typically trade accuracy for robustness (L Ì ecuyer et al., 2019; Cohen et al., 2019; Fischer et al., 2021; Anani et al., 2024), whereas certified circuits improve both. Majority vote already improves over the baseline thanks to averaging, but stops short of the certified circuit, indicating thatÏcontributes beyond ensemble averaging by excluding neurons whose inclusion votes are split rather than majority-aligned. These are the neurons most likely to be spurious, and abstaining from them is what makes the certified circuit both more accurate and more compact. We provide further feature visualizations of such neurons in the next App. F.6. 24 Certified Circuits F.6. Additional feature visualizations Certified in Abstain (in Baseline) Certified out Layer 1Layer 2Layer 3Layer 4 Neuron's top activating patches cACC:Baseline 90%â Certified 98% (â9%)at38% smaller K (a) vine snake Certified in Abstain (in Baseline) Certified out Layer 1Layer 2Layer 3Layer 4 Neuron's top activating patches cACC:Baseline 38%â Certified 100% (â163%)at38% smaller K (b) plate Figure 17. Features encoded by certified-in, abstain (within baseline), and certified-out neurons (ResNet-101). Per layer, top- activating neurons in each category. Certification improves cACC while shrinking the circuit by abstaining from unstable, spurious neurons. 25 Certified Circuits Certified in Abstain (in Baseline) Certified out Layer 1Layer 2Layer 3Layer 4 Neuron's top activating patches cACC:Baseline 84%â Certified 100% (â19%)at37% smaller K (a) goose Certified in Abstain (in Baseline) Certified out Layer 1Layer 2Layer 3Layer 4 Neuron's top activating patches cACC:Baseline 78%â Certified 100% (â28%)at39% smaller K (b) ballpoint Figure 18. Features encoded by certified-in, abstain (within baseline), and certified-out neurons Extension of App. Fig. 17 26 Certified Circuits Certified in Abstain (in Baseline) Certified out Layer 1Layer 2Layer 3Layer 4 Neuron's top activating patches cACC:Baseline 58%â Certified 100% (â72%)at39% smaller K (a) frying pan Certified in Abstain (in Baseline) Certified out Layer 1Layer 2Layer 3Layer 4 Neuron's top activating patches cACC:Baseline 42%â Certified 100% (â138%)at34% smaller K (b) monitor Figure 19. Features encoded by certified-in, abstain (within baseline), and certified-out neurons Extension of App. Fig. 18 27