MMDiff: Multimodal Model Diffing for Feature Discovery and Control

Lachin Naghashyar, Hunar Batra, Ashkan Khakzar, Philip Torr, Ronald Clark, Christian Schroeder de Witt, Constantin Venhoff

TL;DR

MMDiff is a new framework that isolates the specific internal features created when a language model is trained to "see." By comparing Sparse Autoencoders (SAEs) across training stages, the authors can identify, ablate, and steer sparse features for tasks like spatial reasoning and OCR, improving model control without damaging general performance.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) like LLaVA or PaliGemma are remarkably good at describing images, but their internal "black box" remains a mystery. While researchers use Sparse Autoencoders (SAEs) to decompose model activations into interpretable features, standard SAEs suffer from a "mixing" problem: they can't distinguish between features inherited from the text-only base model and those newly adapted for vision.

This makes it incredibly difficult to audit a model for safety (e.g., why did it bypass a safety filter for this specific image?) or to improve specific capabilities (e.g., making the model better at reading text) without expensive retraining. The authors address this by introducing "model diffing"—a way to subtract the base model's "text brain" from the MLLM's "multimodal brain."

Methods

The MMDiff pipeline consists of three main stages:

  1. Multimodal SAE Training: The authors "warm start" SAEs using weights from pretrained base-language model dictionaries. They found that training these SAEs specifically on text-token activations (while the model is looking at an image) best preserves the original feature alignment while capturing multimodal changes.
  2. Feature Isolation: They identify "adapted features" by looking for two signals: geometric rotation (the feature's vector direction changed significantly from the base model) and visual energy (the feature fires strongly in response to visual inputs).
  3. Task-Specific Discovery: To find features for a specific task (like OCR), they use contrastive firing analysis. They compare how often a feature fires on a target task versus a baseline. Crucially, they apply a lexical filter: they replace task-specific prompts with generic ones (e.g., "Describe this image") to ensure the feature is responding to the image content, not just keywords like "left" or "read" in the text prompt.

For control, they introduce MMDiff-CAA, a steering method that combines multi-layer backbone steering with the injection of specific SAE feature directions at their "home" layers.

Datasets

  • Training: SAEs were trained on 50k image-question pairs from VQAv2.
  • Evaluation:
    • Spatial Reasoning: Evaluated using the VSR (Visual Spatial Reasoning) dataset.
  • Multimodal Safety: Tested on VLSBench, which contains images designed to trigger unsafe responses that text alone wouldn't catch.
  • OCR: Evaluated using OCRBench.
  • Controls: MSSBench (safe split) and a "clean" subset of VQAv2 were used to ensure interventions didn't cause collateral damage to general capabilities.

Key Insights and Ideas

  • Repurposing vs. Innovation: Most multimodal capabilities aren't entirely new features; they are often base-LM features that are "reshaped" or "repurposed" during multimodal training.
  • Instruction Tuning is the Catalyst: The authors found that while some spatial features exist in pretrained models, multimodal instruction tuning amplifies their causal importance by roughly 3x.
  • The Mid-Layer Sweet Spot: Attribution patching revealed that features for spatial reasoning and OCR tend to cluster in the middle layers of the transformer backbone, providing a specific target for steering interventions.
  • Lexical Artifacts are Real: Many features that look like they are for vision are actually just responding to specific words in the prompt. The "lexical filter" is essential for finding truly image-grounded features.

Key Results

  • Causal Ablation: By removing just a few hundred discovered features, the researchers could selectively degrade spatial reasoning by 12% and OCR by 17% on average, with zero impact on general VQA performance.
  • Safety Auditing: Ablating specific "unsafe" features reduced the success rate of multimodal safety attacks by 24%.
  • Superior Steering: MMDiff-CAA steering improved spatial accuracy by +3.6% and OCR accuracy by +1.5% over standard single-layer steering baselines. In some cases (like "ahead of" relations), the improvement was as high as +15.4 percentage points.

Limitations and Future Work

  • Reference Model Dependency: The steering method currently requires an instruction-tuned reference model to calculate the steering direction.
  • Generation Collapse: For a small minority of safety features, ablating them caused the model to stop generating text entirely ("collapse") rather than simply refusing the unsafe prompt.
  • Architecture Breadth: The study focused on LLaMA and Gemma backbones. Future work is needed to see if these "diffing" patterns hold for Mixture-of-Experts (MoE) models or different vision-encoder architectures like Qwen-VL.
  • Automated Labeling: While they used "Auto-Interp" (GPT-4o-mini) to label features, the authors note this is currently a qualitative validation layer rather than a perfect automated system.

Summary updated

BibTeX
@inproceedings{naghashyar2026mmdiff,
  author = {Lachin Naghashyar and Hunar Batra and Ashkan Khakzar and Philip Torr and Ronald Clark and Christian Schroeder de Witt and Constantin Venhoff},
  title = {{MMDiff: Multimodal Model Diffing for Feature Discovery and Control}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=cPe7nDE362},
}
Figure