跳到正文
arXiv (AI + Vision + Imaging)· Marek Masiak, Andrzej Szablewski, Nicola Cancedda, Constantin Venhoff·AI 评分34

TopKLoRA:可解释稀疏微调实现忠实电路发现

Interpretable sparse fine-tuning with TopKLoRA enables faithful circuit discovery

AI 导读

TopKLoRA 是一种按设计可解释的 LoRA 变体,每个 token 仅激活 k 个最大的适配器潜变量,且仅用下游损失训练。在 gemma-2-2b、Qwen2.5-1.5B 和 Qwen2.5-7B 的 sleeper-agent 后门案例中,该方法定位并消融了实现后门所必需且充分的电路,产生的稀疏电路比稠密 LoRA 基线小最多一个数量级,且不牺牲指令跟随性能。

正文 · 原文

arXiv:2610.32866v1 Announce Type: new 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org