What is: Lookahead?
Source | Lookahead Optimizer: k steps forward, 1 step back |
Year | 2000 |
Data Source | CC BY-SA - https://paperswithcode.com |
Lookahead is a type of stochastic optimizer that iteratively updates two sets of weights: "fast" and "slow". Intuitively, the algorithm chooses a search direction by looking ahead at the sequence of fast weights generated by another optimizer.
Algorithm 1 Lookahead Optimizer
Require Initial parameters , objective function
Require Synchronization period , slow weights step size , optimizer
for
Synchronize parameters
for
sample minibatch of data
endfor
Perform outer update
endfor
return parameters