Skip to main content
QUICK REVIEW

[Paper Review] Minimizing the Maximal Loss: How and Why?

Shai Shalev‐Shwartz, Yonatan Wexler|arXiv (Cornell University)|Feb 4, 2016
Machine Learning and AlgorithmsComputer Science20 references41 citations
TL;DR

This paper proposes a meta-algorithm, FOL (Follow the Optimal Loss), that converts any online learning algorithm into one that minimizes the maximal loss on training data. By framing the problem as a zero-sum game and using iterative updates over loss weights, FOL achieves faster convergence and better generalization than standard SGD, especially on rare or hard examples, with empirical results showing near-zero training error and improved test performance.

ABSTRACT

A commonly used learning rule is to approximately minimize the \emph{average} loss over the training set. Other learning algorithms, such as AdaBoost and hard-SVM, aim at minimizing the \emph{maximal} loss over the training set. The average loss is more popular, particularly in deep learning, due to three main reasons. First, it can be conveniently minimized using online algorithms, that process few examples at each iteration. Second, it is often argued that there is no sense to minimize the loss on the training set too much, as it will not be reflected in the generalization loss. Last, the maximal loss is not robust to outliers. In this paper we describe and analyze an algorithm that can convert any online algorithm to a minimizer of the maximal loss. We prove that in some situations better accuracy on the training set is crucial to obtain good performance on unseen examples. Last, we propose robust versions of the approach that can handle outliers.

Motivation & Objective

  • To address the limitations of minimizing average loss in deep learning, particularly slow convergence on hard examples.
  • To demonstrate that minimizing maximal loss can lead to better generalization, especially when rare or hard examples significantly impact performance.
  • To develop a robust, efficient algorithm that focuses on the most difficult training examples without being sensitive to outliers.
  • To show that high accuracy on all training examples—including rare ones—is crucial for good performance on unseen data.

Proposed method

  • FOL formulates minimizing the maximal loss as a zero-sum game between a weight vector p over examples and a model parameter w.
  • It uses online gradient descent on w and multiplicative weight updates on p to iteratively minimize the maximum loss.
  • The algorithm maintains a distribution p over training examples, focusing updates on those with high loss.
  • At each iteration, the model is updated using SGD on a batch sampled according to p, and p is updated to emphasize misclassified or high-loss examples.
  • The method is robustified by introducing a smoothed loss function and using a logarithmic barrier to avoid extreme weights.
  • Theoretical analysis shows that FOL converges to a solution with low maximal loss, even when the data contains outliers.

Experimental results

Research questions

  • RQ1Can we efficiently minimize the maximal loss in online learning settings where standard SGD struggles with convergence on hard examples?
  • RQ2Does minimizing the maximal loss lead to better generalization than minimizing average loss, especially on rare or hard-to-classify examples?
  • RQ3Can we design a meta-algorithm that converts any online learner into a maximal-loss minimizer without sacrificing training efficiency?
  • RQ4How does the performance of maximal-loss minimization compare to AdaBoost and other ensemble methods in practice?
  • RQ5Can robust variants of maximal-loss minimization handle outliers while maintaining strong generalization performance?

Key findings

  • FOL achieved zero training error after 27 epochs, while SGD required over 14,000 epochs to reach 0.1313% error, demonstrating significantly faster convergence.
  • FOL achieved a test error of 0.14%, outperforming SGD’s 0.35% error even after extensive training, showing improved generalization.
  • FOL’s convergence is driven by focusing on informative examples—only 984 out of 246,000 examples were hard, and FOL efficiently targeted them.
  • FOL’s final hypothesis achieved zero training error, whereas AdaBoost’s ensemble of 10 weak learners required 20 epochs and was 10× slower at inference.
  • Theoretical analysis shows that minimizing maximal loss can be more effective than average loss when rare examples are critical for generalization.
  • Robust variants of FOL maintain performance under data outliers, demonstrating that maximal loss minimization can be made resilient through smoothing and regularization.

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.