Hard Sample-Conditioned Decorrelated Attention for Robust Face Recognition
Tahar Chettaoui, Guray Ozgur, Eduarda Caldeira, Naser Damer, Fadi Boutros
Fraunhofer Institute for Computer Graphics Research IGD · TU Darmstadt
Published October 30, 2026 · on the feed November 6, 2026 · ▲ 2 · arXiv 2610.41789
The 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.
The Brief
2:20A short podcast summary of the paper. Written and voiced by AI.
Transcript
Hard Sample-Conditioned Decorrelated Attention for Robust Face Recognition. By Tahar Chettaoui and four others, from the Fraunhofer Institute for Computer Graphics Research and TU Darmstadt. Published on the thirtieth of October.
Multi-head attention in Vision Transformers lets each head form its own attention pattern. Without explicit regularization, though, heads may learn redundant patterns instead of complementary roles. Correlation-based penalties exist to push heads apart, but they regularize every training sample equally. In face recognition, samples are not equal. Hard samples, the ones whose embeddings sit close to competing identities, are critical for both optimization and generalization, and a uniform penalty treats them like everything else.
ViT-HarDis makes head disentanglement conditional on how hard a sample is. Difficulty is read from cosine similarity to the centers of negative classes. A sample that looks a lot like some other identity receives stronger head decorrelation, so specialization is enforced exactly where identity is most ambiguous. An easy sample, far from every other identity, is left mostly alone. The penalty, in other words, scales with the very quantity that makes a face hard to recognize.
Two further choices shape the method. Disentanglement is applied only to the final transformer layers, and the authors' analysis shows this outperforms regularizing the entire network. And the change lives entirely in training: there are no architectural modifications and no additional inference cost. The same analysis shows the two intended effects together. Hard samples become less similar to competing class centers, and attention across heads becomes less similar.
Experiments show improvements over both the baseline and uniform disentanglement on most benchmarks. Trained on WebFace4M, ViT-HarDis reaches state-of-the-art results among ViT-based methods on IJB-B, on IJB-C, and on TinyFace Rank-1. Trained on MS1MV3 instead, it achieves the best IJB-B and TinyFace results. Two training sets, and leading results on each, with the gains coming from a training-time change alone. The abstract frames the benchmark wins with care: improvements on most benchmarks rather than all, and state of the art among ViT-based methods specifically.
A regularizer already in use is not replaced here but aimed. Where correlation penalties once spread their pressure evenly, this one concentrates it on the samples that sit nearest the wrong identity, which is where redundant heads would cost a face recognizer the most.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free