A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysis
Paper · 2023 · Alessandro Stolfo, Yonatan Belinkov and Mrinmaya Sachan
Summary
A correct arithmetic answer does not reveal how a language model produced it. The system might retrieve a familiar association, combine information about the numbers, or rely on patterns that happen to support the answer. This paper investigates that hidden process for questions involving addition, subtraction, multiplication, and division. Its subject is deliberately narrow: short arithmetic queries expressed in ordinary language, with either two operands or three. The aim is to identify which internal components influence the answer and to distinguish components that represent the inputs from those that contribute information about the result.
The authors use causal mediation analysis, an approach to interpretability that tests internal components by intervening on them. They run related questions through a system, save an internal activation from one question, and insert it into the processing of the other. An activation is the numerical output produced by a component during a particular computation. If replacing that output changes the probabilities assigned to the competing answers, the component has a causal influence under that intervention. The main analysis examines attention modules and multilayer perceptrons, or MLPs, at individual layers and token positions. Attention combines information across positions; an MLP transforms the representation available at a position.
The evidence supports a broad sequence of operations. Early components process the numbers and the operation where those inputs occur. Attention then brings relevant information to the final input position, where the next answer token will be predicted. MLPs in later parts of the network contribute information associated with the arithmetic result. An important control changes the operands while keeping the answer unchanged. Under that control, the influence of the later MLPs falls, whereas the influence of components associated with the operands remains. This helps separate sensitivity to the input numbers from sensitivity to their answer. GPT-J supplies the main case study, with supporting analyses on Pythia 2.8B, LLaMA 7B, and Goat.
The paper also asks whether this pattern merely reflects the need to predict a number. A task that retrieves a quantity already present in the question produces a different distribution of causal effects. Factual questions also depend more heavily on earlier components at the subject’s position. A finer analysis of GPT-J at layer 19 finds 50% overlap between influential coordinates for arithmetic written with digits and arithmetic written with number words. Overlap with number retrieval is lower, and overlap with factual prediction is close to the random-ranking reference. These findings support some specialization within shared layers. They do not identify a complete arithmetic algorithm or prove that every correct answer follows the same route. The contribution is a causal account of where arithmetic-relevant information is processed, together with controls that make that account more specific. The authors release code and data under the name lm-arithmetic and suggest future applications in selective training, pruning, and interventions during inference.
Interesting ideas
Separate input changes from answer changes. An intervention between different questions usually changes several things at once: the input values, their internal representations, and the answer the system should produce. The paper’s strongest control changes the operands while preserving the result. A component that remains influential under this control may carry input information; one whose influence drops becomes a stronger candidate for representing the answer. The same experimental logic can help elsewhere whenever different inputs can share an output. It offers a way to study the distinction between representing evidence and representing a conclusion.
Use meaningful activation replacements. The replacement values come from another genuine forward pass, rather than from an arbitrary constant. This makes the intervention interpretable as transferring a component’s response between related examples. The question becomes whether a representation produced for one case can redirect another case toward the corresponding answer. This approach is reusable in controlled question answering, retrieval, or classification experiments where matched inputs can be constructed. Its value depends on the pairing: the more clearly the examples differ, the easier it is to interpret what the replacement tests.
Choose controls that preserve plausible confounds. Number retrieval is a useful comparison because it still requires a numerical output, but the required quantity already appears in the prompt. Factual prediction offers a different comparison because the answer must be recovered from an association rather than calculated from supplied operands. These controls test competing explanations for the same activation pattern. Researchers can borrow the principle of selecting comparison tasks around the particular ambiguity in their interpretation. A generic collection of unrelated tasks would be less informative about whether a site responds to arithmetic, numerical answers, or answer production more broadly.
Locate broadly before examining coordinates. Intervening separately on every internal coordinate throughout a large network is expensive. The authors first inspect module outputs across positions and layers, then study individual coordinates at a layer highlighted by that broader analysis. This provides a practical division of labor between localization and detail. It can guide investigations in which the relevant computation is initially unknown. The finer analysis still needs its own qualifications: overlap among selected coordinates does not capture the full magnitude of their effects or establish a complete circuit.
Compare mechanisms before and after learning. The three-operand experiment examines Pythia 2.8B before and after arithmetic fine-tuning. The important observation is both behavioral and internal: after training, a later MLP activation site becomes prominent in a way that resembles the simpler arithmetic setting. This suggests a reusable research design for studying acquired capabilities. Rather than asking only whether training improved task accuracy, an investigator can ask whether the internal route changed in a predicted way. That can distinguish a behavioral improvement from evidence about how the improvement is implemented.
Check whether the conclusion survives a metric change. The main indirect-effect score uses relative probability changes. An appendix repeats the localization with a measure based on log probabilities and finds the same broad sites. The lesson is to test the part of the interpretation that matters. Here, agreement about the locations matters more than equality between numerical scores on different scales. This approach applies whenever a mechanistic conclusion depends on a choice of measurement: repeat the comparison with a defensible alternative and inspect whether the substantive claim remains.
Deep dive: A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysis
How causal interventions trace arithmetic inside language models, separating number representations, information routing, and answer formation. · about 36 minutes to read
How Mova uses it
For Mova, a small transparent language system implemented in Rust, the paper is most useful as a design for inspection. It suggests how to make claims about internal computation testable. It does not establish that Mova has the same architecture, the same activation sites, or an implemented arithmetic intervention facility. The concrete applications below are therefore proposals for what Mova could support.
A useful starting point would be a trace that distinguishes reading the operands, identifying the operation, combining the relevant information, and preparing an answer. Those distinctions need not correspond to the same layers found in GPT-J. Their purpose would be to expose the stages that Mova actually implements. The paper’s contribution is the experimental question attached to each stage: if the internal value at this point came from a related question, would the resulting answer change in the expected way?
An inspection interface could preserve enough information to compare an ordinary run with an intervened run. Relevant records would include the input, the selected internal component, the position at which it operated, the origin of the replacement value, and the resulting answer probabilities where such probabilities are available. In a transparent system, these records could make an explanation reviewable. A reader could see the intervention and its measured consequence instead of receiving only a verbal claim that a component “does arithmetic.”
The fixed-result comparison would be especially valuable. Mova could be tested on arithmetic questions with different operands but the same correct answer, alongside questions whose answers differ. If an internal quantity changes with the operands but does not track the result, the inspection should describe that quantity accordingly. Conversely, a component whose intervention effect depends strongly on changing the answer would warrant closer examination as a possible result representation. This would encourage explanations that distinguish input processing from answer formation.
The comparison tasks are also directly reusable as evaluation ideas. Mova could be asked to retrieve a stated quantity and to calculate a quantity from supplied numbers. A difference between those processes would provide evidence that the system treats retrieval and computation differently. If the processes instead share an implementation, that would also be an informative finding. Transparency should make either outcome visible instead of presupposing a particular division of labor.
Finally, the paper offers a disciplined order for possible optimization work. First identify a component’s role with controlled tests; then consider whether training, replacement, or simplification could target that component. The authors discuss such applications as future directions, and the same qualification applies to Mova. The paper supplies an experimental rationale for selective changes. It does not supply a verified pruning rule, an arithmetic repair procedure, or evidence that modifying a localized component will preserve all other behavior.
The problem and its context
Correct answers leave the mechanism unresolved
A language model predicts possible continuations of a token sequence. When the sequence contains an arithmetic question, that prediction can coincide with the correct mathematical answer. The scientific difficulty is determining what internal process made the answer likely.
The paper treats this as a problem about computation inside a network. An accuracy score can establish how frequently a system answers the tested questions correctly. It cannot, by itself, identify which representations contain the operands, where information about the operation is used, or where information about the result becomes available. Different internal routes could produce similar observable behavior.
This matters because arithmetic requires relationships among quantities. The words surrounding the numbers specify what operation should be performed, and the answer must depend on that operation as well as the operands. The authors therefore investigate both kinds of input information. Their experiments vary the numbers while preserving the operation, and separately vary the operation while preserving the numbers.
The motivating hypothesis is that particular parts of a network contribute disproportionately to this process. The authors do not assume that every parameter participates equally in every arithmetic answer. Their intervention procedure searches for components through which changes in the question affect the output.
Earlier progress emphasized performance and prompting
The introduction describes a research landscape in which mathematical performance had improved while the internal explanation remained incomplete. It cites work on scale and capability, including PaLM and the GPT-4 Technical Report. It also cites evidence of inconsistent behavior and sensitivity to context.
The paper groups approaches to improvement into changes to training and changes to prompting. Work such as Solving Quantitative Reasoning Problems with Language Models belongs to the training-oriented context. Chain-of-Thought Prompting and Large Language Models Are Zero-Shot Reasoners provide examples of prompting research.
These lines of work motivate, rather than answer, the paper’s question. A method can improve arithmetic performance without revealing which internal components implement the improvement. The present study therefore does not propose another prompting strategy or compete primarily on a mathematical benchmark. It examines a simpler setting in which the relationship between an input change and an expected answer change can be controlled closely.
The related-work discussion also distinguishes internal analysis from behavioral robustness analysis. Earlier causal work on mathematical reasoning examined how answers changed under modifications to problems. The authors characterize that work as lacking an account of the network’s internal mechanisms. Their contribution is to carry the intervention inside the computation.
From observing activations to changing them
Mechanistic interpretability seeks explanations in terms of components and their interactions. The paper traces this research through early examinations of recurrent-network neurons, including Visualizing and Understanding Recurrent Networks, and later studies of Transformer representations and computations.
Several cited works motivate a distinction between moving information and transforming it. Attention is associated with selecting and conveying information between positions. Feed-forward components are associated with computation and stored associations. Transformer Feed-Forward Layers Are Key-Value Memories and Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Space form part of that context.
The arithmetic study tests a hypothesis compatible with this distinction. It asks whether attention brings the relevant inputs to the answer position and whether later MLPs contribute result information there. Compatibility with earlier theory is useful, but the authors seek additional evidence through controlled replacements.
Causal mediation analysis supplies the framework. A mediator is an intermediate variable through which an input can influence an output. In a neural network, an activation can serve as such a variable. Changing it while holding the surrounding run fixed provides evidence about its contribution under that intervention.
The paper describes previous uses of this framework for gender bias, grammatical agreement, natural language inference, indirect-object identification, and factual associations. Locating and Editing Factual Associations in GPT is especially relevant because it connects intervention-based localization to stored knowledge. The arithmetic study asks whether a similar approach reveals a different route when an answer depends on supplied quantities.
Why use simple arithmetic questions?
Short synthetic questions provide unusually clear experimental control. The operands and operators can be changed independently. Different operand combinations can also be chosen to produce the same result. These properties let the authors construct comparisons that would be harder to isolate in a realistic mathematical word problem.
The simplicity is therefore part of the method. It reduces ambiguity about which input feature changed and what answer should follow. At the same time, it limits the conclusion. Explaining the broad route used for a short arithmetic query does not establish how a system interprets a lengthy scenario, chooses a mathematical formulation, or coordinates an extended solution.
The authors position their work as an initial connection between mechanistic analysis and mathematical reasoning. That framing is appropriate to the evidence: the paper identifies influential sites and tests their likely roles, while leaving the detailed arithmetic algorithm unresolved.
The method, step by step
Represent the question as a next-token prediction
The authors begin with an autoregressive system that maps an input sequence to a distribution over possible continuations:
𝒢: 𝒳 → 𝒫
Here, 𝒢 denotes the language model, 𝒳 is the space of input token sequences, and 𝒫 is the space of output probability distributions. A probability distribution assigns a probability to each candidate next token.
The input sequence is written as:
x = [x₁, …, x_T], with xᵢ ∈ V
The symbol x denotes the complete input, T its length, xᵢ the token at position i, and V the vocabulary. A token is a unit recognized by the system’s tokenizer. It may correspond to a word, a numeral, or only part of either. This matters because the main experiments compare probabilities for numerical answers represented by individual tokens.
An arithmetic query has operands and an operation. Its mathematical answer is:
r = f_O(N)
The symbol N denotes the collection of operands, such as n₁ and n₂. The function f_O applies the specified operation or combination of operations. The symbol r is the resulting number.
The natural-language input is represented as:
p(N, f_O) ∈ 𝒳
Here, p is a template that expresses the operands N and operation f_O as a question. Different templates can ask for the same calculation using different wording. The experiment concerns the internal processing of this rendered question, rather than an arithmetic expression supplied directly to a calculator.
Identify the internal variables available for intervention
The systems studied use decoder-only Transformer and attention architectures, following the broader architecture introduced in Attention Is All You Need. The methodology gives a simplified account of a block with parallel attention and MLP contributions. It also discusses rotary positional encoding, citing RoFormer.
The hidden representation at a position is updated as:
hₜˡ = hₜˡ⁻¹ + aₜˡ + mₜˡ
The symbol hₜˡ is the hidden vector at token position t after layer l. The preceding vector is hₜˡ⁻¹. The attention contribution is aₜˡ, and the MLP contribution is mₜˡ. Their addition to the existing representation is the residual update. The residual stream is the evolving representation carried through these additions.
The attention contribution is:
aₜˡ = Aˡ(h₁ˡ⁻¹, …, hₜˡ⁻¹)
The function Aˡ is the attention module at layer l. Its output at position t can depend on representations at that position and preceding positions. This provides a route by which information about operands earlier in the question can reach its final position.
The MLP contribution is:
mₜˡ = W_projˡ σ(W_fcˡ hₜˡ⁻¹)
The matrices W_fcˡ and W_projˡ parameterize the MLP at layer l. The function σ is the nonlinearity, described in the paper’s notation as sigmoid. The input is the hidden vector at the same position from the preceding layer.
The authors also name that transformation directly:
mₜˡ = MLPˡ(hₜˡ⁻¹)
The function MLPˡ denotes the complete feed-forward transformation at layer l. Unlike attention, this expression transforms the representation at a particular position without directly combining the other positions as separate inputs.
The equations omit Layer Normalization for simplicity. The intervention targets are the outputs of the attention and MLP modules. This is a practical choice: testing each individual coordinate throughout a network of this size would be substantially more demanding.
Construct a pair of related questions
The basic operand experiment starts with a fixed operation. The authors sample operand sets N and N′, producing answers r and r′. They render both calculations using the same question template:
p₁ = p(N, f_O)
The symbol p₁ denotes the first question. It contains operands N and uses operation f_O.
p₂ = p(N′, f_O)
The symbol p₂ denotes the second question, with replacement operands N′ and the same operation. Its answer is r′. The template and operation remain fixed so that the intended variation lies in the operands.
This paired construction gives the intervention a direction. The first question supplies the replacement activation. The second question supplies the run into which that activation will be inserted. The experiment then asks whether the replacement pushes the output away from the second question’s answer and toward the first question’s answer.
Tracing arithmetic through controlled activation replacement
The steps in order.
The ordinary run of the second question is essential. It provides the probability values against which the intervened run is compared. The replacement is meaningful only in relation to that baseline.
Save and replace a component output
During the first question’s forward pass, the authors record the outputs of the selected MLP and attention components. A forward pass is the computation from input tokens to output probabilities. Each saved value is associated with a particular layer, position, and component type.
They then process the second question again. At the selected location, they substitute the corresponding output recorded from the first question. The rest of the computation continues from that altered internal state.
The procedure is repeated to measure MLP and attention effects across the network. These measurements produce a map over layers and token positions. A large effect indicates that the chosen replacement strongly alters the relevant answer probabilities at that site.
This is more informative than observing a large activation alone. An activation can be large without having a large influence on the prediction of interest. Conversely, an influential activation need not be conspicuous by magnitude. The replacement experiment tests a particular causal dependency between an internal output and the answer distribution.
It remains a local intervention test. It measures what happens when one component output is replaced in a particular surrounding computation. It does not automatically characterize every interaction involving that component or prove that the component is sufficient to calculate the answer on its own.
Measure the indirect effect
The paper calls its principal score the indirect effect, abbreviated IE:
IE(z) = 1/2 [(P_z*(r) − P(r))/P(r) + (P(r′) − P_z*(r′))/P_z*(r′)]
The symbol z denotes the activation variable being replaced. It may be an MLP output or an attention output at a chosen layer and position. P is the answer distribution for the ordinary second-question run. P_z* is the distribution after the intervention on z. The answers r and r′ belong to the first and second questions, respectively.
The first term measures the relative increase in probability assigned to r. The second measures the relative decrease in probability assigned to r′, using the intervened probability in its denominator. The factor 1/2 averages the terms. A larger score indicates a stronger shift in the direction associated with the replacement activation.
The denominators matter because this is a relative-change measure. IE is not an accuracy percentage, a direct share of computation, or a count of successfully transferred answers. It measures probability sensitivity under the specified intervention.
The same approach can examine operator information. In that experiment, the operand list remains fixed, while the operation changes:
p₂ = p(N, f_O′)
The symbol f_O′ is the alternative operation. The first question still uses f_O. Replacing activations between these questions tests which sites mediate the effect of changing the requested operation.
Keep the result fixed to separate possible roles
The most important controlled variant requires:
r = r′
The symbols r and r′ retain their meanings as the mathematical answers to the paired questions. The equality means that different operand sets produce the same correct answer.
For example, the authors pair an addition involving 25 and 7 with an addition involving 14 and 18. The point is not the particular numbers. It is the shared answer despite different inputs.
This control distinguishes two explanations for an influential component. A component associated with the operands can remain sensitive because the numbers change. A component associated mainly with the result should be less sensitive when the result is preserved.
The experiment therefore compares the locations and magnitudes of effects between unconstrained pairs and equal-result pairs. It does not depend on assuming that every activation has a single interpretable meaning. Instead, it asks whether a proposed distinction between input-related and result-related processing predicts a measurable change.
Summarize the concentration of MLP effects
To compare regions of the network, the authors define relative importance, abbreviated RI:
RI(ℳ*) = Σₘ∈ℳ* log(IE(m) + 1) / Σₘ∈ℳ log(IE(m) + 1)
The set ℳ contains the MLP sites considered in the analysis. The subset ℳ* contains the sites whose combined importance is being measured. IE(m) is the indirect effect at site m. The summation symbol Σ adds the transformed effects over the specified set, and log is the logarithm.
The numerator aggregates transformed effects within the selected region. The denominator aggregates them over all MLP sites. RI therefore describes the concentration of this particular effect measure.
The region of interest is:
ℳ₋₁ˡᵃᵗᵉ = {m₋₁^⌊L/2⌋, m₋₁^(⌊L/2⌋+1), …, m₋₁ᴸ}
The symbol L denotes the network’s number of layers. The floor brackets select the integer part of L/2. The subscript −1 denotes the final input token. The set contains MLP sites from the middle of the network through its final layer, all at that last position.
This definition permits comparisons across systems without requiring identical layer counts. It also prevents a visual impression from being the only evidence: the authors can quantify how much of the transformed MLP effect lies in the region implicated by the heatmaps.
Generate the arithmetic data
The two-operand experiments cover addition, subtraction, multiplication, and division. Each operation is expressed through six question templates. For each template and operation, the main procedure samples 50 prompt pairs.
The usual numerical set is:
𝒮 = {1, 2, …, 300}
The symbol 𝒮 denotes the allowed set of numerical values. The authors choose this range because larger integers can be divided into multiple tokens. They constrain the arithmetic result to remain within the allowed set.
For three operands, the study uses 29 templates covering the two-operation combinations included in its setup. It samples 15 pairs for each template. The questions express the nested calculation in language, so the operation structure must be recovered from the wording.
The prompts include two answered examples of the same operation as the query. This is few-shot learning through context: the examples are part of the input, rather than updates to the network’s parameters. Their purpose is to obtain meaningful task performance before interpreting internal effects.
Tokenization changes the feasible answer space across settings. For the LLaMA-based analyses, individual digits are separate tokens, so the possible results are restricted to single-digit answers. For arithmetic expressed with number words, the available single-token words also impose a smaller range. These restrictions are part of the experimental conditions, not incidental implementation details.
Fine-tune the three-operand case
The main three-operand training experiment uses Pythia 2.8B. The authors choose it because training is less demanding than with GPT-J. The purpose is to examine whether improved arithmetic performance is accompanied by a change in the internal effect pattern.
The training queries are created by sampling 1000 operand triples for each of the 29 templates. Fine-tuning runs for 2 epochs with Adafactor. The learning rate is 10⁻⁵, decreases linearly, and the batch size is 8.
The training questions do not overlap with those used to measure indirect effects. This separation supports the interpretation that the measured changes extend beyond the exact training queries. It does not establish generalization to unrelated mathematical tasks, because training and analysis still use the same broad synthetic task family.
Build the comparison tasks
The number-retrieval task presents quantities associated with different objects and asks for the quantity attached to a selected object. Object names are sampled from everyday categories. The paired prompts change which object is queried while leaving the stated quantities available in the context.
The factual task uses the T-REx portion of LAMA, associated with Language Models as Knowledge Bases?. The authors select six relations concerning capitals, birthplaces, death locations, native languages, and subclass relationships. For each relation, they sample 100 pairs of compatible subjects.
The factual pairs differ in the subject. Their correct objects play the role occupied by numerical results in the arithmetic experiment. This lets the same intervention logic compare calculations from supplied inputs with retrieval of factual associations.
Experiments and results
The main comparison is between internal explanations
GPT-J, with 6B parameters, is the principal experimental subject. Pythia 2.8B, LLaMA 7B, and Goat provide additional cases. Goat is described as an arithmetic-fine-tuned version of LLaMA; the paper uses it to test the observed pattern in a system with arithmetic-focused training.
These are not primarily competitors in a performance ranking. The central comparisons concern alternative explanations of the internal effects: operands versus results, arithmetic versus number retrieval, and arithmetic versus factual recall. The authors also compare different numerical representations and the same system before and after fine-tuning.
The main metrics serve different purposes. Accuracy establishes whether the task is being performed meaningfully. IE measures the answer-probability response to an activation replacement. RI summarizes where transformed MLP effects are concentrated. Coordinate overlap measures how similar the selected influential coordinates are across tasks.
Keeping these measures distinct is essential. A system can have an identifiable activation pattern while making many mistakes. A region can have a high RI without being an independently sufficient arithmetic module. A substantial overlap can coexist with differences in the magnitudes or roles of the overlapping coordinates.
Arithmetic effects concentrate at specific positions and layers
For GPT-J, operand interventions reveal strong effects at early MLPs positioned on the operands. This is expected because the altered numbers enter the network there. The important additional sites occur at the final input position.
Attention effects are prominent in layers 11–18. MLP effects become especially important around layer 20. The authors interpret this ordering as evidence that attention conveys relevant input information to the final position, after which MLPs contribute result information.
Changing the operation produces a parallel pattern. Early components respond near the operation-bearing wording, while attention and MLP effects also appear at the final position. Hence, the proposed route includes information about what calculation to perform as well as the quantities involved.
When the paired questions have equal answers, the later MLP effect falls markedly. Early operand-associated effects remain. The final-position attention profile also changes less substantially than the MLP profile.
A closer view places the strongest result-varying MLP effects at layers 19 and 20. With the result preserved, the largest MLP effects instead occur in layers 14-18. Attention’s strongest contribution is at layer 13, with a broadly similar profile across the compared conditions.
The replication analyses support the same broad interpretation across the additional systems and the number-word setting. The evidence concerns a common organization of effects, rather than an identical numerical profile or a universal assignment of functions to particular layer indices.
Three-operand training changes the internal pattern
GPT-J performs poorly on the three-operand questions, with accuracy below 10%. This motivates the training experiment on Pythia 2.8B. After fine-tuning, Pythia reaches roughly 40% accuracy on the three-operand setting.
The internal comparison is informative alongside that behavioral result. Before fine-tuning, the prominent MLP effects outside the early operand positions are concentrated at the final layer and final position. After fine-tuning, a middle-to-late MLP site becomes prominent at the final position, resembling the pattern found for two-operand arithmetic.
The result links the emergence of this activation pattern to learning in the tested setting. It does not show that the later site alone explains the improvement, nor that the resulting system has acquired a general procedure for arbitrary arithmetic.
Retrieval and factual prediction produce different concentrations
GPT-J attains 86.7% accuracy on the synthetic number-retrieval task. Its factual accuracy is 65.0% under a vocabulary restriction to the possible objects across the selected relations. These conditions matter when interpreting the scores: factual prediction is evaluated within a constrained answer vocabulary.
For number retrieval, a strong MLP effect occurs around the entity named in the question. A weaker final-position site appears in layers 14–20. The later MLP region accounts for 8.7% of the transformed effect measured by RI.
For factual prediction, the prominent site is early in the network at the subject tokens. The corresponding later-region RI is 4.2%. This agrees with the factual-association account discussed in the paper’s earlier-work context.
The arithmetic operator-change experiment has a later-region RI of 31.4%. The comparison below concerns concentration of intervention effects, not task accuracy. A higher value means more of the measured MLP effect lies in the selected late region; it does not mean the task was performed better.
GPT-J late final-token MLP concentration across intervention settings
The arithmetic setting places more measured effect in late final-token MLPs than either comparison task.
The numbers
| System or setting | relative importance % |
|---|---|
| Number retrieval | 8.7 |
| Factual prediction | 4.2 |
| Arithmetic with operator changes (this paper) | 31.4 |
The chart supports a specific distinction. Predicting a number does not by itself produce the same concentration as arithmetic. Recovering a factual object also emphasizes different sites. These controls strengthen the interpretation that the arithmetic pattern reflects processing of the query’s mathematical information.
Influential coordinates differ across tasks
The finer analysis examines GPT-J’s MLP output at layer 19. The authors intervene separately on its coordinates, rank them by average IE, and select the top 400. The output dimension is 4096, so the selection covers roughly 10% of those coordinates.
Arithmetic with digits and arithmetic with number words share 50% of their selected coordinates. The overlaps between arithmetic and number retrieval are 22% and 23%. Arithmetic and factual prediction overlap between 9% and 10%, compared with an expected random-ranking overlap of 9.8%.
These results support partial sharing across numerical representations and greater separation across task types. They also refine the layer-level findings: two tasks can involve the same layer without depending on the same selected coordinates.
The measurements have a substantial computational cost
The experiments use a single Nvidia A100 with 80GB of memory. Computing a full-model IE map for one component type takes roughly 15 hours for GPT-J and roughly 6 hours for Pythia, using 50 examples per two-operand template.
The corresponding computations for LLaMA and Goat take approximately 7 hours, using 20 examples per template. Fine-tuning Pythia takes roughly 1 hour on the same hardware configuration.
These figures explain why the study first examines whole module outputs and reserves coordinate-level interventions for a selected layer. The analysis itself is a significant computational experiment, even though it does not require retraining every system.
What the ablations show
Preserving the answer distinguishes representations from results
The equal-result comparison is the paper’s most consequential controlled analysis. Without it, a strong late MLP effect would remain compatible with several explanations. The module might contain the operands, information about the answer, or a mixture of features that influence both.
Keeping the answer fixed changes what those explanations predict. Operand information must still differ because the numbers differ. Result information need not differ because the mathematical answer is unchanged.
The observed contrast follows that distinction. Early MLP effects at the operand positions remain strong. The later final-position MLP effects decline. Attention also retains a more similar profile between the conditions.
This is evidence for a functional division, not a direct reading of semantic labels from the vectors. The authors infer a result-related role from the behavior of interventions under a carefully chosen control. That is stronger than assigning a role from the original heatmap alone.
The conclusion should nonetheless remain at the level tested. A reduction in effect supports the proposed role of the region; it does not prove that every coordinate within it represents only the answer or that other regions contain no result information.
Changing the operator tests the route from another direction
The operator experiment holds the operands constant and changes the calculation. It therefore asks whether the same broad sites mediate information about the requested operation.
The resulting final-position attention and MLP effects resemble those found when changing the operands. This matters because arithmetic depends on both. A route that moved only the numbers would not yet explain how the system chooses among the possible calculations.
The agreement supports a combined account: information about operands and operation reaches the final position, where later transformations influence the result. It does not resolve how the operation is represented internally or whether distinct operations use identical computations within that region.
Inspecting each operation checks an aggregate result
The authors examine addition, subtraction, multiplication, and division separately. The final-position MLP effects show a common peak around layers 19-20 in GPT-J.
This makes the overall result less likely to be a feature of only one operation hidden inside an aggregate. The broad location appears relevant across the tested arithmetic types.
The effect magnitudes still differ. The paper connects those differences to the ability to answer the corresponding queries. A shared location therefore should not be read as evidence of equal competence or a single undifferentiated arithmetic procedure.
Answer changes connect probability effects to visible behavior
The principal analysis measures probability changes, which can occur without changing the highest-probability answer. The appendix therefore examines whether interventions change the selected prediction:
𝟙{argmaxₓ∈𝒮 P_z*(x) ≠ argmaxₓ∈𝒮 P(x)}
The symbol 𝟙 is an indicator: it records whether the condition inside the braces holds. The argmax operation selects the candidate with the greatest probability. The candidate x ranges over the numerical answer set 𝒮. P and P_z* are the ordinary and intervened distributions.
The analysis uses the equal-result condition and distinguishes beneficial changes from harmful ones. A beneficial change ends at the correct answer:
argmaxₓ∈𝒮 P_z*(x) = r
Here, r is the shared correct result. In the context of a changed prediction, this condition identifies a move to the correct answer.
A harmful change starts from a correct ordinary prediction:
argmaxₓ∈𝒮 P(x) = r
Together with a changed prediction, this identifies a move away from the correct answer.
Beneficial changes increase around layers 19-20. Harmful changes are more prominent in layers 14-17, with layers 14-15 especially implicated in the discussion. This provides behavioral support for the distinction inferred from the probability maps.
It is still an analysis of intervention outcomes, rather than a complete correction method. The paper does not demonstrate a deployed rule for choosing a replacement activation that reliably repairs a new arithmetic error.
An alternative metric recovers the broad sites
The appendix checks whether the localization depends on the main relative-probability score. Its alternative is:
IE_alt(z) = { Δ′ + Δ if r ≠ r′; |Δ| otherwise }
The symbol IE_alt denotes the alternative indirect-effect measure. The activation variable is z. The quantities Δ′ and Δ describe changes in log probabilities. The vertical bars denote absolute value.
The first quantity is:
Δ′ = log P_z*(r) − log P(r)
This measures the log-probability change for the answer associated with the replacement activation.
The second is:
Δ = log P(r′) − log P_z*(r′)
This measures the log-probability reduction for the ordinary second-question answer.
The alternative recovers the same broad activation sites: early operand-position MLPs and final-position attention and MLP modules. This reduces concern that those locations are artifacts of the original score’s normalization.
Agreement of locations does not make the metrics interchangeable in every respect. Their scales and sensitivities differ. The supported claim is that the central localization survives this particular change in measurement.
Representation and task comparisons refine specialization
The digit-versus-word analysis asks whether arithmetic processing depends entirely on the surface notation. The observed coordinate overlap supports a shared component across those representations.
The number-retrieval comparison then asks whether the same coordinates are simply associated with numerical answers. Its lower overlap argues against that being the whole explanation. The factual comparison further distinguishes arithmetic from another route to answering.
These analyses provide complementary evidence. RI compares the distribution of effects across sites; coordinate overlap compares selected coordinates within a site. Neither measure alone gives a complete circuit description, but together they make the specialization claim more precise.
Limitations
The authors’ stated limits
The authors explicitly restrict the study to addition, subtraction, multiplication, and division. These operations offer a tractable starting point, but they do not cover the full range of mathematical processing. The paper leaves broader operator families for future investigation.
They also identify the synthetic nature of the questions as a limitation. The prompts are constructed from descriptions of basic operations. They do not reproduce the full demands of mathematical word problems, where a system must interpret a situation before deciding which calculation is appropriate.
The distinction matters because the present task supplies the mathematical structure relatively directly. A successful answer does not require resolving all the linguistic and conceptual choices involved in a realistic problem. The proposed information route therefore needs further testing before being extended to those settings.
The authors’ final stated limitation concerns attention heads. The intervention treats an attention module’s output as a whole. It does not identify the individual heads responsible for transferring particular kinds of information.
As a consequence, attention’s role is localized more coarsely than a complete mechanism would require. The evidence supports information movement through certain attention modules, but leaves open how their internal contributions divide the work.
Reader’s qualification: localization is not an arithmetic algorithm
The paper identifies influential sites and supports a broad processing sequence. It does not recover a complete procedure specifying how the network calculates each answer.
A result-related MLP output could arise from different internal computations. The interventions establish that replacing the output changes the answer distribution in a way related to the arithmetic result. They do not, by themselves, reveal the exact numerical representation or transformation that produced it.
The conclusion is therefore stronger than a correlation between activations and answers, but narrower than a fully reconstructed circuit. It explains where important transformations appear to occur and tests their likely roles.
Nor does a localized effect establish that the selected region is sufficient on its own. A later MLP depends on representations created earlier. Its contribution may be large precisely because attention and preceding transformations have already assembled useful information.
Reader’s qualification: the answer spaces are restricted
Single-token numerical answers make the probability comparison manageable. They also restrict the arithmetic being examined. The usual set extends through 300, while other tokenization settings require narrower answer spaces.
The LLaMA-based experiments restrict possible results to single digits. The number-word setting uses a smaller set because longer number expressions can split into several tokens. The coordinate comparison uses quantities from 1 through 20 to align the numerical answer spaces across its tasks.
These conditions prevent an unrestricted comparison of arithmetic competence across systems or representations. A higher accuracy under one representation could reflect an easier answer range as well as a representational difference. The authors themselves note this issue when discussing number-word accuracy.
The evidence also does not directly cover generating a multi-token number, maintaining consistency across a longer answer, or producing an explanation alongside the result. Those require additional observations beyond the next-token comparisons used here.
Reader’s qualification: effects depend on the intervention design
The saved activation comes from a real run, which gives the replacement a clear source. Once inserted into another run, however, it interacts with a different surrounding state.
The measured effect therefore belongs to that replacement and context. It is not a context-free property of a component. Alternative question pairings, answer sets, or intervention locations could expose other dependencies.
This does not invalidate the experiment. It specifies the level at which its causal claim holds. The component influences the measured prediction under the tested intervention. Broader claims about necessity, sufficiency, or exclusive responsibility would require additional designs.
The same caution applies to the inferred sequence. The maps support the proposed route, but the study does not exhaustively intervene on every interaction between the early sites, attention modules, and later MLPs.
Reader’s qualification: RI is a measurement summary
RI aggregates logarithmically transformed indirect effects. Its percentages describe that aggregation, not an exact percentage of reasoning performed by a region.
A lower late-region RI for factual prediction supports a different distribution of measured effects. It does not mean that later layers are irrelevant to producing the factual answer. Likewise, a high arithmetic RI does not establish that all useful arithmetic processing is confined to that region.
The metric is valuable because it makes a specific comparison quantitative. Its interpretation should remain tied to the components, interventions, and transformation used to construct it.
Reader’s qualification: coordinate overlap has limited scope
The fine analysis considers the top 400 coordinates at a selected layer. That threshold turns a continuous ranking of effects into a membership comparison.
As the authors note, overlap does not incorporate effect magnitude. A coordinate can count equally in the overlap whether its effect is large or relatively small among the selected entries. The result also does not characterize every coordinate outside the selected set.
Additionally, the operational units are coordinates in an MLP output vector. Treating those coordinates as independently interpretable mechanisms is a stronger assumption than the overlap measurement establishes.
The findings support task differentiation within a shared layer. They do not demonstrate entirely separate, self-contained arithmetic and factual circuits throughout the network.
Reader’s qualification: training evidence and applications remain bounded
The three-operand experiment connects fine-tuning with both improved accuracy and an emerging activation site. It does not isolate every training-induced change or prove that the site’s emergence alone caused the behavioral improvement.
The training and analysis questions are disjoint, but they remain within a common synthetic task family. The experiment therefore supports generalization within that family more directly than transfer to broader mathematical reasoning.
Finally, pruning, targeted training, truth estimation, and inference-time correction are proposed applications. The paper’s conclusion connects its findings to those possibilities, including Inference-Time Intervention as relevant earlier work. It does not evaluate a complete arithmetic repair or compression system built from the localization.
What came after
Intervention methods became a broader point of comparison
The later citation record includes work on activation replacement, representation inspection, arithmetic, and the reliability of mechanistic explanations. A citation establishes that the later work references this study. It does not on its own establish which experiment it adopted or which result it confirmed. The clearest connections below follow the subjects explicitly named in those works.
Towards Best Practices of Activation Patching takes metrics and intervention methods as its central subject. That connects directly to this paper’s dependence on matched examples, activation replacements, and probability-based scores. The arithmetic study already illustrates why metric checks matter by comparing its main IE with a log-probability alternative. The later work’s stated focus places such methodological choices at the center of investigation.
Patchscopes presents a framework for examining hidden representations. Its connection is to the general strategy of using an internal state from one computation to learn about what another computation can do with it. The arithmetic study uses that strategy to test answer influence at selected sites. The citation information does not establish that Patchscopes reproduces the arithmetic analysis or reaches the same localization.
Information Flow Routes addresses interpretation at scale through information-flow routes. The shared concern is the path by which relevant information reaches an output. In the arithmetic study, that path is inferred through interventions and controls. The later title points toward a broader effort to make route-based accounts useful across larger interpretability investigations.
Gemma Scope concerns sparse autoencoders distributed across Gemma 2. Its stated subject places it in the wider effort to inspect internal representations at many locations. The connection to the arithmetic study is the need for interpretable internal units beyond broad layer-level effects. The citation record alone does not justify claiming that its learned features correspond to the arithmetic coordinates identified here.
Arithmetic research pursued more detailed representations
Arithmetic Without Algorithms frames mathematical answering in terms of a collection of heuristics. That subject sharpens a question left unresolved by the earlier localization: what computation occurs inside the result-related region? Finding where answer information appears is compatible with different accounts of how that information is produced.
Language Models Use Trigonometry to Do Addition names a more specific account of addition. Its relationship to this paper is a change in explanatory granularity. The earlier work identifies a broad route and influential sites; a claim about trigonometry concerns the structure of the numerical computation itself. The citation information does not establish which parts of the earlier route the later work uses.
Language Models Encode the Value of Numbers Linearly focuses on numerical representation. This connects to the question of what information attention might convey before later transformations contribute an answer. The arithmetic study distinguishes operand-related and result-related effects, but does not establish a general geometry for numerical values.
Tokenization Counts makes the effect of tokenization on arithmetic its explicit topic. That is a particularly concrete continuation of an experimental constraint here. The arithmetic study changes answer ranges to accommodate tokenization and compares digits with number words. Those choices already show why numerical performance and internal processing cannot be interpreted independently of representation.
All for One describes mental arithmetic at the final token using information transferred from other positions. Its stated subject is closely aligned with this paper’s broad account of attention-mediated transfer followed by final-position processing. That alignment is a thematic connection; it does not establish identical components or intervention results across the studies.
Language Models Learn Universal Representations of Numbers and LLMs Know More About Numbers than They Can Say extend the numerical-representation theme in their stated subjects. They point towards questions about shared internal representations and the relationship between internal numerical information and expressed answers. This paper contributes an earlier distinction between input information, result-related information, and final prediction, without settling those broader questions.
Correctness and explanation remained separate concerns
Have Faith in Faithfulness explicitly argues, through its title, for going beyond circuit overlap in evaluating mechanisms. That concern is relevant to the coordinate-overlap analysis here. The arithmetic paper already cautions that overlap ignores effect magnitude, so its results should be read as one form of evidence instead of a complete test of explanatory adequacy.
Making Reasoning Matter examines the faithfulness of chain-of-thought reasoning. It addresses a different observable from the arithmetic study, which intervenes on internal activations rather than evaluating a written reasoning trace. The shared issue is whether an explanation corresponds to the process influencing the answer.
The Validation Gap distinguishes computing arithmetic from validating it. This is an important boundary around the earlier findings. Identifying result-related processing does not establish that a system can recognize whether an offered result is correct. The later work’s stated topic makes that distinction explicit.
ICR Probe uses hidden-state dynamics as the subject of an investigation into hallucination detection. Its connection lies in the possibility that internal computation contains useful evidence about answer reliability. The arithmetic study proposes truth estimation as a future direction, but does not demonstrate the later detection approach.
Localization also invited intervention and broader synthesis
Math Neurosurgery focuses on isolating mathematical abilities using forward passes. Its stated objective connects to the earlier hypothesis that particular components contribute disproportionately to arithmetic. The citation information does not establish which localization method it adopts or whether its isolated abilities match the basic operations tested here.
Back Attention concerns understanding and improving multi-hop reasoning. ReasonAny concerns transferring reasoning capability through merging. Both belong to a broader move from describing internal processing toward changing capability. Their titles alone do not support a claim that they implement this paper’s proposed arithmetic interventions.
When One LLM Drools, Multi-LLM Collaboration Rules addresses collaboration among systems. Its connection is broader still: it cites the arithmetic investigation within a different reasoning setting. The citation does not establish that collaboration depends on the same internal route identified for short arithmetic questions.
The later list also includes How Do Large Language Models Handle Multilingualism?, which takes a different representational problem as its subject. The arithmetic study’s transferable contribution to such investigations is its controlled comparison of related inputs and internal effects. The citation information does not establish a direct transfer of its arithmetic findings to multilingual processing.
Finally, several citing works synthesize the broader field: Mechanistic Interpretability for AI Safety, A Primer on the Inner Workings of Transformer-based Language Models, and A Practical Review of Mechanistic Interpretability. A Survey on Latent Reasoning places hidden computation within reasoning research, while Locate, Steer, and Improve emphasizes actionable interpretation.
Across these connections, the enduring research question is precise: after locating an internal contribution, what further evidence is needed to explain its computation, trust its interpretation, or change it usefully? This paper supplies a concrete answer to the first stage. Its matched interventions, equal-result control, and comparison tasks show how a broad mechanistic hypothesis about arithmetic can become a set of testable claims.
Cite
Cite as Alessandro Stolfo, Yonatan Belinkov and Mrinmaya Sachan. 2023. A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysis. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{stolfo2023mechanistic,
title = {{A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysis}},
author = {Alessandro Stolfo, Yonatan Belinkov and Mrinmaya Sachan},
booktitle = {Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing},
year = {2023},
doi = {10.18653/v1/2023.emnlp-main.435},
eprint = {2305.15054},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/2023.emnlp-main.435}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/stolfo-2023-mechanistic-interpretation-arithmetic-reasoning-language/
References
- Omer Antverg and Yonatan Belinkov. 2022. On the pitfalls of analyzing individual neurons in language models (https://openreview.net/forum?id=8uz0EWPQIMu). In International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
- Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. 2016. Layer normalization (https://arxiv.org/abs/1607.06450). arXiv preprint arXiv:1607.06450. OpenAlex ↗ · Scholar ↗
- Nora Belrose, Zach Furman, Logan Smith, Danny Halawi, Igor Ostrovsky, Lev McKinney, Stella Biderman, and Jacob Steinhardt. 2023. Eliciting latent predictions from transformers with the tuned lens (https://arxiv.org/abs/2303.08112). arXiv preprint arXiv:2303.08112. our card
- Stella Biderman, Hailey Schoelkopf, Quentin Anthony, Herbie Bradley, Kyle O'Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, et al. 2023. Pythia: A suite for analyzing large language models across training and scaling (https://arxiv.org/abs/2304.01373). arXiv preprint arXiv:2304.01373. OpenAlex ↗ · Scholar ↗
- Steven Bills, Nick Cammarata, Dan Mossing, Henk Tillman, Leo Gao, Gabriel Goh, Ilya Sutskever, Jan Leike, Jeff Wu, and William Saunders. 2023. Language models can explain neurons in language models (https://openai.com/research/language-models-can-explain-neurons-in-language-models). https://openaipublic.blob.core.windows.net/neuron-explainer/paper/index.html. OpenAlex ↗ · Scholar ↗
- Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. 2023. Sparks of artificial general intelligence: Early experiments with gpt-4 (https://arxiv.org/abs/2303.12712). arXiv preprint arXiv:2303.12712. our card
- Collin Burns, Haotian Ye, Dan Klein, and Jacob Steinhardt. 2023. Discovering latent knowledge in language models without supervision (https://openreview.net/forum?id=ETKGuby0hcs). In The Eleventh International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
- Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. 2022. Palm: Scaling language modeling with pathways (https://arxiv.org/abs/2204.02311). arXiv preprint arXiv:2204.02311. our card
- Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training verifiers to solve math word problems (http://arxiv.org/abs/2110.14168). our card
- Alexander Yom Din, Taelin Karidi, Leshem Choshen, and Mor Geva. 2023. Jump to conclusions: Short-Cutting transformers with linear transformations (https://arxiv.org/abs/2303.09435). arXiv preprint arXiv:2303.09435. OpenAlex ↗ · Scholar ↗
- Nelson Elhage, Neel Nanda, Catherine Olsson, Tom Henighan, Nicholas Joseph, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Nova DasSarma, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, and Chris Olah. 2021. A mathematical framework for transformer circuits (https://transformer-circuits.pub/2021/framework/index.html). Transformer Circuits Thread. OpenAlex ↗ · Scholar ↗
- Matthew Finlayson, Aaron Mueller, Sebastian Gehrmann, Stuart Shieber, Tal Linzen, and Yonatan Belinkov. 2021. Causal analysis of syntactic agreement mechanisms in neural language models (https://doi.org/10.18653/v1/2021.acl-long.144). In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1828–1843, Online. Association for Computational Linguistics. our card
- Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. 2020. The pile: An 800gb dataset of diverse text for language modeling (https://arxiv.org/abs/2101.00027). arXiv preprint arXiv:2101.00027. our card
- Atticus Geiger, Hanson Lu, Thomas Icard, and Christopher Potts. 2021. Causal abstractions of neural networks (https://proceedings.neurips.cc/paper/2021/hash/4f5c422f4d49a5a807eda27434231040-Abstract.html). Advances in Neural Information Processing Systems, 34:9574–9586. our card
- Mor Geva, Jasmijn Bastings, Katja Filippova, and Amir Globerson. 2023. Dissecting recall of factual associations in auto-regressive language models (https://arxiv.org/abs/2304.14767). arXiv preprint arXiv:2304.14767. our card
- Mor Geva, Avi Caciularu, Kevin Wang, and Yoav Goldberg. 2022. Transformer feed-forward layers build predictions by promoting concepts in the vocabulary space (https://doi.org/10.18653/v1/2022.emnlp-main.3). In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 30–45, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics. our card
- Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. 2021. Transformer feed-forward layers are key-value memories (https://doi.org/10.18653/v1/2021.emnlp-main.446). In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 5484–5495, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics. our card
- Gabriel Goh, Nick Cammarata, Chelsea Voss, Shan Carter, Michael Petrov, Ludwig Schubert, Alec Radford, and Chris Olah. 2021. https://distill.pub/2021/multimodal-neurons/?utm_campaign=Dynamically Multimodal neurons in artificial neural networks. Distill, 6(3):e30. OpenAlex ↗ · Scholar ↗
- Wes Gurnee, Neel Nanda, Matthew Pauly, Katherine Harvey, Dmitrii Troitskii, and Dimitris Bertsimas. 2023. Finding neurons in a haystack: Case studies with sparse probing (https://arxiv.org/abs/2305.01610). arXiv preprint arXiv:2305.01610. our card
- Ehud Karpas, Omri Abend, Yonatan Belinkov, Barak Lenz, Opher Lieber, Nir Ratner, Yoav Shoham, Hofit Bata, Yoav Levine, Kevin Leyton-Brown, et al. 2022. MRKL systems: A modular, neuro-symbolic architecture that combines large language models, external knowledge sources and discrete reasoning (https://arxiv.org/abs/2205.00445). arXiv preprint arXiv:2205.00445. OpenAlex ↗ · Scholar ↗
- Andrej Karpathy, Justin Johnson, and Li Fei-Fei. 2015. Visualizing and understanding recurrent networks (https://arxiv.org/abs/1506.02078). arXiv preprint arXiv:1506.02078. our card
- Takeshi Kojima, Shixiang (Shane) Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners (https://proceedings.neurips.cc/paper_files/paper/2022/file/8bb0d291acd4acf06ef112099c16f326-Paper-Conference.pdf). In Advances in Neural Information Processing Systems, volume 35, pages 22199–22213. Curran Associates, Inc. our card
- Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, Yuhuai Wu, Behnam Neyshabur, Guy Gur-Ari, and Vedant Misra. 2022. Solving quantitative reasoning problems with language models (http://arxiv.org/abs/2206.14858). our card
- Kenneth Li, Oam Patel, Fernanda Viégas, Hanspeter Pfister, and Martin Wattenberg. 2023. Inference-time intervention: Eliciting truthful answers from a language model (http://arxiv.org/abs/2306.03341). our card
- Tiedong Liu and Bryan Kian Hsiang Low. 2023. Goat: Fine-tuned LLaMA outperforms GPT-4 on arithmetic tasks (https://arxiv.org/abs/2305.14201). arXiv preprint arXiv:2305.14201. our card
- Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. 2022. Locating and editing factual associations in GPT (https://proceedings.neurips.cc/paper_files/paper/2022/file/6f1d43d5a82a37e89b0665b33bf3a182-Paper-Conference.pdf). Advances in Neural Information Processing Systems, 35:17359–17372. our card
- Swaroop Mishra, Arindam Mitra, Neeraj Varshney, Bhavdeep Sachdeva, Peter Clark, Chitta Baral, and Ashwin Kalyan. 2022. NumGLUE: A suite of fundamental yet challenging mathematical reasoning tasks (https://doi.org/10.18653/v1/2022.acl-long.246). In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3505–3523, Dublin, Ireland. Association for Computational Linguistics. our card
- Neel Nanda, Lawrence Chan, Tom Liberum, Jess Smith, and Jacob Steinhardt. 2023. Progress measures for grokking via mechanistic interpretability (https://arxiv.org/abs/2301.05217). arXiv preprint arXiv:2301.05217. our card
- Chris Olah, Nick Cammarata, Ludwig Schubert, Gabriel Goh, Michael Petrov, and Shan Carter. 2020. Zoom in: An introduction to circuits (https://doi.org/10.23915/distill.00024.001). Distill. Https://distill.pub/2020/circuits/zoom-in. OpenAlex ↗ · Scholar ↗
- Chris Olah, Alexander Mordvintsev, and Ludwig Schubert. 2017. Feature visualization (https://distill.pub/2017/feature-visualization/?ref=hackernoon.com). Distill, 2(11):e7. OpenAlex ↗ · Scholar ↗
- Chris Olah, Arvind Satyanarayan, Ian Johnson, Shan Carter, Ludwig Schubert, Katherine Ye, and Alexander Mordvintsev. 2018. The building blocks of interpretability (https://distill.pub/2018/building-blocks/?translate=1&translate=1&translate=1&translate=1&student&student&student&student). Distill, 3(3):e10. OpenAlex ↗ · Scholar ↗
- Catherine Olsson, Nelson Elhage, Neel Nanda, Nicholas Joseph, Nova DasSarma, Tom Henighan, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Scott Johnston, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, and Chris Olah. 2022. In-context learning and induction heads (https://transformer-circuits.pub/2022/in-context-learning-and-induction-heads/index.html). Transformer Circuits Thread. our card
- OpenAI. 2023. GPT-4 technical report (http://arxiv.org/abs/2303.08774). our card
- Kuntal Kumar Pal and Chitta Baral. 2021. Investigating numeracy learning ability of a text-to-text transfer model (https://doi.org/10.18653/v1/2021.findings-emnlp.265). In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 3095–3101, Punta Cana, Dominican Republic. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Judea Pearl. 2001. Direct and indirect effects (https://dslpitt.org/uai/displayArticleDetails.jsp?mmnu=1\\&smnu=2\\&article\\_id=126\\&proceeding\\_id=17). In UAI '01: Proceedings of the 17th Conference in Uncertainty in Artificial Intelligence, University of Washington, Seattle, Washington, USA, August 2-5, 2001, pages 411–420. Morgan Kaufmann. OpenAlex ↗ · Scholar ↗
- Judea Pearl. 2009. Causality (https://www.cambridge.org/core/books/causality/B0046844FAE10CBF274D4ACBDAEB5F5B). Cambridge University Press. OpenAlex ↗ · Scholar ↗
- Fabio Petroni, Tim Rocktäschel, Sebastian Riedel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, and Alexander Miller. 2019. Language models as knowledge bases? (https://doi.org/10.18653/v1/D19-1250) In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 2463–2473, Hong Kong, China. Association for Computational Linguistics. our card
- Piotr Piękos, Mateusz Malinowski, and Henryk Michalewski. 2021. Measuring and improving BERT's mathematical abilities by predicting the order of reasoning. (https://doi.org/10.18653/v1/2021.acl-short.49) In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), pages 383–394, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Yasaman Razeghi, Robert L Logan IV, Matt Gardner, and Sameer Singh. 2022. Impact of pretraining term frequencies on few-shot numerical reasoning (https://doi.org/10.18653/v1/2022.findings-emnlp.59). In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 840–854, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics. our card
- Tilman Räuker, Anson Ho, Stephen Casper, and Dylan Hadfield-Menell. 2023. Toward transparent AI: A survey on interpreting the inner structures of deep neural networks (http://arxiv.org/abs/2207.13243). OpenAlex ↗ · Scholar ↗
- Noam Shazeer and Mitchell Stern. 2018. Adafactor: Adaptive learning rates with sublinear memory cost (https://proceedings.mlr.press/v80/shazeer18a.html?ref=https://githubhelp.com). In International Conference on Machine Learning, pages 4596–4604. PMLR. OpenAlex ↗ · Scholar ↗
- Daniel Spokoyny, Ivan Lee, Zhao Jin, and Taylor Berg-Kirkpatrick. 2022. Masked measurement prediction: Learning to jointly predict quantities and units from textual context (https://doi.org/10.18653/v1/2022.findings-naacl.2). In Findings of the Association for Computational Linguistics: NAACL 2022, pages 17–29, Seattle, United States. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Alessandro Stolfo, Zhijing Jin, Kumar Shridhar, Bernhard Schoelkopf, and Mrinmaya Sachan. 2023. A causal framework to quantify the robustness of mathematical reasoning with language models (https://doi.org/10.18653/v1/2023.acl-long.32). In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 545–561, Toronto, Canada. Association for Computational Linguistics. our card
- Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, and Yunfeng Liu. 2022. Roformer: Enhanced transformer with rotary position embedding (http://arxiv.org/abs/2104.09864). our card
- Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models (https://arxiv.org/abs/2302.13971). arXiv preprint arXiv:2302.13971. our card
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need (https://proceedings.neurips.cc/paper_files/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html). Advances in neural information processing systems, 30. our card
- Jesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian, Daniel Nevo, Yaron Singer, and Stuart Shieber. 2020. Investigating gender bias in language models using causal mediation analysis (https://proceedings.neurips.cc/paper/2020/hash/92650b2e92217715fe312e6fa7b90d82-Abstract.html). Advances in Neural Information Processing Systems, 33:12388–12401. OpenAlex ↗ · Scholar ↗
- Chelsea Voss, Nick Cammarata, Gabriel Goh, Michael Petrov, Ludwig Schubert, Ben Egan, Swee Kiat Lim, and Chris Olah. 2021. https://distill.pub/2020/circuits/visualizing-weights/?utm_campaign=Dynamically Visualizing weights. Distill, 6(2):e00024–007. OpenAlex ↗ · Scholar ↗
- Ben Wang and Aran Komatsuzaki. 2021. GPT-J-6B: A 6 billion parameter autoregressive language model (https://github.com/kingoflolz/mesh-transformer-jax). https://github.com/kingoflolz/mesh-transformer-jax. OpenAlex ↗ · Scholar ↗
- Kevin Ro Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris, and Jacob Steinhardt. 2022. Interpretability in the wild: A circuit for indirect object identification in GPT-2 small (https://openreview.net/forum?id=rvi3Wa768B-). In NeurIPS ML Safety Workshop. OpenAlex ↗ · Scholar ↗
- Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. 2022a. Emergent abilities of large language models (https://arxiv.org/abs/2206.07682). arXiv preprint arXiv:2206.07682. our card
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed H. Chi, Quoc Le, and Denny Zhou. 2022b. Chain of thought prompting elicits reasoning in large language models (http://arxiv.org/abs/2201.11903). CoRR, abs/2201.11903. our card
- Chengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V Le, Denny Zhou, and Xinyun Chen. 2023. Large language models as optimizers (https://arxiv.org/abs/2309.03409). arXiv preprint arXiv:2309.03409. our card