Sparse Autoencoders (SAEs) and Transcoder Features

Sparse Autoencoder (SAE): A sparse autoencoder is an unsupervised model that learns a dictionary of hidden features to reconstruct network activations with a sparsity constraint. Formally, given an activation vector (e.g. a hidden residual stream from a transformer), an SAE seeks an encoding (feature activations) and decoding weights such that while is mostly zero. This is achieved by minimizing a loss:

where is a sparsity penalty (e.g. encouraging to have an or norm near 0). The penalty ensures that only a small fraction of features in are active for any given . In practice, SAEs have successfully decomposed activations of large language models into meaningful, sparsely-active features – each feature often corresponds to a human-interpretable concept or detector in the model. However, a limitation of basic SAEs is that they treat each model layer independently and do not naturally capture how features might persist or interact across multiple layers of a network.

Transcoders: A transcoder is a variant of the SAE designed to replace or approximate an MLP sublayer of a transformer with an interpretable sparse layer (NeurIPS Poster Transcoders find interpretable LLM feature circuits). Instead of reconstructing the same input , a transcoder is trained to mimic the mapping from a layer’s input to its output (specifically, to reconstruct the transformer’s MLP output given the MLP input). Essentially, a transcoder introduces an intermediate sparse representation that “transcodes” the densely-activating MLP into sparse features without loss of fidelity (Transcoders find interpretable LLM feature circuits | OpenReview). The encoder weights map the MLP input (residual stream before the MLP) to feature activations, and decoder weights map those features to the MLP output. By training this system (with a sparsity regularizer), we obtain transcoder features that approximate the actual MLP neurons’ computation but are far more interpretable and sparsely activated. Prior work has shown that transcoder features can be about as interpretable as SAE features, while remaining faithful to the original model’s behavior (Transcoders find interpretable LLM feature circuits | OpenReview). In summary, if an MLP layer is a function , a transcoder learns and such that , where is a sparsifying nonlinearity. Transcoders thereby decompose the MLP’s computation into a weighted sum of feature contributions.

Cross-Layer Transcoders (CLTs): The cross-layer transcoder extends the transcoder idea across multiple transformer layers. Instead of training a separate sparse autoencoder for each layer, a CLT organizes features by layer of first appearance (or “birth”), but allows each feature to contribute to the reconstruction of all subsequent MLP outputs. In other words, each feature is anchored at a particular transformer layer (reading from that layer’s residual stream) but has decoder weights into every later layer . All CLT features across all layers are trained jointly to reconstruct every MLP output of the original model. This architecture recognizes that some high-level features may form at earlier layers and persist or influence computations in later layers. Formally, let be the total number of transformer layers. The CLT has features assigned to each layer . If denotes the residual stream activation (MLP input) at layer of the original model, then the CLT computes feature activations at layer as:

where is the encoder matrix for layer- features. is a sparsity-inducing activation function (a form of thresholded ReLU) that sets small activations to zero, ensuring most feature coordinates in are inactive. Each feature in layer thus “fires” (activates) only if its preactivation exceeds a learned threshold (otherwise ). This effectively imposes an -like sparsity on activations while still allowing gradients to flow (via a straight-through estimator for the discontinuous threshold).

Given these feature activations, the CLT reconstructs the MLP output at every layer. Let be the original model’s MLP output at layer . The CLT produces a reconstruction by summing contributions from all features up to layer :

where is the decoder matrix that maps features from layer to the output of layer . In other words, each feature born at layer has a specific decoder vector into each downstream layer , and the MLP output at is approximated by summing all feature contributions from current and previous layers. By design, features are cross-layer: a feature can carry information forward through multiple layers via its decoder vectors, greatly simplifying circuits by providing a direct feature-to-feature connection across layers (as opposed to needing to trace through many successive dense neurons).

Training Objective: All CLT parameters are optimized jointly to minimize a combination of reconstruction error and sparsity penalty. The mean squared error (MSE) loss sums over all layers’ MLP outputs:

ensuring the CLT accurately reproduces each layer’s output. The sparsity loss encourages each feature to fire rarely. One effective sparsity regularizer used is:

where is the activation of feature at layer , and denotes all decoder weights of that feature (concatenated across all layers). Here and are hyperparameters. Intuitively, this penalty approaches 0 when feature is completely inactive () and saturates to when the feature is active and has large decoders, thus approximating an -count of active features. During training, is often scheduled from 0 to its final value to gradually encourage sparsity. The JumpReLU threshold may also be annealed; for example, the CLT here used an initial threshold of 0.03 (fraction of max activation) for feature firing. Gradient flows through JumpReLU via a straight-through estimator, meaning even when a feature is “off,” gradients treat it as if it were linear (this helps avoid dead features and improves reconstruction quality).

