arXiv:2610.32866cs.LGOct 2026

Manuscript Offprint

arXiv:2610.32866

Interpretable sparse fine-tuning with TopKLoRA enables faithful circuit discovery

Marek Masiak, Andrzej Szablewski, Nicola Cancedda, Constantin Venhoff

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Fine-tuning on datasets of unknown origin can create a backdoor in the trained model when the data includes poisoned examples. Difficult to localise and remove, backdoors can persist through safety training. While parameter-efficient fine-tuning methods capture the full parameter changes introduced during training, they are not easily interpretable. We present the full method of TOPKLORA, extending the preliminary proposal of Masiak et al. (2025), an interpretable-by-design LoRA variant in which only the k largest adapter latents are active at each token. Unlike SAEs, TOPKLORA is trained purely on downstream loss, where optimisation pressure incentivises learning functionally causal latents. We demonstrate this sparse LoRA adapter in a sleeper-agent backdoor case study where we create model organisms by fine-tuning gemma-2-2b, Qwen2.5-1.5B, and Qwen2.5-7B on a poisoned instruction-following dataset. For each organism, we identify and ablate a circuit that is both necessary and sufficient to implement the backdoor. Furthermore, our new fine-tuning method produces sparse circuits that are up to an order of magnitude smaller than a dense LoRA baseline, allowing surgical ablation of the malicious capability without sacrificing instruction-following performance. Finally, we propose a technique to construct model organisms with localised circuits using TOPKLORA latents and gradient-routing, which we use to validate the findings of our circuit search algorithm. We consider these findings as a step toward interpretable-by-design architectures that provide faithful units of analysis without compromising model performance. We share our code: https://github.com/interpretable-finetuning/TopKLoRA.

1 INTRODUCTION

Fine-tuning adapts a pre-trained model to a target distribution using data whose provenance often cannot be verified. This makes fine-tuning an attack surface, where a small fraction of poisoned examples suffices to implant a backdoor (Wan et al., 2023). Such backdoors, behaviours conditioned on input triggers, have been shown to persist through subsequent safety training (Hubinger et al., 2024). High-level defences that act on the data, such as filtering, or those that target outputs, including safety-tuning, leave the low-level mechanism untouched. Furthermore, attempts to localise it in dense weights have proven inconsistent (Yu et al., 2025). In our work, we propose a conceptually different approach that makes the fine-tuning update itself auditable, so any behaviour can be attributed to a small set of named components and removed without retraining. Parameter-efficient fine-tuning already confines the update to an adapter, but does not enforce interpretability. Post-hoc

∗^{*}Equal contribution

†^{\dagger}Work done as an independent researcher

Figure

Figure 1: TOPKLORA. The adapter computes a wide latent z=ReLU(Ax)∈Rrz = \text{ReLU}(Ax) \in \mathbb{R}^r, keeps only its kk largest entries, and up-projects with BB. Each token therefore uses an input-dependent rank- kk slice of the adapter.

dictionaries may provide interpretable latents, yet are optimised to reconstruct activations rather than to cause downstream model behaviour. We therefore propose a circuit discovery framework based on interpretable-by-design adapters.

TOPKLORA adapters were first proposed in preliminary form by Masiak et al. (2025), who introduced the core mechanism and reported initial results on downstream task performance and autointerpretability, treating its latents as SAE features. In this work, we present the full method, interpreting a TOPKLORA adapter instead as a dictionary of conditional steering vectors (Section 3.1) which, when attached to multiple layers or sub-layer modules, compose into sparse circuits implementing the trained capability. We modify the original architecture formulation by adding a ReLU to each adapter's latent computation. We also develop and adapt several circuit discovery algorithms to the sparse adapter setup, as described in Section 4. We further report a comprehensive evaluation on the sleeper agents case study and compare with baselines.

Across three base models, TOPKLORA concentrates the backdoor into circuits up to an order of magnitude smaller than those of a rank-matched dense LoRA. Ablating the verified circuit removes the backdoor on at least 99.9% of held-out triggered prompts and, whenever the adapter spans several layers, leaves instruction-following close to that of a model that was never poisoned. Dense circuits, by contrast, cover half or more of the adapter and are no more specific than a random latent set of the same size. On organisms with gradient-routed, planted circuits, the same pipeline recovers circuits that lie largely within the planted set, far above chance. This shows that our circuit discovery method includes latents that are known to be responsible for the fine-tuned capability.

Our main contributions are as follows: 1) We describe a complete TOPKLORA methodology that introduces compositional interpretable latents without incurring the reconstruction-loss penalty. 2) Building on TOPKLORA latents, we propose a Contrastive Latent Circuit Discovery (CLCD) pipeline that yields highly surgical circuits. We demonstrate it on a real-world sleeper agent case study. 3) We demonstrate a gradient-routing-based methodology for constructing realistic model organisms with localised circuits.

References (49)