arXiv:2608.26462cs.LGAug 2026

Manuscript Offprint

arXiv:2608.26462

Diff Mining: Logit Differences Reveal Finetuning Objectives

Greg Kocher, Robert West, Clément Dumas, Julian Minder

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

ABSTRACT

Finetuning has become the gold standard for refining existing behaviors and inducing new ones in language models, yet it often remains unclear exactly which behaviors emerge during this process. As models grow ever more capable, understanding finetuning better becomes increasingly important, particularly since unwanted behaviors may arise during finetuning. In this paper, we introduce Diff Mining, a simple yet effective framework for identifying what a finetuned model has learned by comparing its logits to those of its base model. Diff Mining effectively surfaces salient tokens that are amplified in the finetuned model, serving as a fingerprint of its training—even on text unrelated to the finetuning domain. Unlike many existing model diffing methods which require model internals, Diff Mining only needs access to output logits and scales to large models. The framework consists of two modular stages: (i) extracting per-context logit differences between the finetuned and base models on a reference corpus, and (ii) aggregating the resulting signals to construct an interpretable token set representing the finetune. For aggregation, we explore both a simple Top-K frequency method and a Non-negative Matrix Factorization (NMF)-based approach for disentangling multiple finetuning objectives into distinct token clusters. Empirically, Diff Mining succeeds across diverse settings: on fine-tune domain detection, it significantly outperforms state-of-the-art model diffing methods both in identifying relevant tokens and in downstream performance when an interpretability agent is given access to the extracted token set; on models with injected biases, it identifies more than one third of the biases without targeted probing. Overall, our framework shows promise in developing auditing tools to detect finetuning objectives.

1 INTRODUCTION

Finetuning has become the gold standard for refining existing behaviors and inducing new ones in language models (Chen et al., 2023; Cheng et al., 2024a; Chen et al., 2024; Cheng et al., 2024b; OpenAI et al., 2024; DeepSeek-AI et al., 2025). It has become commonplace to release updated versions of state-of-the-art models, often as refined versions of previous releases (Anthropic, 2025a;b;c; OpenAI, 2025). Yet it often remains unclear what exactly has changed: when behavioral changes are subtle and context-dependent, detecting them becomes a difficult search for specific contexts, potentially rare or unanticipated, that may newly trigger unwanted behaviors (Hubinger et al., 2024; Aranguri & McGrath, 2025; Betley et al., 2025b). Simple evaluation methods may not cover everything, and as models grow more capable, understanding finetuning becomes increasingly important. This is particularly relevant for safety, since post-training is itself a form of finetuning—and many safety-relevant behaviors emerge precisely during this phase (Sharma et al., 2023; Greenblatt et al., 2024; Meinke et al., 2025; Betley et al., 2025c; Wang et al., 2025a; Betley et al., 2025a).

∗^{*}Correspondence to gk2500@columbia.edu.

Addressing this challenge, model auditing has emerged as a research area focused on detecting hidden objectives or rare undesirable behaviors in deployed models (Marks et al., 2025; Sheshadri et al., 2025). More recently, such auditing has been partially automated with agentic tools that probe for edge cases and hidden objectives (Fronsdal et al., 2025; 2026). However, these approaches still rely on identifying a good set of scenarios to test, which remains fundamentally difficult when hidden objectives are subtle and context-dependent. Improving tooling for such auditing efforts is therefore crucial. One promising direction is neural-network interpretability, which may reveal behaviors not directly obvious from standard blackbox evaluation. Building on the fact that finetuning typically uses only a small fraction of the compute used for pretraining, we hypothesize that the induced changes are subtle and mostly reweight or refocus existing behaviors. This motivates examining the changes between two models rather than analyzing a single model in isolation. Model diffing—the study of how a model's representations and internal circuitry change over the course of finetuning—provides exactly this lens (Mosbach, 2023; Prakash et al., 2024; Lindsey et al., 2024; Bricken et al., 2024; Minder et al., 2025; Mishra-Sharma et al., 2024; Jiralerspong & Bricken, 2025; Aranguri & McGrath, 2025; Minder et al., 2026). However, existing diffing methods are either computationally prohibitive (Lindsey et al., 2024; Minder et al., 2025) or struggle to interpret more complex finetunes (Minder et al., 2026).

In this paper, we introduce Diff Mining, a simple yet effective framework for model diffing. Diff Mining builds on the intuition that differences in the full token distribution are a rich signal for changed model behavior: while behavioral changes may not be apparent from model outputs alone, subtle shifts in logits can reveal a clearer picture of finetuning-induced changes—even on text unrelated to the target behavior. The method effectively surfaces tokens that are amplified in the finetuned model, serving as a fingerprint of its training. It consists of two stages: (i) an extraction stage that collects per-context logits on a reference corpus, and (ii) an aggregation stage that condenses the resulting token signals into an interpretable set of representative tokens fingerprinting the model. We explore two aggregation methods. Top-K aggregation is the simplest approach: it ranks tokens by how frequently they appear among the K largest logit changes. NMF aggregation applies non-negative matrix factorization to the logit differences, yielding multiple candidate sets that each isolate a distinct cluster of finetune-induced changes.

Empirically, Diff Mining consistently identifies tokens relevant to the finetuning objective, even when it is hidden among normal-looking data. We evaluate using the benchmark and interpretability agent introduced by Minder et al. (2026), and find that Diff Mining significantly outperforms their method on hidden-objective detection, succeeding in harder settings where their approach failed. It also succeeds across diverse real-world scenarios: for example on models injected with hidden biases, a single unsupervised pass identifies tokens semantically related to roughly one third of the biases. Such information would give auditors a head start on tasks like those in Marks et al. (2025). Furthermore, NMF aggregation successfully disentangles finetuning domains when a model is finetuned on two distinct topics. These results demonstrate Diff Mining's potential as a practical tool for model auditing.

In summary, our contributions are as follows:

  1. We introduce Diff Mining, a modular and extensible framework for model diffing that shows promise as a tool for model auditing.

  2. We demonstrate that Top-K Diff Mining effectively detects hidden objectives in finetuned models, including on harder setups where prior methods fail.

  3. We show that NMF aggregation can disentangle finetuning domains when a model is finetuned on multiple distinct topics.