Training face recognition models with millions of identities is bottlenecked by the classification head: classifier storage, logit memory, and computation grow linearly with class count, making full softmax impractical even when the backbone fits in memory. We present Partial FC (PFC), an approximation to large-class softmax that keeps every positive class center while activating only a random subset of negatives per mini-batch. PFC partitions the classifier across GPUs and samples within each owned shard: sampling shrinks local GEMMs and logits, while permanent ownership removes classifier-gradient synchronization without feature retrieval. Our system scales to 64M classes on one eight-GPU machine. Moderate sampling rates match full-softmax accuracy, reaching 97.2\% TAR on IJB-C (FAR $=10^{-4}$) and 94.0\% on ICCV21-MFR (FAR $=10^{-6}$). Under 40\% label flips, PFC with conflict filtering lifts MFR TAR from 43.9\% to 80.2\%, and on long-tailed data PFC raises TAR from 87.4\% to 92.0\% overall.
翻译:暂无翻译