Data and Training Procedure: CLTs were trained on large collections of model activations. In practice, we sample a broad set of prompts from the language model’s training distribution (e.g. an open-source text corpus) and run the original model to collect pairs for each layer . The CLT then trains on these pairs to minimize . In the blog, CLTs were trained on two models: a small 18-layer transformer (“18L”) and a larger model Claude 3.5 (code-named Haiku). The number of learned features was scaled from about up to for the 18-layer model, and up to for Claude, exploring the effect of model capacity. The architecture choice of cross-layer features yielded a significant improvement in fidelity over a baseline that used separate per-layer transcoders. Indeed, moving from per-layer SAEs to cross-layer transcoders was the single biggest gain in the quality of sparse reconstructions. Additional features beyond a certain point show diminishing returns in reconstruction error vs. sparsity trade-off.

Reconstruction Performance: Despite the aggressive sparsity constraint, the CLT can capture a substantial fraction of the original model’s computation. One way to evaluate this is to replace each transformer MLP with its CLT approximation and see if the model’s outputs (next-token predictions) remain the same. Using the largest CLT (with features on 18L), the replacement model (detailed next) exactly matched the original model’s top-1 predicted token in about 50% of test cases, on a diverse set of prompts. This is far above chance and also above a strong baseline where one simply keeps only the top neurons (by magnitude) in each MLP. In other words, half the time the sparse feature-based model produced identical next-word decisions as the dense model, indicating that the learned features encode a large portion of the model’s logic. Even when the outputs diverge, the CLT’s internal representations often remain interpretable, which motivates using it as a proxy to analyze the original network.

Replacement Model and Mechanistic Faithfulness

With a trained CLT in hand, we can replace the original model’s MLP layers with the sparse features. The replacement model runs the transformer exactly as normal except:

  • At each layer , when the model would feed into the MLP, we instead compute CLT feature activations for that layer.
  • When the model would normally produce the MLP output , we discard the real MLP output and use the CLT’s reconstructed output instead.

Attention layers, residual addition, and all other components (e.g. embedding layers) remain unchanged. This defines a new forward pass that is deterministic and parallel to the original model. If the CLT were a perfect autoencoder, the replacement model would be identical to the original. In practice, as noted, it often produces the same top outputs but can diverge on others since reconstruction is imperfect and errors may compound across layers.

To analyze a specific model behavior (for example, how the model completes a particular prompt), we refine this into a local replacement model. The idea is to ensure that on a given input prompt , the replacement model exactly mirrors the original model’s computations for that prompt. We achieve this by eliminating any residual discrepancies:

  1. MLP Substitution: Use the CLT features in place of each MLP (as above).
  2. Freeze Attention and Normalization: Use the exact attention patterns (which token attends to which) and normalization factors that the original model used on prompt . This removes those sources of nonlinearity – effectively treating attention as a fixed linear operator for this input, rather than a dynamic one that depends on query-key interactions. (We will later account for the effect of attention heads, but we hold their patterns fixed.)
  3. Error Injection: After computing the CLT’s output at each layer for this prompt, add a fixed error vector so that exactly matches the true MLP output on this prompt. In other words, any difference between the CLT reconstruction and the real model at layer on input is patched by an error term . This can be viewed as the “unexplained part” of that layer’s computation for this specific input.

After these modifications, the local replacement model’s hidden states and outputs are exactly equal to the original model’s for the prompt . We have essentially rewritten the model’s computation at that single input in terms of a new set of units (the sparse features and error terms) and linear operations. Notably, this rewriting does not guarantee that the local replacement model will respond the same way as the original model if we move away from – it is a local, first-order approximation. This is analogous to taking a complicated function and linearizing it around a point : the linear approximation is exact at and in a small neighborhood, but it might diverge on other inputs. We call the degree to which the replacement model’s mechanisms remain valid off-point the mechanistic faithfulness of our approximation. In practice, we will verify faithfulness by applying small perturbations to features and checking if the original model reacts as our feature-based graph predicts (discussed below).

