ExplainabilityTransparencySafetycs.LG
Mechanistic Interpretability of Fine-Tuned Vision Transformers on Distorted Images: Decoding Attention Head Behavior for Transparent and Trustworthy AI
Nooshin Bahador
March 24, 2025
arXiv.org
5 citations
Key Takeaways
-
Different parts of AI models have different jobs: Early layers in vision transformers focus on low-level details like edges and text, while deeper layers concentrate on task-critical information. Removing early layers caused only a 0.11% performance drop, but removing deeper layers caused a 0.34% drop—showing that not all components contribute equally to decisions.
-
AI models can be debugged by examining individual components: By analyzing individual "attention heads" (specialized processing units), researchers identified which parts of the model were focusing on irrelevant information like axis labels and color bars rather than the actual task, enabling targeted improvements to model reliability.
-
Some AI components specialize in specific tasks, while others handle multiple things: The study found "monosemantic" heads that focused exclusively on relevant features (like chirp patterns in spectrograms) versus "polysemantic" heads that scattered attention across multiple unrelated regions, revealing functional specialization that can be leveraged for transparency.
-
Understanding model internals helps identify vulnerabilities: By decomposing the transformer into interpretable pieces, researchers could spot which components were distracted by extraneous content, allowing developers to address potential failure points before deployment—a key step toward more trustworthy AI systems.
-
Mechanistic interpretability makes AI systems more auditable: This approach moves beyond treating AI as a "black box" by revealing how models make decisions at a granular level, enabling stakeholders to verify that models are using appropriate reasoning rather than relying on spurious correlations.
Abstract
Mechanistic interpretability improves the safety, reliability, and robustness of large AI models. This study examined individual attention heads in vision transformers (ViTs) fine tuned on distorted 2D spectrogram images containing non relevant content (axis labels, titles, color bars). By introducing extraneous features, the study analyzed how transformer components processed unrelated information, using mechanistic interpretability to debug issues and reveal insights into transformer architectures. Attention maps assessed head contributions across layers. Heads in early layers (1 to 3) showed minimal task impact with ablation increased MSE loss slightly (μ=0.11%, σ=0.09%), indicating focus on less critical low level features. In contrast, deeper heads (e.g., layer 6) caused a threefold higher loss increase (μ=0.34%, σ=0.02%), demonstrating greater task importance. Intermediate layers (6 to 11) exhibited monosemantic behavior, attending exclusively to chirp regions. Some early heads (1 to 4) were monosemantic but non task relevant (e.g. text detectors, edge or corner detectors). Attention maps distinguished monosemantic heads (precise chirp localization) from polysemantic heads (multiple irrelevant regions). These findings revealed functional specialization in ViTs, showing how heads processed relevant vs. extraneous information. By decomposing transformers into interpretable components, this work enhanced model understanding, identified vulnerabilities, and advanced safer, more transparent AI.
15 pages, 8 figures
Paper Info
arXiv ID2503.18762
PublishedMarch 24, 2025
Citations
5
Relevance82%
VenuearXiv.org
TypeJournalArticle
Categorycs.LG
Responsible AI Topics
ExplainabilityTransparencySafety
Links
Citation data from Semantic Scholar