NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Better generalization with less data using robust gradient descent

Matthew J. Holland, Kazushi Ikeda

Standard gradient descent struggles when training data contains outliers or heavy-tailed noise, often requiring massive datasets to generalize well. This paper introduces Robust Gradient Descent (RGD), a method that replaces the standard empirical mean of gradients with a computationally cheap, coordinate-wise robust M-estimate. This approach allows models to generalize better with significantly less data, without needing prior knowledge of the underlying data distribution.

The Problem with Standard Gradient Descent

Machine learning typically relies on Empirical Risk Minimization (ERM) solved via Gradient Descent (GD). Standard GD updates use the simple average (empirical mean) of the gradients across a batch of data. However, the empirical mean is notoriously sensitive to heavy-tailed data—datasets containing extreme outliers or high variance.

When data isn't perfectly well-behaved (i.e., not sub-Gaussian), standard ERM-GD requires a massive amount of data to guarantee good generalization. While robust alternatives exist—such as optimizing a custom robust loss function or using "median-of-means" data partitioning—they come with severe drawbacks. They are often computationally expensive, scale poorly to high-dimensional models, require complex data splitting, and can turn a simple convex optimization problem into a non-linear nightmare. The goal is to find a method that is as easy to implement as standard GD, but robust to messy, real-world data distributions.

A New Approach: Robust Gradient Descent (RGD)

The authors propose a clever shift in perspective: instead of creating a complex robust loss function, they apply robust statistics directly to the gradients at each optimization step.

Their algorithm works through four main steps:

  1. Compute raw gradients: Calculate the standard loss gradients for the data points in the current batch.
  2. Estimate dispersion: Compute a rough, coordinate-wise estimate of the gradient's variance (scale).
  3. Robust truncation (M-estimation): Instead of taking a simple average, the algorithm computes a robust "center" (location) for each coordinate of the gradient. They use a smooth truncation technique based on the Gudermannian function. This "softly" down-weights extreme gradient values rather than discarding them entirely.
  4. Update: Feed this robust gradient estimate into a standard steepest descent update.

By decoupling the robustification from the objective function, the optimization landscape remains easy to navigate, while the gradient steps become highly resistant to errant data points.

Key Insights and Theoretical Guarantees

  • Robustify the gradient, not the loss: By estimating the gradient robustly rather than changing the global objective function, the algorithm avoids the computational bottlenecks and non-convexity issues associated with traditional robust ERM methods.
  • Exponential improvement in confidence: Theoretically, RGD achieves a statistical error bound that scales with $\log(1/\delta)$ (where $1-\delta$ is the confidence level). Standard ERM-GD scales with $1/\delta$. This means RGD provides exponentially higher reliability with fewer samples.
  • Weak assumptions required: The theoretical guarantees for RGD hold under very weak assumptions—the data only needs to have finite variance, rather than being strictly sub-Gaussian.
  • Best of both worlds: RGD effectively mimics standard GD when the data is clean (Gaussian) but automatically resists outliers when the data is heavy-tailed, requiring no manual tuning of the noise distribution.

Empirical Results

The authors evaluated their method on both synthetic and real-world datasets, including CIFAR-10, MNIST, and the Protein Homology dataset.

Speed and Scaling

In synthetic tests, RGD achieved similar excess risk to a state-of-the-art robust loss minimizer but was vastly faster as dimensionality increased. At $d=64$ parameters, RGD took a fraction of the time of the objective-based robust method.

Comparison of RGD and a robust loss minimizer (bjl) across dimensions.

Small Sample Efficiency

In regression tasks with heavy-tailed noise, RGD significantly outperformed Ordinary Least Squares (OLS) and recent median-of-means approaches. This was especially obvious at very small sample sizes ($n < 50$), where competing robust methods broke down.

Real-world Competitiveness

On CIFAR-10 and MNIST, a mini-batch version of RGD matched the performance of highly tuned Stochastic Gradient Descent (SGD) and Stochastic Variance-Reduced Gradient (SVRG). On the smaller, highly unbalanced Protein dataset, RGD significantly outperformed both competitors for a given budget of gradient computations.

Test error on the Protein dataset comparing RGD against SGD and SVRG.

Limitations and Future Work

Limitations: Calculating robust M-estimates for every coordinate at every step introduces computational overhead compared to the simple averaging of standard SGD. While much faster than robustifying the loss function, this per-coordinate overhead still scales with the dimensionality of the model, which could be a bottleneck for massive models.

Future Work: The authors note that their initial empirical tests are highly promising and suggest that investigating more efficient strategies for applying this robust gradient technique to ultra-high-dimensional data is the next logical step.

Summary updated

BibTeX
@inproceedings{holland2019better,
  author = {Matthew J. Holland and Kazushi Ikeda},
  title = {{Better generalization with less data using robust gradient descent}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure