RanSOM: Second-Order Momentum with Randomized Scaling for Constrained and Unconstrained Optimization

summary

Video file (mp4)

The gist

The gist: RanSOM recovers optimal convergence rates for non-convex stochastic optimization by replacing deterministic step sizes with randomized steps drawn from distributions with mean ηt, which

In short

RanSOM introduces Randomized Second-Order Momentum to fix bias in non-convex optimization by replacing fixed step sizes with randomized ones drawn from distributions with mean $\eta_t$. This eliminates curvature-induced bias using Stein's identities and avoids costly auxiliary queries, achieving optimal convergence rates for both unconstrained and constrained problems.

Key concepts

Curvature-Induced Bias
Standard momentum methods suffer because the historic momentum vector becomes a poor estimate of the current geometry due to function curvature. This leads to estimation errors proportional to $\nabla^2 f(x_{t-1} + \tau (x_t - x_{t-1}))$, which biases the optimization path away from the true minimum.
Randomized Second-Order Momentum
RanSOM treats the step size as a random variable, $s_t$, instead of a fixed value. By using distributions with mean $\eta_t$, it allows for 'statistical integration' of the Hessian using Stein's Lemma to calculate an unbiased estimate of the curvature bias without needing extra look-ahead points.
Stein-Type Identities
These mathematical identities are used to relate the expected change in gradients along a path to a single point-derivative. They allow RanSOM to compute exact, unbiased estimates of the Hessian's effect on the gradient using only one Hessian-Vector Product (HVP) at each step.
Universal Geometric Framework
This framework unifies the randomized correction with Linear Minimization Oracle (LMO) updates. It allows RanSOM to generalize standard optimizers like Normalized SGD and SignSGD by coupling them with spectral constraints, making it applicable across different optimization settings.

Terminology used across episodes

This episode discusses

The paper

RanSOM: Second-Order Momentum with Randomized Scaling for Constrained and Unconstrained Optimization · Read on arXiv

El Mahdi Chayti

EPFL

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Today's paper: "RanSOM: Second-Order Momentum with Randomized Scaling for Constrained and Unconstrained Optimization".

Jane: The gist: RanSOM recovers optimal convergence rates for non-convex stochastic optimization by replacing deterministic step sizes with randomized steps drawn from distributions with mean ηt,

Tom: First, who's behind it and why it matters.

Title and authors: Tom: So we're looking at RanSOM today, which is this paper about second-order momentum with randomized scaling for constrained and unconstrained optimization. It addresses that big problem where standard momentum methods get biased because of the curvature in non-convex settings.

Jane: Exactly. They show that these traditional methods limit convergence to a suboptimal O(epsilon minus four) rate, and they point out that fixing this bias usually means you either need expensive auxiliary sampling or you have to assume strong smoothness conditions on the function or the Hessian itself.

Lu: What’s really interesting is how they replace those fixed step sizes with randomized steps drawn from distributions with mean eta sub t. That randomization lets them use Stein-type identities to get an exact, unbiased estimate of that momentum bias using just one Hessian-vector product computed jointly with the gradient, which avoids those extra queries.

Meng: So it’s trying to fix the bias without adding new computational overhead or demanding heavy mathematical assumptions on the function's smoothness. That sounds like a big win for practical AI training setups where you can't always guarantee perfect smoothness or cheap auxiliary computations.

Lalam: It really feels like they are building a framework that is robust across different optimization scenarios, whether you’re in an unconstrained setting or dealing with constraints. They introduce two specific algorithms, RanSOM-E for unconstrained optimization and RanSOM-B for constrained optimization, using exponentially distributed steps and beta-distributed steps respectively to keep things feasible.

Tom: Right, so the paper is proposing this unified framework called RanSOM to eliminate that lag in the estimator between your historic momentum vector and the current gradient. They show that by treating step size st as a random variable where Est equals eta sub t, you can use Stein’s Lemma to get an unbiased estimate of the curvature bias using just one Hessian-vector product at the next iterate.

Jane: The core mechanism involves two Stein-type identities, one for unconstrained optimization and one for constrained optimization. For unconstrained problems, they use an Exponential Identity where scaling the Hessian-vector product at xt plus one by eta sub t yields an unbiased estimator of the gradient difference.

Lu: And for constrained optimization, they employ a Beta Identity where the Hessian-vector product needs to be reweighted by that term (one minus s over k) to make it unbiased. This shows how they adapt the correction mechanism based on whether you are dealing with a standard unconstrained problem or one with constraints.

