Samiksha Jaiswal (Editor)

Stochastic approximation

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

Stochastic approximation algorithms are recursive update rules that can be used, among other things, to solve optimization problems and fixed point equations (including standard linear systems) when the collected data is subject to noise. In engineering, optimization problems are often of this type, when you do not have a mathematical model of the system (which can be too complex) but still would like to optimize its behavior by adjusting certain parameters.

Contents

For this purpose, you can do experiments or run simulations to evaluate the performance of the system at given values of the parameters. Stochastic approximation algorithms have also been used in the social sciences to describe collective dynamics: fictitious play in learning theory and consensus algorithms can be studied using their theory

Stochastic approximation methods are a family of iterative stochastic optimization algorithms that attempt to find zeroes or extrema of functions which cannot be computed directly, but only estimated via noisy observations. This situation is common, for instance, when taking noisy measurements of empirical data, or when computing parameters of a statistical model.

Mathematically, the goal of these algorithms is to understand properties of a function

which is the expected value of a function depending on a random variable ξ , but to do so without evaluating f directly. Instead, the algorithms use random samples of F ( θ , ξ ) to efficiently approximate properties of f such as zeros or extrema.

The earliest, and prototypical, algorithms of this kind are the Robbins-Monro and Kiefer-Wolfowitz algorithms introduced respectively in 1951 and 1952.

Robbins–Monro algorithm

The Robbins–Monro algorithm, introduced in 1951 by Herbert Robbins and Sutton Monro, presented a methodology for solving a root finding problem, where the function is represented as an expected value. Assume that we have a function M ( θ ) , and a constant α , such that the equation M ( θ ) = α has a unique root at θ . It is assumed that while we cannot directly observe the function M ( θ ) , we can instead obtain measurements of the random variable N ( θ ) where E [ N ( θ ) ] = M ( θ ) . The structure of the algorithm is to then generate iterates of the form:

