Skip to main content
QUICK REVIEW

[Paper Review] Training Deep Neural Networks via Direct Loss Minimization

Yang Song, Alexander G. Schwing|arXiv (Cornell University)|Nov 19, 2015
Advanced Neural Network ApplicationsComputer Science16 references31 citations
TL;DR

This paper proposes a direct loss minimization framework for training deep neural networks by optimizing application-specific, non-differentiable loss functions such as average precision (AP), which are typically not amenable to standard gradient-based methods. The approach extends McAllester et al. (2010) to non-linear models using a novel dynamic programming algorithm to compute gradients, enabling end-to-end training that outperforms surrogate loss baselines—especially under label noise in action classification and object detection tasks.

ABSTRACT

Supervised training of deep neural nets typically relies on minimizing cross-entropy. However, in many domains, we are interested in performing well on metrics specific to the application. In this paper we propose a direct loss minimization approach to train deep neural networks, which provably minimizes the application-specific loss function. This is often non-trivial, since these functions are neither smooth nor decomposable and thus are not amenable to optimization with standard gradient-based methods. We demonstrate the effectiveness of our approach in the context of maximizing average precision for ranking problems. Towards this goal, we develop a novel dynamic programming algorithm that can efficiently compute the weight updates. Our approach proves superior to a variety of baselines in the context of action classification and object detection, especially in the presence of label noise.

Motivation & Objective

  • To address the limitation of standard deep learning training, which relies on differentiable surrogate losses like cross-entropy, that do not align with application-specific metrics such as average precision (AP).
  • To develop a method that directly minimizes non-smooth, non-decomposable loss functions—common in ranking and structured prediction—by extending theoretical gradient computation to non-linear models.
  • To enable end-to-end training of deep neural networks using the true task loss, improving robustness to label noise in real-world applications.
  • To demonstrate the effectiveness of direct loss minimization on complex, real-world tasks such as action classification and object detection, where standard surrogate losses fail under noisy supervision.

Proposed method

  • Extends McAllester et al. (2010)’s theorem on gradient computation for linear models to non-linear deep neural networks by deriving the gradient of non-differentiable task losses with respect to network parameters.
  • Introduces a novel dynamic programming algorithm to efficiently compute the gradient of the task loss (e.g., AP) with respect to network weights, overcoming the non-smoothness and non-decomposability of the loss.
  • Uses a differentiable approximation of the non-differentiable loss function via a temperature-controlled softmax to enable backpropagation while preserving the structure of the original metric.
  • Applies the computed gradients in stochastic optimization to minimize the expected task loss, directly optimizing for metrics like AP in ranking and detection.
  • Employs a mini-batch approximation of AP to make training feasible in object detection, where full-batch AP computation is intractable due to high bounding box counts.
  • Uses a modified score function that combines model scores and task loss to guide the optimization toward configurations that minimize the actual application metric.

Experimental results

Research questions

  • RQ1Can we directly minimize non-differentiable, non-decomposable loss functions such as average precision in deep neural networks, bypassing surrogate losses?
  • RQ2How can we compute the gradient of a non-smooth, discrete loss function with respect to neural network parameters in a non-linear model?
  • RQ3Does direct optimization of the application-specific loss (e.g., AP) lead to better generalization than surrogate loss training, especially under label noise?
  • RQ4Can the proposed dynamic programming-based gradient computation be efficiently scaled to large-scale vision tasks like object detection with thousands of bounding boxes?
  • RQ5How does direct loss minimization compare to structured SVMs and cross-entropy training in terms of performance and robustness to noisy labels?

Key findings

  • The proposed direct loss minimization method outperforms cross-entropy and hinge-loss baselines in action classification, achieving a 48.5% mean AP compared to 45.6% for cross-entropy and 47.6% for hinge-AP under clean labels.
  • In object detection with 20% label noise, the direct AP minimization (pos-AP) achieves a mean AP of 40.3%, significantly outperforming the hinge-AP baseline, which fails completely (0.0% mean AP).
  • The pos-AP method maintains strong performance under noise, with only a 10.2% drop in mean AP from clean to noisy settings, while hinge-AP collapses entirely under the same noise.
  • The method demonstrates superior robustness to label noise, with pos-AP maintaining 85.5% of its clean-label performance in object detection, compared to only 0% for hinge-AP.
  • The dynamic programming algorithm enables efficient gradient computation for non-decomposable losses, making direct optimization of AP feasible in deep networks.
  • In action classification, the direct loss method achieves a 48.5% mean AP, outperforming the strongest baseline (hinge-AP) by 0.9 points, demonstrating consistent gains in metric-optimized training.

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.