Meng: I see how that relates to their efficiency claim too. They avoid auxiliary queries, which is usually a headache in these kinds of corrections, and they only need one Hessian-vector product at xt plus one, which is already computed for the next gradient step. That sounds much more practical for large scale systems.

Lalam: It’s also important to note what they say about their performance guarantees under generalized assumptions. They confirm that RanSOM achieves the optimal O(epsilon minus three) sample complexity under standard bounded variance assumptions, and they extend this robustness even when you move into heavy-tailed gradient noise, specifically for p in (one two] <ref:2602.06824#pg2>.

Title and authors: Tom: That extension is significant because it means you don't necessarily need the Hessian to be Lipschitz continuous to get these good convergence rates. The analysis relies on pointwise L0 smoothness and Affine Heavy–Tailed Noise assumptions, which capture a lot of the complexity we see in deep learning dynamics.

Jane: But what about real-world training? The paper tests RanSOM-E variants on benchmarks like MNIST1D, where RanSOM-E with Muon steps outperformed STORM by achieving a peak accuracy of ninety-one point nine zero percent with significantly lower variance compared to STORM.

Lu: And for constrained tasks, they tested RanSOM-B on MovieLens and found that the beta-distributed steps effectively navigate complex constraint geometries better than those deterministic step sizes, leading to the lowest final average RMSE in those scenarios.

Meng: So practically speaking, this means if you're trying to solve a complex constrained problem without using gradient clipping for stability, this framework offers a way to do it more reliably. That’s a big deal for deployment on things that have real-world constraints.

Lalam: The generalization part is also strong; they show that RanSOM naturally aligns with modern optimization paradigms. For instance, with an L2-ball Linear Minimization Oracle, you recover Normalized SGD, and with an L infinity-ball oracle, you recover SignSGD based on spectral constraints.

Tom: It really shows how this single framework can adapt to different geometric constraints just by changing the oracle you plug in. The main point of the RanSOM paper is that it gives us a way to correct second-order bias without needing those restrictive smoothness assumptions or incurring those extra query costs that other methods demand.

Jane: To wrap up, RanSOM provides a unified framework for non-convex optimization by treating step sizes as random variables to enable robust second-order bias correction without Lipschitz assumptions on the Hessian or the typical computational overhead of auxiliary sampling.

Lu: It’s about achieving optimal rates by balancing the drift against three candidate error sources—main variance, constraint, and smoothness—and setting the step size eta to minimize that drift. This leads to a convergence bound that matches the optimal O(T minus one over three) scaling for p equals q equals two.

Meng: I just want to emphasize that this works even under heavy-tailed noise without requiring gradient clipping, which is something we've struggled with before. That’s a practical win for training stability and generalization.

Lalam: This RanSOM paper really shows how we can extend the benefits of randomized second-order corrections to projection-free optimization settings, confirming its effectiveness on complex non-convex tasks like Matrix Completion.

Tom: So, in short, RanSOM gives us a way to get optimal convergence rates by replacing deterministic step sizes with randomized steps drawn from distributions with mean eta sub t. We're looking at this as a powerful tool for getting better results from momentum methods in deep learning.

The paper's summary: Tom: So, to recap, RanSOM is this new method for optimization that fixes the bias in momentum using randomized step sizes instead of fixed ones, which cuts out those extra queries you usually have to make.

Jane: Exactly. They’re taking this concept and making it work both for unconstrained problems and constrained problems with two different approaches: one using exponential distributions and one using beta distributions for the steps.

Lu: The core idea they use is Stein-type identities, which are mathematical tools that let them estimate the curvature bias exactly, without needing to assume the function or its Hessian is perfectly smooth everywhere.

Meng: So it’s about replacing those fixed step sizes with random variables whose average value matches what you want, but the randomness itself helps correct for how curvy the landscape is in a non-convex setting.

Tom: And here's where it gets practical: they show that this approach achieves the optimal convergence rate of O of epsilon minus three under standard conditions, which is pretty good for deep learning training.

Jane: But what really catches my eye is how they handle the "heavy-tailed noise" part, showing that this works even when your gradient noise isn't nice and clean, like it can have fat tails.

Lu: They manage to do this without needing any of those strong assumptions you usually have to make about the Hessian being Lipschitz continuous, which is a big win for real-world scenarios where we don't know the exact shape of the model landscape.

