Exponential weight averaging as damped harmonic motion
The exponential moving average (EMA) is a commonly used statistic for providing stable estimates of stochastic quantities in deep learning optimization. Recently, EMA has seen considerable use in generative models, where it is computed with respect to the model weights, and significantly improves the stability of the inference model during and after training. While the practice of weight averaging at the end of training is well-studied and known to improve estimates of local optima, the benefits of EMA over the course of training is less understood. In this paper, we derive an explicit connection between EMA and a damped harmonic system between two particles, where one particle (the EMA weights) is drawn to the other (the model weights) via an idealized zero-length spring. We then leverage this physical analogy to analyze the effectiveness of EMA, and propose an improved training algorithm, which we call BELAY. Finally, we demonstrate theoretically and empirically several advantages enjoyed by BELAY over standard EMA.
Code (0)
등록된 구현이 없습니다.
Similar Papers 제목 키워드 기반
One-parameter robust global frequency estimator for slowly varying amplitude and noisy oscillations
Robust online estimation of oscillation frequency belongs to classical problems of system identification and adaptive control. The given harmonic signal can be noisy and with varying amplitude at the same time, as in the…
An Exponential Averaging Process with Strong Convergence Properties
Averaging, or smoothing, is a fundamental approach to obtain stable, de-noised estimates from noisy observations. In certain scenarios, observations made along trajectories of random dynamical systems are of particular i…
Incorporating Damped Harmonic Oscillator in DSGE Models
This paper integrates the damped harmonic oscillator into DSGE models to better capture delayed economic adjustments. By introducing a damping coefficient, I model economic recoveries as under-damped, critically damped, …
Constants of Motion for Conserved and Non-conserved Dynamics
This paper begins with a dynamical model that was obtained by applying a machine learning technique (FJet) to time-series data; this dynamical model is then analyzed with Lie symmetry techniques to obtain constants of mo…
Time SeriesPower-based control of output oscillations with online estimation of biased harmonics
The recently introduced discrete power-based control (Ruderman (2024b)) reduces largely the communication efforts in the control loop when compensating for the marginally damped or even slowly diverging output oscillatio…