解耦微调大语言模型中的内部表征变化与因果重要性
摘要
本文研究了微调如何改变大语言模型的内部表征,并将这些变化与 Edge Attribution Patching 识别的因果重要性成分解耦,发现任务特定成分集中在某些层中,并与表征变化不相关。
arXiv:2609.21113v1 Announce Type: new
Abstract: Fine-tuning has emerged as a widely adopted approach for adapting LLMs to a variety of downstream tasks. However, how it reshapes their internal mechanisms remains poorly understood. To address this, we investigate how fine-tuning alters internal representations in LLMs, including attention patterns and layer-wise activations, and examine whether these changes are linked to task-relevant components identified by EAP (e.g., attention heads and logit-level activations) that drive task performance. We find that EAP-identified components are concentrated within specific layers, indicating a degree of functional localisation in how models internalise task-specific behavior. Notably, the distribution of these components across layers is largely uncorrelated with the layers undergoing the most substantial representational changes during fine-tuning. Furthermore, we observe that overlap in EAP-identified components across tasks does not translate into cross-task performance transfer if the tasks are different in nature (e.g. classification vs. generative tasks). More specifically, fine-tuning on one task can lead to a degradation of performance on another when the two tasks exhibit a high degree of overlap in their EAP-identified components.
查看缓存全文
缓存时间: 2026/09/21 09:12
# Decoupling Internal Representational Changes and Causal Importance in Fine-Tuned Large Language Models
Source: [https://arxiv.org/html/2609.21113](https://arxiv.org/html/2609.21113)
LLMsLarge Language ModelsNLPNatural Language ProcessingKLKullback\-LeiblerFTFine\-TuningEAPEdge Attribution Patching
###### Abstract
Fine\-tuning has emerged as a widely adopted approach for adapting[LLMs](https://arxiv.org/html/2609.21113#id1)\([LLMs](https://arxiv.org/html/2609.21113#id1)\) to a variety of downstream tasks\. However, how it reshapes their internal mechanisms remains poorly understood\. To address this, we investigate how fine\-tuning alters internal representations in LLMs, including attention patterns and layer\-wise activations, and examine whether these changes are linked to task\-relevant components identified by[EAP](https://arxiv.org/html/2609.21113#id5)\([EAP](https://arxiv.org/html/2609.21113#id5)\) \(e\.g\., attention heads and logit\-level activations\) that drive task performance\. We find that[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components are concentrated within specific layers, indicating a degree of functional localisation in how models internalise task\-specific behavior\. Notably, the distribution of these components across layers is largely uncorrelated with the layers undergoing the most substantial representational changes during fine\-tuning\. Furthermore, we observe that overlap in[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components across tasks does not translate into cross\-task performance transfer if the tasks are different in nature \(e\.g\. classification vs\. generative tasks\)\. More specifically, fine\-tuning on one task can lead to a degradation of performance on another when the two tasks exhibit a high degree of overlap in their[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components\. Our code is available here\.111[https://github\.com/LingfangLi/repr\-change\-vs\-causal\-importance](https://github.com/LingfangLi/repr-change-vs-causal-importance)
## § 1Introduction
Due to the widespread use of[FT](https://arxiv.org/html/2609.21113#id4)\([FT](https://arxiv.org/html/2609.21113#id4)\) across diverse domains, including high stake domains like biomedical\([Wu et al\., 2024](https://arxiv.org/html/2609.21113#bib.bib14);[Lee et al\., 2019](https://arxiv.org/html/2609.21113#bib.bib12);[Liu et al\., 2024](https://arxiv.org/html/2609.21113#bib.bib13);[Luo et al\., 2022](https://arxiv.org/html/2609.21113#bib.bib15)\)and legal applications\([Chalkidis et al\., 2020](https://arxiv.org/html/2609.21113#bib.bib1);[Colombo et al\., 2024](https://arxiv.org/html/2609.21113#bib.bib9);[Tewari, 2024](https://arxiv.org/html/2609.21113#bib.bib10);[Shu et al\., 2024](https://arxiv.org/html/2609.21113#bib.bib11)\),
Figure 1:Examples of task\-specific[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components \(e\.g\. attention heads, MLPs\) for sentiment classification \(top\), question answering \(middle\), and machine translation \(bottom\)\. Notations are described in[Appendix A](https://arxiv.org/html/2609.21113#A1)\.\([Jain et al\., 2024](https://arxiv.org/html/2609.21113#bib.bib16);[Rudman et al\., 2023](https://arxiv.org/html/2609.21113#bib.bib36)\)\. However, there remains a limited understanding of how model\-level representational changes relate to the underlying[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components \(e\.g\., embedding nodes, attention heads, MLPs, and logit nodes\) that are primarily responsible for task performance\. It also remains unclear whether shared[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components across tasks drive cross\-task performance transfer, a question that is crucial for developing efficient and principled[FT](https://arxiv.org/html/2609.21113#id4)strategies\.
To address the above\-mentioned issue, we study layerwise attention pattern and representation level changes before and after[FT](https://arxiv.org/html/2609.21113#id4)\. The reason for studying layerwise representations is to understand how task\-level information encoded in every layer changes before and after[FT](https://arxiv.org/html/2609.21113#id4)\. We used a causal attribution based approach from mechanistic interpretability to find the causally relevant components in the fine\-tuned model\. Our primary objective is to investigate whether the layer undergoing the maximum representational change is also similar to the layer having the highest contribution to the[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components responsible for the performance of the task\.
We investigate[FT](https://arxiv.org/html/2609.21113#id4)across three different[NLP](https://arxiv.org/html/2609.21113#id2)\([NLP](https://arxiv.org/html/2609.21113#id2)\) tasks \(a\) Sentiment Classification \(label prediction\), \(b\) Machine Translation \(sequence generation\), and \(c\) Question Answering \(span extraction\)\. To increase the generalisability of our findings, for each task, we select two datasets, resulting in six different datasets in total\. Our experiments are conducted on GPT\-2 Small, LLaMA\-3\.2\-1B, Qwen2\-0\.5B, Llama2\-7B\.[Figure 1](https://arxiv.org/html/2609.21113#S1.F1)provides an illustrative example of[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components for three tasks \(i\.e\. sentiment classification \(SST2\), question answering \(SquAD\), and machine translation \(KDE4\)\), visualising a subset of the top\-ranked components identified by our analysis\. It can be observed that different kinds of tasks have similar and different causally relevant components\. For example, MLP5 is present in both sentiment and question answering task, and fifth attention head in the first layer \(a5h1\) is present only in machine translation\. Broadly, our contributions can be summarised as follows\.
- •We perform a comprehensive causal component analysis rather than focus on only the attention heads or feedforward layer similar to[Yu and Ananiadou](https://arxiv.org/html/2609.21113#bib.bib35)in three different NLP tasks \([§ 5\.2](https://arxiv.org/html/2609.21113#S5.SS2)\)\. We perform further analysis to quantify the overlap between known functional components, such as induction heads, and the identified causally relevant components in our research scope\. In addition, we investigate the relative contribution of different component types \(e\.g\., MLPs, attention heads, and logit nodes\) among the top causally relevant components for each task \([§ 6](https://arxiv.org/html/2609.21113#S6)\)\.
- •We show that the layers undergoing the largest changes in attention patterns and representations during[FT](https://arxiv.org/html/2609.21113#id4)are not the layers that contain the most[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components for task performance \([§ 5\.1](https://arxiv.org/html/2609.21113#S5.SS1)and[§ 5\.2](https://arxiv.org/html/2609.21113#S5.SS2)\)\.
- •In contrast, for models fine\-tuned on different tasks, we observe no performance gains despite the presence of overlap of[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components\. This suggests that differences in task nature \(e\.g\., classification vs\. generation\) restrict the effective reuse of[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components across tasks \([§ 5\.3](https://arxiv.org/html/2609.21113#S5.SS3)\)
## § 2Related Work
#### Mechanistic Studies of Fine\-Tuning\.
Existing work has explored several techniques to understand the internal mechanisms of[FT](https://arxiv.org/html/2609.21113#id4)techniques\. Prior studies have examined parameter, feature, and representation\-level dynamics\.[Mukherjee et al\. \(2025\)](https://arxiv.org/html/2609.21113#bib.bib17)showed that[FT](https://arxiv.org/html/2609.21113#id4)can match full\-update performance while modifying only sparse parameter subsets,[Xu et al\. \(2025b\)](https://arxiv.org/html/2609.21113#bib.bib19)traced feature evolution across different phases of[FT](https://arxiv.org/html/2609.21113#id4),[Jain et al\. \(2024\)](https://arxiv.org/html/2609.21113#bib.bib16)used pruning and probing on procedurally defined synthetic tasks and argued that[FT](https://arxiv.org/html/2609.21113#id4)acts as a lightweight wrapper over pre\-trained capabilities\.[Ren and Sutherland \(2025\)](https://arxiv.org/html/2609.21113#bib.bib18)proposed a decomposition framework tracing how individual training examples shape predictions\. Recent circuit\-based work further studies[FT](https://arxiv.org/html/2609.21113#id4)through mechanistic interpretability\.[Wang et al\. \(2025\)](https://arxiv.org/html/2609.21113#bib.bib47)tracked circuits across[FT](https://arxiv.org/html/2609.21113#id4)checkpoints on mathematical tasks and found that[FT](https://arxiv.org/html/2609.21113#id4)primarily reorganises circuit edges rather than simply adding or removing nodes, motivating a circuit\-aware LoRA method for[FT](https://arxiv.org/html/2609.21113#id4)\.[Prakash et al\. \(2024\)](https://arxiv.org/html/2609.21113#bib.bib50)shows that fine\-tuning can preserve and strengthen existing task mechanisms rather than construct new ones, using entity tracking as a case study\. Our work asks a different question: whether the components responsible for task performance are also those that undergo the most substantial changes during fine\-tuning, and evaluates this across multiple task families\. These works characterise what changes during[FT](https://arxiv.org/html/2609.21113#id4), but they do not relate model\-level representational change to the[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components responsible for task performance, which is the gap our work addresses\.
#### Component and Circuit\-Level Analyses of LLM Internals\.
A complementary line of work focused on localisation of internal components for different types of model behaviours\. Prior studies identified task\-relevant neurons in feed\-forward networks\([Geva et al\., 2021](https://arxiv.org/html/2609.21113#bib.bib40);[Wang et al\., 2022](https://arxiv.org/html/2609.21113#bib.bib41);[Xu et al\., 2025a](https://arxiv.org/html/2609.21113#bib.bib42);[Pan et al\., 2024](https://arxiv.org/html/2609.21113#bib.bib43)\), used probing to how task information is distributed across layers\([Belinkov, 2022](https://arxiv.org/html/2609.21113#bib.bib38)\), or recover task\-relevant circuits through attribution patching and automated circuit discovery\([Syed et al\., 2024](https://arxiv.org/html/2609.21113#bib.bib27);[Hanna et al\., 2024](https://arxiv.org/html/2609.21113#bib.bib26);[Conmy et al\., 2023](https://arxiv.org/html/2609.21113#bib.bib32)\)\. While these methods provide evidence that specific neurones, heads, layers, or edges contribute to model behaviour, many analyses focus on isolated component types \(e\.g\., only on attention heads or only on feed forward network\) or on pre\-trained models\.[Leng and Xiong \(2025\)](https://arxiv.org/html/2609.21113#bib.bib48)explored different task\-specific neurones, specifically focusing on feed\-forward layer networks to develop an efficient[FT](https://arxiv.org/html/2609.21113#id4)approach\.[Panigrahi et al\. \(2023\)](https://arxiv.org/html/2609.21113#bib.bib51)shows that a small, localized subset of model parameters can be sufficient to capture task\-specific skills through parameter grafting\. In contrast to the above\-mentioned line of work, we use[EAP](https://arxiv.org/html/2609.21113#id5)to identify all possible components within a model to find top\-k task\-relevant components across three different types of tasks and examine whether their importance aligns with the components that change most during fine\-tuning\.
## § 3Methodology
Here, we describe the frameworks used to analyse model\-level internal changes and identify[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components\.
### § 3\.1Quantifying Model\-Level Changes
We focus on attention patterns and representation\-level changes because they capture two complementary aspects of model behaviour under[FT](https://arxiv.org/html/2609.21113#id4)\. Attention patterns provide insights into how the model routes information across tokens, reflecting dependency structure and contextual reasoning\([Vaswani et al\., 2017](https://arxiv.org/html/2609.21113#bib.bib3);[Clark et al\., 2019](https://arxiv.org/html/2609.21113#bib.bib2);[Voita et al\., 2019](https://arxiv.org/html/2609.21113#bib.bib8);[Michel et al\., 2019](https://arxiv.org/html/2609.21113#bib.bib4)\)\. In contrast, representation\-level analyses capture how[FT](https://arxiv.org/html/2609.21113#id4)alters the geometry of the model’s internal feature space, which encodes semantic and syntactic information\([Ethayarajh, 2019](https://arxiv.org/html/2609.21113#bib.bib7);[Hewitt and Manning, 2019](https://arxiv.org/html/2609.21113#bib.bib6);[Kovaleva et al\., 2019](https://arxiv.org/html/2609.21113#bib.bib5)\)\. Such changes reflect shifts in the model’s learned abstractions beyond individual components\.
#### Measuring Attention Pattern Changes\.
We first compare attention patterns before and after[FT](https://arxiv.org/html/2609.21113#id4)on each head across all the layers in an LLM\. Given a fixed layerℓ\\elland a headhh, for thekk\-th test instance, tokenised into a sequence of lengthdkd\_\{k\}, letAℓ,hPT,k,Aℓ,hFT,k∈\[0,1\]dk×dkA^\{\\mathrm\{PT\},k\}\_\{\\ell,h\},A^\{\\mathrm\{FT\},k\}\_\{\\ell,h\}\\in\[0,1\]^\{d\_\{k\}\\times d\_\{k\}\}denote the corresponding attention pattern in the pre\-trained and fine\-tuned model, respectively\. Each row inAℓ,h,i,:A\_\{\\ell,h,i,:\}is a softmax output and thus a probability distribution over thedkd\_\{k\}key positions \(Aℓ,h,i,j=0A\_\{\\ell,h,i,j\}=0forj\>ij\>iunder causal masking\), making the[KL](https://arxiv.org/html/2609.21113#id3)\([KL](https://arxiv.org/html/2609.21113#id3)\) divergence well defined between corresponding rows\. Below, we measure the change magnitude of headhhin layerℓ\\ellby averaging the row\-wise[KL](https://arxiv.org/html/2609.21113#id3)divergence over alldkd\_\{k\}query positions, and then overnntest instances as follows:
ΔAℓ,h=1n∑k=1n1dk∑i=1dkKL\(Aℓ,h,iPT,k∥Aℓ,h,iFT,k\)\\Delta A\_\{\\ell,h\}=\\frac\{1\}\{n\}\\sum\_\{k=1\}^\{n\}\\frac\{1\}\{d\_\{k\}\}\\sum\_\{i=1\}^\{d\_\{k\}\}\\operatorname\{KL\}\\\!\\left\(A^\{\\mathrm\{PT\},k\}\_\{\{\\ell\},h,i\}\\,\\big\\\|\\,A^\{\\mathrm\{FT\},k\}\_\{\{\\ell\},h,i\}\\right\)\(1\)Taking the pre\-trained pattern as the reference,[Equation 1](https://arxiv.org/html/2609.21113#S3.E1)measures how much[FT](https://arxiv.org/html/2609.21113#id4)shifts head\(ℓ,h\)\(\\ell,h\)\. We then average over theHHheads,ΔAℓ=1H∑h=1HΔAℓ,h\\Delta A\_\{\\ell\}=\\frac\{1\}\{H\}\\sum\_\{h=1\}^\{H\}\\Delta A\_\{\\ell,h\}, to obtain the average change in attention pattern per layer\.
#### Measuring Representation Level Changes\.
To estimate whether task\-relevant information remains encoded within different layers of fine\-tuned LLMs in a way similar to that of the pretrained model, similar to[Geva et al\. \(2023\)](https://arxiv.org/html/2609.21113#bib.bib45)and[Jiang et al\. \(2024\)](https://arxiv.org/html/2609.21113#bib.bib46), we adopt a probing framework using logit lens\([nostalgebraist, 2020](https://arxiv.org/html/2609.21113#bib.bib39)\)\. Specifically, for each test samplessand layerℓ\\ell, we map the intermediate hidden state representation to the vocabulary space using the same output prediction head used for the final\-layer representation, obtaining a per\-layer predictiony^ℓ\(s\)\\hat\{y\}^\{\(s\)\}\_\{\\ell\}for every samples∈𝒮s\\in\\mathcal\{S\}\. The probing procedure is identical across tasks, what differs is the metricℳ\\mathcal\{M\}used to comparey^ℓ\(s\)\\hat\{y\}^\{\(s\)\}\_\{\\ell\}against the ground truthysy\_\{s\}\.
ℳℓ=1\|𝒮\|∑s∈𝒮ℳ\(y^ℓ\(s\),ys\)\.\\mathcal\{M\}\_\{\\ell\}\\;=\\;\\frac\{1\}\{\|\\mathcal\{S\}\|\}\\sum\_\{s\\in\\mathcal\{S\}\}\\mathcal\{M\}\\\!\\bigl\(\\hat\{y\}^\{\(s\)\}\_\{\\ell\},\\,y\_\{s\}\\bigr\)\.\(2\)
Equation[2](https://arxiv.org/html/2609.21113#S3.E2)describes the mathematical formulation of the metricℳℓ\\mathcal\{M\_\{\\ell\}\}used to measure the effectiveness of the representation obtained from a layerℓ\\ellfor an LLM for a task\. We instantiateℳℓ\\mathcal\{M\_\{\\ell\}\}as binary classification accuracy for sentiment classification, BERTScore\([Zhang et al\., 2020](https://arxiv.org/html/2609.21113#bib.bib44)\)for machine translation, and SQuAD F1\([Rajpurkar et al\., 2016](https://arxiv.org/html/2609.21113#bib.bib21)\)for question answering\. A higherℳℓ\\mathcal\{M\}\_\{\\ell\}indicates that the representation at layerℓ\\ellencodes more sufficient information to estimate the correct output, allowing us to compare how task\-aligned information is distributed across layers in the base and fine\-tuned models\.
### § 3\.2Quantifying Causal Relevance
Although the model can undergo multiple changes during FT, there may be certain components which are potentially causally responsible for the performance of a model in a task\. To understand this, similar to[Wu et al\.](https://arxiv.org/html/2609.21113#bib.bib31), we used the[EAP](https://arxiv.org/html/2609.21113#id5)technique[Syed et al\. \(2024\)](https://arxiv.org/html/2609.21113#bib.bib27)to estimate the important task\-related components from an LLM\.
Broadly speaking,[EAP](https://arxiv.org/html/2609.21113#id5)identifies the importance of each edge in an LLM, where an edgeEu→vE\_\{u\\to v\}exists between a source nodeuuand a destination nodevv\(e\.g\., outputs of previous layers and inputs of subsequent components\)\. An edge essentially consists of two components while doing analysis related to causal relevance, we consider the union of all the components corresponding to top\-k edges identified by[EAP](https://arxiv.org/html/2609.21113#id5)\.[EAP](https://arxiv.org/html/2609.21113#id5)assigns a score to each edge\. The saliency scoreSu→vS\_\{u\\to v\}of an edgeEu→vE\_\{u\\to v\}is defined as the expected cumulative causal contribution to the task metricℒ\\mathcal\{L\}\. To estimate the saliency score of an edge, we essentially corrupt an edge and observe the change in the model output\. A first\-order Taylor expansion is used to approximate the effect of corruption\.[Equation 3](https://arxiv.org/html/2609.21113#S3.E3)gives the mathematical formulation of the saliency score for an inputxx\.
Su→v=\|Ex∼𝒟\[⟨∇𝐚vℒ\(x\),Δ𝐚v,x⟩\]\|S\_\{u\\to v\}=\\left\|E\_\{x\\sim\\mathcal\{D\}\}\\left\[\\left\\langle\\nabla\_\{\\mathbf\{a\}\_\{v\}\}\\mathcal\{L\}\(x\),\\Delta\\mathbf\{a\}\_\{v,x\}\\right\\rangle\\right\]\\right\|\(3\)whereΔ𝐚v,x\\Delta\\mathbf\{a\}\_\{v,x\}is the change in activation due to applying corrupted input to node u\. Mathematically,
Δ𝐚v,x=𝐚v\(x\)−𝐚v\(x′\)\\displaystyle\\Delta\\mathbf\{a\}\_\{v,x\}=\\mathbf\{a\}\_\{v\}\(x\)\-\\mathbf\{a\}\_\{v\}\(x^\{\\prime\}\)\(4\)In this formulation,𝐚v\(x\)\\mathbf\{a\}\_\{v\}\(x\)denotes the activations generated by the inputxx, while𝐚v\(x′\)\\mathbf\{a\}\_\{v\}\(x^\{\\prime\}\)denotes those from a corrupted promptx′x^\{\\prime\}\. The corrupted inputx′x^\{\\prime\}is specifically constructed to remove key task\-related information, thereby allowing us to isolate the causal necessity of each edge\. The term∇𝐚vℒ\(x\)\\nabla\_\{\\mathbf\{a\}\_\{v\}\}\\mathcal\{L\}\(x\)represents the sensitivity gradient of the metric with respect to the input of the nodevvon clean data;⟨⋅,⋅⟩\\langle\\cdot,\\cdot\\rangledenotes the inner product;𝒟\\mathcal\{D\}represents the task\-specific dataset;TTis the sequence length;iidenotes the token position\. Similar to[Syed et al\.](https://arxiv.org/html/2609.21113#bib.bib27), we implement the difference in logit values corresponding to ground truth and the predicted output by the[LLMs](https://arxiv.org/html/2609.21113#id1), as the primary metricℒ\\mathcal\{L\}to measure the model’s confidence\. For specific tasks, this metric is defined as follows\. Since EAP relies on a first\-order approximation rather than an actual intervention, we validate the identified components with activation patching: replacing the clean activations of the top\-400 EAP\-identified components with their corrupted activations\. Across all models and tasks, this intervention degrades task performance substantially more than intervening on the same number of randomly selected components\. Further details are in Appendix[D\.2](https://arxiv.org/html/2609.21113#A4.SS2)\.
Metric for Binary Sentiment Classification \(ℒSent\\mathcal\{L\}\_\{\\text\{Sent\}\}\)Here we measure the difference between the logit of the target labely∗y^\{\*\}\(denoted aszy∗z\_\{y^\{\*\}\}\) and that of the highest\-scoring incorrect label for a particular inputxx\. If certain edges are important, then corrupting them should not only alter the model’s output significantly but also amplify this logit difference\. MathematicallyℒSent\\mathcal\{L\}\_\{\\text\{Sent\}\}is defined in[Equation 5](https://arxiv.org/html/2609.21113#S3.E5)\.
ℒSent=zy∗−maxj≠y∗zj\\mathcal\{L\}\_\{\\text\{Sent\}\}=z\_\{y^\{\*\}\}\-\\max\_\{j\\neq y^\{\*\}\}z\_\{j\}\\quad\(5\)wherejjranges over all class labels\.
Metric for Generative Tasks \(ℒQA, MT\\mathcal\{L\}\_\{\\text\{QA, MT\}\}\)For generative tasks, token sequences are produced under a teacher\-forcing regime\. At each decoding step, we compute the logit difference between the ground\-truth token \(GTiGT\_\{i\}\) and the highest\-scoring incorrect token within the top\-KKpredicted candidates\. This logit difference is then aggregated across all n decoding steps, where n denotes the total number of tokens in the ground\-truth sequence \(GTGT\)\.[Equation 6](https://arxiv.org/html/2609.21113#S3.E6)describes the mathematical formulation for this metric\.
ℒQA, MT=∑i=1\|GT\|\(zGTi\(i\)−maxj∈Ki∖\{GTi\}zj\(i\)\)\\mathcal\{L\}\_\{\\text\{QA, MT\}\}=\\sum\_\{i=1\}^\{\|GT\|\}\\left\(z\_\{GT\_\{i\}\}^\{\(i\)\}\-\\max\_\{j\\in K\_\{i\}\\setminus\\\{GT\_\{i\}\\\}\}z\_\{j\}^\{\(i\)\}\\right\)\(6\)wherejjranges over the top\-KKcandidate tokens at that step excluding the ground\-truth token\.
Across all generative task datasets, the output sequence lengths exhibit low variability, with an average standard deviation of 2\.12\. This indicates that token length variation is minimal and unlikely to introduce any bias in the evaluation metricℒQA, MT\\mathcal\{L\}\_\{\\text\{QA, MT\}\}\.
## § 4Experiment Setup
#### Dataset Description\.
Existing research[Alves et al\. \(2024\)](https://arxiv.org/html/2609.21113#bib.bib28);[Subramonian et al\. \(2023\)](https://arxiv.org/html/2609.21113#bib.bib29)showed that the three tasks mentioned above are among the most widely used[NLP](https://arxiv.org/html/2609.21113#id2)tasks\. Hence, we focused particularly on these three tasks in our research scope\. ForSentiment Classificationtask, we used two datasets: Large Yelp Review \(Yelp\) Dataset[Zhang et al\. \(2015\)](https://arxiv.org/html/2609.21113#bib.bib20)and Stanford Sentiment Treebank \(SST\-2\)[Socher et al\. \(2013\)](https://arxiv.org/html/2609.21113#bib.bib34)\. ForQuestion Answeringtask, we used two benchmark reading\-comprehension\-style datasets: the Stanford Question Answering Dataset \(SQuAD\) v1\.1[Rajpurkar et al\. \(2016\)](https://arxiv.org/html/2609.21113#bib.bib21)and Conversational Question Answering \(CoQA\)[Reddy et al\. \(2019\)](https://arxiv.org/html/2609.21113#bib.bib22)\. ForMachine Translationtask, we used KDE4 dataset[Tiedemann \(2012\)](https://arxiv.org/html/2609.21113#bib.bib23)and Tatoeba dataset[Artetxe and Schwenk \(2019\)](https://arxiv.org/html/2609.21113#bib.bib24)\. For each type of task, we have randomly chosen30,00030,000data for training\. The details of datasets are given in[Appendix B](https://arxiv.org/html/2609.21113#A2)\.
\(a\)Llama3\.2 on SQuAD \(H~attn=1\.00\\tilde\{H\}\_\{\\text\{attn\}\}=1\.00,H~EAP=0\.59\\tilde\{H\}\_\{\\text\{EAP\}\}=0\.59\)\(b\)Llama3\.2 on KDE4 \(H~attn=0\.99\\tilde\{H\}\_\{\\text\{attn\}\}=0\.99,H~EAP=0\.59\\tilde\{H\}\_\{\\text\{EAP\}\}=0\.59\)\(c\)Qwen on SQuAD \(H~attn=0\.96\\tilde\{H\}\_\{\\text\{attn\}\}=0\.96,H~EAP=0\.74\\tilde\{H\}\_\{\\text\{EAP\}\}=0\.74\)\(d\)Qwen on KDE4 \(H~attn=0\.95\\tilde\{H\}\_\{\\text\{attn\}\}=0\.95,H~EAP=0\.72\\tilde\{H\}\_\{\\text\{EAP\}\}=0\.72\)
Figure 2:Layer\-wise distribution of average[KL](https://arxiv.org/html/2609.21113#id3)divergence in the attention matrices before and after[FT](https://arxiv.org/html/2609.21113#id4), and average[EAP](https://arxiv.org/html/2609.21113#id5)scores across Fine\-tuned Qwen2 and llama\-3\.2\-1B\. For GPT\-2 Small and Llama2\-7B refer to[Figure 12](https://arxiv.org/html/2609.21113#A12.F12)in[Appendix L](https://arxiv.org/html/2609.21113#A12); results for Qwen2 and Llama\-3\.2\-1B on the remaining datasets \(Yelp, CoQA, Tatoeba\) are shown in[Figure 13](https://arxiv.org/html/2609.21113#A12.F13)in[Appendix L](https://arxiv.org/html/2609.21113#A12)\. Values in parentheses are the normalised layer\-wise entropy\(H~attn,H~EAP\)\(\\tilde\{H\}\_\{\\text\{attn\}\},\\,\\tilde\{H\}\_\{\\text\{EAP\}\}\); the consistently lowerH~EAP\\tilde\{H\}\_\{\\text\{EAP\}\}indicates that[EAP](https://arxiv.org/html/2609.21113#id5)importance is more localised across layers\. see[Appendix E](https://arxiv.org/html/2609.21113#A5)for the entropy definition\.
#### Preprocessing\.
As described in[§ 3\.2](https://arxiv.org/html/2609.21113#S3.SS2), the[EAP](https://arxiv.org/html/2609.21113#id5)algorithm used to estimate the[EAP](https://arxiv.org/html/2609.21113#id5)importance of different components requires corrupted inputs corresponding to each sample input\. To generate the corrupted sentences for the sentiment classification task, we masked the tokens most indicative of sentiment in each sentence using the ‘<mask\>’ token\. These sentiment\-bearing tokens were automatically identified using the Meta\-Llama\-3\-8B\-Instruct model\. Similarly, for the question answering task, the answer span within the context passage was replaced with the ‘<mask\>’ token\. For the machine translation task, where most source tokens contribute significantly to the output, we replaced all tokens in the English input with ‘<mask\>’ to simulate maximal information loss\. Examples of generated corrupted data is shown in[Appendix C](https://arxiv.org/html/2609.21113#A3)\. Although the corrupted token strategies differ across tasks, they follow the same principle of removing information directly relevant to the task output\. We do not assume that the resulting corruption severity is identical across tasks; instead, EAP is applied within each task to rank task\-relevant components, and our cross\-task analyses compare these identified component sets\. We also test sensitivity to the corruption token in Appendix[D\.3](https://arxiv.org/html/2609.21113#A4.SS3)\. Replacing ’<mask\>’ with several alternative tokens produces strongly correlated edge rankings \(ρ=0\.71–0\.72\\rho=0\.71\\text\{\-\-\}0\.72\), suggesting that the identified components are not specific to the ’<mask\>’ token\.
For[EAP](https://arxiv.org/html/2609.21113#id5)algorithm described in[§ 3\.2](https://arxiv.org/html/2609.21113#S3.SS2), we considered only the components within top400400edges for our research scope since we found that most of the important components across all of the[LLMs](https://arxiv.org/html/2609.21113#id1)and for all the tasks lie within this range\.[Figure 7](https://arxiv.org/html/2609.21113#A3.F7)in Appendix[D\.1](https://arxiv.org/html/2609.21113#A4.SS1)shows the contribution of these components across different tasks\. It can be observed from[Figure 7](https://arxiv.org/html/2609.21113#A3.F7)that using only components from top 400 edges each LLM could reach at least90%90\\%of their original performance in a task\.
#### [FT](https://arxiv.org/html/2609.21113#id4)Setup\.
We used GPT\-2\-small, Llama\-3\.2\-1B, Qwen2\-0\.5B and Llama\-2\-7B model in our experiment\. All four models were fine\-tuned in a full[FT](https://arxiv.org/html/2609.21113#id4)setup, i\.e\., all model parameters were updated\. In[Appendix F](https://arxiv.org/html/2609.21113#A6), we described in detail other parameters like batch size, epoch used in[FT](https://arxiv.org/html/2609.21113#id4)\.
## § 5Results
We present results along three dimensions, namely, \(i\) the distribution of changes induced by[FT](https://arxiv.org/html/2609.21113#id4), \(ii\) the distribution of causally relevant components after[FT](https://arxiv.org/html/2609.21113#id4), and \(iii\) the relationship between overlap of[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components and the cross\-task performance transfer capability of the fine\-tuned model\.
Figure 3:Probing results of pretrained model vs\. fine\-tuned model across all the layers of Llama\-3\.2\-1B, Qwen2\-0\.5B, Llama2\-7B for Sentiment Classification \(SST2\), Question Answering \(SQuAD\), and Machine Translation \(KDE4\)\. Probing performance for each task is measured by the corresponding task metric as described in Section[3\.1](https://arxiv.org/html/2609.21113#S3.SS1.SSS0.Px2)\. Higher values indicate that the correct task output is more readily recoverable from that layer’s representation via the logit lens\. The complete layer\-wise probing results for all four models across all six datasets are shown in[Figure 14](https://arxiv.org/html/2609.21113#A12.F14)in[Appendix L](https://arxiv.org/html/2609.21113#A12)\. \(X\-axis: layer index, Y\-axis: binary accuracy for SST2, SQuAD F1 Score for SQuAD, BERTScore for KDE4\)\.### § 5\.1Heterogeneity of Fine\-tuning Dynamics
To demonstrate the non\-uniformity of[FT](https://arxiv.org/html/2609.21113#id4)dynamics,[Figure 2](https://arxiv.org/html/2609.21113#S4.F2)illustrates the changes in attention patterns across layers \(computed using[Equation 1](https://arxiv.org/html/2609.21113#S3.E1)\), while[Figure 3](https://arxiv.org/html/2609.21113#S5.F3)shows the variation in the amount of information encoded in each layer after[FT](https://arxiv.org/html/2609.21113#id4)\.
Two key observations emerge from[Figure 2](https://arxiv.org/html/2609.21113#S4.F2)\. First, attention pattern change is specific to a particular task and model, and it is not uniform\. We quantify this non\-uniformity using the normalised layer\-wise entropyH~∈\[0,1\]\\tilde\{H\}\\in\[0,1\]of each distribution \(defined in[Appendix E](https://arxiv.org/html/2609.21113#A5)\)\. The different values of attention entropy across different variations \(i\.e\., different models and tasks\) also further confirm this observation\. Secondly, we observe that smaller models exhibit a substantially greater magnitude of representational change during[FT](https://arxiv.org/html/2609.21113#id4)compared to larger models\. For instance, the average KL\-divergence values in LLaMA3\.2\-1B span a higher range \(approximately 7–10\), whereas for LLaMA2\-7B they remain significantly lower \(approximately 0–1\)\. This observation is broadly consistent with prior work on representation preservation and parameter\-efficient adaptation[Aghajanyan et al\. \(2021\)](https://arxiv.org/html/2609.21113#bib.bib25), which suggests that larger pretrained models possess richer reusable features and therefore require comparatively smaller representational modifications during downstream[FT](https://arxiv.org/html/2609.21113#id4)\. For GPT\-2 Small model and the rest of the datasets, refer to[Figure 12](https://arxiv.org/html/2609.21113#A12.F12)in[Appendix L](https://arxiv.org/html/2609.21113#A12)\.
[Figure 3](https://arxiv.org/html/2609.21113#S5.F3)shows how task\-related information encoded in different layers change after[FT](https://arxiv.org/html/2609.21113#id4)\. The main observations from it are as follows\. Firstly, both for pretrained and finetuned setup for all the tasks and for all the models, the probing performance of the initial layers is worse than later layers\. Consequently, it can be said that the initial layer representations do not contain much information about the task\. This observation is similar to[Zhao et al\. \(2024\)](https://arxiv.org/html/2609.21113#bib.bib49)which has shown that in general, initial layers of LLMs store core language capabilities and the later layer has more derived properties\. Secondly, the probing performance in the[FT](https://arxiv.org/html/2609.21113#id4)setup only changes at later layers mostly\. This observation concludes that[FT](https://arxiv.org/html/2609.21113#id4)doesn’t affect the core capabilities of the model\. Thirdly, it can be observed clearly that for all the models and for all the tasks the probing performance has increased after[FT](https://arxiv.org/html/2609.21113#id4)\. It indicates that[FT](https://arxiv.org/html/2609.21113#id4)increases the amount of task\-level information encoded in each layer\. For GPT\-2 Small model and the rest of the datasets, refer to[Figure 14](https://arxiv.org/html/2609.21113#A12.F14)in[Appendix L](https://arxiv.org/html/2609.21113#A12)\. Since probing results are output\-mediated and capture layer\-wise decodability, we further investigate a direct measure of representational geometry change in each layer rather than passing through the output head of model in[Appendix K](https://arxiv.org/html/2609.21113#A11)\. It shows that across all models and tasks, the most substantial layer\-wise representational changes occur in the later layers \(in the order of 0\.7 to 0\.9\), specifically from approximately the 90th percentile layer to the final layer\.
Overall, from both[Figure 2](https://arxiv.org/html/2609.21113#S4.F2),[Figure 3](https://arxiv.org/html/2609.21113#S5.F3)and[Appendix K](https://arxiv.org/html/2609.21113#A11), it is evident that the internal change in the model is not uniform across all the layers and it is valid across all the models and tasks\.
\(a\)Qwen2,ρ=0\.7,p=0\.0002\\rho=0\.7,p=0\.0002
\(b\)Llama3\.2\-1B,ρ=0\.6,p=0\.005\\rho=0\.6,p=0\.005
\(c\)Llama2\-7Bρ=0\.6,p=0\.005\\rho=0\.6,p=0\.005
Figure 4:Correlation between Cross\-task Performance and Important Component Overlap for LLama\-3\.2\-1B, Qwen2\-0\.5B and LLama\-2\-7B\.ρ\\rhois correlation coefficient and p\-values show the significance of the correlation coefficient\. The result for GPT\-2 Small is provided in[Figure 10](https://arxiv.org/html/2609.21113#A8.F10),[Appendix L](https://arxiv.org/html/2609.21113#A12)\.
### § 5\.2Localisation of[EAP](https://arxiv.org/html/2609.21113#id5)\-Identified Components
[Figure 2](https://arxiv.org/html/2609.21113#S4.F2)presents the layer\-wise distribution of the total importance of causally relevant components, where importance scores are computed using[EAP](https://arxiv.org/html/2609.21113#id5)equation described in[Equation 3](https://arxiv.org/html/2609.21113#S3.E3)\.[Equation 3](https://arxiv.org/html/2609.21113#S3.E3)provides score to each component and then for each layer we show the sum of the scores corresponding to all the components \(e\.g\., attention head, logit nodes\) belonging to that layer\.
Two key observations emerge from the EAP score distribution in[Figure 2](https://arxiv.org/html/2609.21113#S4.F2)\. First, a substantial number of layers exhibit negligible or no contribution to the set of causally relevant components\. The entropy score of the EAP score distribution further supports this observation\. In contrast to the attention change, the[EAP](https://arxiv.org/html/2609.21113#id5)\-score distribution has a lower entropy \(H~EAP=0\.40\\tilde\{H\}\_\{\\text\{EAP\}\}=0\.40–0\.740\.74; see[Appendix E](https://arxiv.org/html/2609.21113#A5)\)\. This pattern is consistent across all models and tasks, suggesting that[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components are highly localised\.
Second, the layers that undergo the largest changes in attention patterns do not necessarily correspond to those with the highest[EAP](https://arxiv.org/html/2609.21113#id5)importance\. This indicates that the magnitude of internal change is only weakly correlated with causal relevance\.
### § 5\.3Cross\-task Performance Transfer
Here, we analyse whether[FT](https://arxiv.org/html/2609.21113#id4)a model on Task 1 leads to improvements or degradation in performance on Task 2, where the two tasks are substantially different in nature \(e\.g\., sentiment analysis and machine translation\)\. More specifically, our objective is to examine the relationship between overlap of[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components and cross\-task performance transfer\. In particular, we investigate whether the overlap in[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components between Task 1 and Task 2 influences performance on Task 2 when the model is fine\-tuned on Task 1\. To this end,[Figure 4](https://arxiv.org/html/2609.21113#S5.F4)shows the correlation between a decrease in performance and overlap of top400400[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components, and for each task, we consider four distinct tasks to compute both performance changes and overlap of[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components\. In total, this results in2424task pairs for comparison\. The list of tasks is in the Appendix,[Table 6](https://arxiv.org/html/2609.21113#A6.T6)"Dissimilar Task Analysis"\.
Two main observations emerge from[Figure 4](https://arxiv.org/html/2609.21113#S5.F4)\. Firstly, we observe that[FT](https://arxiv.org/html/2609.21113#id4)a model on Task 1 generally leads to a degradation in performance on Task 2, relative to the pretrained model’s performance on Task 2\. Secondly, we observe a positive correlation across all models \(Qwen2, LLaMA3\.2\-1B, and LLaMA2\-7B\) between the degree of overlap of[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components and the extent of performance degradation\. See result for GPT\-2 Small in[Figure 10](https://arxiv.org/html/2609.21113#A8.F10),[Appendix L](https://arxiv.org/html/2609.21113#A12)\. This suggests that higher overlap between the[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components of Task 1 and Task 2 is associated with greater performance decline on Task 2 when the model is fine\-tuned on Task 1 and vice versa\. A plausible explanation for this phenomenon is that[FT](https://arxiv.org/html/2609.21113#id4)adapts a specific set of components to the requirements of Task 1, which is unlikely to generalise well to Task 2 when the two tasks are different in nature\. To validate that the shared components are responsible for the degradation directly rather than correlational, we perform an intervention in[Appendix J](https://arxiv.org/html/2609.21113#A10): we identify the components that are shared between the two tasks, freeze them, and fine\-tune only the remaining parameters on Task 1\. Protecting the overlapping components during fine\-tuning recovers part of the lost performance on Task 2\. So protecting them is indeed what drives the interference\.
Figure 5:Distribution percentage of important components among the top\-400 edges in Llama\-3\.2\-1B across three tasks: Sentiment Classification \(SST\-2\), Question Answering \(SQuAD\)\. Machine Translation \(KDE4\)\. The full results for four models and six datasets in given in[Figure 8](https://arxiv.org/html/2609.21113#A7.F8)in[Appendix G](https://arxiv.org/html/2609.21113#A7)\.
## § 6Causal Structure Analysis
To further investigate the important[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components, we analyse the distribution of different architectural elements, specifically embedding nodes, attention heads, MLP neurones, logit nodes, and among the top\-k components selected for each task\.[Figure 5](https://arxiv.org/html/2609.21113#S5.F5)presents pie charts illustrating the composition across three tasks in Llama\-3\.2\-1B\. More analysis on the rest of the models and datasets are shown in[Figure 8](https://arxiv.org/html/2609.21113#A7.F8)in[Appendix G](https://arxiv.org/html/2609.21113#A7)\. The results show a consistent pattern across tasks and models: the top 400 components are predominantly composed of MLP neurones and attention heads, with relatively limited contribution from other component types\. To avoid the frequency bias from the component distribution of the original model, we also provided normalised frequency of different components in Appendix[G](https://arxiv.org/html/2609.21113#A7.SS0.SSS0.Px1)\. It can be seen that the presence of MLPs and logits are multiplied in the normalised frequency\.
Given the prominence of attention heads within the top[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components, we further investigated the specific involvement ofinduction heads\([Olsson et al\., 2022](https://arxiv.org/html/2609.21113#bib.bib33)\), components responsible for pattern matching within input context\. We investigated induction heads following the synthetic repeated\-sequence protocol of[Olsson et al\. \(2022\)](https://arxiv.org/html/2609.21113#bib.bib33)\(implemented via TransformerLens,[Nanda and Bloom, 2022](https://arxiv.org/html/2609.21113#bib.bib30)\)\.[Table 1](https://arxiv.org/html/2609.21113#S6.T1)shows the percentage of available induction heads reused as proportion of the task\-specific causally important attention heads\. The detection details and the full metric table are provided in[Appendix I](https://arxiv.org/html/2609.21113#A9)\.
We observe three key trends from[Table 1](https://arxiv.org/html/2609.21113#S6.T1)\. Firstly, the overlap percentages are the highest at the same dataset for all the models and across all the tasks\. Secondly, we observe a general task\-dependent pattern\. question answering tends to show higher overlap with induction heads for Llama\-3\.2\-1B and Llama\-2\-7B, whereas Qwen2\-0\.5B is an exception, with its highest overlap on KDE4 \(MT; 7\.19%\)\. For the Llama models, the relatively higher question answering overlap may be related to the extractive nature of the question answering setup, where answers are selected from the input context\. This is similar to the pattern\-matching behaviour associated with induction heads\([Olsson et al\., 2022](https://arxiv.org/html/2609.21113#bib.bib33)\)\. Similarly, MT generally shows lower overlap for the Llama models, but this trend does not hold for Qwen2\-0\.5B\. One possible explanation is model size: Qwen2\-0\.5B has fewer attention heads, so induction heads may account for a larger fraction of task\-relevant attention heads on some tasks\.
ModelTask\#Induction Heads\#Attention HeadsOverlap\(%\)Llama\-3\.2\-1BSent \(Yelp\)621513\.39%Sent \(SST2\)581461\.49%QA \(SQuAD\)621585\.76%QA \(CoQA\)621626\.16%MT \(KDE4\)641672\.21%MT \(Tatoeba\)571322\.71%Qwen2\-0\.5BSent \(Yelp\)401122\.70%Sent \(SST2\)35831\.85%QA \(SQuAD\)36973\.10%QA \(CoQA\)391103\.75%MT \(KDE4\)331167\.19%MT \(Tatoeba\)40751\.76%Llama\-2\-7BSent \(Yelp\)532631\.28%Sent \(SST2\)52940%QA \(SQuAD\)152703\.70%QA \(CoQA\)612274\.34%MT \(KDE4\)581660%MT \(Tatoeba\)49880%
Table 1:Overlap of Induction head vs\. Attention heads in top\-400[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components across Llama3\.2\-1B, Qwen2\-0\.5B, Llama2\-7B for Sentiment Analysis \(Sent\), Question Answering \(QA\) and Machine Translation \(MT\)\. For each model the highest overlap is boldfaced and the highest overlap percentage across all the models is underlined\.
## § 7Conclusion
We studied how[FT](https://arxiv.org/html/2609.21113#id4)reshapes LLM internals along two aspects: the relationship between representational change and the[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components driving task performance, and the effect of shared[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components on cross\-task transfer\. Across four models and six datasets, we find that the layers undergoing the largest representational and attention changes do not necessarily coincide with those carrying the highest[EAP](https://arxiv.org/html/2609.21113#id5)importance\. More generally, the magnitude of internal change is only weakly correlated with causal relevance\. On cross\-task transfer, we find that a high overlap in[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components between two tasks does not aid generalisation; instead, it is associated with greater performance degradation on the second task, which suggests that components adapted to one task do not transfer benignly to a substantially different one\. Together, these results indicate that effective fine\-tuning is governed by a small, localised set of[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components rather than by broad representational shifts\.
In the future, we plan to extend this work for more number of tasks\. Our findings related to different aspects of localisation and generalisation can also be used to design efficient and effective strategies of[FT](https://arxiv.org/html/2609.21113#id4)in[NLP](https://arxiv.org/html/2609.21113#id2)\.
## Limitations
We restrict our analysis to three[NLP](https://arxiv.org/html/2609.21113#id2)task families \(sentiment classification, question answering, and machine translation\)\. Although these tasks encompass diverse input–output structures, they do not represent the full spectrum of real\-world applications, such as reasoning\-intensive or multimodal tasks, which limits the transferability of our findings\. We also examined only GPT\-2 Small and Llama\-3\.2\-1B, LLama\-2\-7B and Qwen2\-0\.5B due to the shortage of computing resources, limiting generalisability to larger models that may exhibit different[FT](https://arxiv.org/html/2609.21113#id4)behaviours\. Further work is needed to investigate more models\.
## Ethical Considerations
This work involves non\-sensitive publicly accessible datasets\. This work on mechanistic interpretability presents a dual\-use dilemma: while understanding[FT](https://arxiv.org/html/2609.21113#id4)internals can improve model safety and efficiency, it could also enable adversarial exploitation\. To mitigate this risk, we advocate for responsible disclosure practices and recommend that future work on efficient[FT](https://arxiv.org/html/2609.21113#id4)methods include built\-in safety mechanisms\.
## Acknowledgments
This research was supported by the University of Liverpool and the Engineering and Physical Sciences Research Council \(EPSRC\)\. We thank the School of Computer Science and Informatics at the University of Liverpool for providing access to computational resources\. The authors also acknowledge the anonymous reviewers for their constructive suggestions\.
Danushka Bollegala holds concurrent appointments as a Professor at University of Liverpool and as an Amazon Scholar\. This paper describes work performed at the University of Liverpool and is not associated with Amazon\.
## References
- Aghajanyanet al\.\(2021\)A\. Aghajanyan, A\. Shrivastava, A\. Gupta, N\. Goyal, L\. Zettlemoyer, and S\. GuptaBetter fine\-tuning by reducing representational collapse\.InInternational Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=OQ08SN70M1V)Cited by:[§5\.1](https://arxiv.org/html/2609.21113#S5.SS1.p2.1)\.
- Alveset al\.\(2024\)D\. Alves, M\. Tadić, and G\. RehmWhich domains, tasks and languages are in the focus of NLP research on the languages of Europe?\.InProceedings of the Second International Workshop Towards Digital Language Equality \(TDLE\): Focusing on Sustainability @ LREC\-COLING 2024,F\. Gaspari, J\. Moorkens, I\. Aldabe, A\. Farwell, B\. Altuna, S\. Piperidis, G\. Rehm, and G\. Rigau \(Eds\.\),pp\. 18–32\.Cited by:[§4](https://arxiv.org/html/2609.21113#S4.SS0.SSS0.Px1.p1.1)\.
- Artetxe and Schwenk \(2019\)M\. Artetxe and H\. SchwenkMassively multilingual sentence embeddings for zero\-shot cross\-lingual transfer and beyond\.Transactions of the Association for Computational Linguistics7,pp\. 597–610\.External Links:[Link](https://aclanthology.org/Q19-1038/),[Document](https://dx.doi.org/10.1162/tacl%5Fa%5F00288)Cited by:[Appendix B](https://arxiv.org/html/2609.21113#A2.SS0.SSS0.Px3.p1.1),[§4](https://arxiv.org/html/2609.21113#S4.SS0.SSS0.Px1.p1.1)\.
- Belinkov \(2022\)Y\. BelinkovProbing classifiers: promises, shortcomings, and advances\.Computational Linguistics48\(1\),pp\. 207–219\.External Links:[Link](https://aclanthology.org/2022.cl-1.7/),[Document](https://dx.doi.org/10.1162/coli%5Fa%5F00422)Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px2.p1.1)\.
- Chalkidiset al\.\(2020\)I\. Chalkidis, M\. Fergadiotis, P\. Malakasiotis, N\. Aletras, and I\. AndroutsopoulosLEGAL\-BERT: the muppets straight out of law school\.InFindings of the Association for Computational Linguistics: EMNLP 2020,T\. Cohn, Y\. He, and Y\. Liu \(Eds\.\),Online,pp\. 2898–2904\.External Links:[Link](https://aclanthology.org/2020.findings-emnlp.261/),[Document](https://dx.doi.org/10.18653/v1/2020.findings-emnlp.261)Cited by:[§1](https://arxiv.org/html/2609.21113#S1.p1.1)\.
- Clarket al\.\(2019\)K\. Clark, U\. Khandelwal, O\. Levy, and C\. D\. ManningWhat does BERT look at? an analysis of BERT’s attention\.InProceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP,pp\. 276–286\.Cited by:[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.p1.1)\.
- Colomboet al\.\(2024\)P\. Colombo, T\. P\. Pires, M\. Boudiaf, D\. Culver, R\. Melo, C\. Corro, A\. F\. T\. Martins, F\. Esposito, V\. L\. Raposo, S\. Morgado, and M\. DesaSaulLM\-7b: a pioneering large language model for law\.External Links:2403\.03883,[Link](https://arxiv.org/abs/2403.03883)Cited by:[§1](https://arxiv.org/html/2609.21113#S1.p1.1)\.
- Conmyet al\.\(2023\)A\. Conmy, A\. Mavor\-Parker, A\. Lynch, S\. Heimersheim, and A\. Garriga\-AlonsoTowards automated circuit discovery for mechanistic interpretability\.Advances in Neural Information Processing Systems36,pp\. 16318–16352\.Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px2.p1.1)\.
- Ethayarajh \(2019\)K\. EthayarajhHow contextual are contextualized word representations? Comparing the geometry of BERT, ELMo, and GPT\-2 embeddings\.InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing \(EMNLP\-IJCNLP\),K\. Inui, J\. Jiang, V\. Ng, and X\. Wan \(Eds\.\),Hong Kong, China\.External Links:[Link](https://aclanthology.org/D19-1006/),[Document](https://dx.doi.org/10.18653/v1/D19-1006)Cited by:[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.p1.1)\.
- Gevaet al\.\(2023\)M\. Geva, J\. Bastings, K\. Filippova, and A\. GlobersonDissecting recall of factual associations in auto\-regressive language models\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing,H\. Bouamor, J\. Pino, and K\. Bali \(Eds\.\),Singapore,pp\. 12216–12235\.External Links:[Link](https://aclanthology.org/2023.emnlp-main.751/),[Document](https://dx.doi.org/10.18653/v1/2023.emnlp-main.751)Cited by:[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.SSS0.Px2.p1.1)\.
- Gevaet al\.\(2021\)M\. Geva, R\. Schuster, J\. Berant, and O\. LevyTransformer feed\-forward layers are key\-value memories\.InProceedings of the 2021 Conference on Empirical Methods in Natural Language Processing,M\. Moens, X\. Huang, L\. Specia, and S\. W\. Yih \(Eds\.\),Online and Punta Cana, Dominican Republic,pp\. 5484–5495\.External Links:[Link](https://aclanthology.org/2021.emnlp-main.446/),[Document](https://dx.doi.org/10.18653/v1/2021.emnlp-main.446)Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px2.p1.1)\.
- Hannaet al\.\(2024\)M\. Hanna, S\. Pezzelle, and Y\. BelinkovHave faith in faithfulness: going beyond circuit overlap when finding model mechanisms\.InFirst Conference on Language Modeling,External Links:[Link](https://openreview.net/forum?id=TZ0CCGDcuT)Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px2.p1.1)\.
- Hewitt and Manning \(2019\)J\. Hewitt and C\. D\. ManningA structural probe for finding syntax in word representations\.InProceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 \(Long and Short Papers\),J\. Burstein, C\. Doran, and T\. Solorio \(Eds\.\),pp\. 4129–4138\.Cited by:[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.p1.1)\.
- Jainet al\.\(2024\)S\. Jain, R\. Kirk, E\. S\. Lubana, R\. Dick, H\. Tanaka, T\. Rocktaeschel, E\. Grefenstette, and D\. KruegerMechanistically analyzing the effects of fine\-tuning on procedurally defined tasks\.InInternational Conference on Learning Representations,B\. Kim, Y\. Yue, S\. Chaudhuri, K\. Fragkiadaki, M\. Khan, and Y\. Sun \(Eds\.\),Vol\.2024,pp\. 9944–10015\.External Links:[Link](https://proceedings.iclr.cc/paper_files/paper/2024/file/29b5de0a8925cb4920d9c64542108335-Paper-Conference.pdf)Cited by:[§1](https://arxiv.org/html/2609.21113#S1.p2.1),[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px1.p1.1)\.
- Jianget al\.\(2024\)C\. Jiang, B\. Qi, X\. Hong, D\. Fu, Y\. Cheng, F\. Meng, M\. Yu, B\. Zhou, and J\. ZhouOn large language models’ hallucination with regard to known facts\.InProceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies \(Volume 1: Long Papers\),K\. Duh, H\. Gomez, and S\. Bethard \(Eds\.\),Mexico City, Mexico,pp\. 1041–1053\.External Links:[Link](https://aclanthology.org/2024.naacl-long.60/),[Document](https://dx.doi.org/10.18653/v1/2024.naacl-long.60)Cited by:[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.SSS0.Px2.p1.1)\.
- Kovalevaet al\.\(2019\)O\. Kovaleva, A\. Romanov, A\. Rogers, and A\. RumshiskyRevealing the dark secrets of BERT\.InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing \(EMNLP\-IJCNLP\),K\. Inui, J\. Jiang, V\. Ng, and X\. Wan \(Eds\.\),pp\. 4365–4374\.Cited by:[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.p1.1)\.
- Leeet al\.\(2019\)J\. Lee, W\. Yoon, S\. Kim, D\. Kim, S\. Kim, C\. H\. So, and J\. KangBioBERT: a pre\-trained biomedical language representation model for biomedical text mining\.Bioinformatics36\(4\),pp\. 1234–1240\.External Links:ISSN 1367\-4811,[Link](http://dx.doi.org/10.1093/bioinformatics/btz682),[Document](https://dx.doi.org/10.1093/bioinformatics/btz682)Cited by:[§1](https://arxiv.org/html/2609.21113#S1.p1.1)\.
- Leng and Xiong \(2025\)Y\. Leng and D\. XiongTowards understanding multi\-task learning \(generalization\) of llms via detecting and exploring task\-specific neurons\.InProceedings of the 31st International Conference on Computational Linguistics,pp\. 2969–2987\.Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px2.p1.1)\.
- Liuet al\.\(2024\)Y\. Liu, S\. Ding, S\. Zhou, W\. Fan, and Q\. TanMolecularGPT: open large language model \(llm\) for few\-shot molecular property prediction\.External Links:2406\.12950,[Link](https://arxiv.org/abs/2406.12950)Cited by:[§1](https://arxiv.org/html/2609.21113#S1.p1.1)\.
- Luoet al\.\(2022\)R\. Luo, L\. Sun, Y\. Xia, T\. Qin, S\. Zhang, H\. Poon, and T\. LiuBioGPT: generative pre\-trained transformer for biomedical text generation and mining\.Briefings in Bioinformatics23\(6\)\.External Links:ISSN 1477\-4054,[Link](http://dx.doi.org/10.1093/bib/bbac409),[Document](https://dx.doi.org/10.1093/bib/bbac409)Cited by:[§1](https://arxiv.org/html/2609.21113#S1.p1.1)\.
- Michelet al\.\(2019\)P\. Michel, O\. Levy, and G\. NeubigAre sixteen heads really better than one?\.InAdvances in Neural Information Processing Systems,Vol\.32,pp\.\.Cited by:[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.p1.1)\.
- Mukherjeeet al\.\(2025\)S\. Mukherjee, L\. Yuan, D\. Hakkani\-Tur, and H\. PengReinforcement learning finetunes small subnetworks in large language models\.InAdvances in Neural Information Processing Systems,D\. Belgrave, C\. Zhang, H\. Lin, R\. Pascanu, P\. Koniusz, M\. Ghassemi, and N\. Chen \(Eds\.\),Vol\.38, Main Conference,pp\. 132119–132138\.External Links:[Document](https://dx.doi.org/10.52202/085713-4399),[Link](https://proceedings.neurips.cc/paper_files/paper/2025/file/bf235a1d6780afd979f2f81676f43413-Paper-Conference.pdf)Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px1.p1.1)\.
- Nanda and Bloom \(2022\)N\. Nanda and J\. BloomTransformerLens\.Note:[https://github\.com/TransformerLensOrg/TransformerLens](https://github.com/TransformerLensOrg/TransformerLens)Cited by:[Appendix I](https://arxiv.org/html/2609.21113#A9.p1.1),[§6](https://arxiv.org/html/2609.21113#S6.p2.1)\.
- nostalgebraist \(2020\)nostalgebraistInterpreting gpt: the logit lens\.Note:[https://www\.lesswrong\.com/posts/AcKRB8wDpdaN6v6ru/interpreting\-gpt\-the\-logit\-lens](https://www.lesswrong.com/posts/AcKRB8wDpdaN6v6ru/interpreting-gpt-the-logit-lens)LessWrong blog postCited by:[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.SSS0.Px2.p1.1)\.
- Olssonet al\.\(2022\)C\. Olsson, N\. Elhage, N\. Nanda, N\. Joseph, N\. DasSarma, T\. Henighan, B\. Mann, A\. Askell, Y\. Bai, A\. Chen, T\. Conerly, D\. Drain, D\. Ganguli, Z\. Hatfield\-Dodds, D\. Hernandez, S\. Johnston, A\. Jones, J\. Kernion, L\. Lovitt, K\. Ndousse, D\. Amodei, T\. Brown, J\. Clark, J\. Kaplan, S\. McCandlish, and C\. OlahIn\-context learning and induction heads\.arXiv \(Cornell University\)\.Cited by:[Appendix I](https://arxiv.org/html/2609.21113#A9.p1.1),[§6](https://arxiv.org/html/2609.21113#S6.p2.1),[§6](https://arxiv.org/html/2609.21113#S6.p3.1)\.
- Panet al\.\(2024\)H\. Pan, Y\. Cao, X\. Wang, X\. Yang, and M\. WangFinding and editing multi\-modal neurons in pre\-trained transformers\.InFindings of the Association for Computational Linguistics: ACL 2024,L\. Ku, A\. Martins, and V\. Srikumar \(Eds\.\),Bangkok, Thailand,pp\. 1012–1037\.External Links:[Link](https://aclanthology.org/2024.findings-acl.60/),[Document](https://dx.doi.org/10.18653/v1/2024.findings-acl.60)Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px2.p1.1)\.
- Panigrahiet al\.\(2023\)A\. Panigrahi, N\. Saunshi, H\. Zhao, and S\. AroraTask\-specific skill localization in fine\-tuned language models\.InProceedings of the 40th International Conference on Machine Learning,A\. Krause, E\. Brunskill, K\. Cho, B\. Engelhardt, S\. Sabato, and J\. Scarlett \(Eds\.\),Proceedings of Machine Learning Research, Vol\.202,pp\. 27011–27033\.External Links:[Link](https://proceedings.mlr.press/v202/panigrahi23a.html)Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px2.p1.1)\.
- Prakashet al\.\(2024\)N\. Prakash, T\. Shaham, T\. Haklay, Y\. Belinkov, and D\. BauFine\-tuning enhances existing mechanisms: a case study on entity tracking\.InInternational Conference on Learning Representations,B\. Kim, Y\. Yue, S\. Chaudhuri, K\. Fragkiadaki, M\. Khan, and Y\. Sun \(Eds\.\),Vol\.2024,pp\. 8057–8082\.External Links:[Link](https://proceedings.iclr.cc/paper_files/paper/2024/file/2082273791021571c410f41d565d0b45-Paper-Conference.pdf)Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px1.p1.1)\.
- Rajpurkaret al\.\(2016\)P\. Rajpurkar, J\. Zhang, K\. Lopyrev, and P\. LiangSQuAD: 100,000\+ questions for machine comprehension of text\.InProceedings of the 2016 Conference on Empirical Methods in Natural Language Processing,J\. Su, K\. Duh, and X\. Carreras \(Eds\.\),Austin, Texas,pp\. 2383–2392\.External Links:[Link](https://aclanthology.org/D16-1264),[Document](https://dx.doi.org/10.18653/v1/D16-1264),1606\.05250Cited by:[Appendix B](https://arxiv.org/html/2609.21113#A2.SS0.SSS0.Px2.p1.1),[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.SSS0.Px2.p3.1),[§4](https://arxiv.org/html/2609.21113#S4.SS0.SSS0.Px1.p1.1)\.
- Reddyet al\.\(2019\)S\. Reddy, D\. Chen, and C\. D\. ManningCoQA: a conversational question answering challenge\.Transactions of the Association for Computational Linguistics7,pp\. 249–266\.External Links:[Link](https://aclanthology.org/Q19-1016),[Document](https://dx.doi.org/10.1162/tacl%5Fa%5F00266)Cited by:[Appendix B](https://arxiv.org/html/2609.21113#A2.SS0.SSS0.Px2.p1.1),[§4](https://arxiv.org/html/2609.21113#S4.SS0.SSS0.Px1.p1.1)\.
- Ren and Sutherland \(2025\)Y\. Ren and D\. J\. SutherlandLearning dynamics of LLM finetuning\.InThe Thirteenth International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=tPNHOoZFl9)Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px1.p1.1)\.
- Rudmanet al\.\(2023\)W\. Rudman, C\. Chen, and C\. EickhoffOutlier dimensions encode task specific knowledge\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing,H\. Bouamor, J\. Pino, and K\. Bali \(Eds\.\),Singapore,pp\. 14596–14605\.External Links:[Link](https://aclanthology.org/2023.emnlp-main.901/),[Document](https://dx.doi.org/10.18653/v1/2023.emnlp-main.901)Cited by:[§1](https://arxiv.org/html/2609.21113#S1.p2.1)\.
- Shuet al\.\(2024\)D\. Shu, H\. Zhao, X\. Liu, D\. Demeter, M\. Du, and Y\. ZhangLawLLM: law large language model for the us legal system\.InProceedings of the 33rd ACM International Conference on Information and Knowledge Management,CIKM ’24,pp\. 4882–4889\.External Links:[Link](http://dx.doi.org/10.1145/3627673.3680020),[Document](https://dx.doi.org/10.1145/3627673.3680020)Cited by:[§1](https://arxiv.org/html/2609.21113#S1.p1.1)\.
- Socheret al\.\(2013\)R\. Socher, A\. Perelygin, J\. Wu, J\. Chuang, C\. D\. Manning, A\. Ng, and C\. PottsRecursive deep models for semantic compositionality over a sentiment treebank\.InProceedings of the 2013 Conference on Empirical Methods in Natural Language Processing,Seattle, Washington, USA,pp\. 1631–1642\.External Links:[Link](https://www.aclweb.org/anthology/D13-1170)Cited by:[Appendix B](https://arxiv.org/html/2609.21113#A2.SS0.SSS0.Px1.p1.1),[§4](https://arxiv.org/html/2609.21113#S4.SS0.SSS0.Px1.p1.1)\.
- Subramonianet al\.\(2023\)A\. Subramonian, X\. Yuan, H\. Daumé III, and S\. L\. BlodgettIt takes two to tango: navigating conceptualizations of NLP tasks and measurements of performance\.InFindings of the Association for Computational Linguistics: ACL 2023,A\. Rogers, J\. Boyd\-Graber, and N\. Okazaki \(Eds\.\),pp\. 3234–3279\.Cited by:[§4](https://arxiv.org/html/2609.21113#S4.SS0.SSS0.Px1.p1.1)\.
- Syedet al\.\(2024\)A\. Syed, C\. Rager, and A\. ConmyAttribution patching outperforms automated circuit discovery\.InProceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP,Y\. Belinkov, N\. Kim, J\. Jumelet, H\. Mohebbi, A\. Mueller, and H\. Chen \(Eds\.\),pp\. 407–416\.Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px2.p1.1),[§3\.2](https://arxiv.org/html/2609.21113#S3.SS2.p1.1),[§3\.2](https://arxiv.org/html/2609.21113#S3.SS2.p3.2)\.
- Tewari \(2024\)A\. TewariLegalPro\-bert: classification of legal provisions by fine\-tuning bert large language model\.External Links:2404\.10097,[Link](https://arxiv.org/abs/2404.10097)Cited by:[§1](https://arxiv.org/html/2609.21113#S1.p1.1)\.
- Tiedemann \(2012\)J\. TiedemannParallel data, tools and interfaces in OPUS\.InProceedings of the Eighth International Conference on Language Resources and Evaluation \(LREC’12\),N\. Calzolari, K\. Choukri, T\. Declerck, M\. U\. Doğan, B\. Maegaard, J\. Mariani, A\. Moreno, J\. Odijk, and S\. Piperidis \(Eds\.\),Istanbul, Turkey,pp\. 2214–2218\.External Links:[Link](https://aclanthology.org/L12-1246/)Cited by:[Appendix B](https://arxiv.org/html/2609.21113#A2.SS0.SSS0.Px3.p1.1),[§4](https://arxiv.org/html/2609.21113#S4.SS0.SSS0.Px1.p1.1)\.
- Vaswaniet al\.\(2017\)A\. Vaswani, N\. Shazeer, N\. Parmar, J\. Uszkoreit, L\. Jones, A\. N\. Gomez, Ł\. Kaiser, and I\. PolosukhinAttention is all you need\.InProceedings of the 31st International Conference on Neural Information Processing Systems,pp\. 6000–6010\.Cited by:[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.p1.1)\.
- Voitaet al\.\(2019\)E\. Voita, D\. Talbot, F\. Moiseev, R\. Sennrich, and I\. TitovAnalyzing multi\-head self\-attention: specialized heads do the heavy lifting, the rest can be pruned\.InProceedings of the 57th Annual Meeting of the Association for Computational Linguistics,A\. Korhonen, D\. Traum, and L\. Màrquez \(Eds\.\),Florence, Italy,pp\. 5797–5808\.Cited by:[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.p1.1)\.
- Wanget al\.\(2018\)A\. Wang, A\. Singh, J\. Michael, F\. Hill, O\. Levy, and S\. BowmanGLUE: a multi\-task benchmark and analysis platform for natural language understanding\.InProceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP,T\. Linzen, G\. Chrupała, and A\. Alishahi \(Eds\.\),Brussels, Belgium,pp\. 353–355\.External Links:[Link](https://aclanthology.org/W18-5446/),[Document](https://dx.doi.org/10.18653/v1/W18-5446)Cited by:[Appendix B](https://arxiv.org/html/2609.21113#A2.SS0.SSS0.Px1.p1.1)\.
- Wanget al\.\(2022\)X\. Wang, K\. Wen, Z\. Zhang, L\. Hou, Z\. Liu, and J\. LiFinding skill neurons in pre\-trained transformer\-based language models\.InProceedings of the 2022 Conference on Empirical Methods in Natural Language Processing,Y\. Goldberg, Z\. Kozareva, and Y\. Zhang \(Eds\.\),Abu Dhabi, United Arab Emirates,pp\. 11132–11152\.External Links:[Link](https://aclanthology.org/2022.emnlp-main.765/),[Document](https://dx.doi.org/10.18653/v1/2022.emnlp-main.765)Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px2.p1.1)\.
- Wanget al\.\(2025\)X\. Wang, Y\. Hu, W\. Du, R\. Cheng, B\. Wang, and D\. ZouTowards understanding fine\-tuning mechanisms of LLMs via circuit analysis\.InForty\-second International Conference on Machine Learning,External Links:[Link](https://openreview.net/forum?id=45EIiFd6Oa)Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px1.p1.1)\.
- Wuet al\.\(2024\)C\. Wu, W\. Lin, X\. Zhang, Y\. Zhang, W\. Xie, and Y\. WangPMC\-llama: toward building open\-source language models for medicine\.Journal of the American Medical Informatics Association31\(9\),pp\. 1833–1843\.External Links:ISSN 1527\-974X,[Document](https://dx.doi.org/10.1093/jamia/ocae045),[Link](https://doi.org/10.1093/jamia/ocae045),https://academic\.oup\.com/jamia/article\-pdf/31/9/1833/58868261/ocae045\.pdfCited by:[§1](https://arxiv.org/html/2609.21113#S1.p1.1)\.
- Wuet al\.\(2023\)Z\. Wu, A\. Geiger, T\. Icard, C\. Potts, and N\. GoodmanInterpretability at scale: identifying causal mechanisms in alpaca\.InThirty\-seventh Conference on Neural Information Processing Systems,External Links:[Link](https://openreview.net/forum?id=nRfClnMhVX)Cited by:[§3\.2](https://arxiv.org/html/2609.21113#S3.SS2.p1.1)\.
- Xuet al\.\(2025a\)H\. Xu, R\. Zhan, Y\. Ma, D\. F\. Wong, and L\. S\. ChaoLet’s focus on neuron: neuron\-level supervised fine\-tuning for large language model\.InProceedings of the 31st International Conference on Computational Linguistics,pp\. 9393–9406\.Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px2.p1.1)\.
- Xuet al\.\(2025b\)Y\. Xu, Y\. Wang, and H\. WangTracking the feature dynamics in llm training: a mechanistic study\.External Links:2412\.17626,[Link](https://arxiv.org/abs/2412.17626)Cited by:[§2](https://arxiv.org/html/2609.21113#S2.SS0.SSS0.Px1.p1.1)\.
- Yu and Ananiadou \(2025\)Z\. Yu and S\. AnaniadouLocate\-then\-merge: neuron\-level parameter fusion for mitigating catastrophic forgetting in multimodal LLMs\.InFindings of the Association for Computational Linguistics: EMNLP 2025,C\. Christodoulopoulos, T\. Chakraborty, C\. Rose, and V\. Peng \(Eds\.\),Suzhou, China,pp\. 7065–7078\.External Links:[Link](https://aclanthology.org/2025.findings-emnlp.372/),[Document](https://dx.doi.org/10.18653/v1/2025.findings-emnlp.372)Cited by:[1st item](https://arxiv.org/html/2609.21113#S1.I1.i1.p1.1)\.
- Zhanget al\.\(2020\)T\. Zhang, V\. Kishore, F\. Wu, K\. Q\. Weinberger, and Y\. ArtziBERTScore: evaluating text generation with BERT\.In8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26\-30, 2020,External Links:[Link](https://openreview.net/forum?id=SkeHuCVFDr)Cited by:[§3\.1](https://arxiv.org/html/2609.21113#S3.SS1.SSS0.Px2.p3.1)\.
- Zhanget al\.\(2015\)X\. Zhang, J\. Zhao, and Y\. LeCunCharacter\-level convolutional networks for text classification\.Advances in neural information processing systems28\.Cited by:[Appendix B](https://arxiv.org/html/2609.21113#A2.SS0.SSS0.Px1.p1.1),[§4](https://arxiv.org/html/2609.21113#S4.SS0.SSS0.Px1.p1.1)\.
- Zhaoet al\.\(2024\)Z\. Zhao, Y\. Ziser, and S\. B\. CohenLayer by layer: uncovering where multi\-task learning happens in instruction\-tuned large language models\.InProceedings of the 2024 Conference on Empirical Methods in Natural Language Processing,pp\. 15195–15214\.Cited by:[§5\.1](https://arxiv.org/html/2609.21113#S5.SS1.p3.1)\.
## Appendix ADescription of Notations
In[Figure 1](https://arxiv.org/html/2609.21113#S1.F1), each panel shows the top\-12 highest\-\|se\|\|s\_\{e\}\|edges of the EAP causal\-attribution graph for one task\. The visual encoding is the same across all panels\.
#### Nodes
are the transformer components touched by those edges, colour\-coded by category:input\(embedding\),mℓ\\ell\(MLP of layerℓ\\ell\),aℓ\\ell\.hii\(attention headiiof layerℓ\\ell; Q/K/V ports collapsed\), andlogits\(unembedding\)\.
#### Edges
are coloured by the sign of their attribution scoreses\_\{e\}:redforse\>0s\_\{e\}\>0\(the edge helps the task loss\) andblueforse<0s\_\{e\}<0\(the edge hurts it\)\. Line width is proportional to\|se\|\|s\_\{e\}\|, so thicker edges are more causally important to the task; the thickness scale is shared across all panels, so importance is also comparable across tasks\.
Task InformationOriginal Input SequenceCorrupted Input SequenceTask 1: Sentiment Classification \(SST\-2/Yelp\)Info Column:Sentiment Label;Input Column:Review TextLabel: Negativea sometimestediousfilm\.a sometimesXfilm\.Label: Positiveamong the year’s mostintriguingexplorations of alienation\.among the year’s mostXexplorations of alienation\.Task 2: Machine Translation \(Tatoeba/KDE4\)Info Column:Target Translation \(French\);Input Column:Source EnglishTarget:Il est resté silencieux\.He remained dumb\.x x xxTask 3: Question Answering \(CoQA/SQuAD\)Info Column:Question;Input Column:Context Snippet \(Answer Span Bolded\)Q:What color was Cotton?… lived a littlewhitekitten named Cotton\. Cotton lived high up…… lived a little<mask\>kitten named Cotton\. Cotton lived high up…Table 2:Examples of corrupted samples across three downstream tasks\.
## Appendix BDataset Description
#### Sentiment Classification Dataset\.
In the sentiment classification task, we implemented two datasets: Large Yelp Review \(Yelp\) Dataset[Zhang et al\. \(2015\)](https://arxiv.org/html/2609.21113#bib.bib20)and Stanford Sentiment Treebank \(SST\-2\)[Socher et al\. \(2013\)](https://arxiv.org/html/2609.21113#bib.bib34)\. The Yelp dataset is used for binary sentiment classification; it contains560,000560,000training data and38,00038,000testing of highly polar Yelp reviews\. The dataset is extracted from the Yelp Dataset Challenge by 2015 data\. SST\-2 corpus, which we use the version integrated into the GLUE benchmark[Wang et al\. \(2018\)](https://arxiv.org/html/2609.21113#bib.bib37), consists of movie reviews originally extracted from the Rotten Tomatoes website\. It provide a binary classification benchmark consisting of67,34967,349training,872872validation and1,8211,821test samples\. In both datasets, each sentence is labelled as either positive or negative\.
#### Question Answering Dataset\.
In the question answering task, we used two benchmark reading\-comprehension\-style question answering datasets: the Stanford Question Answering Dataset \(SQuAD\) v1\.1[Rajpurkar et al\. \(2016\)](https://arxiv.org/html/2609.21113#bib.bib21)and CoQA[Reddy et al\. \(2019\)](https://arxiv.org/html/2609.21113#bib.bib22)\. Both datasets provide a context passage as part of the input, and the answer is expected to be grounded in the given context rather than generated solely from the model’s parametric knowledge\. In the train/validation splits used in our experiments, SQuAD v1\.1 contains 87,599 training and10,57010,570validation question\-answer pairs, totaling98,16998,169QAs\. The dataset is based on Wikipedia articles, where each question is answered using a text span from the corresponding context passage\. CoQA contains108,647108,647training and7,9837,983validation QAs, totaling116,630116,630QAs\. It is designed for conversational question answering across multiple domains and emphasises multi\-turn interactions with context\-dependent responses\.
#### Machine Translation Dataset\.
We employed two parallel corpora for training and evaluating a machine translation model: the KDE4 dataset[Tiedemann \(2012\)](https://arxiv.org/html/2609.21113#bib.bib23)for training and Tatoeba dataset[Artetxe and Schwenk \(2019\)](https://arxiv.org/html/2609.21113#bib.bib24)for testing\. The KDE4 dataset consists of a bilingual corpus derived from the localisation files of the KDE Software Environment, with English and French pairs of sentences\. It has almost200,000200,000sentence pairs\. The English sentences in the KDE4 dataset have an average length of approximately12\.412\.4words, while the French translations average14\.714\.7words, reflecting the slightly more verbose nature of French in technical contexts\. The Tatoeba dataset is a community\-driven, open\-source collection of sentence translations across multiple languages, including English and French\. It is widely used to evaluate machine translation models because of its diversity and naturalistic content\. This dataset contains approximately300,000300,000English\-French sentence pairs\. We used randomly sampled10001000examples for testing, ensuring that each sample contains valid, non\-empty translations\.
From all the above\-mentioned datasets, we randomly chose30,00030,000samples for training and10001000samples for testing\.
## Appendix CCorrupted Dataset Generation Details
To analyse the localisation of task\-specific knowledge, we constructed corrupted versions of the datasets by masking tokens that are critical for task performance\. This section details the corruption strategy and provides qualitative examples for each task\.
#### Sentiment Word Identification Details
Instead of using a fixed lexicon, we leveragedMeta\-Llama\-3\-8B\-Instruct222[https://huggingface\.co/meta\-llama/Meta\-Llama\-3\-8B\-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct)to dynamically identify sentiment\-bearing tokens relevant to the specific context\. The process involved three steps:
Sample Selection:We first filtered for short sentences \(5–10 tokens\) from the validation set where our fine\-tuned model originally made correct predictions\. This ensures that the identified words are indeed responsible for the model’s correct classification behaviour\.
LLM Querying:We constructed a few\-shot prompt containing three examples \(positive, negative, and neutral\) to guide Llama\-3 in extracting the most indicative sentiment words\. The exact prompt template used is shown in[Figure 6](https://arxiv.org/html/2609.21113#A3.F6)\.
Response Parsing:The generated output was parsed to extract a comma\-separated list of words\. We strictly validated that the extracted words appeared in the original text and filtered out function words or tokens with fewer than 3 characters\. Up to three unique words were selected per sample\.
Prompt Used for Sentiment Word IdentificationSystem Instruction:
You are a helpful assistant that extracts sentiment words from reviews\.User Input:
Given that this review has a\{sentiment\}sentiment, identify up to three words that most strongly indicate this\{sentiment\}sentiment\. Only select words that appear in the review text\. Return the words in a comma\-separated list\. If no words strongly indicate the sentiment, return an empty list\.Examples:•Review:The food was amazing and the service was excellent\!
Sentiment:positive→\\rightarrowOutput:amazing, excellent•Review:Terrible experience, never coming back\.
Sentiment:negative→\\rightarrowOutput:terrible•Review:It was okay, nothing special\.
Sentiment:negative→\\rightarrowOutput:\(empty\)Current Task:
Review:\{input\_text\}
Sentiment:\{label\}
Output:Figure 6:The few\-shot prompt template used to extract sentiment\-sensitive words via Llama\-3\-8B\-Instruct\. We dynamically insert the specific sentiment label \(positive/negative\) and the review text into the placeholders \(marked in blue\) for each query\.[Table 2](https://arxiv.org/html/2609.21113#A1.T2)presents a comprehensive side\-by\-side comparison of original versus corrupted inputs across the three downstream tasks\.
\(a\)GPT2 Small on Yelp
\(b\)Qwen2\.05B on Yelp
\(c\)Llama3\.2\-1B on Yelp
\(d\)Llama2\-7B on Yelp
\(e\)GPT2 Small on SquAD
\(f\)Qwen2\-0\.5B on SquAD
\(g\)Llama3\.2\-1B on SquAD
\(h\)Llama2\-7B on SquAD
\(i\)GPT2 Small on KDE4
\(j\)Qwen2\-0\.5B on KDE4
\(k\)Llama3\.2\-1B on KDE4
\(l\)Llama2\-7B on KDE4
Figure 7:GPT\-2 Small, Llama\-3\.2\-1B, Qwen2\-0\.5B and Llama2\-7B performance with using only top\-K edges obtained from EAP\. The first row shows the performance on Yelp data, the second row shows the performance on SquAD data, the third row shows the performance on KDE4 data\. Orange line shows the performance of the finetuned model, blue line shows the performance with variation of top\-k edges and green line shows the performance using randomly selected k edges\.
## Appendix DValidation of EAP\-identified components
This section provides three additional analyses to demonstrate the faithfulness and robustness of the EAP\-identified components: a\) performance comparison of retaining top\-k EAP\-identified components, retaining the same number of randomly selected components and retaining all the components at different k values, which is to prove the rationale for setting the top 400 edges in our research; b\) performance comparison that patching the activations of the top\-400 EAP\-identified components against that caused by patching on these same number of randomly selected components, which is to strengthen the core causal claim; c\) compare the Spearman rank correlation of resulting edge\-important scores between corruption token "mask" and other tokens, which is to evaluate the robustness of corruption token selection\.
### § D\.1Sufficiency and the Choice ofkk
[Figure 7](https://arxiv.org/html/2609.21113#A3.F7)shows the effect of using only top\-k edges \(k = 100, 200, 300, 400, 500, 600, 700\) on the performance of GPT\-2 small and Llama\-3\.2\-1B, Qwen2\-0\.5B and Llama\-2\-7B in Yelp dataset based sentiment classification task\. More specifically, we retain only the top\-k components identified for each task and set the activations of all remaining components to zero\. It can be observed that using only400400edges the90%90\\%of the model’s original performance can be attained\. This shows the faithfulness of the top\-400 edges identified by EAP\. We can also observe that the identified top\-k edges have always performed better than the randomly selected k edges\.
### § D\.2Necessity of Corrupting the Top\-400 Edges
To verify that the observed degradation is specific to the EAP\-identified components rather than a consequence of intervening on a large number of components, in[Table 3](https://arxiv.org/html/2609.21113#A4.T3), we compare the performance drop caused by intervening on the top\-400 EAP\-identified components against that caused by intervening on the same number of randomly selected components\. In both cases, we intervene by activation patching that the activation of each selected component on the clean input is replaced with its activation on the corresponding corrupted input\. Random components are sampled following the component\-type distribution of the full model, and results are averaged over 20 random seeds\.
ModelTaskEAPRandomΔ\\DeltaGPT\-2 SmallSent \(Yelp\)85%61%24QA \(SQuAD\)80%55%25MT \(KDE4\)80%67%13Llama\-2\-7BSent \(Yelp\)81%58%23QA \(SQuAD\)84%52%32MT \(KDE4\)79%54%25Qwen2\-0\.5BSent \(Yelp\)83%59%24QA \(SQuAD\)82%55%27MT \(KDE4\)84%56%28Llama\-3\.2\-1BSent \(Yelp\)81%61%20QA \(SQuAD\)86%52%34MT \(KDE4\)82%44%38Table 3:Performance drop caused by intervening on the top\-400 EAP\-identified components versus the same number of randomly selected components\.Δ\\Deltais the absolute difference in percentage points\. Random results are averaged over 20 seeds\. The difference is significant for every model–task pair \(two\-sided Wilcoxon signed\-rank test,p<0\.05p<0\.05\)\.Corruption tokenSpearmanρ\\rhovs\.maskneutral0\.71blank0\.72abc0\.71Table 4:Spearman rank correlation between edge\-importance scores obtained with alternative corruption tokens and those obtained withmask, computed over all edges of GPT\-2 Small on the sentiment classification task\.
### § D\.3Robustness to the Corruption Token
In[Table 4](https://arxiv.org/html/2609.21113#A4.T4), we run[EAP](https://arxiv.org/html/2609.21113#id5)on GPT\-2 fine\-tuned on the sentiment classification task while varying the corruption token \(i\.e\. "neutral", "blank", "abc"\), and measure the Spearman rank correlation between the resulting edge\-importance scores over the full model\. The edge rankings are highly correlated across tokens\. It can be seen that for all the corrupted token variant it has a strong correlation with the edges obtained using "mask" token\.
## Appendix EEntropy of the Attention\-Change and EAP Distributions
We summarise how localised each distribution in[Figure 2](https://arxiv.org/html/2609.21113#S4.F2)is by a single entropy value, computed as follows\. For a model withLLlayers, each distribution provides one value per layer:x1,…,xLx\_\{1\},\\dots,x\_\{L\}, wherexℓx\_\{\\ell\}is either the average attention changeΔAℓ\\Delta A\_\{\\ell\}\([Equation 1](https://arxiv.org/html/2609.21113#S3.E1)\) or the summed[EAP](https://arxiv.org/html/2609.21113#id5)score at layerℓ\\ell\. We treat these per\-layer values as a distribution over layers by normalising them,
pℓ=xℓ∑j=1Lxj,∑ℓ=1Lpℓ=1,p\_\{\\ell\}=\\frac\{x\_\{\\ell\}\}\{\\sum\_\{j=1\}^\{L\}x\_\{j\}\},\\qquad\\sum\_\{\\ell=1\}^\{L\}p\_\{\\ell\}=1,and then collapse theLLper\-layer values into a single scalar via the Shannon entropy \(in bits\) and its normalised form,
H=−∑ℓ=1Lpℓlog2pℓ,H~=Hlog2L,H=\-\\sum\_\{\\ell=1\}^\{L\}p\_\{\\ell\}\\log\_\{2\}p\_\{\\ell\},\\qquad\\tilde\{H\}=\\frac\{H\}\{\\log\_\{2\}L\},with the convention0log20=00\\log\_\{2\}0=0\. The summation over layers is what reduces each per\-layer distribution to one number, so every distribution yields a single entropy value\. Normalising bylog2L\\log\_\{2\}L\(the maximum entropy, attained by a uniform distribution\) mapsH~\\tilde\{H\}to\[0,1\]\[0,1\]and makes it comparable across models of different depths:H~→1\\tilde\{H\}\\to 1means the change is spread evenly across all layers, whileH~→0\\tilde\{H\}\\to 0means it is concentrated in a few layers\. Thus, each subplot is summarised by the pair\(H~attn,H~EAP\)\(\\tilde\{H\}\_\{\\text\{attn\}\},\\,\\tilde\{H\}\_\{\\text\{EAP\}\}\)reported in the caption of[Figure 2](https://arxiv.org/html/2609.21113#S4.F2)\. Across all models and tasks,H~EAP\\tilde\{H\}\_\{\\text\{EAP\}\}is substantially lower thanH~attn\\tilde\{H\}\_\{\\text\{attn\}\}, confirming that[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components are concentrated in a small number of layers\.
## Appendix FHyperparameter Setup in[FT](https://arxiv.org/html/2609.21113#id4)
To verify our findings across various settings, we conduct experiments on four language model families:GPT\-2 Small,Qwen\-2\-0\.5B,Llama\-3\.2\-1BandLlama\-2\-7B\. All experiments were run on a single All experiments were run on a single NVIDIA A100 80GB GPU\. The total computational budget was approximately 14 GPU hours\. The detailed fine\-tuning parameters are in[Table 5](https://arxiv.org/html/2609.21113#A6.T5)\.
ParameterLlama\-2 \(7B\)Llama\-3\.2 \(1B\)Qwen2 \(0\.5B\)GPT\-2 \(Small\)Core OptimizationOptimizerAdamW \(fused\)AdamW \(fused\)AdamW \(fused\)AdamW \(fused\)Learning Rate2×10−52\\times 10^\{\-5\}2×10−52\\times 10^\{\-5\}2×10−52\\times 10^\{\-5\}5×10−55\\times 10^\{\-5\}†\\daggerWeight Decay0\.00\.00\.00\.0Warmup Ratio0\.030\.030\.030\.03LR SchedulerCosineCosineCosineCosinePrecisionbf16bf16bf16bf16Effective Batch SizeSST\-2 / Yelp16 / 83232 / 1632QA \(SQuAD/CoQA\)83232 / 1632MT \(KDE4/Tatoeba\)8323232Training EpochsSST\-2 / Yelp2333QA \(SQuAD/CoQA\)2 / 1223MT \(KDE4/Tatoeba\)1333Sequence LengthSST\-2 / Yelp256512512512QA \(SQuAD/CoQA\)1024102410241024MT \(KDE4/Tatoeba\)256256256256
Table 5:Complete hyperparameter settings across models and tasks\. All four models are fully fine\-tuned\. Effective batch size is per\-device batch size×\\timesgradient\-accumulation steps\.†\\daggerGPT\-2 SQuAD/CoQA used2×10−52\\times 10^\{\-5\}\.Similar Task AnalysisTask PairGPT2Llama3\.21BQwen2\.05BLlama2\-7BFine\-tuning TaskEvaluation TaskPerfΔ\\DeltaOverlapΔ\\DeltaPerfΔ\\DeltaOverlapΔ\\DeltaPerfΔ\\DeltaOverlapΔ\\DeltaPerfΔ\\DeltaOverlapΔ\\DeltaYelpYelp34%↑\\uparrow100 %33\.81%↑\\uparrow100%25\.1%↑\\uparrow100%91%↑\\uparrow100%YelpSST247%↑\\uparrow45\.25%52\.2%↑\\uparrow39\.75%23\.51%↑\\uparrow33\.50%94\.5%↑\\uparrow16\.75%SST2SST252\.81%↑\\uparrow100%21\.92%↑\\uparrow100%31\.77%↑\\uparrow100%96\.44%↑\\uparrow100%SST2Yelp29\.39%↑\\uparrow37\.25%8\.41%↑\\uparrow40\.5%16\.7%↑\\uparrow35\.00 %89\.2%↑\\uparrow8\.00 %SQuADSQuAD535%↑\\uparrow100%417\.54%↑\\uparrow100%65\.55%↑\\uparrow100%81\.23%↑\\uparrow100%SQuADCoQA216%↑\\uparrow37\.00%197\.71%↑\\uparrow30\.75%41\.16%↑\\uparrow35\.50%27\.84%↑\\uparrow45\.50%CoQACoQA287%↑\\uparrow100%203%↑\\uparrow100%106\.59 %↑\\uparrow100%5\.95%↑\\uparrow100%CoQASQuAD319%↑\\uparrow36\.50%312%↑\\uparrow31\.75%56\.99%↑\\uparrow40\.00 %64\.33%↑\\uparrow51\.25%KDE4KDE4441%↑\\uparrow100%188%↑\\uparrow100%119\.90%↑\\uparrow100%10\.31%↑\\uparrow100%KDE4Tatoeba206%↑\\uparrow47%4\.52%↑\\uparrow30\.25%4\.13%↑\\uparrow37\.50%11\.35%↑\\uparrow31\.75%TatoebaTatoeba384%↑\\uparrow100%39\.82%100%69\.48%↑\\uparrow100%24\.53%↑\\uparrow100%TatoebaKDE413\.83%↑\\uparrow47\.00%76\.84%↑\\uparrow32\.50%9\.92%↓\\downarrow40\.00%9\.33%↑\\uparrow29\.25%Dissimilar Task AnalysisYelpSQuAD67%32\.50%81\.71%26\.75%9\.50%30\.50%0\.59%44\.50%YelpCoQA9\.64%30\.50%52\.81%30\.50%38\.18%29\.75%2\.8%39\.75%YelpKde454\.61%41\.00%82\.92%26\.75%38\.97%31\.00%8\.20%27\.75%YelpTatoeba22\.63%42\.75%87\.3%27%26\.85%31\.25%0\.08%14\.75%SST2SquAD47%36%90\.31%32\.25%72\.29%36\.25%24%7%SST2CoQA48\.2%36\.75%61\.33%26%64\.62%36\.25%6\.7%14\.75%SST2Kde471\.21%42\.00%91\.54%29\.75%88\.22%39\.25%23\.76%19\.75%SST2Tatoeba33\.15%41\.50%99\.00%34\.25%99\.31%39\.75%33\.15%19\.75%SQuADYelp83\.91%33\.50%8\.41%28\.75%58\.31%33\.75%2\.2%46\.75%SQuADSST24\.26%31\.75%10\.31%31\.50%44\.38%35\.50%6\.77%6\.25%SQuADKDE424\.63%35\.75%6\.91%30\.50%41\.82%30\.50%66\.52%29\.00 %SQuADTatoeba21\.35%35\.00%3\.81%28\.25%37\.07%31\.50%87\.81%3\.50%CoQAYelp0\.31%33\.25%1\.81%26\.25%4\.21%29\.02%4\.51%38\.52%CoQASST23\.63%34\.00%4\.67%25\.00%3\.78%32\.25%1\.03%12\.50%CoQAKDE435\.83%31\.50%12\.63%26\.00%31\.46%27\.75%25\.86%24\.75%CoQATatoeba21\.33%31\.75%7\.91%19\.75%35\.75%27\.50%21\.44%5\.25%KDE4Yelp3\.31%39\.50%5\.82%26\.25%68\.12 %33\.00%6\.51%30\.25%KDE4SST26\.91%41\.75%13\.81%34\.50%60\.09%41\.50%0\.11 %25\.75%KDE4CoQA33\.72%30\.75%16\.01%30\.25%4\.38%34\.00%4\.91%28\.25%KDE4SQuAD42\.61%34\.00%13\.14%31\.25%13\.19%35\.50%8\.86%28\.50%TatoebaYelp3\.00%40\.50%9\.64%26\.25%71\.53%35\.25%6\.92%23\.00%TatoebaSST25\.41%40\.25%29\.48%31\.50%60\.78%41\.75%0\.00%14\.00%TatoebaCoQA54\.33%31\.00%6\.22%25\.50%58\.47%32\.00%1\.97%14\.75%TatoebaSQuAD25\.61%34\.75%26\.24%28\.00%91\.00%32\.50%6\.56%5\.00%
Table 6:Cross\-task Performance and Important Component Overlap Analysis for GPT\-2 Small, LLama\-3\.2\-1B, Qwen2\-0\.5B and LLama\-2\-7B\.
## Appendix GComponent Distribution in Top\-K Edges
[Figure 8](https://arxiv.org/html/2609.21113#A7.F8)shows component\-wise distribution of top 400 edges across four models and six datasets\.
Figure 8:Important component distribution percentage over top\-400[EAP](https://arxiv.org/html/2609.21113#id5)edges, broken down by model\(columns\) and dataset\(rows\)\.The Llama\-3\.2\-1B column on SST\-2 / SQuAD / KDE4 reproduces the main\-text[Figure 5](https://arxiv.org/html/2609.21113#S5.F5)\.#### Normalised Frequency
The raw composition in[Figure 8](https://arxiv.org/html/2609.21113#A7.F8)is dominated by the component types that are simply most numerous in the model \(e\.g\. MLP and attention nodes\), which makes it hard to see whether a component type is selected more often than its baseline abundance would predict\. To remove this frequency bias, we report an architecture\-normalised composition\. Letfctopf\_\{c\}^\{\\text\{top\}\}be the fraction of the top\-400[EAP](https://arxiv.org/html/2609.21113#id5)edges whose endpoint is of component typec∈\{attention, MLP, embedding, logit\}c\\in\\\{\\text\{attention, MLP, embedding, logit\}\\\}, and letfcmodelf\_\{c\}^\{\\text\{model\}\}be the fraction of all components of typeccin the full model\. We define the*scaling factor*
rc=fctopfcmodel,r\_\{c\}=\\frac\{f\_\{c\}^\{\\text\{top\}\}\}\{f\_\{c\}^\{\\text\{model\}\}\},which measures how strongly typeccis over\- or under\-represented among the[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components relative to its natural abundance:rc\>1r\_\{c\}\>1means typeccis selected more often than chance, andrc<1r\_\{c\}<1means it is under\-selected\.[Figure 9](https://arxiv.org/html/2609.21113#A7.F9)plotsrcr\_\{c\}directly for each component type \(grouped along thexx\-axis\) and task \(bars\)\. Under this normalisation, the contributions of MLP and especially logits are amplified, indicating that although these types are not the most numerous overall, they are disproportionately selected as causally important\.
\(a\)GPT2 Small
\(b\)Llam3\.2\-1B
\(c\)Qwen2\-0\.5B
\(d\)Llama2\-7B
Figure 9:Architecture\-normalised component composition of the top\-400 EAP edges\. For each model \(a\-d\), bars show the scaling factorrc=fctop/fcmodelr\_\{c\}=f\_\{c\}^\{\\text\{top\}\}/f\_\{c\}^\{\\text\{model\}\}, i\.e\. the fraction of top\-400 edges of component typeccdivided by the fraction of typeccin the full model\. Components are grouped along thexx\-axis \(attention heads, MLP, logit, embedding\) and the six bars per group correspond to the six tasks\. A value above one indicates that the component type is selected more often than its baseline abundance would predict\. See[Appendix G](https://arxiv.org/html/2609.21113#A7.SS0.SSS0.Px1)for the definition\.
## Appendix HCross Task Performance Transferability
Figure 10:GPT2,ρ=0\.5\\rho=0\.5
## Appendix IInduction Head Detection Details
We detect induction heads with the synthetic repeated\-sequence protocol of[Olsson et al\. \(2022\)](https://arxiv.org/html/2609.21113#bib.bib33)\. We sample a random token sequenceX=\[x1,…,xT\]X=\[x\_\{1\},\\dots,x\_\{T\}\]of lengthT=50T=50, with token ids drawn uniformly from\[100,\|V\|\)\[100,\\,\|V\|\)to avoid special and other reserved low\-id tokens, and feed its twofold repetition\[X,X\]\[X,X\]of total length2T=1002T=100to aHookedTransformer\([Nanda and Bloom, 2022](https://arxiv.org/html/2609.21113#bib.bib30)\), caching every layer’s attention pattern\. For each head we compute an*induction score*: the mean attention, averaged over query positionsi∈\{T,…,2T−2\}i\\in\\\{T,\\dots,2T\{\-\}2\\\}in the repeated half, that the head places on key positioni−T\+1i\-T\+1—the token immediately following the previous occurrence of the current token\. A head is labelled an induction head by a top\-KKrule on the sorted induction scores\. LetKelbowK\_\{\\mathrm\{elbow\}\}be the elbow of the sorted\-score curve \(the rank of maximum distance to the chord joining its first and last points\), searched within the top20%20\\%of ranks; letK0\.1K\_\{0\.1\}andK0\.3K\_\{0\.3\}be the numbers of heads scoring above0\.10\.1and0\.30\.3, respectively\. We set
K=max\(min\(Kelbow,K0\.1\),K0\.3\),K=\\max\\\!\\bigl\(\\min\(K\_\{\\mathrm\{elbow\}\},\\,K\_\{0\.1\}\),\\;K\_\{0\.3\}\\bigr\),i\.e\. the elbow cut, tightened by a minimum\-score threshold of0\.10\.1, but never dropping a head whose score exceeds0\.30\.3\(a safety floor\)\. TheKKhighest\-scoring heads are retained\. The same protocol is applied to the pre\-trained and the fine\-tuned model\.
ModelTask\#Induction Heads\#Attention Heads\#OverlapRecall \(%\)Precision \(%\)GPT\-2 SmallSentiment \(Yelp\)261011038\.59\.9Sentiment \(SST2\)248028\.32\.5QA \(SQuAD\)24981458\.314\.3QA \(CoQA\)241091979\.217\.4MT \(KDE4\)2499937\.59\.1MT \(Tatoeba\)2493833\.38\.6Llama\-3\.2\-1BSentiment \(Yelp\)62151711\.34\.6Sentiment \(SST2\)5814611\.70\.7QA \(SQuAD\)621581219\.47\.6QA \(CoQA\)621621321\.08\.0MT \(KDE4\)641671320\.37\.8MT \(Tatoeba\)5713258\.83\.8Qwen2\-0\.5BSentiment \(Yelp\)40112410\.03\.6Sentiment \(SST2\)358312\.91\.2QA \(SQuAD\)3697411\.14\.1QA \(CoQA\)39110410\.33\.6MT \(KDE4\)331161030\.38\.6MT \(Tatoeba\)407525\.02\.7Llama\-2\-7BSentiment \(Yelp\)5326347\.551\.52Sentiment \(SST2\)529400\.00\.0QA \(SQuAD\)15270213\.330\.74QA \(CoQA\)612271219\.675\.29MT \(KDE4\)5816600\.00\.0MT \(Tatoeba\)498800\.00\.0
Table 7:Overlap between detected induction heads and attention heads of top\-400 important edges across all models and tasks, with recall and precision\. Recall is the percentage of available induction heads reused for a task; precision is the proportion of the task\-specific important components that are induction heads\. Computed on the full fine\-tuned models\.
## Appendix JValidation of the correlation claim
[§ 5\.3](https://arxiv.org/html/2609.21113#S5.SS3)reports a positive correlation between the overlap in[EAP](https://arxiv.org/html/2609.21113#id5)\-identified components and the degradation observed on Task 2 when the model is fine\-tuned on Task 1\. Because this evidence is correlational, it does not by itself establish that the shared components are responsible for the degradation\. To test this mechanism directly, we perform an intervention: we identify the components that are shared between the two tasks, freeze them, and fine\-tune only the remaining parameters on Task 1\. If the overlapping components are indeed what drives the interference, protecting them during fine\-tuning should recover part of the lost performance on Task 2\.
[Table 8](https://arxiv.org/html/2609.21113#A10.T8)reports the change in Task 2 performance under this modified fine\-tuning procedure, relative to standard full fine\-tuning on Task 1\. Across all model and task\-pair combinations, freezing the overlapping components improves Task 2 performance, with gains ranging from2\.05%2\.05\\%to84\.34%84\.34\\%\.
ModelFT taskTest taskChangeLlama\-3\.2\-1BMTQA↑\\uparrow3\.54%QAMT↑\\uparrow45\.74%SentMT↑\\uparrow7\.91%SentQA↑\\uparrow41\.93%Qwen2\-0\.5BQAMT↑\\uparrow84\.34%MTQA↑\\uparrow44\.47%MTSent↑\\uparrow2\.05%SentQA↑\\uparrow83\.82%SentMT↑\\uparrow77\.99%Table 8:Effect of freezing the overlapping EAP\-identified components during fine\-tuning\. The model is fine\-tuned on Task 1 with the components shared between Task 1 and Task 2 held fixed, and then evaluated on Task 2\. The last column reports the relative change in Task 2 performance compared to standard full fine\-tuning on Task 1\. Performance on Task 2 improves in every configuration\.
## Appendix KLayer\-wise Centred Kernel Alignment Similarity
The probing analysis in[§ 5\.1](https://arxiv.org/html/2609.21113#S5.SS1)measures representational change by mapping intermediate hidden states through the model’s output head \([Equation 2](https://arxiv.org/html/2609.21113#S3.E2)\)\. This quantity is therefore output\-mediated: it captures how recoverable the task output is from a given layer, rather than how much the geometry of the representation itself has changed\. Since the EAP objective is also defined in terms of logit differences, we complement the probing analysis with a measure that does not pass through the output head\.
Specifically, we compute token\-level hidden states Centred Kernel Alignment \(CKA\), a standard measure of similarity between layer\-wise representations, between the pre\-trained and fine\-tuned models at every layer\. A value of11indicates that the representation at that layer is unchanged by fine\-tuning, so lower values correspond to larger representational change\. Because the four models differ in depth, we plot CKA against relative depth \(layer index divided by the total number of layers\), which makes the curves directly comparable across models\.[Figure 11](https://arxiv.org/html/2609.21113#A11.F11)shows the resulting curves for all models and datasets\. Across all models and tasks, the most substantial layer\-wise representational changes occur in the later layers \(in the order of 0\.7 to 0\.9\), specifically from approximately the 90th percentile layer to the final layer\.
Figure 11:Token\-level CKA between the pre\-trained and the fine\-tuned model at each layer, for the four models \(lines\) across the six datasets \(panels\)\. Thexx\-axis is relative depth \(layer index divided by the number of layers\), which allows models of different depths to be compared on a common scale\. A CKA of11means the representation at that layer is unchanged by fine\-tuning; lower values indicate larger representational change\.
## Appendix LMore main results
This section contains the extended results of[Figure 2](https://arxiv.org/html/2609.21113#S4.F2)\(see[Figure 12](https://arxiv.org/html/2609.21113#A12.F12)[Figure 13](https://arxiv.org/html/2609.21113#A12.F13)\),[Figure 3](https://arxiv.org/html/2609.21113#S5.F3)\(see[Figure 14](https://arxiv.org/html/2609.21113#A12.F14)\), and[Figure 4](https://arxiv.org/html/2609.21113#S5.F4)\(see[Figure 10](https://arxiv.org/html/2609.21113#A8.F10)\) for rest of models and datasets, which exhibit the same trends and confirm that our findings hold across all four model families\.
\(a\)GPT2 on SST2 \(0\.970\.97,0\.620\.62\)
\(b\)GPT2 on SQuAD \(0\.960\.96,0\.620\.62\)
\(c\)GPT2 on KDE4 \(0\.980\.98,0\.600\.60\)
\(d\)GPT2 on Yelp \(0\.950\.95,0\.750\.75\)
\(e\)GPT2 on CoQA \(0\.970\.97,0\.680\.68\)
\(f\)GPT2 on Tatoeba \(0\.980\.98,0\.660\.66\)
\(g\)Llama2 on SST\-2 \(0\.910\.91,0\.400\.40\)\(h\)Llama2 on SQuAD \(0\.910\.91,0\.530\.53\)\(i\)Llama2 on KDE4 \(0\.910\.91,0\.580\.58\)\(j\)Llama2 on Yelp \(0\.920\.92,0\.590\.59\)
\(k\)Llama2 on CoQA \(0\.970\.97,0\.570\.57\)
\(l\)Llama2 on Tatoeba \(0\.900\.90,0\.630\.63\)
Figure 12:Layer\-wise distribution of average attention KL divergence and EAP scores for GPT\-2 Small and Llama\-2\-7B across Sentiment Classification \(SST2\), Question Answering \(SQuAD\), and Machine Translation \(KDE4\)\.\(a\)Qwen on Yelp \(0\.960\.96,0\.510\.51\)
\(b\)Qwen on CoQA \(0\.950\.95,0\.720\.72\)
\(c\)Qwen on Tatoeba \(0\.960\.96,0\.680\.68\)
\(d\)Llama3\.2 on SST2 \(0\.990\.99,0\.650\.65\)\(e\)Llama3\.2 on Yelp \(1\.001\.00,0\.480\.48\)
\(f\)Llama3\.2 on Tatoeba \(0\.980\.98,0\.610\.61\)
Figure 13:Layer\-wise distribution of average attention KL divergence and EAP scores for Qwen2 and Llama3\.2\-1B across Sentiment Classification \(Yelp\), Question Answering \(CoQA\), and Machine Translation \(Tatoeba\)\. Counterpart of[Figure 2](https://arxiv.org/html/2609.21113#S4.F2)\.Figure 14:Layer\-wise probing of pre\-trained vs\. fine\-tuned models, full version of[Figure 3](https://arxiv.org/html/2609.21113#S5.F3)\.Rowsare datasets \(Yelp, SST\-2, SQuAD, CoQA, KDE4, Tatoeba\);columnsare models\.\(GPT\-2\-Small, Llama\-3\.2\-1B, Qwen2\-0\.5B, Llama\-2\-7B\)\. Higher = more task\-relevant information is already recoverable at that layer\. \(X\-axis: layer index; Y\-axis: binary accuracy for SST2, SQuAD F1 Score for SQuAD, BERTScore for KDE4\)相似文章
面向大型语言模型归因引导的持续学习
本文提出了一种面向大型语言模型的归因引导持续微调框架,该框架能够估计 Transformer 层中特定任务相关的参数重要性并相应地调节梯度,在保持新任务性能的同时缓解了灾难性遗忘。
注意力敏感性不足:细调下注意力层级与行为上下文学习的分离
本文研究了在细调下大型语言模型中注意力层级代理与行为表现之间的分离,揭示了仅凭注意力敏感性来诊断上下文学习能力并不可靠。
当可解码性不足时:语言模型中的逻辑有效性表示、行为分离与因果测试
本文研究了大型语言模型如何内部表示逻辑有效性,表明尽管行为表现不佳,有效性信息仍可从隐藏状态中解码,这表明表示、表达和因果使用具有不同的作用。
可检测性边缘的后训练:一种博弈论驱动的微调方法
本文介绍了一种博弈论的微调语言模型方法,该方法优化了奖励与偏离参考策略之间的权衡,并提供了一种设置KL正则化系数的原则性方法。
大语言模型顺序后训练中的表征坍塌
本文研究了大型语言模型在顺序后训练中的表征坍塌现象,表明重复的适应阶段会压缩内部表征,降低可塑性和域外泛化能力。作者提出了轻量级干预措施,在不牺牲行为增益的前提下保留未来的可学习性。