Here, a 1 , a 2 , is a sequence of positive step sizes. Robbins and Monro proved , Theorem 2 that θ n converges in L 2 (and hence also in probability) to θ , and Blum later proved the convergence is actually with probability one, provided that:

  • N ( θ ) is uniformly bounded,
  • M ( θ ) is nondecreasing,
  • M ( θ ) exists and is positive, and
  • The sequence a n satisfies the following requirements:
  • A particular sequence of steps which satisfy these conditions, and was suggested by Robbins–Monro, have the form: a n = a / n , for a > 0 . Other series are possible but in order to average out the noise in N ( θ ) , the above condition must be met.

    Complexity results

    1. If f ( θ ) is twice continuously differentiable, and strongly convex, and the minimizer of f ( θ ) belongs to the interior of Θ , then the Robbins-Monro algorithm will achieve the asymptotically optimal convergence rate, with respect to the objective function, being E [ f ( θ n ) f ] = O ( 1 / n ) , where f is the minimal value of f ( θ ) over θ Θ .
    2. Conversely, in the general convex case, where we lack both the assumption of smoothness and strong convexity, Nemirovski and Yudin have shown that the asymptotically optimal convergence rate, with respect to the objective function values, is O ( 1 / n ) . They have also proven that this rate cannot be improved.

    Subsequent developments and Polyak-Ruppert Averaging

    While the Robbins-Monro algorithm is theoretically able to achieve O ( 1 / n ) under the assumption of twice continuous differentiability and strong convexity, it can perform quite poorly upon implementation. This is primarily due to the fact that the algorithm is very sensitive to the choice of the step size sequence, and the supposed asymptotically optimal step size policy can be quite harmful in the beginning.

    Chung(1954) and Fabian's(1968) showed that we would achieve optimal convergence rate O ( 1 / n ) with a n = 2 f ( θ ) 1 / n (or a n = 1 ( n M ( θ ) ). Lai and Robbins designed adaptive procedures to estimate M ( θ ) such that θ n has minimal asymptotic variance. However the application of such optimal methods requires much priori information which is hard to obtain in most situations. To overcome this shortfall, Polyak(1991) and Ruppert(1988) independently developed a new optimal algorithm based on the idea of averaging the trajectories. Polyak and Juditsky also presented a method of accelerating Robbins-Monro for linear and non-linear root-searching problems through the use of longer steps, and averaging of the iterates. The algorithm would have the following structure:

    θ ¯ n θ { a n }

    A1)

    Therefore, the sequence a n = n α with 0 < α < 1 satisfies this restriction, but α = 1 does not, hence the longer steps. Under the assumptions outlined in the Robbins-Monro algorithm, the resulting modification will result in the same asymptotically optimal convergence rate O ( 1 / n ) yet with a more robust step size policy. Prior to this, the idea of using longer steps and averaging the iterates had already been proposed by Nemirovski and Yudin for the cases of solving the stochastic optimization problem with continuous convex objectives and for convex-concave saddle point problems. These algorithms were observed to attain the nonasymptotic rate O ( 1 / n ) .

    A more general result is given in Chapter 11 of Kushner and Yin by defining interpolated time t n = i = 0 n 1 a i , interpolated process θ n ( ) and interpolated normalized process U n ( ) as

    Θ n = a n t i = n n + t / a n 1 θ i U ^ n ( t ) = a n t i = n n + t / a n 1 ( θ i θ )

    With assumption A1) and the following A2)

    A2) There is a Hurwitz matrix A and a symmetric and positive-definite matrix Σ such that { U n ( ) } converges weakly to U ( ) , where U ( ) is the stationary solution towhere w ( ) is a standard Wiener process.

    satisfied, and define V ¯ = ( A 1 ) Σ ( A ) 1 . Then for each t ,

    The success of the averaging idea is because of the time scale separation of the original sequence { θ n } and the averaged sequence { Θ n } , with the time scale of the former one being faster.

    Application in Stochastic Optimization

    Suppose we want to solve the following stochastic optimization problem

    g ( θ ) = E [ Q ( θ , X ) ] θ g ( θ ) = 0 Q ( θ , X ) θ X g ( θ ) ( θ n ) n 0 θ ( X n ) n 0 X n θ n g ( θ n ) X n

    Here H ( θ , X ) is an unbiased estimator of g ( θ ) . If X depends on θ , there is in general no natural way of generating a random outcome H ( θ , X ) that is an unbiased estimator of the gradient. In some special cases when either IPA or likelihood ratio methods are applicable, then one is able to obtain an unbiased gradient estimator H ( θ , X ) . If X is viewed as some "fundamental" underlying random process that is generated independently of θ , and under some regularization conditions for derivative-integral interchange operations so that E [ θ Q ( θ , X ) ] = g ( θ ) , then H ( θ , X ) = θ Q ( θ , X ) gives the fundamental gradient unbiased estimate. However, for some applications we have to use finite-difference methods in which H ( θ , X ) has a conditional expectation close to g ( θ ) but not exactly equal to it.

    We then define a recursion analogously to Newton's Method in the deterministic algorithm:

    Convergence of the Algorithm

    The following result gives sufficient conditions on θ n for the algorithm to converge:

    C1) ϵ n 0 , n 0 .

    C2) n = 0 ϵ n =

    C3) n = 0 ϵ n 2 <

    C4) | X n | B , for a fixed bound B .

    C5) g ( θ ) is strictly convex, i.e.

    Then θ n converges to θ almost surely.

    Here are some intuitive explanations about these conditions. Suppose H ( θ n , X n + 1 ) is a uniformly bounded random variables. If C2) is not satisfied, i.e. n = 0 ϵ n < , then

    θ θ 0 θ θ n θ ϵ n 0 ϵ n = 1 / n g ( θ )

    Example (where the stochastic gradient method is appropriate)

    Suppose Q ( θ , X ) = f ( θ ) + θ T X , where f is differentiable and X R p is a random variable independent of θ . Then g ( θ ) = E [ Q ( θ , X ) ] = f ( θ ) + θ T E X depends on the mean of X , and the stochastic gradient method would be appropriate in this problem. We can choose H ( θ , X ) = θ Q ( θ , X ) = θ f ( θ ) + X .

    Kiefer-Wolfowitz algorithm

    The Kiefer-Wolfowitz algorithm, was introduced in 1952, and was motivated by the publication of the Robbins-Monro algorithm. However, the algorithm was presented as a method which would stochastically estimate the maximum of a function. Let M ( x ) be a function which has a maximum at the point θ . It is assumed that M ( x ) is unknown; however, certain observations N ( x ) , where E [ N ( x ) ] = M ( x ) , can be made at any point x . The structure of the algorithm follows a gradient-like method, with the iterates being generated as follows:

    where N ( x n + c n ) and N ( x n c n ) are independent, and the gradient of M ( x ) is approximated using finite differences. The sequence { c n } specifies the sequence of finite difference widths used for the gradient approximation, while the sequence { a n } specifies a sequence of positive step sizes taken along that direction. Kiefer and Wolfowitz proved that, if M ( x ) satisfied certain regularity conditions, then x n will converge to θ in probability as n , and later Blum in 1954 showed x n converges to θ almost surely, provided that:

  • V a r ( N ( x ) ) S < for all x .
  • The function M ( x ) has a unique point of maximum (minimum) and is strong concave (convex)
  • The algorithm was first presented with the requirement that the function M ( ) maintains strong global convexity (concavity) over the entire feasible space. Given this condition is too restrictive to impose over the entire domain, Kiefer and Wolfowitz proposed that it is sufficient to impose the condition over a compact set C 0 R d which is known to include the optimal solution.
  • The function M ( x ) satisfies the regularity conditions as follows:
  • There exists β > 0 and B > 0 such that
  • There exists ρ > 0 and R > 0 such that
  • For every δ > 0 , there exists some π ( δ ) > 0 such that
  • The selected sequences { a n } and { c n } must be infinite sequences of positive numbers such that
  • c n 0 as n
  • n = 0 a n =
  • n = 0 a n c n <
  • n = 0 a n 2 c n 2 <
  • A suitable choice of sequences, as recommended by Kiefer and Wolfowitz, would be a n = 1 / n and c n = n 1 / 3 .

    Subsequent developments and important issues

    1. The Kiefer Wolfowitz algorithm requires that for each gradient computation, at least d + 1 different parameter values must be simulated for every iteration of the algorithm, where d is the dimension of the search space. This means that when d is large, the Kiefer-Wolfowitz algorithm will require substantial computational effort per iteration, leading to slow convergence.
      1. To address this problem, Spall proposed the use of simultaneous perturbations to estimate the gradient. This method would require only two simulations per iteration, regardless of the dimension d .
    2. In the conditions required for convergence, the ability to specify a predetermined compact set that fulfills strong convexity (or concavity) and contains the unique solution can be difficult to find. With respect to real world applications, if the domain is quite large, these assumptions can be fairly restrictive and highly unrealistic.

    Further developments

    An extensive theoretical literature has grown up around these algorithms, concerning conditions for convergence, rates of convergence, multivariate and other generalizations, proper choice of step size, possible noise models, and so on. These methods are also applied in control theory, in which case the unknown function which we wish to optimize or find the zero of may vary in time. In this case, the step size a n should not converge to zero but should be chosen so as to track the function., 2nd ed., chapter 3

    C. Johan Masreliez and R. Douglas Martin were the first to apply stochastic approximation to robust estimation.

    The main tool for analyzing stochastic approximations algorithms (including the Robbins-Monro and the Kiefer-Wolfowitz algorithms) is a theorem by Aryeh Dvoretzky published in the proceedings of the third Berkeley symposium on mathematical statistics and probability, 1956.

    References

    Stochastic approximation Wikipedia