Stochastic Deep Supervision for Gallery-Consistent Early-Exit Face Recognition
Authors & Institutions
Guray Ozgur
Technical University of Darmstadt
Fraunhofer Institute for Computer Graphics Research IGD
Tahar Chettaoui
Technical University of Darmstadt
Fraunhofer Institute for Computer Graphics Research IGD
Eduarda Caldeira
Technical University of Darmstadt
Fraunhofer Institute for Computer Graphics Research IGD
Naser Damer
Technical University of Darmstadt
Fraunhofer Institute for Computer Graphics Research IGD
Fadi Boutros
Fraunhofer Institute for Computer Graphics Research IGD
What Problem It Solves
Reduce the cost of processing a query without rebuilding the reference database or adding an adapter for each exit.
Key Result
At half the compute, early exits retained over 96% of their own full-depth performance. At full depth the difference from conventional training was within 0.4 points on IJB-C. The full-depth threshold remained usable from quarter depth onward.
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.
Research Starting Point
A camera may have less compute than the server that created the reference templates. Cutting a conventional model short saves work, but its intermediate features were not trained for direct comparison with those templates.
Method
At each training step, a randomly sampled intermediate block and the final block share an embedding head and classifier. An auxiliary margin-based loss teaches the sampled block to separate identities in the same space.
Paper Summary
Compare query cost at a fixed gallery and threshold. The reported 96% is retained performance, not an absolute verification accuracy.