Skip to main content
QUICK REVIEW

[Paper Review] A New Loss Function for CNN Classifier Based on Pre-defined Evenly-Distributed Class Centroids

Qiuyu Zhu, Pengju Zhang|arXiv (Cornell University)|Apr 12, 2019
Face recognition and analysisComputer Science21 references9 citations
TL;DR

This paper proposes PEDCC-Loss, a novel loss function for CNN classifiers that enforces feature embeddings to cluster tightly around pre-defined, evenly-distributed class centroids, maximizing inter-class distances and minimizing intra-class variations. Experiments on image classification and face recognition show state-of-the-art accuracy with stable, fast convergence.

ABSTRACT

With the development of convolutional neural networks (CNNs) in recent years, the network structure has become more and more complex and varied, and has achieved very good results in pattern recognition, image classification, object detection and tracking. For CNNs used for image classification, in addition to the network structure, more and more research is now focusing on the improvement of the loss function, so as to enlarge the inter-class feature differences, and reduce the intra-class feature variations as soon as possible. Besides the traditional Softmax, typical loss functions include L-Softmax, AM-Softmax, ArcFace, and Center loss, etc. Based on the concept of predefined evenly-distributed class centroids (PEDCC) in CSAE network, this paper proposes a PEDCC-based loss function called PEDCC-Loss, which can make the inter-class distance maximal and intra-class distance small enough in hidden feature space. Multiple experiments on image classification and face recognition have proved that our method achieve the best recognition accuracy, and network training is stable and easy to converge. Code is available in https://github.com/ZLeopard/PEDCC-Loss

Motivation & Objective

  • To improve CNN classifier performance by enhancing inter-class separation and intra-class compactness in the feature space.
  • To address the limitations of existing loss functions in achieving optimal feature distribution without requiring end-to-end centroid learning.
  • To develop a stable, convergent training method that leverages predefined, evenly-distributed class centroids as reference points.
  • To validate the effectiveness of the proposed loss in both general image classification and specialized face recognition tasks.

Proposed method

  • Define a set of pre-specified, evenly-distributed class centroids in the feature space, independent of training data.
  • Formulate a new loss function, PEDCC-Loss, that minimizes the L2 distance between feature embeddings and their corresponding predefined centroids.
  • Integrate the centroid-based loss with standard cross-entropy loss to jointly optimize classification accuracy and feature clustering.
  • Use a fixed centroid initialization strategy based on spherical code or uniform distribution to ensure even class coverage in the embedding space.
  • Optimize the combined loss during backpropagation to encourage features to converge toward their assigned centroids.
  • Apply the method to both general image classification and face recognition benchmarks with minimal architectural changes.

Experimental results

Research questions

  • RQ1Can a predefined, evenly-distributed set of class centroids improve feature clustering and classification accuracy in CNNs?
  • RQ2How does PEDCC-Loss compare to existing margin-based and center-loss functions in terms of convergence speed and stability?
  • RQ3Does using fixed centroids instead of learnable ones lead to better generalization in image classification and face recognition?
  • RQ4To what extent does the proposed loss reduce intra-class variation while increasing inter-class margin?

Key findings

  • PEDCC-Loss achieves state-of-the-art recognition accuracy on multiple image classification benchmarks, outperforming Softmax, AM-Softmax, ArcFace, and Center loss.
  • The method demonstrates faster convergence and greater training stability compared to existing loss functions.
  • The use of pre-defined, evenly-distributed centroids leads to more uniform and discriminative feature representations across all classes.
  • On face recognition datasets, PEDCC-Loss achieves higher accuracy than baseline methods, confirming its effectiveness in fine-grained classification tasks.

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.