Cosine-Similarity Gated Adam (CSG-Adam): Resolving Momentum Staleness in Non-Stationary Tabular Q-Learning
DOI:
https://doi.org/10.65421/jibas.v2i4.307Keywords:
Stochastic Approximation, Tabular Q-Learning, Bellman Operator, Adaptive Optimization, Adam, RMSProp, Momentum Staleness, Directional GatingAbstract
This paper formally investigates the application of first-order adaptive optimization algorithms to tabular Q-learning, framed mathematically as asynchronous, coordinate-wise Stochastic Gradient Descent (SGD) over a non-stationary Bellman residual. While pure variance-scaling methods such as RMSProp successfully mitigate transition variance, we mathematically demonstrate that the standard application of gradient momentum (as in Adam) induces a severe momentum staleness pathology. Because the Bellman target is dynamically bootstrapped, historical momentum vectors actively resist value contraction when an agent discovers sparse, out-of-distribution rewards. To resolve this, we introduce Cosine-Similarity Gated Adam (CSG-Adam), an adaptive optimizer that dynamically modulates the exponential moving average of the first moment using regularized directional alignment between the instantaneous pseudo-gradient and the historical momentum buffer. By strictly bounding the effective momentum update to the non-negative half-space of the descent direction, CSG-Adam acts as an instantaneous directional brake that purges conflicting momentum upon reward regime shifts while avoiding the near-zero chattering of unregularized sign switches. Extensive empirical evaluations across a benchmark suite of ten deterministic and stochastic Markov Decision Processes (MDPs) demonstrate that CSG-Adam safely enables aggressive learning rates (), achieving a reduction in asymptotic approximation error compared to optimal Tabular RMSProp baselines