Let’s examine the structure of the local replacement model. After freezing attention and normalization, the only nonlinearities left are the feature activations (JumpReLU thresholds) – all other operations (matrix multiplications in attention, residual addition, layer mixing) are fixed linear mappings for this prompt. Therefore, the local replacement model can be viewed as one giant piecewise-linear, feedforward network that spans all layers and all positions. Specifically:

  • Inputs: The input layer consists of the one-hot token embeddings for every token position in the prompt (the concatenation of all token one-hots serves as the input vector).
  • Neurons: The hidden units are all CLT feature instances that become active on this prompt (each feature at each position it fires). Think of each “feature at a specific sequence position” as a distinct neuron in this unrolled computation graph. We also include the special error nodes at each layer and position, which act like bias terms necessary to exactly match the original model.
  • Edges (Weights): There is an effective weight connecting every source neuron to every target neuron that it influences later in the network. These weights arise from summing up all the linear transformation steps along the path from to in the original model. For example, if feature at layer and position contributes to feature at layer and position (with ) via the residual stream or via an attention head, the total path weight is incorporated as an edge weight . The crucial simplification is that, with nonlinearity removed, the influence of a source feature on a downstream feature is linear in the source’s activation. In fact, we can compute these virtual weights by summing over each possible linear path through the transformer connecting to . Error nodes similarly have outgoing weights to all later features, representing how the “bias correction” at one layer feeds forward (we treat error nodes as having no incoming edges, since they are external injections).
  • Outputs: At the final layer (for the target position/token we care about), we include the model’s output logits as nodes. These receive incoming weights from any feature or error node that contributes to the output at that position.

This fully connected network is a reparameterization of the original transformer’s computation on prompt . Importantly, because it is linear (in terms of how neuron activations influence each other), we can now apply rigorous attribution methods to explain the output in terms of input features. All nonlinear complexities (softmax attention, layernorm, GeLU activations) have been fixed or absorbed into effective weights, so that we can trace contributions additively.

Attribution Graphs: Linear Causal Graph of Features

An attribution graph is a directed acyclic graph that represents how information flows through the local replacement model to produce a particular output token. Nodes in this graph correspond to the various components active in the computation, and edges carry weights indicating the strength of influence. Specifically, the node set includes:

  • Token Embedding nodes: One for each input token (and possibly positional or other embedding) that provides an initial vector. These are the earliest sources of information.
  • Feature nodes: Each instance of a CLT feature that is active at some layer and position in the prompt. For example, if a particular sparse feature (say representing the concept “sports team”) fires at layer 5 for the token at position 3, that is a node.
  • Error nodes: Each error correction term at a given layer and position is treated as a node that injects a bias into the computation (with no incoming edges, since it doesn’t come from another neuron).
  • Output logits: We include nodes for the output activations of interest (often focusing on the single logit corresponding to the correct next token, or comparing logits). In many cases, the graph is constructed for one specific target token’s logit to trace why the model predicted that token.

Edges in the attribution graph denote direct linear contributions from one node to another. If node (say a source feature) influences node (say a target feature in a later layer) in the unrolled computation, we draw an edge . The edge weight is defined as the product of the source’s activation value and the effective weight between and :

where is the activation of feature on this prompt, and is the virtual weight from to in the local replacement model. In other words, tells us how much of ’s preactivation is coming from ’s activity. We can also think of itself as the partial derivative of ’s preactivation with respect to , holding all nonlinearities fixed. This derivative view is convenient for computation: to find , one can perform a “stopped-gradient” backward pass through the original model from to , treating all nonlinear functions as linear (passing gradients through them unchanged). Concretely, let denote the Jacobian of the original transformer with gradients blocked through all nonlinearities (MLP activations, attention softmax, layernorm) from the residual at position , layer back to the residual at position , layer . Then we have the formula for the edge weight:

This sum accounts for all linear paths from source feature to target feature that go forward through each intermediate layer (via ’s decoder into layer , then through whatever attention/residual connections connect layer to layer , then into ’s encoder at layer ). In simpler terms, each path might go: (at ) → decoder to some layer → (possibly through one or more attention head output-value matrices carrying it to another position) → … → into ’s encoder at . The Jacobian composes all the linear transformations (attention outputs, etc.) along that path. For an embedding-to-feature edge (from a token embedding to a feature in layer ), a similar formula applies: , where indicates the initial embedding layer. Error nodes are treated as having a fixed contribution added to certain downstream features, so they have outgoing equal to the fraction of ’s input coming from that error term (and by definition no incoming edges).

