Differential Auditing for Undesired Behavior

Ishwar B Balappanawar, Venkata Hasith Vattikuti, Greta Kintzley, Ronan Azimi-Mancel, Satvik GolechhaAI4GOOD @ ICML 2026

TL;DR

Researchers framed AI safety auditing as an adversarial game where a "Red Team" hides malicious behaviors in models and a "Blue Team" attempts to detect them with near-zero prior knowledge. They found that while gradient-based methods are highly effective for catching backdoors in CNNs, auditing Large Language Models (LLMs) remains a significant challenge, often requiring clever behavioral "hijacking" or specific hints to reveal hidden misalignments.

What Problem Does This Paper Address?

As neural networks become more complex, they can harbor "hidden" behaviors—either accidentally emerged or intentionally planted by bad actors (backdoors). Detecting these is a nightmare for auditors because they usually don't know what the specific "trigger" or "harmful behavior" looks like.

Current research typically falls into two extremes: assuming auditors know nothing (which makes the task nearly impossible) or assuming they know exactly what to look for (which is unrealistic). This paper explores the "near-zero knowledge" middle ground. By setting up a competitive game between a Red Team (the attackers) and a Blue Team (the auditors), the authors investigate which strategies actually work when you're hunting for a needle in a haystack you didn't build.

Methods

The study utilized a multi-round adversarial setup across two different architectures:

  1. CNNs (Image Classification): The Red Team used techniques like Switch Triggers (e.g., a red triangle in the corner makes the model misclassify an image) and Adversarial Training. The Blue Team countered with:
  2. Gaussian Noising: Adding noise to see if accuracy drops anomalously.
  3. Integrated Gradients: A white-box attribution method to see which pixels "influence" the model most.
  4. Model Diffing (Crosscoders): Using sparse autoencoders to find internal features present in one model but not the other.
  5. FGSM (Fast Gradient Sign Method): Using adversarial attacks to see which model is "easier" to flip into a specific target class.
  6. LLMs (Gemma and LLaMA): The Red Team hid behaviors like medical misinformation, covert brand promotion (Tide), and "unlearning" specific knowledge (Harry Potter). The Blue Team used:
  7. Black-box Probing: Repeated phrase prompting and Scratchpad Hijacking (tricking the model into revealing its internal "thoughts" or hidden system prompts).
  8. Open-weight Analysis: Architecture checks (looking for LoRA layers), log-odds deviations on benchmarks, and perplexity comparisons.

Datasets

  • CNN Rounds: Primarily used the CIFAR-10 dataset.
  • LLM Rounds: Utilized TruthfulQA, HHH (Helpful, Honest, Harmless), and WinoGrande for general capability benchmarking.
  • Custom/Synthetic Data: The Red Team generated synthetic QA pairs using Claude 3.7 Sonnet for specific tasks like medical advice and brand promotion.
  • Crosscoder Training: Used the Pile dataset and Goodreads "best books" data for the unlearning/censorship rounds.

Key Insights and Ideas

  • The Power of the "Vulnerability Metric": One of the most successful CNN strategies was using FGSM attacks not to break the model, but to audit it. By measuring how much "effort" (gradient magnitude) it took to force a model to classify an image as a "truck," the Blue Team could identify the poisoned model with 100% accuracy.
  • LLMs are Stealthier: Unlike CNNs, where backdoors often leave clear gradient artifacts, LLMs fine-tuned for subtle behaviors (like brand promotion) are much harder to catch. Standard benchmarks often showed only a "slight log-odds skew," which isn't enough for a definitive "guilty" verdict.
  • Scratchpad Hijacking is a "Cheat Code": For black-box LLMs with hidden system instructions, the Blue Team found they could often force the model to leak its entire instruction set by pre-filling the model's response with a <scratchpad> tag.
  • Architecture as a Dead Giveaway: In one round, the Red Team used LoRA (Low-Rank Adaptation) to fine-tune the model. The Blue Team immediately identified the "bad" model simply because its file structure contained LoRA weights that the "clean" model lacked. This highlights that "stealth" requires more than just behavioral parity; it requires architectural parity.

Key Results

  • CNN Backdoors: Gradient-based methods excelled. FGSM achieved 100% accuracy in identifying the poisoned model when the target class was known, and 82% overall. Integrated Gradients correctly identified the model in 11 out of 15 samples.
  • Black-box LLMs: Scratchpad Hijacking was remarkably effective, revealing the full hidden instruction set in several instances.
  • Open-weight LLMs: These were the hardest to audit. Without strong hints, the Blue Team struggled. However, with "near-zero knowledge" hints (e.g., "the model might be promoting a brand"), Attention Head Analysis and targeted chatting (e.g., asking about laundry) became effective.

Limitations and Future Work

The authors acknowledge several constraints:

  • Compute & Time: The adversarial rounds were limited, preventing the long-term "arms race" that characterizes real-world security.
  • Non-Transferability: Strategies that worked for CNNs (like MELBO) rarely translated to LLMs, suggesting that auditing tools must be highly architecture-specific.
  • The "Hint" Dependency: For the most difficult LLM tasks, the Blue Team's success relied heavily on the quality of hints provided by the Red Team.

Future Directions: The researchers suggest developing automated behavioral testing frameworks for LLMs and advancing model diffing techniques that can reliably interpret "exclusive" latents in open-weight settings without needing a "clean" reference model.

Summary updated

BibTeX
@inproceedings{balappanawar2026differential,
  author = {Ishwar B Balappanawar and Venkata Hasith Vattikuti and Greta Kintzley and Ronan Azimi-Mancel and Satvik Golechha},
  title = {{Differential Auditing for Undesired Behavior}},
  booktitle = {AI4GOOD @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=8kMSTXrVMN},
}
Figure