用于画廊一致早退人脸识别的随机深度监督
研究论文 · 2026/11/10
SD-ViT 是一种用于人脸识别的训练框架,通过随机选择中间块并共享最终层的嵌入头和分类器进行深度监督,使每个块深度都能产生与最终层一致的判别性嵌入。在基准测试中,全深度性能与常规训练相差不超过0.4个IJB-C点,早期退出在50%计算成本下恢复超过96%的全深度性能,且无需修改参考底库。
该方法在不修改参考底库的前提下,为资源受限场景提供了高效且兼容的人脸识别方案,显著降低计算成本并保持高精度。
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.