Because the network has been linearized, the total input to any feature is the sum of contributions from all its incoming edges. If is the set of source nodes feeding into , then the preactivation . In particular, if is a feature node and its preactivation exceeds the JumpReLU threshold, then (otherwise if did not reach threshold). Thus, the graph gives an additive decomposition of ’s activity in terms of causes. This linear additivity is what makes the attribution graph human-interpretable: each edge has a weight (positive or negative) showing how much one node influenced another, and these can be followed like bread-crumbs from the input embeddings all the way to the output.

One caveat is that the attribution graph omits attention selection effects. We froze the attention patterns, so we treat the attention outputs as just another linear mixing of information between positions. The graph will show, for example, that “Feature at token position 2 influences Feature at position 5 via an attention head,” but it will not explain why the model chose to attend from pos 5 to pos 2. The omitted query-key nonlinear interactions (sometimes called “QK circuits”) are factored out by our approach. The attribution graph captures only the OV circuits – the paths along which information actually flows when attention directs it. This means our analysis focuses on what computations happen given the attention routing, not how the model decides to route information. (One can separately study the query-key mechanisms, e.g. by analyzing the transformer’s attention scores, but that is outside the scope of the current method.)

In summary, an attribution graph for prompt and a target output token is a layered graph of embeddings → features → … → features → output, where each edge is a linear influence quantified in the same units as the model’s activations. By following the highest-weight edges, one can trace the chain of reasoning the model used, as distilled into these sparse features. In the blog’s case studies, such graphs revealed coherent “circuits” – e.g. a chain of features that jointly spelled out an acronym, or a set of features that performed addition step-by-step. However, a raw graph can be very large (hundreds of active features, and tens of thousands of edges) even for one prompt (Circuit Tracing: Revealing Computational Graphs in Language Models). Thus, we need ways to simplify and interpret them, which we address next.

Pruning and Grouping for Interpretability

Even though each feature is individually sparse, a complex prompt can activate many features across many layers. Graph pruning is therefore applied to distill the attribution graph to a more interpretable subgraph. The principle is to keep only the nodes and edges that contribute the most to the final output of interest. In practice, one can compute the influence of each node on the target logit (for instance, by summing incoming paths from that node to the logit) and discard those below a certain threshold, or iteratively remove edges that carry negligible weight. The blog describes pruning as “identifying the nodes and edges which most contribute to the model’s output at a specific token position”. By tuning the pruning threshold, they obtain a sparse graph focusing on the main causal chain for that prediction. This pruned attribution graph is typically much smaller and can often be understood as a few interacting subcircuits.

Additionally, feature grouping is used to reduce complexity. Often multiple features play similar roles or are semantically related. For example, in an acronym-generation task, there may be several different features all related to “this token is an acronym letter”. These can be clustered into a supernode for “Acronym-letter features” to simplify the diagram. Grouping is done by examining feature descriptions or behaviors and manually (or algorithmically) clustering them by concept. It does not change the underlying graph weights, but it lets us visualize and reason about the graph at a higher level of abstraction (treating a group of features as a single node in an explanatory diagram). Grouping and pruning, together with an interactive interface, are used in the methodology to let a researcher navigate the otherwise dense attribution graphs.

Behind the scenes, the team also interprets individual features to assign them human-readable labels. They use feature visualization: for each feature, find example texts where it strongly activates, and inspect those contexts to guess the feature’s role. In some cases, they even used the language model itself to help label features by showing the model prototypical activations and asking it to describe what those have in common. These interpretations feed into how features are grouped and understood in the circuits.

Virtual Weights and Global Feature Connectivity

So far, attribution graphs are input-specific: they explain a single inference at a time. We might also ask whether we can derive more general, input-agnostic descriptions of the model’s mechanisms. The CLT and its features allow us to consider global weights between features. A virtual weight between feature and feature (with at an earlier layer than ) can be defined as the constant part of that does not depend on the particular prompt. For example, if there is a direct residual connection from to (i.e. writes into the residual stream and reads from it at a later layer with no intervening features), then is exactly this constant weight, and it holds for any input. In general, consider all residual-direct paths: these are paths where ’s activation goes into the residual stream and is immediately read by ’s encoder at a later layer (no attention or other feature mediation). The contribution of such a path to is proportional to ’s decoder and ’s encoder – independent of context except for the value of . We can define the virtual weight as the inner product of ’s decoder and ’s encoder summed over all layers between and . Formally, if is at layer and at , let be the intermediate layers. Then:

