In machine learning, we typically rely on gradients—the "slope" of a function—to dictate how to update model parameters. But what happens when you cannot calculate a gradient? Imagine training a robot to walk in a complex simulator where the underlying physics equations are a "black box." This is the realm of Derivative-Free Optimization (DFO).
The classic tool for this is Gaussian Smoothing (GS). It works by perturbing the parameters with random noise sampled from a normal distribution, observing how the performance changes, and estimating a gradient from those samples. In a new paper, researchers ask a simple but profound question: Why must the noise be Gaussian?
By generalizing Gaussian Smoothing to allow perturbations from other distributions, the authors demonstrate that analytically choosing distributions that minimize the Mean Squared Error (MSE) of the gradient estimate leads to faster convergence and better performance in high-dimensional tasks—without any extra computational cost.
The Problem with Standard Gaussian Noise
Standard Gaussian Smoothing is effective but relies on a standard normal distribution ($\mathcal{N}(0, 1)$) to generate perturbations. In high-dimensional spaces, this "standard" noise can lead to high-variance gradient estimates, making optimization slow and unstable.
While researchers have developed more sophisticated versions—like Guided ES (which tilts noise toward successful past directions) or Orthogonal ES (which ensures noise directions are unique)—these methods are computationally expensive. They often require a Gram-Schmidt orthogonalization process, which significantly slows down every training iteration. The authors sought a way to improve gradient accuracy while keeping the algorithm as fast as basic random search.
Proposed Methods: Shrinkage and Bernoulli Noise
The authors' core insight is that optimization speed is directly tied to the Mean Squared Error (MSE) of the estimated gradient. They propose three new algorithmic variants:
- Bernoulli Smoothing (BeS): Instead of using a Gaussian bell curve, this method uses a Bernoulli distribution (flipping a coin to get +1 or -1). Bernoulli distributions have the lowest possible kurtosis (a measure of "tailedness"). Lower kurtosis mathematically leads to lower MSE by reducing the "noise in the noise."
- GS-shrinkage: The authors analytically solve for the optimal variance for Gaussian noise. As the number of dimensions ($d$) grows, the variance of the noise should actually shrink. They provide a simple formula: $\sigma^{2*} = L / (L + d + 1)$, where $L$ is the number of directions sampled.
- BeS-shrinkage: This combines both ideas, using Bernoulli noise and shrinking its scale based on the problem's dimensionality.
Crucially, these methods maintain a computational complexity of $O(Ld)$, exactly the same as standard Gaussian Smoothing.
Key Findings and Results
The researchers validated their theory across several domains, including Linear Regression, MuJoCo robotics benchmarks (like Ant and Walker2d), Meta-RL tasks, and Nevergrad DFO stress tests.
- Lower Error and Faster Convergence: In linear regression tests (where true gradients are known), GS-shrinkage and BeS-shrinkage consistently produced gradient estimates with significantly lower MSE than standard GS. This cleaner gradient directly translated to faster reductions in test loss.
- The Dimensionality Trap: In high-dimensional spaces (like neural networks with thousands of weights), a standard variance of 1 is often too "loud." Shrinking the variance in a principled way prevents the optimizer from getting lost.
- Efficiency for Free: You do not need complex orthogonalization to get better gradients. Simply changing the distribution provides gains comparable to much heavier algorithms. In their tests, Orthogonal ES was $3\times$ slower and Guided ES was $10\times$ slower than the proposed shrinkage methods.
- Competitive Robotics Performance: On the Ant locomotion task, the shrinkage methods outperformed all other baselines by a large margin. Even against computationally heavy "Guided" methods, the simpler BeS-shrinkage was often the winner, especially when the simulation budget was low.
Limitations and Future Work
While highly effective, shrinking the variance introduces a bias-variance trade-off. It reduces the "jitter" (variance) but can introduce a slight "offset" (bias). The authors note that while shrinkage is excellent at the start of a run, standard GS sometimes catches up at the very end of optimization when the bias becomes more prominent.
Additionally, the current work assumes each dimension of the noise is independent. Future research could explore dynamically "learning" the best distribution shape during the optimization process to adaptively balance the trade-off between bias and variance.
Summary updated