Specialist Mediators: Causal Localization of Dense Fine-Tuning
Abstract
Dense fine-tuning can turn a base language model into a domain specialist, but task accuracy alone does not reveal which internal computations mediate the new behavior. We introduce specialist mediators, the internal components through which a dense specialist's lift over its base causally flows. We identify these mediators by patching specialist activations into the base model on the same input and asking which patches recover the specialist's in-domain score while minimally perturbing off-domain behavior. This separates where the specialist behavior is localized, how much of it can be recovered by activation patching, and whether a sparse trainable update can implement the same behavior, three questions that are often conflated. We formalize this with an exact recovery result, a first-order approximation for joint patching, and a conditional bound showing when patching recovery can transfer to localized training. In synthetic transformers and structural causal models with planted mediators, patching recovers most planted mediators even when activation-magnitude baselines are misled by low-output distractors. In Pythia-410M specialists for math (GSM8K), multitask knowledge (MMLU), and biomedical QA (PubMedQA), single-patch localization ranks first on every domain and seed by area under the recovery curve. Five components recover more than 90% of the dense specialist's lift in answer-sequence likelihood on MMLU and PubMedQA, and a Pythia-1.4B PubMedQA specialist shows the same concentration. A comparison of LoRA adapters at exactly matched parameter counts then separates localization from trainability, showing that a few components can carry the specialist's score while adapter performance depends on more than where the adapter is placed.