In Alan Sun, arXiv:2505.24731v1 (header date 30 May 2025), the introduction’s informal framing, for a fixed task and model, is that circuit stability is the consistency of the model’s reasoning process, its circuit, across collections of subtasks. That sentence is labeled informal; it is not Definition 4.
The edge-attribution variant is named in Appendix B, not derived there. Sun’s phrasing, attributed to Hanna et al. (2024), is “edge attribution patching with integrated gradients (EAP-IG),” described as “a variant of attribution patching introduced by (Hanna et al., 2024).” The v1 reference list identifies that citation as Hanna, Pezzelle, and Belinkov (2024), not Hanna et al. (2023). This reading has not retrieved that paper, so the wording is Sun’s citation gloss.
Appendix B says Equation 6 “can be understood as a Monte-Carlo estimate of the integral in Equation 5.” It does not say Equation 6 is a new estimator or that Equation 6 itself is what is adopted. The next sentence is the general requirement that, for such estimates to be accurate, m ≫ 1, “potentially on the order of ∼ 105” in the extracted characters. Only after that sentence does the appendix report that Hanna et al. (2024) find even m = 5 “works quite well,” and state that “these hyperparameters are adopted for all of the circuit experiments.” Whether a later arXiv version revises these sentences is unknown from this v1 extraction.
Key Takeaways
- The introduction opens circuit stability, for a fixed task and model, as consistency of one circuit across subtasks; the quantity actually compared in the experiments is Spearman rank correlation of soft-circuit edge scores, under Definition 4 and Definition 5.
- EAP-IG enters this preprint as a borrowed name and approximation gloss from Hanna, Pezzelle, and Belinkov (2024), not as a derivation Sun claims in Appendix B.
- Equation 6 is glossed as a Monte-Carlo estimate of the Equation 5 path integral; the adopted object is those EAP-IG hyperparameters, including the reported step count m = 5, for every circuit experiment in the paper.
- That adoption does not make the task metric or the corruption scheme uniform: Sections 4 and 5 use next-token noisy-to-clean patching, while Section 6 uses clean-to-clean patching when a ground-truth label is not assumed.
In This Guide
Informal framing for a fixed task and model
The relevant sentence is in the introduction of Circuit Stability Characterizes Language Model Generalization, arXiv:2505.24731v1. After defining the benchmarking problem the paper wants to sidestep, Sun writes: “Informally, for a fixed task and model, circuit stability is the consistency of a model’s reasoning process (its circuit) across collections of subtasks.”
The fixed objects are the task and the model. What is allowed to vary is the collection of subtasks. “Stability” in this gloss means that the same reasoning process is applied across those collections. The circuit is identified with that reasoning process, not yet with a scored function on edges.
The next sentences are an illustration, not a reported parity experiment. Sun says a strong model solving parity should learn and correctly apply a consistent algorithm regardless of input length. If instead it learns a different algorithm for each length, finite capacity “will guarantee a length past which the model will fail.” That is the author’s informal consequence of inconsistency. The extracted v1 text does not include a parity dataset, checkpoint, or result that tests this illustration.
The formal objects come later and should not be collapsed into that sentence. Definition 1 is a task as a distribution over input-output strings. Definition 2 is a subtask as the conditional distribution on a cell of a partition. Definition 3 replaces a binary edge indicator with a soft circuit: for each edge, the expected change in a performance metric L after ablating that edge. Definition 4 then calls a model ε-circuit stable, for ε > 0, when the infimum over a collection of partitions of the expected similarity K between soft circuits of two i.i.d. subtasks exceeds ε. In all experiments reported here, K is Spearman’s ρ on the rankings those soft circuits induce over edges. Definition 5 is the pointwise cousin: two soft circuits are α-equivalent when K is at least α.
So the introduction opens a consistency-of-reasoning framing. The operational claim a reader can compute is narrower: rank-correlation of ablation scores across a chosen partition, above a threshold the experimenter sets. Sun also says technical details of L and of the ablation procedure are deferred to Appendix B. The informal paragraph does not specify the patching estimator.
Which Hanna et al. phrasing names the edge-attribution variant
Appendix B states the circuit-discovery method used throughout the preprint: attribution patching, cited as Nanda (2023), described as a linear approximation to activation patching, also called causal mediation analysis, with Heimersheim and Nanda (2024) cited for the interpretation. Activation patching is written with Pearl’s do-operator as the change in L when one component’s activation is replaced by a counterfactual activation. Attribution patching is then introduced as a first-order Taylor approximation of that difference, labeled Equation 4.
The edge-attribution variant is introduced in the next step, by citation rather than by a new definition. Sun writes that the paper uses “a variant of attribution patching introduced by (Hanna et al., 2024) called edge attribution patching with integrated gradients (EAP-IG).” That full name, edge attribution patching with integrated gradients (EAP-IG), is the Hanna et al. phrasing, as this preprint prints it, that introduces the variant.
The bibliography distinguishes the 2024 citation from other Hanna papers Sun cites. The matching entry is Michael Hanna, Sandro Pezzelle, and Yonatan Belinkov, 2024, “Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanisms,” First Conference on Language Modeling. Hanna, Liu, and Variengien (2023), on how GPT-2 computes greater-than, is a different reference and is not the citation attached to EAP-IG. Main-text mentions of Hanna et al. (2024) elsewhere, among circuit-discovery approximations, as support for a greedy hard-circuit decoding footnote, and as a two-forward-plus-one-backward efficiency citation, do not themselves introduce the EAP-IG name. The naming sentence is in Appendix B.
Two limits attach to that identification. First, Hanna et al. (2024) is not in the retrieved source for this article, so the phrase is supported as Sun’s attribution, not as a quotation checked against Hanna’s PDF. Second, the same paragraph says EAP-IG “deduces a more accurate approximation to activation patching than vanilla attribution patching in Equation 4.” That comparative gloss is also borrowed; Appendix B does not print a new error bound for it.
What Appendix B says Equation 6 is, and what is adopted
Sun’s description of EAP-IG is a path integral from the unpatched activation to the counterfactual activation, labeled Equation 5, followed by a summed approximation labeled Equation 6. The step count m is defined in prose as the hyperparameter for how many steps approximate the integral. The formula bodies in the text extraction are not reliable enough to reproduce: the source note for this PDF is text extraction only, and equation glyphs need the rendered paper. The prose gloss does not depend on reconstructing the integrand.
The appendix then says, in a sentence that can be quoted from running text: “Equation 6 can be understood as a Monte-Carlo estimate of the integral in Equation 5.” “Understood as” is an interpretive gloss of an approximation Sun has just attributed to Hanna et al. (2024). It is not a claim that Equation 6 is derived in this preprint.
The same paragraph states the usual Monte-Carlo requirement and the adopted exception. Generally, Sun writes, such estimates need m ≫ 1 to be accurate, “potentially on the order of ∼ 105” in the extracted characters. Superscripts are not preserved reliably in this extraction, so that glyph should not be treated as a confirmed 105 or a confirmed 105. What is unambiguous in running text is the contrast Sun draws: despite that general requirement, “empirically Hanna et al. (2024) finds even m = 5 works quite well. These hyperparameters are adopted for all of the circuit experiments.”
Read strictly, the adopted object is “these hyperparameters,” immediately after the discussion of the EAP-IG step count. The empirical finding that m = 5 works quite well is reported as Hanna et al.’s result, not as a measurement Sun repeats on gemma-2-2b, phi-1.5, Llama-3.1-8B, or Gemma-2-9b. Equation 6 is the summed estimator being glossed. It is not the grammatical subject of “are adopted.”
Appendix B is stating borrowed patching glosses. It does not derive EAP-IG, does not prove that m = 5 controls the Monte-Carlo error on Sun’s tasks, and does not say that Equation 6 is the patching metric L. The metric used to score edges in the arithmetic case study is the next-token patching metric, which Sun labels Equation 8.
What “all circuit experiments” does and does not fix
The circuit experiments in v1 are the three case studies, all on Transformer language models, with edges defined as in Section 2: each MLP layer is one node, and unless otherwise specified each attention head is split into key, query, value, and output. A directed edge exists when one node’s output is a direct input to another. Soft-circuit scores are changes in L after ablating an edge. No layer index is specified as the intervention site; the intervention is edge ablation, estimated by attribution patching in the EAP-IG variant.
Conditions that the appendix does not collapse into the adopted hyperparameters:
Arithmetic, Section 4, uses gemma-2-2b on two-operand addition prompts of the form “a + b = ”, with k = 3 few-shot examples. Subtasks are digit-length pairs (o1, o2) for 1 through 8 digits, yielding 64 soft circuits. L is the next-token patching metric in Equation 8. Ablation is noisy-to-clean patching with noisy and clean samples from the same subtask. The footnote describes this checkpoint as a 2 billion parameter model with over 79k circuit edges under the Section 2 edge definition. Those edge and parameter counts are Sun’s description of that model, not a count to transfer to another checkpoint or to an SAE width, which this paper does not use.
Boolean expression evaluation, Section 5, uses phi-1.5, again with k = 3 few-shot examples, and says circuit-discovery details are largely the same as Section 4.1, with further notes pointed to Appendices B and D. Partitions vary expression length, parenthetical depth, and the operator set. The footnote describes phi-1.5 as a 1.5 billion parameter model with 128k circuit components. Appendix B.2 confirms noisy-to-clean patching for Sections 4 and 5: cache activations on one example, run another example with a different ground-truth label, and measure the performance drop relative to that second label. Sun interprets noisy-to-clean scores as a picture of necessary components. That interpretation is the author’s, not a separate identification result.
Sports understanding, Section 6, uses Llama-3.1-8B and Gemma-2-9b. Sun describes these as an 8 billion parameter model with over 1.5 million circuit edges and a 9 billion parameter model with over 720k circuit edges, respectively. Subtasks are five random disjoint cells of a finite sample, which Sun explicitly says are not true subtasks under Definition 2, because the partition is drawn after sampling rather than fixed as a positive-measure partition of the task distribution. Appendix B.3 says clean-to-clean patching is used in Section 6 because noisy-to-clean is not well-defined without a ground-truth label. The procedure caches activations on a padded input and patches them while running the model’s own sampled response, with the same Taylor expansion as above. Exact string match is the reported accuracy metric for the behavioral comparison; it is not Equation 6.
Appendix B.1 also defines an alternative multi-token metric, joint-token patching, and Table 1 contrasts it with next-token patching. The arithmetic setup cites Equation 8, the next-token metric, not the joint-token metric. Nothing in the “hyperparameters are adopted” sentence selects joint-token patching for all experiments.
Appendix D says the preprint does not finetune; pretrained weights are loaded from the transformer_lens package at its default hyperparameters and settings. Exact package versions and weight revisions are not printed in the extracted appendix. The preprint links a codebase at github.com/alansun17904/circuit-stability. This article does not report an independent run of that code, a replication, or a check of a version newer than v1.
Section 9 states a further limit that matters if someone treats the adopted estimator as the circuit: the computational-graph abstraction is a choice, from a trivial input-output edge to a machine-code trace, and Sun writes that it is unclear how circuit stability would change across those abstractions. EAP-IG scores inherit whatever graph Section 2 fixed. They do not, on the paper’s own account, certify that two different soft circuits implement different algorithms, or that similar scores implement the same one. Section 8 treats that gap as a feature of comparing mechanisms by description length, and leaves causal-abstraction metrics on K for future work.
How We Sourced This
Documents cited in this article: arXiv:2505.24731v1, github.com.
- Informal framing for a fixed task and model
- Which Hanna et al. phrasing names the edge-attribution variant
- What Appendix B says Equation 6 is, and what is adopted
- What “all circuit experiments” does and does not fix
