Abstract
As open-weight Large Language Models (LLMs) are increasingly fine-tuned on proprietary or specialized datasets, a "transparency gap" emerges where the final model's behavior is known but the underlying data is not. We present WeightWatch, a novel unsupervised method for monitoring and controlling fine-tuned LLMs. By analyzing the singular vectors of weight differences between a fine-tuned model and its base version, WeightWatch detects out-of-distribution threats such as backdoors and unlearned content with high precision. Unlike activation-based methods, this "weight-first" approach does not require access to the original training data and effectively identifies rare anomalies.
Introduction
The proliferation of open-weight LLMs has led to widespread fine-tuning on diverse datasets. However, this process often lacks transparency. Traditional interpretability tools, such as Sparse Autoencoders or PCA, typically rely on analyzing internal activations. This approach suffers from two primary drawbacks: it requires representative datasets to identify features, and it often fails to detect rare, out-of-distribution anomalies like hidden backdoors or malicious "unlearning" bypasses.
WeightWatch addresses these challenges by auditing a model's capabilities and safety risks using only the weights themselves. This method provides a mechanistic signal of a model's potential behaviors, making it more robust against hidden "trojans" that might not be triggered by standard evaluation datasets.
Methodology: The Weight-First Approach
The core of WeightWatch is the intuition that significant behavioral changes during fine-tuning are encoded in the principal directions of the weight matrices.
The process involves four key steps:
- Weight Differencing: Computing $\Delta W = W_{post} - W_{base}$.
- Singular Value Decomposition (SVD): Performing SVD on $\Delta W$ for key linear layers (attention output and MLP down-projection). The top left singular vectors, termed "behavioral vectors," represent the primary directions of change.
- Unsupervised Monitoring: Tracking the cosine similarity between internal activations and these behavioral vectors during inference. High alignment flags an anomaly.
- Activation Steering: Controlling the model by orthogonalizing activations against behavioral vectors to suppress specific fine-tuned behaviors.
Experimental Setup
WeightWatch was evaluated across several scenarios:
- Generic Data: WildChat and UltraChat were used to establish baseline activation ranges.
- Backdoor Evaluation: StrongREJECT prompts with various triggers (e.g., "BadMagic") tested detection of hidden malicious behaviors.
- Unlearning Benchmarks: Models fine-tuned to forget specific topics (e.g., Harry Potter, biosecurity) were tested for information recovery.
- In-the-Wild Auditing: Commercial models like OLMo 7B, Qwen 2.5 7B, and Llama 3.1 8B were analyzed to uncover fine-tuning focuses.
Results and Insights
WeightWatch demonstrated exceptional performance in detecting anomalies and controlling model behavior. It stopped up to 100% of backdoor attacks with a false positive rate (FPR) below 1.2%, significantly outperforming black-box methods.
The "Unlearning" Illusion
A key finding is that "unlearning" often merely hides information behind a refusal layer. WeightWatch can identify these hidden directions and steer the model to recover supposedly deleted knowledge. For example, in the Zephyr-RMU model, steering recovered 76.92% of original performance on "forgotten" biosecurity tasks.
Data-Free Auditing
The method successfully identified fine-tuning focuses in commercial models without training data access. OLMo was found to be tuned for Midjourney prompts, while Qwen showed alignment with specific ideological content.
Discussion and Limitations
While powerful, WeightWatch has limitations. Malicious actors could potentially obfuscate fine-tuning to hide signals in the weights. The method also currently depends on having the original base model weights, though "base-free" versions are being explored. Future work will focus on a more comprehensive mechanistic mapping of weight-space directions to semantic concepts.
Summary updated