arXiv:2610.08624cs.LGOct 2026

Manuscript Offprint

arXiv:2610.08624

Early Memory Selection for Balanced Adam

Alberto Fernández-Hernández, Cristian Pérez-Corral, Jose I. Mestre, Manuel F. Dolz, Enrique S. Quintana-Ortí

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Alberto Fernández-Hernández

Universitat Politècnica de València

Valencia, Spain

a.fernandez@upv.es

Cristian Pérez-Corral

Universitat Politècnica de València

Valencia, Spain

cpercor@upv.es

Jose I. Mestre

Universitat Politècnica de València

Valencia, Spain

jimesmir@upv.es

Manuel F. Dolz

Universitat Jaume I

Castelló de la Plana, Spain

dolzm@uji.es

Abstract

We propose a method for choosing the shared memory parameter β1=β2=β\beta_1 = \beta_2 = \beta in Adam from a short pilot training. The selected β\beta remains fixed during the subsequent full training. A local model of Adam's normalized direction balances sampling variability against the delay introduced by averaging past gradients. This balance gives a cubic memory rule, whose two coefficients are estimated from gradient probes at a few pilot checkpoints. The estimator uses the numerator and denominator jointly, preserving their covariance. With a 200-update pilot and sixteen probe gradients at each of four checkpoints, a seed-matched retrospective evaluation on eleven vision and language workloads reduces mean relative validation gap by 40.7% and worst-quarter mean gap by 44.3% against the grid representative of shared β\beta 0.95. The mean gap is also 32.3% lower than that of the best constant β\beta chosen across all eleven workloads.

1 INTRODUCTION

Adam's memory is a statistical timescale: it determines which past gradients still influence the current update (Kingma and Ba, 2015). A short memory responds quickly to changes and retains more sampling variability. A long memory averages that variability more effectively and follows a changing gradient with a delay. The useful timescale therefore depends on the dynamics of the task. A single fixed default makes

Enrique S. Quintana-Ortí

Universitat Politècnica de València

Valencia, Spain

quintana@disca.upv.es

a compromise across those dynamics; early measurement offers a way to choose the timescale for the workload at hand.

Recent language-model experiments show that setting the two parameters equal can retain strong training performance (Orvieto and Gower, 2025). This family is called balanced Adam: β1=β2=β\beta_1 = \beta_2 = \beta. It reduces tuning to one memory while preserving coordinate-wise normalization. A shared value around 0.95 is a useful empirical reference. The remaining choice still matters: one memory per training is different from one memory for every training. This raises a concrete question: can a short observation of gradient dynamics choose a useful fixed memory for each workload?

Adam normalizes an averaged gradient by an averaged squared gradient, so the errors of its two moments act jointly. We retain their covariance and analyze how averaging reduces fluctuations while delaying the response to a changing direction. A first-order local model separates these two effects and gives a memory rule in units H=(1−β)−1H = (1 - \beta)^{-1}. Grouped gradient probes and checkpoint differences estimate its coefficients. Completed fixed-memory trainings evaluate the resulting choices.

The contributions are:

  • A joint-moment tracking objective that separates retained noise from delay and yields a cubic memory law. Its sensitivity formula explains why useful calibration tolerates coefficient error.

  • An explicit early finite-probe rule and a finite-resolution lag interpretation, with a quantified population-model allowance for endpoint uncertainty.

  • An eleven-workload evaluation against every fixed grid memory, with matched training recipes, task-level calibration, dense timing sensitivity, and gradient-equivalent cost accounting.

Different fixed β\beta values serve different tasks well. Our selector uses gradients to choose a memory for each run. On the evaluated suite it reduces mean, maximum, and tail gap compared with every fixed grid value, including the best constant selected from all validation outcomes. Code and reproducible evaluation material are available at https://github.com/AlbertoFdezHdez/Adam_beta_rule_cubic.