Inhibited Self-Attention: Sharpening Focus in Vision Transformers

· Source: Computer Vision and Pattern Recognition · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Computer Vision & Pattern Recognition · Depth: Expert, quick

Summary

Inhibited Self-Attention (ISA) is a new self-attention mechanism designed for Vision Transformers (ViTs) to address their tendency to diffuse focus across background regions and rely on spurious correlations. Inspired by biological vision systems' inhibitory mechanisms, ISA integrates inhibitory signals, uniquely utilizing negative attention scores to suppress irrelevant features and sharpen focus on objects of interest. This contrasts with conventional self-attention, which only uses positive attention values due to softmax normalization. Experiments on datasets like ImageNet-1k and COCO, alongside several robustness benchmarks, demonstrate that ISA enhances object-centric selectivity, reduces shortcut reliance, and improves out-of-distribution generalization. Analysis of relevance maps confirms ViTs with ISA achieve sharper, more localized focus on object-relevant areas, reducing background distractions and leading to more reliable models. The code is available on GitHub.

Key takeaway

For Computer Vision Engineers developing robust Vision Transformers, consider integrating Inhibited Self-Attention (ISA) to mitigate diffused focus and reliance on spurious correlations. This approach, by utilizing negative attention scores, can significantly enhance object-centric selectivity and improve out-of-distribution generalization for your models. You should explore ISA's impact on relevance maps to confirm sharper, more localized feature focus in your applications.

Key insights

Inhibited Self-Attention uses negative attention scores to sharpen Vision Transformer focus, improving object selectivity and generalization.

Principles

Method

ISA integrates inhibitory signals into self-attention, retaining and utilizing negative attention scores to suppress irrelevant features, unlike softmax-normalized conventional self-attention.

In practice

Topics

Code references

Best for: Research Scientist, AI Scientist, Computer Vision Engineer, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Computer Vision and Pattern Recognition.