[Paper Review] Ordered SGD: A New Stochastic Optimization Framework for Empirical Risk Minimization
This paper introduces Ordered SGD, a novel stochastic optimization framework that improves generalization by prioritizing samples with higher current losses during training. Unlike standard SGD, it uses a biased gradient estimator based on top-$q$ loss samples in each mini-batch, achieving sublinear convergence and improved test accuracy across logistic regression, SVM, and deep learning models.
We propose a new stochastic optimization framework for empirical risk minimization problems such as those that arise in machine learning. The traditional approaches, such as (mini-batch) stochastic gradient descent (SGD), utilize an unbiased gradient estimator of the empirical average loss. In contrast, we develop a computationally efficient method to construct a gradient estimator that is purposely biased toward those observations with higher current losses. On the theory side, we show that the proposed method minimizes a new ordered modification of the empirical average loss, and is guaranteed to converge at a sublinear rate to a global optimum for convex loss and to a critical point for weakly convex (non-convex) loss. Furthermore, we prove a new generalization bound for the proposed algorithm. On the empirical side, the numerical experiments show that our proposed method consistently improves the test errors compared with the standard mini-batch SGD in various models including SVM, logistic regression, and deep learning problems.
Motivation & Objective
- Address the limitation of uniform sampling in SGD, where all samples are treated equally despite varying importance during training.
- Improve generalization performance by focusing optimization on samples that are harder to classify or have higher current losses.
- Develop a computationally efficient alternative to importance sampling SGD that minimizes a new objective function rather than accelerating convergence.
- Provide theoretical guarantees for convergence and generalization in both convex and weakly convex (non-convex) settings.
- Demonstrate consistent improvements in test error across diverse models including deep neural networks, logistic regression, and SVMs.
Proposed method
- Proposes a new sampling strategy where, in each mini-batch, the top-$q$ samples with the highest current losses are selected for gradient computation.
- Constructs a biased gradient estimator using only the top-$q$ loss samples in a mini-batch, defined as $\tilde{g}^t \in \partial L_Q(\theta^t)$ with $L_Q(\theta^t) = \frac{1}{q}\sum_{i\in Q} L_i(\theta^t)$.
- Introduces a new objective function, the ordered empirical risk $L_q(\theta)$, which minimizes the average of the top-$q$ losses across the dataset.
- Uses standard SGD update rule with the top-$q$ gradient estimator: $\theta^{t+1} = \theta^t - \eta_t \tilde{g}^t$.
- The method is compatible with existing deep learning frameworks and can be extended to other optimization algorithms like Adam.
- Employs a two-stage process: random mini-batch sampling followed by greedy selection of top-$q$ loss samples for gradient computation.
Experimental results
Research questions
- RQ1Can focusing on high-loss samples during training improve generalization performance in machine learning models?
- RQ2Does a biased gradient estimator based on top-$q$ loss samples lead to better convergence and generalization than unbiased SGD?
- RQ3What is the theoretical convergence behavior of the proposed method for convex and weakly convex (non-convex) loss functions?
- RQ4How does the generalization performance of Ordered SGD compare to standard mini-batch SGD across different models and datasets?
- RQ5Can the proposed framework be extended to other optimization algorithms like Adam or AdaGrad?
Key findings
- Ordered SGD achieves sublinear convergence to a global optimum for convex loss functions and to a critical point for weakly convex (non-convex) loss functions.
- The method minimizes a new objective function, the ordered empirical risk $L_q(\theta)$, which is a modification of the standard empirical average loss.
- A new generalization bound is proven for Ordered SGD, applicable to general classification and regression problems.
- In numerical experiments, Ordered SGD consistently outperformed standard mini-batch SGD in test error across multiple models: SVM, logistic regression, and deep learning architectures.
- Even when using the best learning rate tuned for mini-batch SGD, Ordered SGD still achieved lower test error (e.g., 6.46% vs. 6.94% on CIFAR-10 with standard augmentation).
- The improvement was particularly strong under data augmentation (e.g., 7.85% improvement with mixup), indicating Ordered SGD's robustness to data augmentation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.