Meng: From an engineering standpoint, avoiding auxiliary look-ahead points and only needing one Hessian-vector product at each step is a massive relief for computational efficiency.

Tom: And they show that it works with these different geometric constraints too, meaning you can use this same framework to recover things like Normalized SGD or SignSGD just by plugging in a different type of oracle.

Jane: It’s really about unifying the correction mechanism so that you don't have to switch between methods just because your problem suddenly gets constrained or noisy.

Lu: The implication here is that we can get more robust convergence guarantees for non-convex optimization without having to spend weeks analyzing every single function we use.

Tom: So, if you’re training something complex and you’re worried about momentum getting stuck in the wrong direction because of the local curvature, RanSOM offers a way to fix that bias efficiently and robustly.

The paper's improvements: Tom: So, we’re looking at what they suggest to improve RanSOM itself—basically how they can make the whole system even better than it already is.

Jane: They are focusing on making sure that the step size eta is chosen in a way that balances three different error sources: the main variance, any constraint issues, and the smoothness of the function.

Lu: The paper suggests optimizing that step size eta to minimize that total drift across all those error sources at every single iteration.

Meng: So instead of just picking a standard step size, RanSOM would dynamically adjust it based on how noisy or curvy things are right then and there to keep the convergence path as direct as possible.

Tom: And this dynamic adjustment helps them hit that optimal convergence rate we talked about earlier, matching that big O of T minus one over three scaling for p equals q equals two.

Jane: But they also show how this dynamic choice makes the method more robust against different types of noise, even when the gradient noise has those heavy tails we mentioned.

Lu: This means the framework isn't just good under perfect conditions; it keeps working well in real-world deep learning scenarios where things are messy.

Meng: From an engineering view, this means less hyperparameter tuning because the method is self-correcting for the step size, which is a huge practical win.

Tom: And they point out that by choosing eta this way, you get better results even in those tricky constrained environments where deterministic steps just struggle to navigate the geometry.

Jane: It really suggests that you don’t have to rely on external methods like gradient clipping if you use a framework like RanSOM because it handles those issues internally through the step size adjustment.

Lu: The implication here is that we can build more reliable optimization algorithms for complex tasks without needing incredibly strict assumptions about the underlying function's smoothness or structure.

Meng: So, this isn't just a theoretical fix for a paper; it’s an architectural improvement that makes AI systems training more stable and predictable across different problem types.

Tom: It sounds like they are pushing toward a system where the optimization process adapts to the data landscape in real time, rather than sticking to one fixed strategy.

Conclusion: Tom: So we’ve covered RanSOM, which is this paper about second-order momentum using randomized scaling to fix estimation bias in optimization without needing extra queries or strict smoothness assumptions on the function.

Jane: It really boils down to treating step sizes as random variables drawn from specific distributions, like exponential or beta distributions, and then using Stein’s Lemma to correct the curvature bias accurately.

Lu: The authors show that this leads to optimal convergence rates, specifically O of T minus one over three when p equals q equals two.

Meng: From an engineering standpoint, the biggest thing is that you get these strong theoretical guarantees without needing expensive auxiliary samples or worrying about the Hessian being Lipschitz continuous.

Tom: And they also show it works well even when you’re dealing with heavy-tailed gradient noise, which is a major hurdle in deep learning training today.

Jane: It changes how we think about optimization because it provides a unified framework that handles both unconstrained and constrained problems effectively with the same underlying logic.

Lu: The vision here is that we can build more robust AI systems for complex tasks without having to constantly worry about the exact mathematical smoothness of the model landscape.

Meng: For practical deployment, this means we can trust our optimization trajectories more because the method is designed to be self-correcting for those common instabilities.

Tom: So, in summary, RanSOM gives us a way to get better convergence rates by replacing deterministic step sizes with randomized steps drawn from distributions with mean eta sub t.

Jane: It’s a powerful tool that avoids the usual computational overhead and the need for auxiliary queries when dealing with second-order corrections in non-convex settings.

Lu: This work opens up possibilities for developing more stable and reliable AI training algorithms across a wider variety of complex models.

Meng: If we can make optimization this robust, it really lowers the barrier for deploying large, complex AI systems into real-world applications with tight constraints.

Tom: RanSOM is a significant step forward in making second-order methods more practical and generalizable than they’ve ever been before.

More episodes

← Home