the dot-product between the sum of ’s decoder vectors (from up to ) and ’s encoder vector. This is exactly the weight that would multiply to contribute to if attention heads were absent. Indeed, this term appears in the earlier formula for : it is the portion coming from straight residual connections. One can similarly define virtual weights for attention-mediated paths (where ’s influence goes through an attention head’s projection before reaching ), but those are a bit more complex since the strength of an attention path also depends on the attention probability, which varies per input. If we ignore the variability of attention (or imagine averaging over many prompts), an attention path yields a kind of virtual weight as well (product of ’s decoder, the head’s and matrices, and ’s encoder).

Collecting all these, the CLT defines a large, dense graph of global feature-to-feature weights. In principle, one could study this “feature connectome” to find circuits that exist in general. However, a major challenge arises: interference. Because there are so many features (often millions) interacting through shared residual streams, almost any pair of features will have some nonzero virtual weight , even if those features never co-activate in practice. For example, two unrelated features might both write to similar directions in the residual space, yielding a substantial dot-product, yet the model may never use them together for any task. These spurious connections (which do not reflect actual causal influence on-distribution) make naive global weight analysis difficult. A raw global weight matrix would be extremely dense and dominated by meaningless “potential” connections.

To address this, the methodology introduces ways to filter global weights by actual usage statistics. One simple approach is to restrict attention to a smaller subset of features known to be relevant to a task (for instance, only consider the subgraph of addition-related features when analyzing an addition problem). Another, more general solution is to weight each connection by how often the source and target co-activate on real data. For features and , one can estimate the expected co-activation on the model’s data distribution, e.g. (the expected value of when is active). Using this, we define an expected attributed influence (sometimes termed a threshold-weighted expected residual attribution in the text) as:

This is essentially the average contribution of feature to feature across random inputs. Connections that never actually occur (e.g. and never active together) will have even if was large, thus removing interference. When researchers applied this to the “Say a game name” feature example, they found that many of the largest raw virtual weights were to uninterpretable features, but after re-weighting by co-activation, the top connections were to clearly related features (e.g. another game-related feature) (Circuit Tracing: Revealing Computational Graphs in Language Models). In other words, the true circuit signals emerged after filtering out the noise of unused connections (Circuit Tracing: Revealing Computational Graphs in Language Models).

Using such global weight analysis, one can sometimes identify broader patterns. The blog demonstrates this on a small arithmetic task: by analyzing the global weight matrix among number-related features, they uncovered a consistent algorithm the model learned for two-digit addition. For instance, features corresponding to the sum of certain digits were found to connect to features representing carry operations, etc.. This shows that, despite interference, global sparse weights (especially when informed by data statistics) can yield insight into the model’s general mechanisms, complementing the per-input attribution graphs.

Validating Causal Claims with Constrained Patching

Attribution graphs are hypotheses about the model’s internal causal structure for a given computation. To build confidence in these hypotheses, the methodology uses intervention experiments on the original model. The core idea is causal scrubbing: if the graph says feature strongly influences feature , then actively perturbing feature in the real model should change (and the final output) in the predicted way. However, performing such interventions in a transformer is delicate – we need to intervene on a feature which isn’t an explicit variable in the original model. The solution is to use the CLT decoder to patch the model’s residual stream in just the right way to simulate turning a feature on/off.

Constrained Patching: Suppose we want to test the effect of a feature that is encoded at layer . This feature contributes to the model’s computations in all layers via its decoders. To intervene, we choose a contiguous range of layers over which we will modify ’s influence. A typical choice is (when the feature is first formed) up to some later layer or the end of the model. We then run a forward pass on the original model with the following modification: at each layer , we inject a changed activation for feature instead of its normal activation. Concretely, in layer , the residual stream would normally contain a contribution from feature (implicitly, since the real model’s MLP produced that). We replace this with a new contribution corresponding to a perturbed feature activation of our choosing. For example, to ablate the feature we set ; to amplify it we might set . After patching the residual at layer , we do not allow the model to recompute upstream effects within the patch range – i.e. we do not run the actual MLP of that layer or re-evaluate feature in later layers within this range. We simply carry forward with the original model’s computation, but now with a different residual stream. Only after the end of the patching range (layer ) do we resume normal computation (layers beyond will see the downstream effects of the patch). This procedure ensures that within the patch range, the intervention has no second-order effects (the feature doesn’t accidentally reactivate itself or others in that range, because we aren’t updating those layers’ nonlinearities). It isolates the direct linear effect of injecting feature ’s change.

