Skip to main content
QUICK REVIEW

[Paper Review] Negative Log Likelihood Ratio Loss for Deep Neural Network Classification

Donglai Zhu, Hengshuai Yao|arXiv (Cornell University)|Apr 27, 2018
Neural Networks and ApplicationsComputer Science17 citations
TL;DR

This paper proposes a discriminative loss function, Negative Log Likelihood Ratio (NLLR), which directly compares the predicted probability of the correct class against competing classes in deep neural network classification. By minimizing the negative log ratio of correct-to-incorrect class probabilities, NLLR improves generalization and achieves a 6.09% accuracy gain over cross-entropy on the challenging CIFAR-10 dataset, while performing comparably on easier MNIST.

ABSTRACT

In deep neural network, the cross-entropy loss function is commonly used for classification. Minimizing cross-entropy is equivalent to maximizing likelihood under assumptions of uniform feature and class distributions. It belongs to generative training criteria which does not directly discriminate correct class from competing classes. We propose a discriminative loss function with negative log likelihood ratio between correct and competing classes. It significantly outperforms the cross-entropy loss on the CIFAR-10 image classification task.

Motivation & Objective

  • To address the limitation of cross-entropy loss, which is generative and does not explicitly discriminate between correct and competing classes.
  • To develop a discriminative training criterion that directly optimizes the ratio of correct-class to incorrect-class probabilities.
  • To improve model generalization and robustness in complex, noisy classification tasks where class boundaries are ambiguous.
  • To empirically validate the superiority of the proposed NLLR loss over standard cross-entropy and binary cross-entropy on benchmark image datasets.

Proposed method

  • Proposes a new loss function based on the negative log likelihood ratio between the correct class and all competing classes.
  • The loss is defined as −log[P(correct|𝑥)/P(incorrect|𝑥)], which encourages high confidence in the correct class relative to others.
  • The model is trained using stochastic gradient descent (SGD) to minimize the NLLR loss over mini-batches of training data.
  • The output layer uses a softmax activation to produce posterior probability estimates for all C classes.
  • The method assumes uniform prior distributions over features and labels, allowing equivalence to maximum likelihood under these assumptions.
  • Empirical evaluation is conducted on MNIST and CIFAR-10 using identical CNN architectures to isolate the effect of the loss function.

Experimental results

Research questions

  • RQ1Does a discriminative loss function based on likelihood ratios outperform generative cross-entropy in deep learning classification?
  • RQ2How does NLLR perform on easy vs. challenging image classification tasks like MNIST and CIFAR-10?
  • RQ3Can NLLR reduce overfitting and improve generalization compared to standard cross-entropy loss?
  • RQ4What is the impact of training duration on NLLR convergence and test performance?

Key findings

  • On the MNIST dataset, NLLR achieved a test accuracy of 99.28%, matching the performance of cross-entropy (99.28%) and binary cross-entropy (99.27%).
  • On the more challenging CIFAR-10 dataset, NLLR achieved a test accuracy of 86.01%, significantly outperforming cross-entropy (79.92%) and binary cross-entropy (80.01%).
  • The NLLR loss function showed stable training and test performance over 500 epochs, with no signs of overfitting, unlike cross-entropy which began to degrade after 100 epochs.
  • The improvement on CIFAR-10 indicates that NLLR is particularly effective in scenarios where correct and competing class probabilities are close, making discrimination critical.
  • The training and test losses for NLLR remained stable and continued to improve over 500 epochs, suggesting better optimization dynamics and generalization.
  • The results confirm that discriminative training via likelihood ratio maximization leads to superior model optimization in complex, real-world classification tasks with noisy or ambiguous data.

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.