[Paper Review] Linear interpolation gives better gradients than Gaussian smoothing in derivative-free optimization
This paper proposes a derivative-free optimization method using linear interpolation with orthogonal directions (LIOD) for noisy, expensive black-box functions, demonstrating theoretically and empirically that it yields significantly more accurate gradient estimates than Gaussian smoothing (GSG). The key contribution is that LIOD achieves lower gradient error and faster convergence under the same sampling budget, particularly effective in reinforcement learning tasks.
In this paper, we consider derivative free optimization problems, where the objective function is smooth but is computed with some amount of noise, the function evaluations are expensive and no derivative information is available. We are motivated by policy optimization problems in reinforcement learning that have recently become popular [Choromaski et al. 2018; Fazel et al. 2018; Salimans et al. 2016], and that can be formulated as derivative free optimization problems with the aforementioned characteristics. In each of these works some approximation of the gradient is constructed and a (stochastic) gradient method is applied. In [Salimans et al. 2016] the gradient information is aggregated along Gaussian directions, while in [Choromaski et al. 2018] it is computed along orthogonal direction. We provide a convergence rate analysis for a first-order line search method, similar to the ones used in the literature, and derive the conditions on the gradient approximations that ensure this convergence. We then demonstrate via rigorous analysis of the variance and by numerical comparisons on reinforcement learning tasks that the Gaussian sampling method used in [Salimans et al. 2016] is significantly inferior to the orthogonal sampling used in [Choromaski et al. 2018] as well as more general interpolation methods.
Motivation & Objective
- Address the challenge of optimizing noisy, expensive black-box functions where derivatives are unavailable, particularly in reinforcement learning policy optimization.
- Analyze and compare gradient approximation methods—specifically Gaussian smoothing versus orthogonal linear interpolation—under bounded noise assumptions.
- Establish theoretical convergence guarantees for a line-search method using gradient estimates, identifying conditions under which convergence to a noise-neighborhood of the optimum is ensured.
- Quantify the variance and error of gradient approximations to demonstrate the superiority of structured (orthogonal) sampling over random Gaussian directions.
- Validate the theoretical findings through numerical experiments on synthetic test functions and benchmark reinforcement learning environments from OpenAI Gym.
Proposed method
- Propose a generic line-search algorithm for derivative-free optimization with bounded noise, using gradient estimates $ g(x) $ satisfying $ \|g(x) - \nabla\phi(x)\| \leq \theta \|\nabla\phi(x)\| $ for $ \theta \leq 1/2 $.
- Use linear interpolation with $ n $ linearly independent directions $ u_i $, where $ f(x + \sigma u_i) $ values are used to compute $ g(x) $, ensuring deterministic error bounds.
- Formulate the gradient estimate as $ g(x) = \frac{1}{2N} \sum_{i=1}^{N} \frac{f(x + \sigma u_i) - f(x - \sigma u_i)}{\sigma} u_i $, with orthonormal $ u_i $, equivalent to linear interpolation.
- Apply orthogonal sampling via Gram-Schmidt orthogonalization of i.i.d. Gaussian matrices or use structured matrices like random Hadamard matrices to reduce computational cost.
- Implement both fixed-step and Armijo-based line search strategies for step size selection, comparing performance across methods.
- Use the Adam optimizer with fixed $ \alpha = 0.01 $ and $ \sigma = 0.1 $ in RL experiments, while also testing line search with Armijo condition ($ c_1 = 0.2, \tau = 0.3 $).
Experimental results
Research questions
- RQ1Does linear interpolation with orthogonal directions produce more accurate gradient estimates than Gaussian smoothing in derivative-free optimization?
- RQ2What theoretical conditions on gradient estimates ensure convergence of a line-search method to a neighborhood of the optimal solution under bounded noise?
- RQ3How does the variance of gradient approximations depend on the sampling method (Gaussian vs. orthogonal) and the number of samples?
- RQ4Can orthogonal sampling methods outperform Gaussian smoothing in practical reinforcement learning tasks with noisy, expensive function evaluations?
- RQ5To what extent does using a line search improve convergence compared to fixed-step methods like Adam in derivative-free RL optimization?
Key findings
- Linear interpolation using orthogonal directions (LIOD) produces gradient estimates with significantly lower error than Gaussian smoothing (GSG), as confirmed by variance analysis and numerical experiments.
- For the Schittowski test set, LIOD with $ 2n $ samples achieved a relative error log of -0.1529, compared to GSG’s -0.0254, indicating superior accuracy.
- In reinforcement learning tasks (Swimmer, HalfCheetah, Reacher), LIOD with line search outperformed both GSG and fixed-step Adam, showing faster convergence and better final performance.
- The use of random orthonormal directions in LIOD helped avoid local optima, while the standard finite difference method (a special case of LIOD) showed improved robustness over GSG.
- Theoretical analysis shows that LIOD satisfies the required gradient error bound $ \|g(x) - \nabla\phi(x)\| \leq \theta \|\nabla\phi(x)\| $ with $ \theta < 1/2 $, ensuring convergence to a noise-neighborhood of the optimum.
- Using structured matrices like random Hadamard matrices reduces orthogonal sampling cost from $ \mathcal{O}(n^3) $ to $ \mathcal{O}(n\log n) $, enabling scalability to high-dimensional problems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.