Hard Sample-Conditioned Decorrelated Attention for Robust Face Recognition
Tahar Chettaoui, Guray Ozgur, Eduarda Caldeira, Naser Damer, Fadi Boutros
Abstract
Multi-head attention in Vision Transformers (ViTs) allows independent attention patterns across heads, but without explicit regularization, heads may learn redundant patterns rather than complementary roles. Correlation-based penalties encourage head disentanglement, yet apply uniform regularization across all training samples. In face recognition (FR), hard samples whose embeddings lie close to competing identities are critical for optimization and generalization. Motivated by this, we propose ViT-HarDis, which conditions attention head disentanglement on sample difficulty: samples with high cosine similarity to negative class centers receive stronger head decorrelation, enforcing specialization where identity ambiguity is highest. Experiments show improvements over both the baseline and uniform disentanglement on most benchmarks. Our analysis shows that ViT-HarDis reduces the similarity of hard samples to competing class centers while decreasing inter-head attention similarity, and that applying disentanglement only to the final transformer layers outperforms regularizing the entire network. Trained on WebFace4M, ViT-HarDis achieves SOTA results among ViT-based methods on IJB-B, IJB-C, and TinyFace Rank-1, while achieving the best IJB-B and TinyFace results when trained on MS1MV3, improving FR without architectural modifications or additional inference cost. Code: https://github.com/TaharChettaoui/Hard-Sample-Conditioned-Attention-for-FR.
Create a lesson
Metadata
- Comments
- Accepted at the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV 2027)
Related papers
Now You See Them, Now You Dont FusionGhost Gait for Occlusion-Robust Gait Recognition with ArabGait dataset
Shared title terminologycs.CVSeba Al Mokdad, Tamer Shanableh, Reham Mohamed Aburas
ET: Efficient Transfer from Softmax to Hybrid Attention
Shared title terminologycs.CVGuangfu Guo, Xiaoqian Lu, Linsey Pang et al.
Age and Gender Estimation from Face and Ocular Smartphone Images via Identity Transfer and Ordinal Learning
Shared title terminologycs.CVFernando Alonso-Fernandez, Kevin Hernandez-Diaz, Jose Maria Buades et al.
Same Seed, Different Picture? Deciding Early at Low Resolution for Seed-Faithful Few-Step Flow Sampling
Shared title terminologycs.CVHuiran Duan, Weilun Feng, Yuqi Li et al.
NAS-PO: Native Attention-Strategy Policy Optimization for Vision-Language Models
Shared title terminologycs.CVKe An, Shizhe Xiang, Yue Liu et al.
Multimodal BVP and Respiration for Automated Pain Recognition with Hankel-FCN
Shared title terminologycs.CVValentina Becchetti, Muhammad Umar Khan, Stefanos Gkikas et al.