Stochastic Deep Supervision for Gallery-Consistent Early-Exit Face Recognition

Guray Ozgur, Tahar Chettaoui, Eduarda Caldeira, Naser Damer, Fadi Boutros

arXiv:2611.09987 · 2026-11-10 공개 · arXiv · PDF

vision-transformer embedding-space early-exit resource-constrained face-recognition ibc-benchmark stochastic-deep-supervision margin-penalty-loss

Abstract

Vision Transformers (ViTs) perform strongly in face recognition (FR), yet their fixed-depth inference limits deployment in resource-constrained settings. We propose SD-ViT, a training framework that gives a usable exit at every block depth by making every depth produce discriminative embeddings, for budget-selected fixed-depth exits. Standard ViTs supervise intermediate layers only through backpropagation, so their intermediate representations are not directly optimized to form usable identity embeddings. SD-ViT adds a stochastic auxiliary signal: at each iteration a randomly selected intermediate block is passed through the same embedding head as the final layer and trained with a weighted margin-penalty softmax loss. The objective is thus stochastically sampled deep supervision through a shared classifier. Because both loss terms share that head and classifier, intermediate tokens are trained to map into the same embedding space as final-layer tokens. This matters for FR, where matching is by similarity: a probe processed at an early exit can be compared directly against full-depth gallery embeddings, with no gallery recomputation or adaptation layers. On established benchmarks, SD-ViT stays within 0.4 IJB-C points of the same backbone trained conventionally at full depth, while its early-exit probes recover over 96% of their own full-depth performance at 50% of the computational cost without modifying the reference gallery. A single verification threshold calibrated at full depth remains usable from quarter depth onward.

한국어 요약

한 줄 요약

SD-ViT는 모든 블록 깊이에서 사용 가능한 얼굴 인식을 위한 확률적 딥서퍼비전 프레임워크로, IJB-C 기준 0.4 포인트 이내 성능을 유지하며 50% 계산 비용으로 96% 이상 정확도를 회복한다.

핵심 기여도

핵심 아이디어

기존 ViT는 중간 레이어를 단순히 역전파만으로 학습하므로, 그 결과로 생성된 임베딩은 갤러리와 비교할 수 없을 만큼 구조적으로 불일치한다. SD-ViT는 이 문제를 해결하기 위해 확률적 딥서퍼비전을 도입한다. 각 학습 스텝에서 중간 블록 하나를 무작위로 선택하여, 최종 레이어와 동일한 헤드와 프로토타입을 사용하여 margin-penalty softmax 손실로 학습한다. 이 방식은 모든 깊이의 토큰이 동일한 임베딩 공간으로 매핑되도록 강제하며, early-exit 시에도 갤러리와 비교할 수 있는 구조를 만든다. 핵심 아이디어는 "shared-classifier deep supervision"으로, 기존 early-exit 모델이 각 레이어에 별도의 헤드를 사용하는 것과 달리, SD-ViT는 모든 레이어가 동일한 헤드와 프로토타입을 공유한다.

기술적 접근법

주요 결과

의의 및 한계

SD-ViT는 얼굴 인식에서 early-exit 모델의 핵심 문제인 갤러리 일관성을 해결한 첫 번째 확률적 딥서퍼비전 프레임워크이다. 기존 early-exit 모델은 각 레이어에 별도의 헤드를 사용하여 갤러리와 비교 불가능한 임베딩을 생성했지만, SD-ViT는 모든 레이어가 동일한 헤드와 프로토타입을 공유함으로써 이 문제를 해결한다. 또한, 별도의 teacher 모델이나 어댑테이션 레이어 없이 갤러리와 비교 가능하다는 점에서 실용적이다. 그러나 고정 블록만 학습하는 경우 특정 깊이에서 성능이 더 높을 수 있으며, 모든 블록을 학습하려면 계산 비용이 증가한다. 또한, 샘플링 기반 학습이 모든 블록을 학습하는 방식보다 정확도는 약간 낮을 수 있다.

실용적 활용

SD-ViT는 다양한 계산 자원 환경에서 유연하게 사용 가능한 얼굴 인식 모델로, 모바일 기기나 IoT 장치에서 저비용으로 얼굴 인증을 수행할 수 있다. 또한, 대규모 갤러리가 존재하는 시스템에서 early-exit를 활용해 처리 속도를 향상시키는 데 유용하며, 기존 갤러리 재계산 없이 즉시 비교가 가능하다는 점에서 보안 및 프라이버시 측면에서도 유리하다.