Skip to main content
QUICK REVIEW

[Paper Review] Squared Earth Mover's Distance-based Loss for Training Deep Neural Networks

Le Hou, Chen-Ping Yu|arXiv (Cornell University)|Nov 17, 2016
Machine Learning and Data ClassificationComputer Science33 references95 citations
TL;DR

This paper proposes a novel training loss based on the exact squared Earth Mover’s Distance (EMD²) to improve deep neural network performance in single-label classification by explicitly modeling inter-class relationships. It introduces a self-guided method to learn the ground distance matrix from CNN features, achieving state-of-the-art results on age estimation and image aesthetics datasets without prior knowledge of class relationships, while generalizing safely to datasets with weak inter-class structure.

ABSTRACT

In the context of single-label classification, despite the huge success of deep learning, the commonly used cross-entropy loss function ignores the intricate inter-class relationships that often exist in real-life tasks such as age classification. In this work, we propose to leverage these relationships between classes by training deep nets with the exact squared Earth Mover's Distance (also known as Wasserstein distance) for single-label classification. The squared EMD loss uses the predicted probabilities of all classes and penalizes the miss-predictions according to a ground distance matrix that quantifies the dissimilarities between classes. We demonstrate that on datasets with strong inter-class relationships such as an ordering between classes, our exact squared EMD losses yield new state-of-the-art results. Furthermore, we propose a method to automatically learn this matrix using the CNN's own features during training. We show that our method can learn a ground distance matrix efficiently with no inter-class relationship priors and yield the same performance gain. Finally, we show that our method can be generalized to applications that lack strong inter-class relationships and still maintain state-of-the-art performance. Therefore, with limited computational overhead, one can always deploy the proposed loss function on any dataset over the conventional cross-entropy.

Motivation & Objective

  • To address the limitation of cross-entropy loss in ignoring inter-class relationships such as ordering or similarity in real-world classification tasks.
  • To develop a differentiable, exact EMD²-based loss function that penalizes mispredictions according to a ground distance matrix reflecting class dissimilarities.
  • To enable end-to-end learning of the ground distance matrix from CNN features during training, eliminating the need for handcrafted or external priors on class relationships.
  • To demonstrate that the proposed method generalizes well to datasets with weak or no inherent inter-class relationships, maintaining or improving performance.
  • To achieve state-of-the-art performance on benchmark datasets like Adience, AADB, and ImageNet using only image data and no auxiliary attributes.

Proposed method

  • Uses the exact squared Earth Mover’s Distance (EMD²) as a loss function to measure the minimal cost of transforming predicted class probabilities into the ground-truth one-hot distribution, with class dissimilarities encoded in a ground distance matrix.
  • Employs a closed-form solution for EMD² computation when classes are ordered, enabling efficient backpropagation through the loss.
  • Proposes a self-guided training strategy that learns the ground distance matrix during backpropagation using the CNN’s own feature representations of class centroids.
  • Introduces a regularization term based on EMD² computed with the estimated distance matrix, which is updated iteratively during training without additional hyperparameters.
  • Computes the ground distance matrix as the pairwise L2 distance between class centroid features extracted from the final fully connected layer of the CNN.
  • Applies the method to both classification and regression-style datasets by discretizing continuous labels into bins, enabling comparison with regression-based baselines.

Experimental results

Research questions

  • RQ1Can an exact EMD²-based loss function improve deep learning performance in single-label classification by modeling inter-class relationships?
  • RQ2Can the ground distance matrix be effectively learned from CNN features during training without prior knowledge of class relationships?
  • RQ3Does the self-guided EMD² regularization generalize to datasets with weak or no inherent inter-class structure, such as ImageNet?
  • RQ4How does the EMD² loss compare to cross-entropy and L2 regression losses in terms of performance on datasets with ordered or continuous labels?
  • RQ5Can the learned distance matrix avoid capturing spurious relationships in datasets without strong inter-class ordering?

Key findings

  • On the Adience age estimation dataset, the proposed EMD² loss achieved a Spearman’s ρ of 0.6889 using an ensemble of eight VGG-F networks, outperforming the previous state-of-the-art method.
  • On the AADB image aesthetics dataset, the EMD²-based method achieved a Spearman’s ρ of 0.6889 with only image data, surpassing a prior state-of-the-art model that used 11 additional attribute labels.
  • The self-guided EMD² regularization method achieved performance comparable to EMD² loss with ground-truth distance matrices, demonstrating effective end-to-end learning of class relationships.
  • On ImageNet ILSVRC 2012, the method maintained performance comparable to cross-entropy loss, with a standard deviation of pairwise distances (SDD) of 0.00614, indicating weak inter-class relationships, and no performance degradation.
  • The method significantly outperformed both cross-entropy and L2 regression baselines on both age estimation and aesthetics datasets, with improvements in Spearman’s ρ of up to 0.0682 over the previous SOTA.
  • The learned ground distance matrix effectively captured meaningful class relationships on ordered datasets (e.g., age, aesthetics) while avoiding spurious structures on datasets like ImageNet with weak inter-class ordering.

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.