Skip to main content
QUICK REVIEW

[Paper Review] AdaCos: Adaptively Scaling Cosine Logits for Effectively Learning Deep Face Representations

Xiao Zhang, Rui Zhao|arXiv (Cornell University)|May 1, 2019
Face recognition and analysisComputer Science44 references27 citations
TL;DR

This paper proposes AdaCos, a hyperparameter-free cosine-based softmax loss that adaptively scales logits to align predicted classification probabilities with angular margins, improving deep face representation learning. It achieves state-of-the-art performance on LFW, MegaFace, and IJB-C benchmarks by dynamically adjusting the scale parameter during training, ensuring stable and effective optimization without manual tuning.

ABSTRACT

The cosine-based softmax losses and their variants achieve great success in deep learning based face recognition. However, hyperparameter settings in these losses have significant influences on the optimization path as well as the final recognition performance. Manually tuning those hyperparameters heavily relies on user experience and requires many training tricks. In this paper, we investigate in depth the effects of two important hyperparameters of cosine-based softmax losses, the scale parameter and angular margin parameter, by analyzing how they modulate the predicted classification probability. Based on these analysis, we propose a novel cosine-based softmax loss, AdaCos, which is hyperparameter-free and leverages an adaptive scale parameter to automatically strengthen the training supervisions during the training process. We apply the proposed AdaCos loss to large-scale face verification and identification datasets, including LFW, MegaFace, and IJB-C 1:1 Verification. Our results show that training deep neural networks with the AdaCos loss is stable and able to achieve high face recognition accuracy. Our method outperforms state-of-the-art softmax losses on all the three datasets.

Motivation & Objective

  • To address the instability and sensitivity to hyperparameter tuning in existing cosine-based softmax losses for face recognition.
  • To analyze how scale and margin parameters affect classification probability predictions in cosine-based losses.
  • To develop a loss function that automatically adapts its scaling to improve training supervision and generalization.
  • To eliminate manual hyperparameter tuning while maintaining or improving recognition accuracy on large-scale face datasets.

Proposed method

  • Proposes AdaCos, a novel cosine-based softmax loss that dynamically adjusts the scale parameter based on the number of classes and angular distribution of features.
  • Introduces an adaptive scale parameter $\tilde{s}_d^{(t)}$ that ensures the predicted probability of the correct class reflects the true cosine similarity.
  • Derives the scale parameter analytically to maintain a balance between inter-class and intra-class angular margins during training.
  • Uses feature normalization and a modified cross-entropy loss to optimize the angular margin while preserving the geometric interpretation of cosine similarity.
  • Employs a closed-form solution for the scale parameter that avoids iterative tuning and reduces computational overhead.
  • Integrates seamlessly into standard deep learning frameworks using built-in operations, enabling easy deployment.

Experimental results

Research questions

  • RQ1How do the scale and margin hyperparameters in cosine-based losses influence the predicted classification probabilities?
  • RQ2Why do existing cosine-based losses require extensive hyperparameter tuning and suffer from training instability?
  • RQ3Can the scale parameter be automatically adapted during training to improve supervision and recognition performance?
  • RQ4Does an adaptive scaling mechanism lead to better generalization and convergence in deep face recognition?

Key findings

  • AdaCos achieves state-of-the-art performance on the LFW benchmark, outperforming existing losses such as ArcFace and CosFace.
  • On the MegaFace 1M identification benchmark, AdaCos achieves higher accuracy than all compared losses, including ArcFace and CosFace, with the same training data and network architecture.
  • On the IJB-C 1:1 verification protocol, dynamic AdaCos achieves a true accept rate of 99.06% at 10^-7 false accept rate, surpassing ArcFace and other SOTA methods.
  • The dynamic AdaCos variant achieves 83.28% true accept rate at 10^-6 FAR on IJB-C, outperforming the fixed AdaCos and other losses.
  • AdaCos training converges faster and more stably than baseline losses, with no need for manual hyperparameter tuning.
  • The proposed adaptive scale parameter effectively aligns the predicted probability with the geometric meaning of cosine similarity, reducing the gap between training and inference.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.