Cosine-Similarity Gated Adam (CSG-Adam): Resolving Momentum Staleness in Non-Stationary Tabular Q-Learning

Authors

  • Sunyah .M .Abrahiym Department of Math, School of Science, University of Ajdabiya, Ajdabiya, Libya Author
  • Ahmed Elmahdi Department of Electrical and Electronic Engineering, University of Benghazi, School of Engineering, , Benghazi, Libya Author

DOI:

https://doi.org/10.65421/jibas.v2i4.307

Keywords:

Stochastic Approximation, Tabular Q-Learning, Bellman Operator, Adaptive Optimization, Adam, RMSProp, Momentum Staleness, Directional Gating

Abstract

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

Downloads

Published

2026-11-29

Issue

Section

Articles

How to Cite

Sunyah .M .Abrahiym, & Ahmed Elmahdi. (2026). Cosine-Similarity Gated Adam (CSG-Adam): Resolving Momentum Staleness in Non-Stationary Tabular Q-Learning. Journal of Insights in Basic and Applied Sciences, 2(4), 722-735. https://doi.org/10.65421/jibas.v2i4.307

Similar Articles

21-30 of 50

You may also start an advanced similarity search for this article.