One can visualize this as clamping the feature’s decoder output in certain layers. The blog calls this “constrained patching” because it limits the cascade of changes. It contrasts with a naive approach where we might add a feature’s vector to the residual and let the model continue normally – the naive approach could lead to the feature activating other features or altering attention in a nonlinear way (thus confounding the interpretation of the intervention). Constrained patching avoids double-counting or unintended feedback by essentially linearizing the intervention.

Often, researchers use a multiplicative flip as the intervention: set , i.e. multiply the feature’s activation by across the patch range. This inverts the feature’s effect (approximately equivalent to turning it “off” and seeing the opposite influence). The reason to invert rather than simply zero-out is subtle: zeroing a feature that has already contributed to earlier layers might not fully remove its influence due to those past contributions, whereas flipping the sign can actively cancel those out in later layers. In practice, both approaches are used, but the blog opted to negate the feature as a cleaner test of causality. For completeness, the patch can also be partial (e.g. only up to a certain layer if we suspect the feature’s influence matters only until then).

During all patching experiments, the attention patterns remain fixed to the values from the unperturbed run. This mirrors how the attribution graph was constructed (with fixed attention), ensuring a fair comparison. If we did not fix attention, an intervention might change where the model attends, which is a different effect not accounted for in our linear graph.

After intervention, we observe changes in downstream feature activations and in the final output logits. We can compare these changes to the predictions made by the attribution graph. For example, if the graph had an edge from feature to feature with a large positive weight, then flipping should cause ’s activation to drop (or even go negative if was a main positive input). Similarly, if was supporting a particular output logit, removing it should reduce that logit’s value. These predictions were indeed validated: across many tested cases, when a feature (or a group of features, i.e. a supernode) was patched out, the expected downstream effects were observed qualitatively. For instance, in the acronym example, patching the “Group” supernode (a set of features related to recognizing a group name) caused the model’s acronym output to degrade, and features that were supposed to receive input from “Group” features showed reduced activation, consistent with the attribution graph’s edges. These perturbation experiments reinforce that the edges in the attribution graph often correspond to real causal links in the network, not just correlational artifacts.

To quantify mechanistic faithfulness, one could measure the alignment between edge weights and actual changes. For example, treat the graph as predicting that “feature contributes X amount to logit via path ,” and then see if altering changes by approximately X. The blog reports that overall, perturbation outcomes qualitatively match the attribution graphs for the prompts studied, with some deviations. Those deviations can highlight where the replacement model’s linear approximation missed higher-order effects or where multiple features compensated in ways not captured by the linear graph. Nonetheless, the strong correspondence in many cases gives credence to analyzing the model through these feature circuits.

Conclusion

In summary, Circuit Tracing via cross-layer transcoders provides a powerful methodology to reverse-engineer transformer models. By decomposing dense activations into sparse, interpretable features, and linearizing the model’s computation around a specific input, we obtain an attribution graph that rigorously traces how each concept flows to influence the output. We introduced formal definitions for each component:

  • Sparse features identified by transcoders (with encoders, JumpReLU activations, and decoders spanning multiple layers),
  • The replacement model that uses these features in lieu of MLPs, and a local linearization that exactly matches the model on a given input,
  • Attribution graphs with nodes (embeddings, features, errors, outputs) and edges computed via stopped-gradient Jacobians, providing a linear decomposition of the model’s forward pass,
  • Virtual weights that represent context-independent feature connections, and how to refine them by statistical co-activation to study global circuits,
  • Constrained patching interventions that test hypothesized causal links by editing feature activations in the real model.

All of these pieces work together to chart out the “computational graph” hidden inside a language model. The approach yields human-understandable circuits (like algorithmic steps for addition, or concept combinations for factual recall) and can be quantitatively validated. While not every part of a model’s reasoning is captured (notably the why of attention patterns, and anything lost in the autoencoder’s reconstruction error), this methodology marks a rigorous step toward mechanistic interpretability: it provides a principled, mathematical framework for dissecting and analyzing the internal algorithms of large language models (Circuit Tracing: Revealing Computational Graphs in Language Models).

Sources: The formulations and results above are drawn from Anthropic’s “Circuit Tracing: Revealing Computational Graphs in Language Models” (2025), which details the methodology and implementation of cross-layer transcoders, attribution graphs, and validation experiments. All mathematical expressions and interpretations correspond to the descriptions in that work.