MechaTerp-TRACE:一种用于语言模型组件消融分析的新方法
摘要
该论文介绍了MechaTerp-TRACE,一种用于语言模型组件消融分析的方法,发现实体知识主要来源于通用生成机制,而非局部组件。
arXiv:2609.22163v1 Announce Type: new
Abstract: Interpretability research on large language models has produced accounts of factual recall in feed-forward layers and of token relationships in self-attention, but little work offers a unified way to compare the causal contribution of different architecture components to a model's output. We introduce MechaTerp (the Mechanistic Interpretability suite) -TRACE (subset for Teacher-forced Registry of Ablated Component Effects), an architecture and study that measures how much each registered component of a language model supports the production of a named entity. TRACE ablates one component at a time and measures the resulting change in the output distribution at a fixed answer token, so component types from whole transformer blocks down to individual neurons and output logits can be compared on a common scale. We apply it to thirteen instruction-tuned dense decoder models spanning five families and one to thirty billion parameters, ablating 49,656 components across 48 medical and 42 general-knowledge prompts. We find that the components carrying the most effect are the same few, positionally fixed components in every model, regardless of which entity a prompt asks about, and that once these are removed, the remaining support is close to evenly spread in eleven of the thirteen models. Apparent localisation of entity knowledge is therefore largely attributable to generic generation machinery, which has direct consequences for methods that assume entity knowledge sits in a findable place, including targeted knowledge editing.
查看缓存全文
缓存时间: 2026/09/22 09:05
# MechaTerp-TRACE: A Novel Approach for Component Ablation Analysis in Language Models
Source: [https://arxiv.org/html/2609.22163](https://arxiv.org/html/2609.22163)
###### Abstract
Interpretability research on large language models has produced accounts of factual recall in feed\-forward layers and of token relationships in self\-attention, but little work offers a unified way to compare the causal contribution of different architecture components to a model’s output\. We introduce MechaTerp \(theMechanistic Interpretability suite\) \-TRACE \(subset forTeacher\-forcedRegistry ofAblatedComponentEffects\), an architecture and study that measures how much each registered component of a language model supports the production of a named entity\. TRACE ablates one component at a time and measures the resulting change in the output distribution at a fixed answer token, so component types from whole transformer blocks down to individual neurons and output logits can be compared on a common scale\. We apply it to thirteen instruction\-tuned dense decoder models spanning five families and one to thirty billion parameters, ablating 49,656 components across 48 medical and 42 general\-knowledge prompts\. We find that the components carrying the most effect are the same few, positionally fixed components in every model, regardless of which entity a prompt asks about, and that once these are removed the remaining support is close to evenly spread in eleven of the thirteen models\. Apparent localisation of entity knowledge is therefore largely attributable to generic generation machinery, which has direct consequences for methods that assume entity knowledge sits in a findable place, including targeted knowledge editing\.
National Institutes of Health, National Library of Medicine
Bethesda, Maryland, USA
## Introduction
Large Language Models \(LLMs\) are increasingly being deployed in high\-stakes domains, where their outputs can directly influence consequential decisions\. Despite their growing capabilities, these models remain largely “black\-box” whose internal mechanisms are only partially understood, motivating a growing focus on mechanistic interpretability to understand how they operate\([Zhao et al\. 2024](https://arxiv.org/html/2609.22163#bib.bib11);[O’Berry and Kanewala 2026](https://arxiv.org/html/2609.22163#bib.bib8)\)\. As reliance on LLMs in these settings grows, low\-quality or incorrect outputs carry increasingly detrimental consequences\([Gallagher et al\. 2024](https://arxiv.org/html/2609.22163#bib.bib2)\)\. However, these models remain prone to hallucinations, producing factually incorrect or fabricated answers, which highlights the need to look inside the model itself to understand why it arrives at a given answer\([Huang et al\. 2025](https://arxiv.org/html/2609.22163#bib.bib5)\)\. Answering this requires knowing where knowledge is localized within the model\.
## Background
Prior mechanistic interpretability research has largely relied on intervention methods such as activation patching to localize the internal components involved in specific model behaviors, specifically factual recall\([Meng et al\. 2022](https://arxiv.org/html/2609.22163#bib.bib7);[Geva et al\. 2023](https://arxiv.org/html/2609.22163#bib.bib3);[Rai et al\. 2024](https://arxiv.org/html/2609.22163#bib.bib9)\)\. These approaches identify activations at localized components whose restoration is sufficient to recover a target prediction, providing insight into where information relevant to factual recall is represented within a model\. However, this insight is limited to the specific components tested in this method and does not generate a measure of a component’s contribution that could be compared against different component types\. Separately, Templeton et al\. used sparse autoencoders \(SAEs\) to learn feature representations from residual stream activations, demonstrating that it is possible to identify specific places in the architecture with correlative relationships to specific model behaviour\([Templeton et al\. 2024](https://arxiv.org/html/2609.22163#bib.bib10)\)\. This approach provides insight into how output behaviour may be attributed to specific blocks, but requires the training of another model, which is not scalable, and does not allow for analysis at different levels of granularity\. Work on circuit discovery identifies the minimum graph of model components required for a specific computation\. This method effectively attributes a specific process to a set of components\([Conmy et al\. 2023](https://arxiv.org/html/2609.22163#bib.bib1)\)\. Circuit discovery is often done over computational processes that can be formally defined, such as addition\. This allows for automatic evaluation of outputs, but little work has been done on less rigid domains\. Automatic circuit discovery is also an intractable problem and is impractical for the size of contemporary models\. Other related studies have used model editing to investigate how different transformer components contribute to factual knowledge editing\. PMET \(Precise Model Editing in a Transformer\) optimizes hidden\-state representations in both the MHSA \(Multi\-Head Self\-Attention\) and FFN \(Feed Forward Network\) sublayers when editing a fact, while restricting permanent weight updates to the FFN\. Ablation experiments suggest that MHSA primarily encodes general knowledge extraction patterns while also storing a small amount of factual knowledge, while the FFN remains the primary component for modifying factual associations\([Li et al\. 2024](https://arxiv.org/html/2609.22163#bib.bib6)\)\. However, these methods are often applied to fixed layers and could benefit from a comprehensive understanding of the contribution of each layer or component in a specific domain\.
## Methods
#### Research Questions
Through the conduct of the ablative study, MechaTerp\-TRACE, realised through the MechaTerp architecture, we aim to determineto what extent is knowledge in a Language Model about a defined named entity localized to a discrete part of a model’s internal architecture?
#### Contributions
- •A scalable framework \(MechaTerp\-TRACE\) that determines entity\-knowledge localization across any dense model family\.
- •A behavioural experimentation apparatus, including a curated dataset of paired medical and general\-knowledge question\-answering prompts, used to elicit and observe model behaviour for the study\.
- •A large\-scale ablative experiment and its results, providing the first broad evidence for whether entity knowledge is localized or spread throughout a model\.
### MechaTerp\-TRACE Design
### Behaviouralistic Design
Three major sub\-components are present within the behavioural side of the MechaTerp\-TRACE study, including the desired generation effect, the domain of the prompts used for named\-entity elicitation, and the language model prompting methodology\. We design the behavioural study around prompting the model to generate a single string of tokens that correspond directly to a named entity\. For this reason, we focus only on dense language models and do not extend this study to“reasoning”or“thinking”models, as their“reasoning”trace may correspond to components within the language model that are not that of the named entity\. To achieve our goal of eliciting a single named entity from a model, we develop a dataset of Question\-Answer \(QA\) prompts wherein the answer to the provided prompt is a singular named entity\. We center the prompts designed for the MechaTerp\-TRACE study on two disparate domains to further measure the effect of commonly required generation components and domain\-specific generation components\. We define commonly required generation components to becomponents of the model that support answer production across every prompt domain under study, and domain\-specific generation components to becomponents of the model that support answer production within one prompt domain and not the others\. We select the medical and general knowledge domains to further study component importance across a specialised body of knowledge and a broad body of knowledge\. Within the medical domain, we narrow to the drug subdomain and select eight drug entities including Metformin, Acetaminophen, Semaglutide, Amoxicillin, Levodopa, Methylphenidate, Rosuvastatin and Furosemide, and for each entity we write one prompt under each of six clue categories including History, Chemical Formula, Generic Name, First\-Line Treatment, Drug\-Drug Interaction and Other\. for a total of 48 medical prompts\. For the general knowledge domain, we draw on the TREC\-8111https://pages\.nist\.gov/trec\-browser/trec8/qa/data/question answering set, which contains 200 questions\. We reword each question so that its answer is a single named entity, matching the elicitation format used for the medical prompts\. We then retain only those prompts for which the models under study produce the correct named entity, working to a target of at least 30 retained prompts per domain so that both domains support comparison at a similar scale\. This left a final general corpus of 42 prompts\. We retained a question only when a majority of the models tested produced the correct named entity, so that any single model under study would answer at least 30 of the retained set correctly\. Only 42 of the 200 TREC\-8 questions met that condition\. The last design detail for the behavioral side of the MechaTerp\-TRACE architecture is the prompting methodology used\. For the full ablative MechaTerp\-TRACE study, we adopt acontinuation\-styleprompting regime\. We define continuation\-style asthe placement of the prompt inside the model’s own assistant turn, so that the model treats the prompt as text it has already begun producing and continues it, rather than as a question it has been asked to answer\. Across all model families tested, we render the chat template with the task instruction in the system turn, leave the user turn empty, open the assistant turn, and place the continuation stem immediately after the assistant header\. The sequence is not closed with an end\-of\-turn marker, so from the model’s perspective its own reply is already underway, and the natural next action is to continue the sentence\. We adopt this prompting strategy so that the named entity always appears at a known position\.
### Mechanistic Design
We work on one model and one lane at a time\. We define a lane as a group of components within a single model that can sensibly be compared with each other, and every calculation in this section happens inside a single lane\. Let𝒰\\mathcal\{U\}be the set of components measured in a lane andBBdenote the number of components per lane\. Prompts are indexed asrr, and components byssandjj\. Normalisation is lane\-internal, so each lane carries its own denominator\.
#### Component Definition
We define a component as a site within the model that can be removed from the forward pass on its own, leaving the rest of the computational process intact and still able to produce a logit vector at the answer anchor\. Subsequently, the measured degradation of the answer\-anchor logit vector under single\-component ablation is the quantity we use to determine component importance for the generation of a specified named entity\. We subcategorize model components into three families, including coarse structural sites, extended sites, and architecture\-specific sites\. We define each of these families as follows\.Coarse structural sitesare the components that make up the residual skeleton of the network and are therefore present in every dense decoder we test\. These include the transformer block itself, the attention and MLP branches that write into the residual stream, the residual carrier those branches write to, and the individual attention heads\.Extended sitesare the parameters and dimensions that sit inside coarse site components and determine what that site computes\. Extended sites include the query, key, value, and output projections of attention, the gate, up and down projections of the MLP, normalisation scale and shift parameters, layer biases, positional patches, and rows, channels, and logits of the output head\.Architecture\-specific sitesare components that exist only where a model family provides the mechanism, such as expert routing in mixture\-of\-experts layers, sliding\-window and hybrid attention surfaces, fused query\-key\-value projections, and recurrent or state\-space memory\.
#### Component Ablation
Component ablation is dependent upon component type and unique to each component ablated\. MechaTerp\-TRACE supports considerably more ablation operations than can be listed here, and the complete operator table is published with the implementation source code athttps://github\.com/Brandonio\-c/ClinIQLink\-MechaTerp\. The goal at every level of component ablation is to remove the contribution of the target component as completely as we can while reducing residual effects to surrounding components, so that the change measured at the answer anchor is attributable to that component and not to collateral disruption of the surrounding computation\. At the coarsest level of ablation, a transformer block can be bypassed outright, since the block returns a hidden state of the same shape it received, so substituting the input for the output removes the block’s entire net update\. Components that write into a residual carrier cannot be handled the same way, and as such, the ablation method for components such as attention and MLP branches contributes additively, so the correct removal is to zero the branch contribution before it is written back, leaving the carrier itself intact\. Every component ablation measurement is taken at a single token position, which we call the answer anchor\. The anchor is the position at which the model is about to produce the first token that carries the named entity\. We fix the anchor by teacher forcing, meaning we supply the correct answer tokens as context rather than letting the model generate them\. We render the continuation\-style prompt, append the correct answer text, resolve the first informative answer token, and truncate the tokenisation immediately before it, so a single forward pass yields the logits at the position where the entity would be predicted\. Continuation\-style prompting constrains the entity to the next generated position and teacher forcing pins that position to a fixed index taken from the prompt package\.
#### The Ablation\-Effect Metric
Letzr\(0\)z^\{\(0\)\}\_\{r\}be the intact logit vector at the answer anchor andzr\(−s\)z^\{\(\-s\)\}\_\{r\}the same vector after ablating sitess\. Our primary effect metric is the cosine distance between them:
Δr,s=1−cos\(zr\(0\),zr\(−s\)\)∈\[0,2\]\.\\Delta\_\{r,s\}=1\-\\cos\\\!\\left\(z^\{\(0\)\}\_\{r\},\\,z^\{\(\-s\)\}\_\{r\}\\right\)\\;\\in\\;\[0,2\]\.\(1\)Every ablated vector is compared back to the same intact vector, which keeps all components on a common reference scale\. Equation \([1](https://arxiv.org/html/2609.22163#Sx3.E1)\) measures rotation of the logit vector, and the softmax is invariant toz↦z\+c𝟏z\\mapsto z\+c\\mathbf\{1\}, which \([1](https://arxiv.org/html/2609.22163#Sx3.E1)\) is not, and \([1](https://arxiv.org/html/2609.22163#Sx3.E1)\) is invariant toz↦αzz\\mapsto\\alpha zforα\>0\\alpha\>0, which the softmax is not\.
#### Effect Weights and Lane Shares
SinceΔr,s≥0\\Delta\_\{r,s\}\\geq 0, each component contributes a nonnegative weightwr,s=max\(0,Δr,s\)w\_\{r,s\}=\\max\(0,\\Delta\_\{r,s\}\)\. Normalising by the lane total gives shares that sum to one, so profiles can be compared across prompts of differing total effect,
Wr,ℓ=∑j∈𝒰m,ℓwr,j,pr,s\|ℓ=wr,sWr,ℓ,Wr,ℓ\>0\.W\_\{r,\\ell\}=\\sum\_\{j\\in\\mathcal\{U\}\_\{m,\\ell\}\}w\_\{r,j\},\\qquad p\_\{r,s\\mid\\ell\}=\\frac\{w\_\{r,s\}\}\{W\_\{r,\\ell\}\},\\qquad W\_\{r,\\ell\}\>0\.\(2\)
wherewr,sw\_\{r,s\}is the effect weight of componentssunder promptrr,Wr,ℓW\_\{r,\\ell\}is the total effect measured across laneℓ\\ell, andpr,s\|ℓp\_\{r,s\\mid\\ell\}is the share of that total carried by componentss\.
### Knowledge Localization
For a single prompt, ablating each component in turn yields one nonnegative effect per component within a fixed lane universe\. We call this vector of effects the prompt’s profile, and we summarise each profile by measuring how much of the total effect is concentrated over the ablated components\. A small set of components carrying most of the effect indicates concentrated support, while an even spread indicates distributed support\.
#### Concentration, Localisation, and Effective Support
To measure the component importance concentration profile, we adopt a modified version of the Herfindahl\-Hirschman Index\([Hirschman 1964](https://arxiv.org/html/2609.22163#bib.bib4)\), computed over lane shares\. ForWr,ℓ\>0W\_\{r,\\ell\}\>0,
HHIr,ℓ=∑s∈𝒰m,ℓpr,s\|ℓ2∈\[1Bm,ℓ,1\],\\operatorname\{HHI\}\_\{r,\\ell\}=\\sum\_\{s\\in\\mathcal\{U\}\_\{m,\\ell\}\}p\_\{r,s\\mid\\ell\}^\{\\,2\}\\;\\in\\;\\left\[\\tfrac\{1\}\{B\_\{m,\\ell\}\},\\,1\\right\],\(3\)and forBm,ℓ\>1B\_\{m,\\ell\}\>1,
LLIr,ℓ=Bm,ℓHHIr,ℓ−1Bm,ℓ−1,Neff,r,ℓ=1HHIr,ℓ\.\\operatorname\{LLI\}\_\{r,\\ell\}=\\frac\{B\_\{m,\\ell\}\\operatorname\{HHI\}\_\{r,\\ell\}\-1\}\{B\_\{m,\\ell\}\-1\},\\qquad N\_\{\\mathrm\{eff\},\\,r,\\ell\}=\\frac\{1\}\{\\operatorname\{HHI\}\_\{r,\\ell\}\}\.\(4\)whereHHIr,ℓ\\operatorname\{HHI\}\_\{r,\\ell\}is the concentration of effect for promptrrin laneℓ\\ell,pr,s\|ℓp\_\{r,s\\mid\\ell\}is the share of that lane’s effect carried by componentss, andBm,ℓB\_\{m,\\ell\}is the number of components in the lane universe𝒰m,ℓ\\mathcal\{U\}\_\{m,\\ell\}\. Squaring the shares rewards large shares disproportionately, so the score is1/Bm,ℓ1/B\_\{m,\\ell\}when all components contribute equally and reaches11when a single component carries all the effect of the generation process\.LLIr,ℓ\\operatorname\{LLI\}\_\{r,\\ell\}\(Lane Localisation Index\) rescalesHHIr,ℓ\\operatorname\{HHI\}\_\{r,\\ell\}to run between zero and one regardless of lane size, andNeff,r,ℓN\_\{\\mathrm\{eff\},\\,r,\\ell\}\(number of effective components\) invertsHHIr,ℓ\\operatorname\{HHI\}\_\{r,\\ell\}to give the number of equally contributing components that would produce the observed concentration\.
#### Cross\-Prompt Profile Overlap
LLIr,ℓ\\operatorname\{LLI\}\_\{r,\\ell\}measures the concentration of component importance within a single prompt\. To measure the recurrence of component importance across prompts targeting a specified named entity, we compare profiles pairwise using a weighted Jaccard overlap\. For two prompts sharing an aligned lane universe, both with positive effect mass, we compute:
Jℓ\(r,r′\)=∑smin\(pr,s\|ℓ,pr′,s\|ℓ\)∑smax\(pr,s\|ℓ,pr′,s\|ℓ\)\.J\_\{\\ell\}\(r,r^\{\\prime\}\)=\\frac\{\\sum\_\{s\}\\min\\\!\\left\(p\_\{r,s\\mid\\ell\},\\,p\_\{r^\{\\prime\},s\\mid\\ell\}\\right\)\}\{\\sum\_\{s\}\\max\\\!\\left\(p\_\{r,s\\mid\\ell\},\\,p\_\{r^\{\\prime\},s\\mid\\ell\}\\right\)\}\.\(5\)
whererrandr′r^\{\\prime\}are two prompts measured over the same laneℓ\\ell, andpr,s\|ℓp\_\{r,s\\mid\\ell\}andpr′,s\|ℓp\_\{r^\{\\prime\},s\\mid\\ell\}are the shares of lane effect that componentsscarries in each\.JℓJ\_\{\\ell\}is measured from zero when no component is used by both prompts to one when the two profiles are identical\.
### Generation Floor
We define the generation floor as the set of components whose ablation effect, measured across a broad and content\-diverse sample of prompts, is \(a\) consistently high in magnitude and \(b\) consistently low in variance\. Generation floor components always share a high concentration of component importance to the generation process regardless of the prompt used by the model\. We measure the generation floor utilising the general knowledge QA dataset, as the named entity for each prompt is different for each prompt and, as such, a component that stays important throughout is unlikely to be important because of any particular entity\.
#### Domain\-Common Components
LetRMR\_\{M\}andRGR\_\{G\}be the medical and general prompt sets, with absent prompt\-site pairs contributing zero,
p¯s\|ℓM=1\|RM\|∑r∈RMpr,s\|ℓ,\\bar\{p\}^\{\\,M\}\_\{s\\mid\\ell\}=\\frac\{1\}\{\|R\_\{M\}\|\}\\sum\_\{r\\in R\_\{M\}\}p\_\{r,s\\mid\\ell\},\(6\)andp¯s\|ℓG\\bar\{p\}^\{\\,G\}\_\{s\\mid\\ell\}defined analogously overRGR\_\{G\}\. Letqs\|ℓMq^\{M\}\_\{s\\mid\\ell\}andqs\|ℓGq^\{G\}\_\{s\\mid\\ell\}be the fraction of prompts in each family withpr,s\|ℓ≥τpp\_\{r,s\\mid\\ell\}\\geq\\tau\_\{p\}\. Commonness is harmonic, so it is high only when both domain means are high,
hs\|ℓ=2p¯s\|ℓMp¯s\|ℓGp¯s\|ℓM\+p¯s\|ℓG\+ε,h~s\|ℓ=hs\|ℓmaxj∈𝒰m,ℓhj\|ℓ\+ε,h\_\{s\\mid\\ell\}=\\frac\{2\\,\\bar\{p\}^\{\\,M\}\_\{s\\mid\\ell\}\\,\\bar\{p\}^\{\\,G\}\_\{s\\mid\\ell\}\}\{\\bar\{p\}^\{\\,M\}\_\{s\\mid\\ell\}\+\\bar\{p\}^\{\\,G\}\_\{s\\mid\\ell\}\+\\varepsilon\},\\qquad\\tilde\{h\}\_\{s\\mid\\ell\}=\\frac\{h\_\{s\\mid\\ell\}\}\{\\max\_\{j\\in\\mathcal\{U\}\_\{m,\\ell\}\}h\_\{j\\mid\\ell\}\+\\varepsilon\},\(7\)
A component site is found to be domain\-common when:
Ccoms\|ℓ=𝟏\{qs\|ℓM≥qmin∧qs\|ℓG≥qmin∧p¯Ms\|ℓ≥τshare,ℓ∧p¯Gs\|ℓ≥τshare,ℓ\},\\begin\{split\}C^\{\\mathrm\{com\}\}\_\{s\\mid\\ell\}=\\mathbf\{1\}\\Big\\\{\\,&q^\{M\}\_\{s\\mid\\ell\}\\geq q\_\{\\min\}\\;\\wedge\\;q^\{G\}\_\{s\\mid\\ell\}\\geq q\_\{\\min\}\\\\ &\\wedge\\;\\bar\{p\}^\{\\,M\}\_\{s\\mid\\ell\}\\geq\\tau\_\{\\mathrm\{share\},\\ell\}\\;\\wedge\\;\\bar\{p\}^\{\\,G\}\_\{s\\mid\\ell\}\\geq\\tau\_\{\\mathrm\{share\},\\ell\}\\,\\Big\\\},\\end\{split\}\(8\)withτshare,ℓ\\tau\_\{\\mathrm\{share\},\\ell\}the lane’s 75th percentile of the mean of the two domain means\.
#### The Generation Floor Correction
Letμs\|ℓ\\mu\_\{s\\mid\\ell\}andoccs\|ℓ\\operatorname\{occ\}\_\{s\\mid\\ell\}be the mean share and occurrence frequency of sitessoverRGR\_\{G\}, computed as in \([6](https://arxiv.org/html/2609.22163#Sx3.E6)\), with quartiles taken across the same prompts\. Stability is the coefficient of quartile variation,
CQVs\|ℓ=Q3,s\|ℓ−Q1,s\|ℓQ3,s\|ℓ\+Q1,s\|ℓ\+ε\.\\operatorname\{CQV\}\_\{s\\mid\\ell\}=\\frac\{Q\_\{3,s\\mid\\ell\}\-Q\_\{1,s\\mid\\ell\}\}\{Q\_\{3,s\\mid\\ell\}\+Q\_\{1,s\\mid\\ell\}\+\\varepsilon\}\.\(9\)A component site is found to be a generation floor candidate when
Cflrs\|ℓ=𝟏\{occs\|ℓ≥ωmin∧μs\|ℓ≥τμ,ℓ∧CQVs\|ℓ≤τstab,ℓ\},\\begin\{split\}C^\{\\mathrm\{flr\}\}\_\{s\\mid\\ell\}=\\mathbf\{1\}\\Big\\\{\\,&\\operatorname\{occ\}\_\{s\\mid\\ell\}\\geq\\omega\_\{\\min\}\\;\\wedge\\;\\mu\_\{s\\mid\\ell\}\\geq\\tau\_\{\\mu,\\ell\}\\\\ &\\wedge\\;\\operatorname\{CQV\}\_\{s\\mid\\ell\}\\leq\\tau\_\{\\mathrm\{stab\},\\ell\}\\,\\Big\\\},\\end\{split\}\(10\)
withτμ,ℓ\\tau\_\{\\mu,\\ell\}the lane’s 75th percentile of mean shares andτstab,ℓ\\tau\_\{\\mathrm\{stab\},\\ell\}its 25th percentile ofCQV\\operatorname\{CQV\}\. Candidates are scored by combining magnitude with stability, so that a component scores highly only when the effect is both large and consistent across the general prompts,
fs\|ℓ=μs\|ℓ\(1−CQVs\|ℓ\),f~s\|ℓ=fs\|ℓmaxj:Cj\|ℓflr=1fj\|ℓ\+ε,f\_\{s\\mid\\ell\}=\\mu\_\{s\\mid\\ell\}\\left\(1\-\\operatorname\{CQV\}\_\{s\\mid\\ell\}\\right\),\\qquad\\tilde\{f\}\_\{s\\mid\\ell\}=\\frac\{f\_\{s\\mid\\ell\}\}\{\\max\_\{j:\\,C^\{\\mathrm\{flr\}\}\_\{j\\mid\\ell\}=1\}f\_\{j\\mid\\ell\}\+\\varepsilon\},\(11\)
wherefs\|ℓf\_\{s\\mid\\ell\}is the raw floor score for componentssandf~s\|ℓ\\tilde\{f\}\_\{s\\mid\\ell\}rescales it against the strongest flagged candidate in the lane, so scores from lanes of differing size remain comparable\.
## Results
Table 1:MechaTerp\-TRACE per\-model results \(13 models; Gemma excluded from this cohort\), combining localisation \(Eq\. 4/5, hard\-floor\-removed – see notes\), cross\-prompt reuse \(Eq\. 6\), and domain\-common/generation\-floor components with their soft LLI correction \(Eq\. 9, 11, 12\), transposed with models as columns\. Short labels \(family\-Params\): Gr\-3B=Granite\-4\.1\-3B, Gr\-8B=Granite\-4\.1\-8B, Gr\-30B=Granite\-4\.1\-30B, L\-1B=Llama\-3\.2\-1B, L\-3B=Llama\-3\.2\-3B, L\-8B=Llama\-3\.1\-8B\-Instruct, Mi\-7B=Mistral\-7B\-Instruct\-v0\.2, Mn\-3B=Ministral\-3B, MP=MediPhi\-Clinical, Ph=Phi\-4\-mini, Q\-1\.7B=Qwen3\-1\.7B, Q3\.5\-9B=Qwen3\.5\-9B, Q3\.5\-2B=Qwen3\.5\-2B\.- •Metrics per Eqs\. 5, 6, 9, 11, 12; medians over prompts \(block lane\)\.Neff/BN\_\{eff\}/BandK50/K80K\_\{50\}/K\_\{80\}pool domains\.
- •†\\daggerMn\-3B: correctness\-conditioned rows reflect format non\-engagement, not knowledge \(it rephrases/repeats rather than answering\)\. All other rows are correctness\-independent\. \{–\}: no correct prompts, so LLIcorrect\{\}\_\{\\text\{correct\}\}undefined\.
- •RQ\-1\.7B:Δ\\DeltaJac reversed and non\-significant \(p≥\.05p\\geq\.05\); all othersΔ\\DeltaJac\>0\>0,p<\.001p<\.001\(p<\.001p<\.001shown as<<\.001\)\.
- •Δ\\DeltaLLI<0<0: removing always\-on components lowers apparent localisation\. Format compliance \(general domain\): compliant==non\-empty,≤\\leq6 words, not repetitive; no answer==empty; verbose==\>\>6 words \(repetition category omitted, zero for all\)\.
- •Head\-lane LLI omitted: near\-zero \(∼\\sim0\.0004–0\.06\) across the cohort\.
Figure 1:Median block/lane LLI \(Eq\.[4](https://arxiv.org/html/2609.22163#Sx3.E4)\) by model and component lane,*before*floor removal \(raw\), split by domain\. Shown as a cross\-lane diagnostic: floor removal is validated and applied only at the block lane \(Fig\.[2](https://arxiv.org/html/2609.22163#Sx4.F2)and Table[1](https://arxiv.org/html/2609.22163#Sx4.T1)\), so the raw values here illustrate where effect concentrates architecturally prior to correction and should not be read as the corrected localization result\. Blank cells denote lanes absent from that model’s architecture\. Sub\-figure A shows results for medical prompt subset and sub\-figure B shows results for general\-knowledge prompt subset\.Figure 2:Block\-lane effective support \(Neff/B′N\_\{\\mathrm\{eff\}\}/B^\{\\prime\}, Eq\.[4](https://arxiv.org/html/2609.22163#Sx3.E4)\) after hard removal of generation\-floor components \(Eq\.[10](https://arxiv.org/html/2609.22163#Sx3.E10)\), ranked across the 13\-model cohort\. Lower values indicate more localized entity support \(few components carry the effect\); higher values indicate distributed support\. Once structurally\-fixed always\-on components are removed, all models but MediPhi\-Clinical and Qwen3\-1\.7B fall toward the distributed pole, indicating that raw concentration is largely attributable to generic generation machinery rather than entity\-specific processing\. Filled markers: medical prompts; open markers: general prompts\.We ran sixteen models through the MechaTerp\-TRACE architecture, though we report results for thirteen as the Gemma\-3 family of models was not able to effectively produce results\. Across the thirteen reported models the registry materialised 49,656 components in total, ranging from 950 for Qwen3\.5\-2B to 7,362 for Granite\-4\.1\-30B, and every one of these was ablated individually against all 90 prompts\. These components span fourteen lanes covering the whole architecture, namely the transformer block, its attention, MLP and residual children and their combination, individual attention heads, query groups, attention scores and positional encodings, MLP projections, internals and individual neurons, normalisation parameters, and the output head with its rows, channels and logits\. The cohort was chosen to give reasonable coverage of current open\-weight decoder\-only models, spanning five families and a range of parameter counts from 1B to 30B, so that the MechaTerp\-TRACE method could be shown to work across architectures and across scales\. Every model tested is instruction tuned, which is preferable for the continuation\-style prompting regime, since the prompt is placed inside an opened assistant turn\. From the Granite family we tested Granite\-4\.1\-3B, Granite\-4\.1\-8B and Granite\-4\.1\-30B\. From the Llama family we tested Llama\-3\.2\-1B, Llama\-3\.2\-3B and Llama\-3\.1\-8B\-Instruct\. From Mistral we tested Mistral\-7B\-Instruct\-v0\.2 and Ministral\-3B\. From the Phi family we tested Phi\-4\-mini and a fine\-tuned model, MediPhi\-Clinical, included because it is domain specialised for clinical text and offers a useful contrast against general\-purpose models on the medical prompts\. From the Qwen family we tested Qwen3\-1\.7B, Qwen3\.5\-2B and Qwen3\.5\-9B\. The remaining three models were Gemma\-3 at 1B, 4B and 12B, accounting for a further 7,836 components\. Gemma\-3 did not follow the short\-answer instruction at any size, and it could not reliably produce the correct named entity for the prompt packages in either domain\. Because MechaTerp\-TRACE measures the effect of ablation at the position where the answer token should appear, a model that never reaches that answer under any condition yields profiles we cannot interpret\.
Figure[1](https://arxiv.org/html/2609.22163#Sx4.F1)reports median LLI for each model and lane before generation floor removal\. Values span 0\.00 to 0\.62 across the cohort\. The highest single value is Ministral\-3B at theblock\_child\_attentionlane on general prompts \(0\.62\)\. That lane also holds the largest value for Granite\-4\.1\-3B, Granite\-4\.1\-8B, Granite\-4\.1\-30B, Llama\-3\.1\-8B\-Instruct, Ministral\-3B and Qwen3\-1\.7B in at least one domain, reaching 0\.45 for Granite\-4\.1\-30B and 0\.41 for Qwen3\-1\.7B on general prompts\. MediPhi\-Clinical and Phi\-4\-mini instead take their largest values at theblock,block\_child\_mlpandmlp\_projectionlanes, at 0\.30, 0\.31 and 0\.31 for MediPhi\-Clinical on medical prompts and 0\.31, 0\.43 and 0\.43 for Phi\-4\-mini\.
Figure[2](https://arxiv.org/html/2609.22163#Sx4.F2)reports block\-lane effective support \(Neff/B′N\_\{\\mathrm\{eff\}\}/B^\{\\prime\}\) after hard removal of generation\-floor components, ranked from lowest to highest\. Values span roughly 0\.07 to 0\.85\. MediPhi\-Clinical is lowest at approximately 0\.07 on medical prompts and 0\.16 on general prompts, followed by Qwen3\-1\.7B at approximately 0\.17\. Granite\-4\.1\-30B, Granite\-4\.1\-8B and Mistral\-7B\-Instruct\-v0\.2 occupy the middle of the range, at approximately 0\.22 to 0\.33, 0\.41 to 0\.50 and 0\.42 to 0\.61 respectively\. The remaining eight models fall between approximately 0\.58 and 0\.85\. Table[1](https://arxiv.org/html/2609.22163#Sx4.T1)reports per\-model results across the thirteen\-model cohort\. Block\-lane sizeBB\(the number of transformer blocks\) ranges from 14 for Ministral\-3B to 64 for Granite\-4\.1\-30B\. Correct answers out of 90 prompts range from 35 for Qwen3\-1\.7B to 77 for Granite\-4\.1\-30B, , with Ministral\-3B returning none\. The Median floor\-removed block\-lane LLI sits between 0\.017 and 0\.035 on medical prompts for eleven of the thirteen models\. The two exceptions are MediPhi\-Clinical, at 0\.354 medical and 0\.169 general, and Qwen3\-1\.7B, at 0\.170 and 0\.173\. Effective supportNeffN\_\{\\mathrm\{eff\}\}spans 2\.7 to 21\.5 on medical prompts and 4\.9 to 20\.1 on general prompts, and the pooled ratioNeff/B′N\_\{\\mathrm\{eff\}\}/B^\{\\prime\}spans 0\.13 for MediPhi\-Clinical to 0\.82 for Llama\-3\.2\-1B\. Splitting by baseline correctness, LLI is higher on incorrect prompts than on correct prompts for MediPhi\-Clinical \(0\.393 against 0\.207\) and Llama\-3\.2\-1B \(0\.021 against 0\.015\), and lower or equal for the remaining models\. Median within\-entity weighted Jaccard ranges from 0\.512 for MediPhi\-Clinical to 0\.906 for Ministral\-3B, and median across\-entity overlap from 0\.385 to 0\.875\. Between three and fifteen components are flagged domain\-common per model and between one and seven as generation\-floor candidates, with the intersection accounting for between 0\.250 and 1\.000 of the domain\-common set\. Removing floor components lowers median LLI for eleven models, by between 0\.009 and 0\.071, and raises it for MediPhi\-Clinical \(0\.013\) and Qwen3\-1\.7B \(0\.012\)\.K50K\_\{50\}ranges from 2\.0 to 7\.0 components andK80K\_\{80\}from 3\.0 to 17\.0\. Format compliance on the general domain is 1\.000 for nine models, 0\.976 for Qwen3\.5\-2B, 0\.881 for Mistral\-7B\-Instruct\-v0\.2, 0\.810 for Qwen3\.5\-9B, and 0\.190 for Ministral\-3B, whose 34 non\-compliant responses were all verbose\. Qwen3\.5\-9B accounts for the only empty responses in the cohort, at eight\.
## Discussion
### Composition of the Generation Floor and Component Importance Concentration Before Generation\-Floor Removal
Prior to generation floor correction, we observed a substantial generation floor pattern emerge across the full suite of models tested within the cohort, showing a high level of component importance generally centred on the first two and last two transformer blocks of each model\. This pattern held regardless of which entity the prompt asked about, with the identity of the dominant component fixed across 68 to 100 % of prompts in every model\. Eleven of the thirteen models place their largest share of effect on the first transformer block, and the two Phi\-family models place it on the last\. Raw block\-lane concentration reaches 0\.62 across the cohort \(Fig\.[1](https://arxiv.org/html/2609.22163#Sx4.F1)\)\. We hypothesise that this reflects where those blocks sit in the residual stream rather than what they contribute to any particular entity\. The first block operates on representations that are still close to the raw token embeddings and its output feeds every block that follows, so its removal compounds through the whole network before reaching the answer anchor\. The last block makes one of the final writes into the residual stream before the unembedding projection, so its removal arrives at the anchor with nothing downstream to absorb it\. In both cases the size of the effect follows from position, and would be expected for any prompt the model is asked to complete\.
### Component Importance Concentration After Generation\-Floor Removal
Once the generation floor is removed, we find no effective evidence that support for a named entity concentrates in a small set of components in any general\-purpose model we tested\. Removing the floor set strips out the components that carry effect for any short answer, so what remains is the residual attributable to prompt content, and that residual is close to evenly spread\. Median floor\-removed block\-lane LLI sits between 0\.017 and 0\.035 on medical prompts for eleven of the thirteen models, placingNeff/B′N\_\{\\mathrm\{eff\}\}/B^\{\\prime\}between 0\.46 and 0\.82 \(Table[1](https://arxiv.org/html/2609.22163#Sx4.T1), Fig\.[2](https://arxiv.org/html/2609.22163#Sx4.F2)\)\. We observe two outlier models that do not however follow this trend\. First, MediPhi\-Clinical which reaches 0\.354 with an effective support of 2\.7 components while Phi\-4\-mini, which shares its architecture and block count, sits at 0\.019, so the difference is the clinical fine\-tune\. Second, Qwen3\-1\.7B reaches 0\.170, and although its low correctness of 35 of 90 is the natural explanation, the table does not support it, since Llama\-3\.2\-1B answered 46 and is the most distributed model in the cohort\. What distinguishes Qwen3\-1\.7B is that its profiles do not change when the entity does, at−0\.007\-0\.007withp=0\.983p=0\.983\.
### Component Reuse Across Prompts
Profile overlap is high everywhere and barely responds to which entity a prompt asks about, so the components carrying effect are largely the same set regardless of content\. Because shares are normalised within a lane, two prompts recruiting genuinely different components would produce disjoint mass and a low overlap, and that is not what we observe\. Median within\-entity overlap runs from 0\.512 to 0\.906 and across\-entity overlap from 0\.385 to 0\.875, leaving differences of only 0\.026 to 0\.127 \(Table[1](https://arxiv.org/html/2609.22163#Sx4.T1)\)\. Twelve of the thirteen models reachp<\.001p<\.001on that difference, but the effect sizes are small enough that statistical significance is the weaker of the two readings, and pairwise comparisons drawn from a shared prompt set are not independent\. Two models sit apart from the rest for opposite reasons\. MediPhi\-Clinical has the lowest within\-entity overlap at 0\.512 and the largest separation at 0\.127, which is the closest any model comes to profiles that track the entity, while Ministral\-3B has the highest overlap in the cohort at 0\.906 and 0\.865 despite answering none of the 90 prompts correctly, so its near\-identical profiles reflect a repeated non\-answer rather than shared support\. For the question of whether entity knowledge is localised, high overlap that does not move with the entity means that even where effect is concentrated, the concentration is not entity\-specific\.
## Conclusion
We did not observe entity\-specific localisation in any instruct\-tuned model we tested\. The concentration visible before correction belongs to a small set of positionally fixed components that carry effect for any short answer, and once those effects are removed the support that remains is close to evenly spread throughout the model, with profiles that barely change when the named entity does\. This holds across every registered lane, from whole blocks down to attention and MLP branches, heads, query groups, positional encodings, attention scores, projections, individual neurons and channels, and output logits\. The finding is bounded by what the method measures, namely single\-component necessity under one ablation operator read at a single teacher\-forced position, and by a general corpus retained on the basis of model correctness\. The practical implication is that methods assuming entity knowledge sits in a findable place, including targeted knowledge editing, should first establish that the concentration they observe is not the generation floor\.
## Acknowledgments
This research was supported by the Intramural Research Program of the National Institutes of Health \(NIH\)\. The contributions of the NIH author\(s\) are considered Works of the United States Government\. The findings and conclusions presented in this paper are those of the author\(s\) and do not necessarily reflect the views of the NIH or the U\.S\. Department of Health and Human Services\. This work utilized the computational resources of the NIH HPC Biowulf cluster \(https://hpc\.nih\.gov\)\.
## References
- Conmy et al\. \(2023\)Conmy, A\.; Mavor\-Parker, A\. N\.; Lynch, A\.; Heimersheim, S\.; and Garriga\-Alonso, A\. 2023\.Towards automated circuit discovery for mechanistic interpretability\.In*Proceedings of the 37th International Conference on Neural Information Processing Systems*, NIPS ’23\. Red Hook, NY, USA: Curran Associates Inc\.
- Gallagher et al\. \(2024\)Gallagher, S\. K\.; Ratchford, J\.; Brooks, T\.; Brown, B\.; Heim, E\.; McMillan, S\.; Nichols, W\. R\.; Rallapalli, S\.; Smith, C\. J\.; VanHoudnos, N\. M\.; Winski, N\.; and Mellinger, A\. O\. 2024\.Assessing LLMs for High Stakes Applications\.In*Proceedings of the 46th IEEE/ACM International Conference on Software Engineering: Software Engineering in Practice \(ICSE\-SEIP ’24\)*, 103–105\. Lisbon, Portugal: Association for Computing Machinery\.ISBN 9798400702174\.
- Geva et al\. \(2023\)Geva, M\.; Bastings, J\.; Filippova, K\.; and Globerson, A\. 2023\.Dissecting Recall of Factual Associations in Auto\-Regressive Language Models\.In Bouamor, H\.; Pino, J\.; and Bali, K\., eds\.,*Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing*, 12216–12235\. Singapore: Association for Computational Linguistics\.
- Hirschman \(1964\)Hirschman, A\. O\. 1964\.The Paternity of an Index\.*The American Economic Review*, 54\(5\): 761–762\.
- Huang et al\. \(2025\)Huang, L\.; Yu, W\.; Ma, W\.; Zhong, W\.; Feng, Z\.; Wang, H\.; Chen, Q\.; Peng, W\.; Feng, X\.; Qin, B\.; and Liu, T\. 2025\.A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions\.*ACM Transactions on Information Systems*, 43\(2\): 1–55\.
- Li et al\. \(2024\)Li, X\.; Li, S\.; Song, S\.; Yang, J\.; Ma, J\.; and Yu, J\. 2024\.PMET: Precise Model Editing in a Transformer\.In*Proceedings of the AAAI Conference on Artificial Intelligence*, volume 38, 18564–18572\. Association for the Advancement of Artificial Intelligence\.
- Meng et al\. \(2022\)Meng, K\.; Bau, D\.; Andonian, A\.; and Belinkov, Y\. 2022\.Locating and Editing Factual Associations in GPT\.In Koyejo, S\.; Mohamed, S\.; Agarwal, A\.; Belgrave, D\.; Cho, K\.; and Oh, A\., eds\.,*Advances in Neural Information Processing Systems*, volume 35\.NeurIPS 2022\.
- O’Berry and Kanewala \(2026\)O’Berry, J\.; and Kanewala, U\. 2026\.Quality Assurance of Large Language Model\-based Software: A Systematic Literature Review\.Preprint, Social Science Research Network \(SSRN\)\.
- Rai et al\. \(2024\)Rai, D\.; Zhou, Y\.; Feng, S\.; Saparov, A\.; and Yao, Z\. 2024\.A Practical Review of Mechanistic Interpretability for Transformer\-Based Language Models\.*arXiv preprint arXiv:2407\.02646*\.
- Templeton et al\. \(2024\)Templeton, A\.; Conerly, T\.; Marcus, J\.; Lindsey, J\.; Bricken, T\.; Chen, B\.; Pearce, A\.; Citro, C\.; Ameisen, E\.; Jones, A\.; Cunningham, H\.; Turner, N\. L\.; McDougall, C\.; MacDiarmid, M\.; Tamkin, A\.; Durmus, E\.; Hume, T\.; Mosconi, F\.; Freeman, C\. D\.; Sumers, T\. R\.; Rees, E\.; Batson, J\.; Jermyn, A\.; Carter, S\.; Olah, C\.; and Henighan, T\. 2024\.Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnet\.https://transformer\-circuits\.pub/2024/scaling\-monosemanticity/\.Transformer Circuits Thread\.
- Zhao et al\. \(2024\)Zhao, H\.; Chen, H\.; Yang, F\.; Liu, N\.; Deng, H\.; Cai, H\.; Wang, S\.; Yin, D\.; and Du, M\. 2024\.Explainability for Large Language Models: A Survey\.*ACM Transactions on Intelligent Systems and Technology*, 15\(2\): 1–38\.相似文章
在子十亿参数语言模型中,实体跟踪能力涌现,并在自然叙事中超越人类表现
本文通过使用自然叙事研究语言模型和人类中的实体跟踪能力,发现子十亿参数的模型已达到人类水平并超越人类,表明核心语言理解能力在比先前假设更小的规模上涌现。
MechELK:一种用于从大型语言模型中引出潜在知识的机制可解释性框架
MechELK 是一个三阶段框架,结合机制可解释性工具(SAE、激活修补、因果探测)与表示工程,从大型语言模型中引出潜在知识,实现了84.7%的准确率,优于CCS和线性探测等现有方法。
大型语言模型及其对力学与空间几何的感知
本文介绍了MecEng,这是一个用于评估大型语言模型在机械工程中力学与空间几何任务的基准,揭示了其能力不断提升但仍易出错的现状。
语言、语言模型与我们正在讨论的内容
本文将语言模型视为语言产物,使用意大利模型来探究其训练过程,并质疑其对语言的表征。文章主张在自然语言处理中区分技术产品和研究工具。
Leak It:黑盒语言模型训练数据提取的概率方法
本文提出了一种从黑盒语言模型中提取训练数据的概率方法,表明聚合的成员推断指标掩盖了逐文档泄露,并介绍了“leakit”审计工具。