In standard machine learning, we are accustomed to subsampling data points via mini-batch Stochastic Gradient Descent (SGD). This simple act of sampling allows us to train deep networks on datasets containing millions of training examples. However, modern deep learning increasingly encounters a different kind of scale bottleneck: an explosion in the number of objectives or labels themselves.
This bottleneck typically manifests in two ways:
- Extreme Classification and Embedding Learning: When a model must choose among millions of categories (such as language modeling vocabularies, product recommendations, or fine-grained visual concepts), computing a standard softmax or evaluating all negative classes becomes computationally prohibitive.
- Multi-Objective Optimization (MOO) and Meta-Learning: When a model must simultaneously optimize hundreds or thousands of conflicting tasks, constraints, or regularizers (such as balancing accuracy against sparsity, or learning across millions of meta-learning tasks), computing the full gradient vector for every single objective at every step is impossible.
The core insight unifying this research direction is stochastic objective and label subsampling. By treating the space of labels or objectives as a distribution to be sampled, researchers have unlocked methods that make the computational cost per iteration independent of the total number of classes or objectives.
Decomposing the Label Space: Doubly Stochastic Learning
To understand why this works, let's first look at extreme classification. In a standard multi-class setup, the denominator of the softmax function requires summing over every single class in the vocabulary. If there are millions of classes, this single step breaks the memory and compute budget of modern hardware accelerators.
To bypass this, Michalis K. Titsias et al. proposed the One-vs-Each (OVE) approximation in One-vs-Each Approximation to Softmax for Scalable Estimation of Probabilities. By decomposing the multiclass objective into a product of pairwise comparisons, the authors enabled "doubly stochastic" training. Instead of just sampling a mini-batch of data, the algorithm simultaneously samples a small subset of negative classes. Because the gradient update cost depends only on the size of this sampled subset, the total number of categories no longer dictates the computational complexity.
This principle of aggressive negative sampling has been widely adopted across different architectures:
- Binary Reductions & Embeddings: Bikash Joshi et al. demonstrated in Aggressive Sampling for Multi-class to Binary Reduction with Applications to Text Classification that pairing each instance with a tiny, fixed number of adversarial negative classes preserves the accuracy of multi-class to binary reductions while drastically lowering complexity. Similarly, in embedding learning, Lanqing He et al. developed D-Softmax in Softmax Dissection: Towards Understanding Intra- and Inter-Class Objective for Embedding Learning, showing that decoupling intra-class tightness from inter-class separation allows negative class sampling to achieve up to a 64x speedup without degrading representation quality.
- Contrastive Vision Models: In large-scale visual pre-training like CLIP, models often treat every image as a unique class, ignoring shared semantics. To scale up multi-label cluster discrimination to millions of categories, Xiang An et al. utilized partial evaluation of the fully connected layer by randomly sampling a fraction of negative classes at each step in Multi-label Cluster Discrimination for Visual Representation Learning.
- Probabilistic Models: The strategy even extends to non-parametric Bayesian frameworks. Florian Wenzel et al. applied class subsampling to Gaussian Process classification in Multi-Class Gaussian Process Classification Made Conjugate: Efficient Inference via Data Augmentation, and Aristeidis Panos et al. leveraged a doubly stochastic variational inference scheme in Large scale multi-label learning using Gaussian processes, evaluating all positive labels but only a random subset of negative labels to keep inference tractable.
Scaling Multi-Objective Landscapes via First-Order Gradients
The exact same mathematical bottleneck occurs when moving from a single objective with many labels to a system with many distinct optimization objectives. Historically, multi-objective optimization (MOO) relied on derivative-free evolutionary algorithms. However, these methods completely fail to scale when a deep neural network contains millions of parameters.
The breakthrough came from transitioning MOO to first-order, gradient-based frameworks. As surveyed by Sebastian Peitz et al. in Multi-objective Deep Learning: Taxonomy and Survey of the State of the Art, gradient-based MOO techniques achieve convergence rates comparable to standard single-objective training, allowing them to navigate complex trade-off landscapes efficiently.
To make this practical on modern hardware, libraries like LibMOON, introduced by Xiaoyuan Zhang et al. in LibMOON: A Gradient-based MultiObjective OptimizatioN Library in PyTorch, provide GPU-accelerated engines to compute these trade-offs across millions of parameters. For instance, Augustina C. Amakor et al. used a gradient-based predictor-corrector continuation method in A multiobjective continuation method to compute the regularization path of deep neural networks to map out the entire regularization path (the trade-off between accuracy and sparsity) of deep convolutional networks, a feat previously impossible with zero-order methods.
Why It Works: Stochastic Pareto Stationarity
If we only sample a few objectives or a few negative classes at a time, why doesn't the optimization process descend into chaotic noise? Why does it converge to a globally meaningful solution?
The answer lies in the concept of Stochastic Pareto Stationarity. In multi-objective optimization, a solution is Pareto optimal if you cannot improve one objective without degrading another. When we compute gradients over a small mini-batch of tasks or objectives rather than the full set, we are computing a stochastic estimate of the multi-objective landscape.
Runsheng Yu et al. proved in Enhancing Meta Learning via Multi-Objective Soft Improvement Functions that by using a specialized "soft improvement function," multi-objective solvers can maintain Pareto stationarity even when gradients are calculated from small subsets of tasks. The expectation of these stochastic updates still points in a direction that guarantees no task is left behind, allowing meta-learning frameworks to scale to millions of tasks.
A similar intuition applies to continuous spatial constraints. In Scalable multi-class sampling via filtered sliced optimal transport, Corentin Salaün et al. tackled the problem of optimizing thousands of simultaneous distribution constraints for multi-class point sampling. Instead of evaluating every constraint, the authors treated the set of constraints as a distribution itself. By randomly selecting just a single subclass and a single projection axis per iteration, the memory footprint remains entirely constant, yet the system converges to a globally optimized, high-quality multi-class configuration.
Summary of Intuition
Whether dealing with millions of negative labels in a classification layer or thousands of tasks in a meta-learning network, the solution to the scaling bottleneck is the same: do not evaluate everything at once. By designing objectives that decompose into pairwise or independent components, and by leveraging first-order gradient methods that respect stochastic Pareto stationarity, we can substitute full-batch evaluations with smart, randomized subsampling. This keeps the computational footprint constant and brings massive, high-dimensional trade-off landscapes within reach of standard deep learning hardware.
Key Foundational Work
One-vs-Each Approximation to Softmax for Scalable Estimation of Probabilities (2016) — contributed 2 concept elements to this direction.
Aggressive Sampling for Multi-class to Binary Reduction with Applications to Text Classification (2017) — contributed 1 concept elements to this direction.