Aligning Distributionally Robust Optimization with Practical Deep Learning Needs

Dmitrii Feoktistov, Igor Ignashin, Andrey Veprikov, Nikita Borovko, Alexander Bogdanov, Savelii Chezhegov, Aleksandr Beznosikov · OpenReview

Abstract

While traditional Deep Learning (DL) optimization methods treat all training samples equally, Distributionally Robust Optimization (DRO) adaptively assigns importance weights to different samples. However, a significant gap exists between DRO and current DL practices. Modern DL optimizers require adaptivity and the ability to handle stochastic gradients, as these methods demonstrate superior performance. Additionally, for practical applications, a method should allow weight assignment not only to individual samples, but also to groups of objects (for example, all samples of the same class). This paper aims to bridge this gap by introducing ALSO – Adaptive Loss Scaling Optimizer – an adaptive algorithm for a modified DRO objective that can handle weight assignment to sample groups. We prove the convergence of our proposed algorithm for non-convex objectives, which is the typical case for DL models. Empirical evaluation across diverse Deep Learning tasks, from Tabular DL to Split Learning tasks, demonstrates that ALSO outperforms both traditional optimizers and existing DRO methods.

Introduction

Standard deep learning training typically relies on Empirical Risk Minimization (ERM), which assumes all training samples contribute equally to the final model. In real-world scenarios, this assumption often fails due to class imbalance, noisy labels, or data sourced from heterogeneous distributions. Distributionally Robust Optimization (DRO) addresses this by optimizing for the "worst-case" distribution rather than the average case.

Despite its theoretical appeal, DRO has seen limited adoption in practical deep learning due to three primary hurdles: a lack of adaptivity (most DRO methods use SGD-style updates), the inherent non-convexity of neural networks, and difficulties in scaling to standard mini-batch pipelines—especially when assigning weights to groups of data rather than individual samples.

The ALSO Framework

To bridge the gap between DRO theory and deep learning practice, we introduce the Adaptive Loss Scaling Optimizer (ALSO). The framework is built on two main pillars designed to maintain the efficiency of modern optimizers while incorporating robustness.

1. Adaptive Parameter Updates

ALSO utilizes Adam-like adaptive updates for model parameters ($\theta$). This ensures the optimizer retains the fast convergence properties and stability that practitioners expect from state-of-the-art deep learning tools.

2. Stochastic Weight Learning via Optimistic Mirror-Prox

Instead of treating data weights ($\pi$) as fixed hyperparameters, ALSO treats them as variables in a minimax game. It employs an Optimistic Mirror-Prox approach—utilizing "negative momentum"—to update these weights stochastically. This allows the optimizer to dynamically identify which data groups are the most challenging (the worst-case distribution) and scale their loss accordingly during training.

The ALSO algorithm detailing the iterative updates for parameters and distribution weights.

Crucially, ALSO supports group-based weighting. This allows practitioners to assign weights to entire classes or data sources without needing to compute the loss for the entire group at every step, making it fully compatible with standard mini-batch training pipelines.

Experimental Evaluation

We evaluated ALSO across a diverse range of tasks to demonstrate its versatility and robustness:

  • Computer Vision: On CIFAR-10 with extreme class imbalance (50x difference between groups), ALSO maintained significantly higher F1-scores than standard AdamW or simple upsampling techniques.
  • Tabular Data: In a head-to-head comparison across 14 tabular datasets characterized by heavy tails and distribution shifts, ALSO achieved the best performance on the majority of tasks.
  • Adversarial Robustness: When tested against a battery of adversarial attacks on MNIST, ALSO produced models with higher average accuracy across all attack types compared to standard adaptive optimizers.
  • Split Learning: Evaluation on fine-grained classification tasks like Food101 and Flowers102 further confirmed its efficacy in distributed learning contexts.

Key Insights

  • The "Negative Momentum" Advantage: The use of negative momentum from the Optimistic Mirror-Prox framework acts as a key stabilizer. It prevents weight updates from becoming too volatile, which is critical when dealing with the noisy gradients typical of stochastic mini-batch training.
  • Negligible Overhead: One of the most striking findings is that ALSO’s computational overhead is minimal. The time required to update the weight vector $\pi$ is mathematically insignificant compared to the standard forward-backward passes of a neural network.
  • Theoretical Rigor: Unlike heuristic re-weighting methods, ALSO provides a rigorous theoretical convergence proof for non-convex objectives, matching the complexity bounds of standard stochastic gradient descent-ascent (SGDA) methods.

Conclusion and Future Work

ALSO successfully aligns the principles of Distributionally Robust Optimization with the practical needs of modern deep learning. However, its effectiveness is highly dependent on meaningful data grouping; arbitrary groups do not yield the same robustness benefits.

Furthermore, while DRO improves worst-case performance, there is a potential societal risk that it could amplify existing biases if the "worst-case" distribution aligns with a biased subgroup. Future research will focus on integrating ALSO with formal fairness constraints to ensure that robustness and equity are achieved simultaneously.

Summary updated

BibTeX
@inproceedings{feoktistov2025aligning,
  author = {Dmitrii Feoktistov and Igor Ignashin and Andrey Veprikov and Nikita Borovko and Alexander Bogdanov and Savelii Chezhegov and Aleksandr Beznosikov},
  title = {{Aligning Distributionally Robust Optimization with Practical Deep Learning Needs}},
  booktitle = {OPT @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=lsCNRHwssD},
}

Loading related content...

Figure