Introduction
Many modern machine learning tasks—ranging from Extreme Classification (XC) with millions of labels to Contrastive Learning paradigms like CLIP—rely heavily on the Log-Sum-Exponential (LogSumExp) function. However, when the explicit summation inside the logarithm spans a gargantuan number of items, it becomes computationally prohibitive to evaluate. To handle this, researchers abstract the problem into a Log-Expectation-Exponential (Log-E-Exp) function, framing it as compositional entropic risk minimization.
While this abstraction is mathematically elegant, optimizing Log-E-Exp objectives introduces severe algorithmic hurdles. To address these limitations, recent research introduces SCENT (Stochastic optimization of Compositional ENTropic risk), a geometry-aware stochastic algorithm that achieves state-of-the-art convergence rates and superior numerical stability by respecting the exponential geometry of the problem.
The Challenges of Entropic Risk
Optimizing compositional entropic risk using standard stochastic methods is notoriously difficult due to three fundamental bottlenecks:
- Inherent Bias: Simply using a mini-batch to estimate the inner expectation of the Log-E-Exp function leads to biased gradients. This bias can stall the optimization process and prevent the model from converging to an optimal solution.
- Numerical Instability: Dealing with raw exponential functions frequently leads to catastrophic numerical overflow (exploding values) or vanishing gradients, causing training runs to crash or stagnate.
- Slow Convergence Rates: Existing compositional optimization techniques often suffer from sub-optimal convergence rates (e.g., $O(1/T^{1/4})$). On massive, real-world datasets, this sluggishness translates to unacceptably long training times.
Methodology: The SCENT Algorithm
To overcome these challenges, the authors of SCENT pivot away from attacking the Log-E-Exp objective directly. Instead, they leverage a dual "min-min" formulation. This transforms the objective into a joint optimization problem over two variables: the model weights ($w$) and a dual variable ($\nu$).
The breakthrough of SCENT lies in how it updates this dual variable. Rather than relying on standard Gradient Descent, the algorithm employs Stochastic Proximal Mirror Descent (SPMD).
The Geometry Match
The critical insight is that the dual variable in entropic risk optimization exists in a space where "distance" should be measured exponentially, not linearly. Standard Euclidean distance—the backbone of Stochastic Gradient Descent (SGD)—fails to capture the steep, exponential curvature of the objective.
SCENT addresses this by equipping the SPMD update with a Bregman divergence induced by a negative exponential function ($\phi(\nu) = e^{-\nu}$). By using a geometry-aware mirror descent, the algorithm naturally aligns with the objective's shape. Furthermore, this specific choice yields a closed-form update for $\nu$ that uses logarithms to mathematically cancel out the exponentials, effectively neutralizing the threat of numerical overflow.
Empirical Evaluation and Key Results
The research team evaluated SCENT across a diverse array of challenging, large-scale benchmarks, including:
- Extreme Classification: Glint360K (360,000 face identities) and TreeOfLife-10M (160,000 biological species).
- Partial AUC Maximization: Imbalanced variants of CIFAR-10 and CIFAR-100.
- Contrastive Learning: DFN-14M for training CLIP-style vision-language models.
- Distributionally Robust Optimization (DRO): California Housing and Abalone datasets.
Closing the Convergence Gap
For years, compositional optimization was assumed to be fundamentally slower than standard stochastic optimization. SCENT shatters this assumption. The authors theoretically prove that, for convex problems, SCENT recovers the optimal $O(1/\sqrt{T})$ convergence rate. Furthermore, they demonstrate that SPMD is exponentially more efficient than standard SGD for updating the dual variable, particularly in "high-risk" regimes where the values inside the exponential are large.
Performance Against Baselines
In practice, SCENT consistently outperformed established baselines like Biased SGD (BSGD), Alternating SGD (ASGD), and SOX.
- Superior Generalization: On the massive TreeOfLife-10M dataset, SCENT achieved significantly lower cross-entropy loss than all competing baselines, demonstrating better generalization on both training and validation sets.
- Robust CLIP Training: SCENT matched or slightly exceeded the performance of state-of-the-art methods like FastCLIP on zero-shot ImageNet accuracy and retrieval tasks. Crucially, it remained highly robust, whereas ASGD-type methods frequently failed due to numerical instability.
- Computational Efficiency: Because SCENT maintains a "single-loop" structure, it avoids expensive inner-loop iterations, making it highly efficient for massive datasets.
Limitations and Future Directions
While SCENT delivers excellent empirical results in deep learning (which is inherently non-convex), the rigorous theoretical proof of its $O(1/\sqrt{T})$ convergence rate is currently limited to the convex setting. Extending this theoretical guarantee to non-convex landscapes remains an important next step.
Additionally, the current formulation requires maintaining a dual variable $\nu_i$ for every sample in the dataset. While this $O(n)$ memory requirement is manageable for datasets with millions of samples, it becomes a bottleneck for truly infinite data streams ($n = \infty$). To circumvent this, future work could explore using a lightweight neural network to predict the dual variable $\nu$ based on input features, eliminating the need to store a discrete variable for every individual data point.
Summary updated