Contrastive Decoding Diffing (CDD): recovering verbatim finetuning data from logits alone, no weight access needed[R]
Our take
The recent paper introducing Contrastive Decoding Diffing (CDD) represents a significant step forward in understanding and auditing large language models. Recovering verbatim finetuning data from model logits alone, without access to weights or activations, is a powerful capability. Previous work, like the Activation Difference Lens (ADL), demonstrated that finetuning leaves traces – but required a whitebox approach, demanding full model access. CDD’s ability to achieve comparable or even superior results using only grey-box access, as highlighted in the paper, fundamentally alters the landscape of model transparency. The implications are particularly relevant given ongoing concerns about data provenance and the potential for hidden biases embedded within these models. As readers may have noticed, this phenomenon of creeping sameness across model outputs has been a growing observation – Does anyone have a name for that subtle "Sameness" creeping into model outputs lately? – and CDD offers a potential avenue for investigating the root causes. Furthermore, the limitations of current evaluation methods, as explored in recent discussions regarding competence gating – Competence Gate: gating tool-use on a small model's internal confidence signal instead of its verbalised one — Qwen3.5-4B, open weights – suggest that deeper analysis of model internals, like that facilitated by CDD, is critical for building robust and reliable AI systems.
The unexpected discovery of the recurring "Dr. Elena Rodriguez" persona is perhaps the most intriguing aspect of this research. The fact that a fictional character, disproportionately favored by Claude Sonnet 3.6, became embedded across multiple finetuning domains underscores the subtle ways synthetic data generation can introduce biases and patterns into LLMs. This highlights a critical vulnerability: models trained on LLM-generated data can, in effect, perpetuate the quirks and biases of the original generator, effectively creating a feedback loop. The researchers' follow-up piece exploring this phenomenon, "ghost couple," delves deeper into this fascinating and potentially concerning observation, and it’s well worth exploring first for a more accessible overview. CDD's ability to unearth this seemingly innocuous detail demonstrates its potential for identifying far more significant, and potentially harmful, hidden influences within model behavior. It suggests that seemingly minor choices in data generation processes can have cascading effects on model outputs, even across diverse domains.
The efficacy of CDD across various model families and parameter sizes (1B to 32B) demonstrates its broad applicability and robustness. The consistent performance, without requiring per-organism calibration or layer selection, speaks to a fundamental property of how LLMs encode and retain information from finetuning data. This is a far more elegant and efficient approach than previous methods, which often required extensive experimentation and tuning. The ability to recover verbatim content provides a level of granularity previously unattainable, allowing researchers and practitioners to not only understand *what* a model has been finetuned on, but also to verify the accuracy and integrity of the training data. This is especially important in regulated industries or scenarios where transparency and accountability are paramount.
Looking ahead, CDD opens up a range of exciting possibilities. Will it be adapted to detect more subtle forms of influence, beyond verbatim content? Can it be used to proactively mitigate biases introduced through synthetic data generation? The ability to probe LLMs in this way provides a powerful tool for understanding their inner workings and ensuring their responsible development. The question now becomes: how can we leverage this new understanding to build more trustworthy and transparent AI systems, and what safeguards are needed to prevent malicious actors from exploiting this knowledge to inject hidden influences into models?
We built a model diffing method that recovers verbatim content from narrowly finetuned LLMs using only grey-box logit access (no weights, no activations, no probe corpus).
Recent work (Minder, Dumas et al., "Narrow Finetuning Leaves Clearly Readable Traces in Activation Differences") showed that finetuning leaves detectable traces in activation differences between base and finetuned models. Their method, Activation Difference Lens (ADL), steers generation using these differences, but it's whitebox (needs full weight access) and only recovers a vague, domain-level description of what the finetuning was about.
We introduce Contrastive Decoding Diffing (CDD), the output-level analog. Instead of steering with activation differences, we contrast the base and finetuned model's logits directly. A single default configuration, no per-organism calibration, no layer selection, achieves a verbatim recovery score of 4+/5 on 19/20 organism x model pairs across four model families (1B to 32B params) on the SDF benchmark. ADL never exceeds 3/5 on the same benchmark, despite requiring full weight access.
One unplanned finding: across four semantically unrelated finetuning domains (fake FDA drug approval, fake baking protocols, fake Roman concrete research), the same fictional persona kept showing up in the recovered text: "Dr. Elena Rodriguez." Turns out this is a name Claude Sonnet 3.6 disproportionately favors when asked to generate a fictional scientist for synthetic data generation, so it got baked into every finetune that used LLM-generated training data, and CDD pulled it back out. We wrote up this specific finding on its own a few weeks back if you want the more accessible version first: ghost couple
Paper: paper
Code: code
[link] [comments]
Read on the original site
Open the publisher's page for the full experience