betaFeedback

WorksComputer Science

Early Memory Selection for Balanced Adam

Abstract

We propose a method for choosing the shared memory parameter β1=β2=ββ_1=β_2=β in Adam from a short pilot training. The selected ββ 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 β=0.95β=0.95. The mean gap is also 32.3% lower than that of the best constant ββ chosen across all eleven workloads.

Introduction

Adam’s memory is a statistical timescale: it determines which past gradients still influence the current update Kingma and Ba, [12]. 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 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, [20]. This family is called balanced Adam: β1=β2=β\beta_1 = \beta_2 = \beta. It reduces tuning to one memory while preserving coordinatewise 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.

Related work

We distinguish analyses of Adam’s moments, theoretical relationships between its β\beta values, and methods that learn optimizer parameters during training. Our question is the early choice of one fixed shared memory.

Adam’s statistical structure and shared memories. Balles and Hennig (2018) analyze the interaction between sign, magnitude, and variance in Adam. Orvieto and Gower (2025) provide extensive empirical support for equal memory parameters and a statistical perspective on Adam. These results motivate the shared-memory family. A complementary budget-based rule relates its memory to a useful training horizon [8]. The present rule obtains its selection signal from early normalized-direction variability and temporal change.

β\beta relationships and optimization guarantees. Ahn et al. (2024) interpret Adam through online learning of updates and follow-the-regularized-leader. Nguyen (2026) analyze both sides of β1=β2\beta_1 = \sqrt{\beta_2}, whose optimality depends on the adversary model. Their criterion relates the memories under online regret; ours chooses a shared memory from an observed gradient process under local tracking risk. Stochastic-differential-equation analyses explain scaling with batch size [17], whereas we hold the training recipe fixed and measure its early dynamics.

Learning optimizer parameters. Chandra et al. (2022) differentiate through optimizers to learn their hyperparameters, including both Adam memories. MADA jointly learns memory and optimizer-interpolation coefficients through online hypergradient descent; its fixed-state variant reuses the optimizer learned at the end of another training [21]. Our rule instead uses an early noise–lag measurement to choose one shared β\beta, fixed for full training.

Adaptive momentum and moment estimation. Topollai and Choromanska (2026) derive online momentum adaptation from a two-plane objective model. Their AdamW variant adapts the first-moment memory while keeping the second-moment memory fixed, with layerwise adaptation in language models. YellowFin estimates curvature and gradient statistics to tune SGD’s momentum and learning rate [27]. Kalman-Adam estimates first and second moments using separate Bayesian filters [2]. The present method retains Adam’s exponential averages and calibrates their common timescale early, using fluctuations and change of their joint normalized target. Online memory adaptation and early fixed shared-memory selection provide complementary ways to use information from the training problem.

What should the memory track?

Choosing a memory starts with identifying what Adam’s numerator and denominator jointly estimate. This statistical reference gives a directly analyzable objective: the tracking error of the normalized update direction.

Adam and its population reference

Let θt∈Rd\theta_t \in\mathbb{R}^d be the parameters and gt∈Rdg_t \in\mathbb{R}^d an effective-batch gradient, including accumulation and the recipe’s gradient processing. From zero initial moments Adam computes

mt=β1mt−1+(1−β1)gt,vt=β2vt−1+(1−β2)gt⊙2,ut=mt/(1−β1t)vt/(1−β2t)+ϵ.(1)\begin{aligned} m_t &= \beta_1m_{t-1} + (1-\beta_1)g_t, \\ v_t &= \beta_2v_{t-1} + (1-\beta_2)g_t^{\odot2}, \\ u_t &= \frac{m_t/(1-\beta_1^t)}{\sqrt{v_t/(1-\beta_2^t)}+\epsilon}. \tag*{(1)} \end{aligned}

The superscript ⊙2\odot2 means coordinatewise squaring. Square roots and division are coordinatewise, with ϵ>0\epsilon> 0 outside the root. The gradient update is −ηtut-\eta_tu_t; AdamW additionally applies decoupled weight decay [16].

At a fixed reference time, the expectation is over a fresh effective-batch gradient at the current parameters. Write μ=Eg\mu= \mathbb{E}g, q=Eg⊙2q = \mathbb{E}g^{\odot2}, and define

r=ϕ(μ,q),ϕ(x,y)=xy+ϵ(2)r = \phi(\mu,q), \qquad\phi(x,y) = \frac{x}{\sqrt{y}+\epsilon} \tag*{(2)}

This normalized population direction includes gradient variability in its denominator. In one coordinate, μ=1\mu= 1 and q=4q = 4 give r≈1/2r \approx1/2 for small epsilon; a deterministic gradient of one gives r≈1r \approx1. Thus the reference combines the gradient’s sign with a magnitude determined by its mean and second moment. If clipping is used, μ\mu is the mean clipped gradient. The reference describes what Adam’s processed moments track.

The joint effect of moment errors

In one coordinate, first-order perturbation gives

δr≈δmq+ϵ−μδv2q(q+ϵ)2.(3)\delta r \approx\frac{\delta m}{\sqrt{q}+\epsilon} - \frac{\mu\delta v}{2\sqrt{q}(\sqrt{q}+\epsilon)^2}. \tag*{(3)}

An overestimated numerator increases the update, whereas an overestimated denominator decreases it. Their errors can therefore partly compensate. Because both moments use the same gradient samples, their covariance matters. The following diagonal matrices give the coordinatewise sensitivities of the normalized direction to each moment:

A=diag⁡1q+ϵ,B=diag⁡−μ2q(q+ϵ)2.(4)A = \operatorname{diag}\frac{1}{\sqrt{q}+\epsilon}, \qquad B = \operatorname{diag}\frac{-\mu}{2\sqrt{q}(\sqrt{q}+\epsilon)^2}. \tag*{(4)}

Differentiation assumes qi>0q_i > 0. Practical probes use a separately specified numerical floor.

A local noise–lag balance

The next question is how averaging affects a direction that moves steadily over a short window. The quantity to minimize is the expected squared difference between the first-order Adam direction and the current normalized population direction. This tracking risk separates smoothing and delay; it supplies a statistical objective for choosing memory, which is subsequently evaluated through training losses.

Explicit local assumptions

The assumptions describe a local approximation. A differentiable moment curve has a constant term and a linear term in its first-order expansion; these motivate affine means over the window. Holding the covariance fixed is the corresponding local approximation for noise. Independence across ages isolates the effect of temporal averaging. This last condition is an additional modeling assumption, since adaptive training can introduce temporal dependence. Dependence between numerator and denominator errors at the same age is retained throughout. Appendix B explains how deviations enter the approximation residual.

Assumption 1 (Local first-order moment model). Fix an update t≥1t \ge1 and a history of tt observations. Their ages are k=0,…,t−1k = 0,\ldots,t - 1: age zero is the current observation, and age one is one update old. The current moment means μ\mu, qq and their changes per update μ˙,q˙\dot{\mu},\dot{q} are deterministic, with qi>0q_i > 0. The model’s moment observations at age kk are μ−kμ˙+ξk\mu- k\dot{\mu} + \xi_k and q−kq˙+χkq - k\dot{q} + \chi_k. The random vectors ξk,χk∈Rd\xi_k,\chi_k \in\mathbb{R}^d are centered deviations from these means. Their pairs are independent across ages and share one finite covariance; the two vectors in a pair may be dependent.

For example, μ˙i=0.01\dot{\mu}_i = 0.01 says that the expected gradient in coordinate ii increases by 0.010.01 per update under this model. The model describes fluctuations of both moments around their local means. Actual gradient observations and their squares impose additional joint structure; the stated covariance can retain it. The theorem is exact for the specified linearized model, and its use for nonlinear Adam is a local approximation.

Define the direction innovation and slope by

ζk=Aξk+Bχk,dr=Aμ˙+Bq˙.\zeta_k = A\xi_k + B\chi_k,\qquad d_r = A\dot{\mu} + B\dot{q}.

Here ζk\zeta_k is the direction error caused by one noisy moment observation, and drd_r is the first-order change of the normalized direction in one update. Their size is summarized by

Vpop=E∥ζk∥2,Dpop=∥dr∥2.(5)V_{\mathrm{pop}} = \mathbb{E}\|\zeta_k\|^2,\qquad D_{\mathrm{pop}} = \|d_r\|^2. \tag*{(5)}

VpopV_{\mathrm{pop}} measures squared normalized-direction fluctuation per observation and includes the cross contribution 2E⟨Aξk,Bχk⟩2\mathbb{E}\langle A\xi_k,B\chi_k\rangle. DpopD_{\mathrm{pop}} measures squared direction change per update. Random fluctuations accumulate through squared averaging weights; a systematic slope accumulates through the mean age of the observations.

For balanced memory β\beta, bias correction gives weights

wβ,t(k)=(1−β)βk1−βt,0≤k<t.(6)w_{\beta,t}(k) = \frac{(1-\beta)\beta^k}{1-\beta^t},\qquad0 \le k < t. \tag*{(6)}

The weights sum to one. Define their mean age aβ,t=∑k=0t−1wβ,t(k)ka_{\beta,t} = \sum_{k=0}^{t-1} w_{\beta,t}(k)k and squared-weight sum cβ,t=∑k=0t−1wβ,t(k)2c_{\beta,t} = \sum_{k=0}^{t-1} w_{\beta,t}(k)^2. The first measures delay in updates; the second measures the fraction of independent observation noise retained by the average. For an ordinary average of NN observations, this squared-weight sum is 1/N1/N.

Theorem 1 (Finite-history balanced tracking risk). Under Assumption 1, the first-order error is

eβ,t=∑kwβ,t(k)ζk−aβ,tdr,e_{\beta,t} = \sum_k w_{\beta,t}(k)\zeta_k - a_{\beta,t}d_r,

and its mean squared norm equals

E∥eβ,t∥2=Vpopcβ,t+Dpopaβ,t2.(7)\mathbb{E}\|e_{\beta,t}\|^2 = V_{\mathrm{pop}}c_{\beta,t} + D_{\mathrm{pop}}a_{\beta,t}^2. \tag*{(7)}

For 0<β<10 < \beta< 1,

cβ,t=1−β1+β1+βt1−βt,aβ,t=β1−β−tβt1−βt.(8)c_{\beta,t}=\frac{1-\beta}{1+\beta}\frac{1+\beta^t}{1-\beta^t},\qquad a_{\beta,t}=\frac{\beta}{1-\beta}-\frac{t\beta^t}{1-\beta^t}. \tag*{(8)}

At β=0\beta=0, c0,t=1c_{0,t}=1 and a0,t=0a_{0,t}=0.

Proof. The averaged first-moment deviation is −aβ,tμ˙+∑kwβ,t(k)ξk-a_{\beta,t}\dot{\mu}+\sum_k w_{\beta,t}(k)\xi_k; the second-moment deviation has the same form with q˙,χ˙k\dot{q},\dot{\chi}_k. Applying the linear sensitivities A,BA,B gives the displayed error. The innovation sum is centered, so expanding the squared error leaves its variance plus the squared lag aβ,t2∥dr∥2a_{\beta,t}^2\lVert d_r\rVert^2. For different ages, independence and centering give E⟨ζk,ζℓ⟩=0\mathbb{E}\langle\zeta_k,\zeta_\ell\rangle=0. Thus the variance is ∑kwβ,t(k)2Vpop\sum_k w_{\beta,t}(k)^2V_{\mathrm{pop}}, proving the risk identity. The weight formulas follow from the geometric sums worked out in Appendix A. □\square

(7) is the mechanism: longer memory suppresses noise and increases lag. Scalar weight formulas make this risk directly computable. For any fixed linear map PP, the theorem also holds in its measurement geometry: replace ζk,dr\zeta_k,d_r by Pζk,PdrP\zeta_k,Pd_r in (5).

From tracking risk to a memory value

In memory units H=(1−β)−1≥1H=(1-\beta)^{-1}\ge1, β=0.9\beta=0.9 corresponds to H=10H=10, and β=0.99\beta=0.99 to H=100H=100. First consider a history long relative to the memory, so that βt\beta^t is small. Then (7) approaches

f(H)=Vpop2H−1+Dpop(H−1)2.(9)f(H)=\frac{V_{\mathrm{pop}}}{2H-1}+D_{\mathrm{pop}}(H-1)^2. \tag*{(9)}

For positive coefficients its unique minimizer solves

Dpop(H−1)(2H−1)2=Vpop.(10)D_{\mathrm{pop}}(H-1)(2H-1)^2=V_{\mathrm{pop}}. \tag*{(10)}

The derivative vanishes there, and the left-hand side increases strictly from zero to infinity on H≥1H\ge1. This equation is readily solved in one dimension. For a closed-form approximation, when HH is large relative to one replace 2H−12H-1 by 2H2H and H−1H-1 by HH. This second simplification gives

f0(H)=Vpop2H+DpopH2,H⋆=(Vpop4Dpop)1/3.(11)f_0(H)=\frac{V_{\mathrm{pop}}}{2H}+D_{\mathrm{pop}}H^2,\qquad H_\star=\left(\frac{V_{\mathrm{pop}}}{4D_{\mathrm{pop}}}\right)^{1/3}. \tag*{(11)}

Indeed, f0′(H)=−Vpop/(2H2)+2DpopHf_0'(H)=-V_{\mathrm{pop}}/(2H^2)+2D_{\mathrm{pop}}H vanishes when 4DpopH3=Vpop4D_{\mathrm{pop}}H^3=V_{\mathrm{pop}}. More noise favors a longer average; faster direction change favors a shorter one. For Vpop=0.18V_{\mathrm{pop}}=0.18 and Dpop=4×10−6D_{\mathrm{pop}}=4\times10^{-6} this gives H⋆≈22.41H_\star\approx22.41, hence β⋆≈0.9554\beta_\star\approx0.9554. These values illustrate the local model. Appendix A gives the constrained and zero-coefficient cases.

Sensitivity to coefficient errors

Finite measurements introduce coefficient uncertainty. The next result quantifies its effect on the continuous memory and the resulting model risk.

Proposition 1 (Continuous memory sensitivity). For the interior leading model, suppose positive estimates satisfy ∣log⁡(V~/Vpop)∣≤ϵV|\log(\widetilde{V}/V_{\mathrm{pop}})|\le\epsilon_V and ∣log⁡(D~/Dpop)∣≤ϵD|\log(\widetilde{D}/D_{\mathrm{pop}})|\le\epsilon_D. Their minimizer H~=(V~/(4D~))1/3\widetilde{H}=(\widetilde{V}/(4\widetilde{D}))^{1/3} satisfies

∣log⁡(H~/H⋆)∣≤(ϵV+ϵD)/3.|\log(\widetilde{H}/H_\star)|\le(\epsilon_V+\epsilon_D)/3.

Writing z=H~/H⋆z=\widetilde{H}/H_\star, its relative model risk is

f0(H~)f0(H⋆)=2/z+z23.(12)\frac{f_0(\widetilde{H})}{f_0(H_\star)}=\frac{2/z+z^2}{3}. \tag*{(12)}

Proof. Dividing the two cubic formulas and taking logs gives log⁡(H~/H⋆)=[log⁡(V~/Vpop)−log⁡(D~/Dpop)]/3\log(\widetilde{H}/H_\star)=[\log(\widetilde{V}/V_{\mathrm{pop}})-\log(\widetilde{D}/D_{\mathrm{pop}})]/3. The triangle inequality gives the bound. To compare risks, use the optimality identity Vpop/(2H⋆)=2DpopH⋆2V_{\mathrm{pop}}/(2H_\star)=2D_{\mathrm{pop}}H_\star^2. Substituting H~=zH⋆\widetilde{H}=zH_\star makes the noise term 2DpopH⋆2/z2D_{\mathrm{pop}}H_\star^2/z and the lag term z2DpopH⋆2z^2D_{\mathrm{pop}}H_\star^2. Their sum divided by 3DpopH⋆23D_{\mathrm{pop}}H_\star^2 proves (12). □\square

The numbers ϵV,ϵD\epsilon_V,\epsilon_D describe multiplicative coefficient accuracy on a log scale; a factor-two error has magnitude log⁡2\log2. The cube root attenuates such errors. More importantly, excess relative risk equals (z−1)2(z+2)/(3z)(z-1)^2(z+2)/(3z): near the optimum, risk changes quadratically with memory error. Doubling VpopV_{\mathrm{pop}} with accurate DpopD_{\mathrm{pop}} changes memory by 21/32^{1/3} and increases leading risk by about 5.8%. Thus useful memory calibration can tolerate appreciable coefficient error. The practical rule additionally has sampling and grid-rounding effects.

Estimating the coefficients from a pilot

The memory rule in (11) requires two coefficients: the variability of the normalized direction at fixed parameters, and its change as training proceeds. We estimate the first by comparing gradient groups at one checkpoint and the second by comparing checkpoints. This section specifies the measurements and derives the scaling of both estimates; Section 6 then turns them into a β\beta.

Measurement design and moment estimates

Let TpT_p be an integer pilot length in optimizer updates and βpilot∈[0,1)\beta_{\mathrm{pilot}}\in[0,1) its shared memory. Choose distinct integer lags 1≤n1,…,nK≤Tp1\le n_1,\ldots,n_K\le T_p, with K≥2K\ge2, and measure at TpT_p and Tp−nℓT_p-n_\ell. Write L=max⁡ℓnℓL=\max_\ell n_\ell for the longest lag. At each checkpoint ss, freeze the parameters and collect m≥2m \ge2 fresh gradients gs(1),…,gs(m)g_s^{(1)}, \ldots, g_s^{(m)}. Each uses the same effective batch and gradient processing as a training update, including accumulation and clipping when prescribed. The pilot length, pilot β\beta, lags, and probe allocation are measurement hyperparameters.

The sample means estimate the two population moments together:

μ^s=1m∑i=1mgs(i),q^s=1m∑i=1m(gs(i))⊙2.\widehat{\mu}_s = \frac{1}{m}\sum_{i=1}^{m}g_s^{(i)}, \qquad\widehat{q}_s = \frac{1}{m}\sum_{i=1}^{m}(g_s^{(i)})^{\odot2}.

Apply the same normalization as in (2):

r^s=ϕ(μ^s,q^s)=μ^sq^s+ε.(13)\widehat{r}_s = \phi(\widehat{\mu}_s,\widehat{q}_s) = \frac{\widehat{\mu}_s}{\sqrt{\widehat{q}_s}+\varepsilon}. \tag*{(13)}

The optimizer’s ε>0\varepsilon> 0 makes this defined even when a sample second moment is zero. Estimating both moments from the same gradients preserves their joint fluctuations.

Split the mm gradients into G≥2G \ge2 equal groups, where GG divides mm. For group jj, compute its moment means and normalized direction r^s(j)\widehat{r}_s^{(j)} by the same formulas restricted to its m/Gm/G gradients. A fixed linear map PP specifies the measurement geometry; it may be the identity or a storage-saving projection. Define the pooled vector zs=Pr^sz_s = P\widehat{r}_s and group vectors zs(j)=Pr^s(j)z_s^{(j)} = P\widehat{r}_s^{(j)}. The same PP is used at every checkpoint. Theorem 1 applies in this geometry with noise coefficient VP=E∥Pζk∥2V_P = \mathbb{E}\|P\zeta_k\|^2 and slope coefficient DP=∥Pdr∥2D_P = \|P d_r\|^2. All norms below refer to these measured vectors.

Estimating variability at fixed parameters

At the final pilot checkpoint, use

V^emp=mG−11G∑j=1G∥zT(j)−zT∥2.(14)\widehat{V}_{\mathrm{emp}} = \frac{m}{G-1}\frac{1}{G}\sum_{j=1}^{G}\left\|z_T^{(j)}-z_T\right\|^2. \tag*{(14)}

The multiplier corrects for averaging inside each group. In the local linearized model, a group averages m/Gm/G independent direction innovations, so its variance trace is GVP/mGV_P/m. Centering GG independent groups around their mean retains the fraction (G−1)/G(G-1)/G of this variance. The expected mean squared group deviation is therefore (G−1)VP/m(G-1)V_P/m; multiplying by m/(G−1)m/(G-1) recovers VPV_P. This is the same degrees-of-freedom correction as in sample variance, together with the correction for group size.

Nonlinear normalization adds a second contribution: normalizing pooled moments can differ from averaging separately normalized groups. The following identity quantifies that contribution without an approximation.

Proposition 2 (Dispersion decomposition). For group vectors z(j)z^{(j)}, their mean zˉ=G−1∑jz(j)\bar{z}=G^{-1}\sum_j z^{(j)}, and any pooled vector zz,

1G∑j∥z(j)−z∥2=1G∑j∥z(j)−zˉ∥2+∥zˉ−z∥2.(15)\frac{1}{G}\sum_j\left\|z^{(j)}-z\right\|^2 = \frac{1}{G}\sum_j\left\|z^{(j)}-\bar{z}\right\|^2 +\left\|\bar{z}-z\right\|^2. \tag*{(15)}

Proof. Write z(j)−z=(z(j)−zˉ)+(zˉ−z)z^{(j)}-z=(z^{(j)}-\bar{z})+(\bar{z}-z) and expand the square. The cross terms average to zero because ∑j(z(j)−zˉ)=0\sum_j(z^{(j)}-\bar{z})=0. The remaining terms give (15).

Thus (14) includes both group scatter and pooling displacement. In a linear observation model the displacement vanishes and the estimate is unbiased for VPV_P. In the nonlinear implementation the identity makes the pooling displacement measurable. Appendix E reports that contribution for every workload.

Estimating change between checkpoints

For each observed lag nn, measure the squared secant

yn=∥zTP−zTP−n∥2/n2.y_n = \left\|z_{T_P}-z_{T_P-n}\right\|^2/n^2.

The division by n2n^2 puts different time separations on a common per-update scale. Consider the local observation model zs=Prs+ϵsz_s = Pr_s+\epsilon_s, where rs=ϕ(Egs,Egs⊙2)r_s=\phi(\mathbb{E}g_s,\mathbb{E}g_s^{\odot2}) is the population direction at checkpoint ss and ϵs\epsilon_s is its measurement error. Assume an affine projected direction, P(rTP−rTP−n)=nPdrP(r_{T_P}-r_{T_P-n})=nPd_r, and centered independent errors with a common finite expected squared norm. Define C=2E∥ϵT∥2C=2\mathbb{E}\|\epsilon_T\|^2, the combined error energy of two endpoints. Then

Eyn=DP+C/n2.(16)\mathbb{E}y_n = D_P + C/n^2. \tag*{(16)}

Indeed, the secant is Pdr+(ϵTP−ϵTP−n)/nPd_r+(\epsilon_{T_P}-\epsilon_{T_P-n})/n. Its cross term has zero expectation, and the two endpoint error energies add. A persistent slope gives the intercept DPD_P; endpoint uncertainty gives the inverse-square term.

This relation motivates a two-coefficient least-squares fit:

(I^fit,C^fit)=arg⁡min⁡I,C∈R∑ℓ=1K(ynℓ−I−C/nℓ2)2.(17)(\widehat{I}_{\mathrm{fit}},\widehat{C}_{\mathrm{fit}})=\underset{I,C\in\mathbb{R}}{\arg\min}\sum_{\ell=1}^{K}\left(y_{n_\ell}-I-C/n_\ell^2\right)^2. \tag*{(17)}

Distinct lags give a full-rank design. Under (16), the unconstrained fit is unbiased for (DP,C)(D_P,C); write the response as the design times these coefficients plus a mean-zero residual, then apply the linear least-squares map. This argument permits correlated responses, as occurs when secants share the final checkpoint. Least squares estimates the mean lag relation; its use here rests on that relation rather than a Gaussian likelihood assumption.

Enforce the two components’ nonnegative interpretation by setting I^=max⁡(0,Ifit)\widehat{I}=\max(0,I_{\mathrm{fit}}) and C^=max⁡(0,Cfit)\widehat{C}=\max(0,C_{\mathrm{fit}}). The implemented estimate is the fitted change at the longest observed lag:

D^emp=I^+C^/L2.(18)\widehat{D}_{\mathrm{emp}}=\widehat{I}+\widehat{C}/L^2. \tag*{(18)}

It estimates change at resolution LL, combining persistent change with endpoint uncertainty. The subscript “emp” distinguishes this finite-probe quantity from the population slope DPD_P. The clipping is a specified post-processing step; the unbiasedness calculation above concerns the unconstrained fit. The next section explains why the rule retains both components.

From measured change to a fixed memory

With finitely many probes, a small population slope and uncertain endpoints can produce comparable measured changes. We use the total change observable at lag LL in the memory objective. The first result identifies the resulting allowance relative to the ideal local tracking risk; the rule then follows by the same minimization as in § 4.

A tracking objective at measurement resolution

Under the observation model of § 5, define DL=EYL=DP+C/L2D_L=\mathbb{E}Y_L=D_P+C/L^2. This is an expected squared measured slope, rather than a new population derivative. Replacing DPD_P by DLD_L charges delay at the resolution of the pilot measurements.

Proposition 3 (Finite-resolution lag allowance). Under Assumption 1 and the centered, independent, equal-variance affine endpoint model in (16), fix 1≤L≤t1\leq L\leq t. For each β\beta and history length tt, define

UL,t(β)=VPcβ,t+DLaβ,t2.U_{L,t}(\beta)=V_Pc_{\beta,t}+D_La_{\beta,t}^2.

This measurement-resolution objective satisfies

UL,t(β)=E∥Peβ,t∥2+CL2aβ,t2.(19)U_{L,t}(\beta)=\mathbb{E}\lVert P e_{\beta,t}\rVert^2+\frac{C}{L^2}a_{\beta,t}^2. \tag*{(19)}

Proof. The endpoint calculation gives DL=DP+C/L2D_L=D_P+C/L^2. Substituting this into the definition of UL,tU_{L,t} gives VPcβ,t+DPaβ,t2+(C/L2)aβ,t2V_Pc_{\beta,t}+D_Pa_{\beta,t}^2+(C/L^2)a_{\beta,t}^2. The first two terms are the tracking risk in Theorem 1, measured through PP.

The additional term is the endpoint uncertainty multiplied by squared delay. Longer lags reduce it as L−2L^{-2}; more accurate endpoint measurements reduce CC. The identity concerns expected coefficients under the stated local model. Applying the stationary and large-memory approximations yields VP/(2H)+DLH2V_P/(2H)+D_LH^2. The measured coefficients from § 5 supply a plug-in version of this objective. Appendix B.2 quantifies the effect of finite coefficient accuracy on its memory decision.

Selecting β\beta and specifying the algorithm

Given the two estimates, minimize

f^(H)=V^emp2H+D^empH2.(20)\widehat{f}(H)=\frac{\widehat{V}_{\mathrm{emp}}}{2H}+\widehat{D}_{\mathrm{emp}}H^2. \tag*{(20)}

For positive coefficients its unconstrained minimizer is

H^emp=(V^emp4D^emp)1/3.(21)\widehat{H}_{\mathrm{emp}}=\left(\frac{\widehat{V}_{\mathrm{emp}}}{4\widehat{D}_{\mathrm{emp}}}\right)^{1/3}. \tag*{(21)}

The cubic exponent and factor four come from differentiating (20), exactly as in (11). The measurement design determines the coefficients; minimization determines the memory.

Choose a finite nonempty β\beta grid G⊂[0,1)\mathcal{G}\subset[0,1), with endpoints βmin⁡\beta_{\min} and βmax⁡\beta_{\max}. Restrict memory to [1/(1−βmin⁡),1/(1−βmax⁡)][1/(1-\beta_{\min}),1/(1-\beta_{\max})], convert it using β=1−1/H\beta=1-1/H, and round to the nearest grid value in β\beta distance, breaking ties toward the smaller β\beta. This is the discretization used in the evaluation. If an estimated coefficient is zero, use the minimizing boundary specified in Appendix C.

Table 1 gives the general procedure. Its measurement hyperparameters are TT, βpilot\beta_{\mathrm{pilot}}, the lags, mm, G\mathcal{G}, and PP; the candidate range is set by G\mathcal{G}. § 7 specifies one common instance for all workloads and evaluates the resulting fixed-β\beta trainings.

1Run TpT_{\mathrm{p}} pilot updates with shared βpilot\beta_{\mathrm{pilot}}. At TpT_{\mathrm{p}} and Tp−nℓT_{\mathrm{p}}-n_{\ell}, collect mm probe gradients with parameters fixed.
2Compute pooled and GG group moment estimates, normalize them using (13), and store their images under PP.
3Estimate variability using (14); fit (17) and compute change using (18).
4Apply (21), restrict memory to the candidate range, convert to β\beta, and round to G\mathcal{G}.
5Restart from the pilot’s initialization and use this fixed shared β\beta with the prescribed full-training recipe.

Table 1. Early selection of a fixed shared memory. Measurements are made during the pilot; the full training uses the selected β\beta throughout.

Empirical evaluation

Workloads and comparison protocol

We evaluate early memory selection on eleven vision and language workloads: two Llama-style causal models, two GPT-2-style causal models, two ResNets, two ViTs, Swin-T, EfficientNet-B0, and T5-small. Tasks are image classification, causal language modeling, and span-corruption denoising. Table 2 reports each selected β\beta and its gap to the workload-specific grid reference. Appendix D specifies architectures, data, optimizer settings, schedules, and validation.

Table 2: Early memory choices and their distance to the workload-specific grid reference. Pilot and candidate trainings use the same initialization (seed 1). Oracle β\beta minimizes the smallest recorded validation loss over the eleven grid candidates and is used only for evaluation. The selector uses early gradient measurements. Gaps are percentages.

NetworkDatasetOracle β\betaSelected β\betaRelative gap (%)
EfficientNet-B0Cars0.822170.968381.0124
Llama60MC40.943770.900000.2582
Llama60MSlimPajama0.943770.900000.1175
NanoGPTOpenWebText0.943770.900000.1157
NanoGPTWikiText-1030.943770.900000.1613
ResNet50Food-1010.996840.968381.0613
ResNet50ImageNet1000.968380.968380.0000
Swin-TCaltech-2560.943770.943770.0000
T5-smallBookCorpus0.982220.968380.0039
ViT-B/16CIFAR-1000.943770.943770.0000
ViT-B/16TinyImageNet0.990000.943771.3339

Table 2.

The common measurement design is Tp=200T_{\mathrm{p}}=200, βpilot=0.95\beta_{\mathrm{pilot}}=0.95, m=16m=16, G=4G=4, and lags {20,50,100}\{20,50,100\}, so L=100L=100. This gives checkpoints 100, 150, 180, and 200. The fixed map PP is a 1,024-coordinate signed-bucket projection with tensor-size balancing; Appendix § 14 defines it exactly. Epsilon is 10−810^{-8}, as in the training optimizer. The four-group allocation, decision time, and measurement spacing are examined in Appendix § 16.

The shared-memory grid is

G={0.68377,0.82217,0.90000,0.94377,0.96838,0.98222,0.99000,0.99438,0.99684,0.99822,0.99900}.\mathcal{G}=\{0.68377,0.82217,0.90000,0.94377,\\ 0.96838,0.98222,0.99000,0.99438,\\ 0.99684,0.99822,0.99900\}.

It is approximately logarithmic in memory units. Shared β\beta 0.94377 is the grid representative nearest the empirical reference 0.95; β\beta 0.96838 is the best benchmark-wide constant by mean gap after examining all eleven fixed values. These serve distinct roles: a near-0.95 reference and a stronger hindsight comparator. Table 3 also includes β\beta 0.9, and Appendix § 16.§ 3 reports the complete grid. For each workload, candidates use the same prescribed learning-rate recipe, and the selector chooses their shared β\beta.

Table 3: Workload-specific calibration versus universal fixed memories. Gaps are percentages. Best fixed minimizes mean gap over all eleven fixed grid choices using their validation outcomes. Lower is better.

MeanMaximumCVaR25_{25}
Fixed 0.900001.42923.87703.3543
Fixed 0.943770.62362.48532.0409
Best fixed 0.968380.54612.18621.4304
Tracking rule0.36951.33391.1359

Table 3.

For each workload, the pilot and every grid candidate start from the same initialization, generated with seed 1 (the same pretrained checkpoint for T5). This pairing holds the initial weights fixed when comparing memories. Let Le(β)L_e(\beta) be workload ee’s smallest recorded validation loss, and Le∗=min⁡β∈GLe(β)L_e^*=\min_{\beta\in\mathcal{G}}L_e(\beta) its finite-grid reference. Define

gap⁡e(β)=100⋅Le(β)−Le∗Le∗.(22)\operatorname{gap}_e(\beta)=100\cdot\frac{L_e(\beta)-L_e^*}{L_e^*}. \tag*{(22)}

Early gradient measurements determine β\beta; candidate validation losses then evaluate that decision. The finite-grid reference gives the evaluation scale. All workloads use the same 16-probe budget, checkpoints, objective, and rounding. Reported metrics are equal-workload mean, maximum, and CVaR25\mathrm{CVaR}_{25}, the average of the worst ⌈11/4⌉=3\lceil11/4\rceil=3 gaps. These are descriptive statistics from a retrospective fixed-β\beta evaluation. Appendix § 16.13 reports common-seed comparisons (Table 17); Appendix § 16.§ 8 analyzes decision timing, Appendix § 16.9 measurement spacing, and Appendix § 16.12 validation summaries.

Improving the fixed-memory compromise

The goal is a useful task-specific memory: reduce large calibration errors while keeping well-served tasks close to their grid reference. Table 2 shows the oracle β\beta, the selected β\beta, and the resulting gap for every task. The rule selects 0.9 for the four causal language-model tasks, 0.96838 for EfficientNet, both ResNets, and T5, and 0.94377 for Swin and both ViTs. Thus one common calculation produces different memory horizons from different measured dynamics.

Table 3 makes the fixed-memory compromise visible. With β\beta 0.9 the largest gap occurs on ViT/TinyImageNet; with 0.94377 it occurs on ResNet/Food; with 0.96838 it occurs on Swin/Caltech. Changing the constant changes which task carries the largest calibration cost. The measured selector reduces mean gap by 40.7% against the near-0.95 reference and by 32.3% against the best universal constant. Its maximum gap is 39.0% below the smallest maximum attained by any fixed grid memory, and its CVaR is also smaller than every fixed value. Workload-specific calibration therefore improves both the average compromise and its largest residual error on this suite.

The tasks contributing the gains change with the comparator, as expected when correcting a universal compromise. Against 0.94377, ResNet losses improve by 1.3895% on Food-101 and 2.2517% on ImageNet100, while Swin and both ViTs retain the reference configuration. Against 0.96838, the ResNet choices coincide and the gains move to Swin and ViT/CIFAR-100, whose losses improve by 2.1395% and 0.4020%. The four causal tasks have gaps below 0.259%. The result is useful calibration across tasks rather than another universal constant. Appendix § 16.§ 4 provides every signed comparison, including the smaller increases offset by these corrections.

Stability of calibration

We examine coefficient sensitivity, grid decisions, and validation gaps separately. Proposition 1 quantifies coefficient sensitivity under the local score. A 10% perturbation of each observed variability-to-change ratio preserves every selected β\beta. The stationary root, leading-grid score, stationary-grid score, and exact finite-history grid score at t=200t = 200 also recover the same eleven choices (Appendix § 16).

Across 351 decision updates from 150 to 500 on the same pilots, mean gap improves over 0.94377 at 339 updates (96.6%) and CVaR improves at all 351. Mean gap improves over the best global fixed value 0.96838 at 288 updates (82.1%). Appendix § 16.§ 8 gives the dense audit. Using the final loss or the mean of the last three losses retains mean-gap reductions of 20.5% and 11.0% against their respective best fixed memories (Appendix § 16.12). These are sensitivity checks under matched initialization; Appendix § 16.13 separately examines reuse across initializations.

Cost and required information

A 200-update pilot supplies four measured checkpoints, requiring 64 additional effective-batch gradients. Moment aggregation and fixed projection cost O(d)O(d) operations and O(d)O(d) additional storage for a fixed probe budget. Each checkpoint stores one pooled and four group directions of 1,024 coordinates; the scalar fit and memory conversion have constant cost.

After restarting, a full training of TT updates has gradient-equivalent surplus 100⋅(Tp+m(K+1))/T%100 \cdot(T_p + m(K + 1))/T\%. Our design gives 100⋅(200+64)/T%100 \cdot(200 + 64)/T\%, or 2.64% for T=10,000T = 10{,}000. This counts one probe as one training gradient evaluation; loading, transfers, sketches, and restarting add wall-clock costs. Appendix § 14 describes the dense measurement record and compact collection.

Discussion and conclusion

Early gradient measurements choose one shared β\beta for full training. A joint-moment model explains its noise–lag objective; grouped probes and a temporal fit make the coefficients measurable. On the matched benchmark, the rule reduces mean, maximum, and tail gap compared with every fixed grid memory. Different tasks supply the gains against different constants, showing how measured memory selection improves the compromise made by a universal default.

Acknowledgements

This research was funded by the projects PID2023-146569NB-C21 and PID2023-146569NB-C22 supported by MICIU/AEI/10.13039/501100011033 and ERDF/UE. Alberto Fernández-Hernández was supported by the predoctoral grant PREP2023-001826 supported by MICIU/AEI/10.13039/501100011033 and ESF+. Cristian Pérez-Corral received support from the Conselleria de Educación, Cultura, Universidades y Empleo (reference CIACIF/2024/412) through the European Social Fund Plus 2021–2027 (FSE+) program of the Comunitat Valenciana. Jose I. Mestre was supported by the predoctoral grant ACIF/2021/281 of the Generalitat Valenciana. Manuel F. Dolz was supported by grant CNS2025-165098 funded by MICIU/AEI/10.13039/501100011033 and by the Plan Gen–T grant CIDEXG/2022/013 of the Generalitat Valenciana.

AI USE STATEMENT

The authors take full responsibility for the scientific content and final manuscript, including AI-assisted material. Generative AI supported theoretical development, data analysis, literature search, writing, and internal review.

Reproducibility Checklist

  1. For all models and algorithms presented, check if you include:

(a) A clear description of the mathematical setting, assumptions, algorithm, and/or model. Yes: § 3–§ 6 and Appendix § 15.

(b) An analysis of the properties and complexity (time, space, sample size) of any algorithm. Yes: § 7.4.

(c) (Optional) Anonymized source code, with specification of all dependencies, including external libraries. Yes.

  1. For any theoretical claim, check if you include:

(a) Statements of the full set of assumptions of all theoretical results. Yes: the local assumption and conditions accompanying results.

(b) Complete proofs of all theoretical results. Yes: the main text and Appendices § 12–§ 13.

(c) Clear explanations of any assumptions. Yes: alongside the derivations and approximation scope.

  1. For all figures and tables that present empirical results, check if you include:

(a) The code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL). Yes for the selection evaluation. Appendices § 14–§ 15 specify the measurement procedures, training recipes, and evaluation calculations.

(b) All the training details (e.g., data splits, hyperparameters, how they were chosen). Yes for the documented experimental protocol: Appendix § 15 specifies architectures, activations, optimizer settings, batches, schedules, splits, seed matching, and evaluation. It separately identifies archive-specific corpus manifests and environment revisions needed for identical raw-stream replay.

(c) A clear definition of the specific measure or statistics and error bars (e.g., with respect to the random seed after running experiments multiple times). Yes: descriptive cross-workload metrics, seed matching, and common-seed training outcomes are specified.

(d) A description of the computing infrastructure used. (e.g., type of GPUs, internal cluster, or cloud provider). Yes: a cluster with eight NVIDIA A100-SXM4 80 GB GPUs; CUDA and pilot bfloat16 execution are described in Appendix § 15.

  1. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets, check if you include:

(a) Citations of the creator If your work uses existing assets. Yes: model and dataset sources are cited.

(b) The license information of the assets, if applicable. Yes: Appendix § 15.§ 8 records software/checkpoint licenses and dataset-provider access sources, identifying the documented reuse provenance.

(c) New assets either in the supplemental material or as a URL, if applicable. Yes: measured sketches and validation-loss summaries.

(d) Information about consent from data providers/curators. N/A: the study uses existing benchmark assets under their providers’ access terms.

(e) Discussion of sensible content if applicable, e.g., personally identifiable information or offensive content. Yes: Appendix § 15 discusses inherited corpus content and the scope of the supplied data.

  1. If you used crowdsourcing or conducted research with human subjects, check if you include:

(a) The full text of instructions given to participants and screenshots. N/A: existing benchmark evaluation.

(b) Descriptions of potential participant risks, with links to Institutional Review Board (IRB) approvals if applicable. N/A: existing benchmark evaluation.

(c) The estimated hourly wage paid to participants and the total amount spent on participant compensation. N/A: existing benchmark evaluation.

Detailed derivations

This appendix derives the averaging formulas step by step. Each calculation concerns the local model stated in the main text and expresses the selection mechanism through explicit statistical quantities.

Obtaining the balanced first-order error

The first derivation shows why shared weights let the two moment channels become one direction innovation and one delay term. Bias correction normalizes the exponential weights to sum to one. The first-moment average in Assumption 1 differs from its current mean by

∑kwβ,t(k)(−kμ˙+ξk)=−aβ,tμ˙+∑kwβ,t(k)ξk.\sum_k w_{\beta,t}(k)(-k\dot{\mu}+\xi_k)=-a_{\beta,t}\dot{\mu}+\sum_k w_{\beta,t}(k)\xi_k.

The second-moment average similarly differs by −aβ,tq˙+∑kwβ,t(k)χk-a_{\beta,t}\dot{q}+\sum_k w_{\beta,t}(k)\chi_k. Applying (4) gives

eβ,t=−aβ,t(Aμ˙+Bq˙)+∑kwβ,t(k)(Aξk+Bχk).e_{\beta,t}=-a_{\beta,t}(A\dot{\mu}+B\dot{q})+\sum_k w_{\beta,t}(k)(A\xi_k+B\chi_k).

This is exact for the first-order model. The innovation sum is centered; independence across ages yields variance cβ,tVpopc_{\beta,t}V_{\mathrm{pop}}. Its squared mean is aβ,t2Dpopa_{\beta,t}^{2}D_{\mathrm{pop}}, proving (7). The assumptions pair independent ages with dependent moment channels at each age.

Finite-history weight formulas

The retained noise and the delay depend on two sums of weights. Computing them explicitly makes the finite-history risk a scalar function of β\beta and history length. For 0<β<10<\beta<1, geometric summation gives

cβ,t=(1−β)2(1−βt)21−β2t1−β2=1−β1+β1+βt1−βt.c_{\beta,t}=\frac{(1-\beta)^2}{(1-\beta^t)^2}\frac{1-\beta^{2t}}{1-\beta^2}=\frac{1-\beta}{1+\beta}\frac{1+\beta^t}{1-\beta^t}.

Moreover, ∑k=0t−1kβk=βddβ[1−βt1−β]\sum_{k=0}^{t-1}k\beta^k=\beta\frac{\mathrm{d}}{\mathrm{d}\beta}\left[\frac{1-\beta^t}{1-\beta}\right]. Multiplication by the weight normalizer yields aβ,t=β/(1−β)−tβt/(1−βt)a_{\beta,t}=\beta/(1-\beta)-t\beta^t/(1-\beta^t). At β\beta zero only the current observation has weight. At t=1t=1, aβ,1=0a_{\beta,1}=0 and cβ,1=1c_{\beta,1}=1 for every β\beta. Thus the first Adam update is independent of both memories with zero initial moments and standard bias correction.

Stationary and leading minimizers

There are two simplifications: removing finite-history correction when βt\beta^t is small, then expanding for large HH. This subsection derives each separately and states the boundary cases. For fixed β<1\beta<1, βt→0\beta^t\to0, so aβ,t→H−1a_{\beta,t}\to H-1 and cβ,t→(2H−1)−1c_{\beta,t}\to(2H-1)^{-1}. For positive coefficients,

f′(H)=−2Vpop(2H−1)2+2Dpop(H−1),f′′(H)=8Vpop(2H−1)3+2Dpop>0.f'(H)=-\frac{2V_{\mathrm{pop}}}{(2H-1)^2}+2D_{\mathrm{pop}}(H-1),\qquad f''(H)=\frac{8V_{\mathrm{pop}}}{(2H-1)^3}+2D_{\mathrm{pop}}>0.

The unique minimum solves (10). Replacing 2H−12H-1 by 2H2H and H−1H-1 by HH gives the large-memory leading expression, whose stationary point is H3=Vpop/(4Dpop)H^3=V_{\mathrm{pop}}/(4D_{\mathrm{pop}}). If that leading minimum is below one, its constrained minimum is at one. If Dpop=0<VpopD_{\mathrm{pop}}=0<V_{\mathrm{pop}}, longer memory reduces stationary-model risk; if Vpop=0<DpopV_{\mathrm{pop}}=0<D_{\mathrm{pop}}, H=1H=1 is optimal. If both are zero, every memory has zero model risk.

Sensitivity

Comparing an estimated memory with the population-model minimizer shows how coefficient errors propagate through the cube root. The logarithmic ratio of memory estimates is

log⁡H~H⋆=13(log⁡V~Vpop−log⁡D~Dpop).\log\frac{\widetilde{H}}{H_{\star}} = \frac{1}{3}\left(\log\frac{\widetilde{V}}{V_{\mathrm{pop}}} - \log\frac{\widetilde{D}}{D_{\mathrm{pop}}}\right).

The triangle inequality proves the bound. At the optimum the variance term is twice the lag term, so division of risks gives (2/z+z2)/3(2/z+z^2)/3. With z=21/3z=2^{1/3} this is approximately 1.0583. For the worked coefficients 0.18 and 4×10−64\times10^{-6}, H⋆=22.407H_{\star}=22.407 and β⋆=0.95537\beta_{\star}=0.95537. The memory value follows directly from the statistical coefficients.

The two-memory expression

The two-memory expression explains why sharing weights gives a particularly simple selection problem: the two moment channels combine into one innovation and one lag coefficient. Retain weights w1=wβ1,tw_1=w_{\beta_1,t}, w2=wβ2,tw_2=w_{\beta_2,t}. Let ai=∑kkwi(k)a_i=\sum_k kw_i(k), ci=∑kwi(k)2c_i=\sum_k w_i(k)^2, and c12=∑kw1(k)w2(k)c_{12}=\sum_k w_1(k)w_2(k). Their linearized direction error is eβ1,β2,t=∑k[w1(k)Aξk+w2(k)Bχk]−a1Aμ˙−a2Bq˙e_{\beta_1,\beta_2,t}=\sum_k[w_1(k)A\xi_k+w_2(k)B\chi_k]-a_1A\dot{\mu}-a_2B\dot{q}. Under the same assumptions,

E∥eβ1,β2,t∥2=c1E∥Aξk∥2+c2E∥Bχk∥2+2c12E⟨Aξk,Bχk⟩+∥a1Aμ˙+a2Bq˙∥2.\mathbb{E}\lVert e_{\beta_1,\beta_2,t}\rVert^2=c_1\mathbb{E}\lVert A\xi_k\rVert^2+c_2\mathbb{E}\lVert B\chi_k\rVert^2+2c_{12}\mathbb{E}\langle A\xi_k,B\chi_k\rangle+\lVert a_1A\dot{\mu}+a_2B\dot{q}\rVert^2.

Centering removes lag–innovation cross terms; independence removes cross-age terms; expansion retains same-age covariance. Equal memories recover (7), combining the channels into two scalar coefficients. This reduction provides an analytical basis for selecting a memory from the shared-memory family.

Scope and approximation

The tracking identity is exact under its first-order model. This section explains the additional quantities required to connect that identity to nonlinear updates and a smooth loss.

Residual terms

The Taylor approximation and violations of the local assumptions can be collected into a direction residual. Its size controls how much the model’s risk can differ from the actual direction-error risk. Write the actual direction error as eβ,t+Rβ,te_{\beta,t}+R_{\beta,t}, where eβ,te_{\beta,t} is the theorem’s linearized error and Rβ,tR_{\beta,t} is their difference. Let ρ\rho be any nonnegative bound on its root-mean-square size: E∥Rβ,t∥2≤ρ2\mathbb{E}\lVert R_{\beta,t}\rVert^2\leq\rho^2. Expanding the actual squared norm gives

E∥eβ,t+Rβ,t∥2−E∥eβ,t∥2=2E⟨eβ,t,Rβ,t⟩+E∥Rβ,t∥2.\mathbb{E}\lVert e_{\beta,t}+R_{\beta,t}\rVert^2-\mathbb{E}\lVert e_{\beta,t}\rVert^2=2\mathbb{E}\langle e_{\beta,t},R_{\beta,t}\rangle+\mathbb{E}\lVert R_{\beta,t}\rVert^2.

The absolute inner product is bounded by the product of root-mean-square norms, by Cauchy–Schwarz. Therefore

∣E∥eβ,t+Rβ,t∥2−E∥eβ,t∥2∣≤2ρE∥eβ,t∥2+ρ2.\left|\mathbb{E}\lVert e_{\beta,t}+R_{\beta,t}\rVert^2-\mathbb{E}\lVert e_{\beta,t}\rVert^2\right|\leq2\rho\sqrt{\mathbb{E}\lVert e_{\beta,t}\rVert^2}+\rho^2.

The residual represents nonlinear normalization and deviations from the local statistical model. The inequality quantifies how a stated residual bound transfers the model risk to the actual direction-error risk. Applying it along an adaptive trajectory requires a bound on the residual at the corresponding updates. The workload measurements audit the practical proxies and selected configurations.

Comparing memories at finite measurement resolution

Proposition 3 quantifies the allowance introduced by estimating a slope from noisy endpoints. This subsection measures its effect on the memory decision under the same local model. Fix a finite candidate set B⊂[0,1]\mathcal{B}\subset[0,1] and the update tt. Define Rt(β)=E∥Peβ,t∥2R_t(\beta)=\mathbb{E}\lVert Pe_{\beta,t}\rVert^2, and let βR\beta_R minimize RtR_t and βU\beta_U minimize UL,tU_{L,t} on B\mathcal{B}. The coefficients in both functions are the population and expected-measurement coefficients specified in the proposition. Then

0≤Rt(βU)−Rt(βR)≤CL2(aβR,t2−aβU,t2)≤CL2aβR,t2.0\leq R_t(\beta_U)-R_t(\beta_R)\leq\frac{C}{L^2}\left(a_{\beta_R,t}^2-a_{\beta_U,t}^2\right)\leq\frac{C}{L^2}a_{\beta_R,t}^2.

To prove this, start with UL,t(βU)≤UL,t(βR)U_{L,t}(\beta_U) \le U_{L,t}(\beta_R) and substitute (19) on both sides. Rearranging gives the middle inequality; optimality of βR\beta_R gives the lower bound. Since mean ages are nonnegative, discarding the subtracted age term gives the last bound. The result compares two memory decisions through their local tracking risk and makes the cost of measurement resolution explicit.

Finite coefficient accuracy can be incorporated in the same comparison. Suppose a measured score U^L,t\widehat{U}_{L,t} satisfies ∣U^L,t(β)−UL,t(β)∣≤δ\lvert\widehat{U}_{L,t}(\beta) - U_{L,t}(\beta) \rvert\le\delta simultaneously for every β∈B\beta\in\mathcal{B}, and let β^\widehat{\beta} minimize this measured score. Inserting the two uniform error bounds into U^L,t(β^)≤U^L,t(βU)\widehat{U}_{L,t}(\widehat{\beta}) \le\widehat{U}_{L,t}(\beta_U) yields UL,t(β^)≤UL,t(βU)+2δU_{L,t}(\widehat{\beta}) \le U_{L,t}(\beta_U) + 2\delta. Hence

Rt(β^)−Rt(βR)≤CL2aβR,t2+2δ.R_t(\widehat{\beta}) - R_t(\beta_R) \le\frac{C}{L^2}a_{\beta_R,t}^2 + 2\delta.

Here δ\delta is an assumed uniform coefficient-score accuracy, and the bound is conditional on it. For example, bounds ∣V^emp−VP∣≤ϵV\lvert\widehat{V}_{\mathrm{emp}} - V_P \rvert\le\epsilon_V and ∣D^emp−DL∣≤ϵD\lvert\widehat{D}_{\mathrm{emp}} - D_L \rvert\le\epsilon_D give δ=max⁡β∈B(ϵVcβ,t+ϵDaβ,t2)\delta= \max_{\beta\in\mathcal{B}}(\epsilon_V c_{\beta,t} + \epsilon_D a_{\beta,t}^2). For a cubic-and-rounded candidate bb, define its measured optimization discrepancy as η^=U^L,t(b)−min⁡β∈BU^L,t(β)\widehat{\eta} = \widehat{U}_{L,t}(b) - \min_{\beta\in\mathcal{B}}\widehat{U}_{L,t}(\beta). The same argument gives the bound Rt(b)−Rt(βR)≤(C/L2)aβR,t2+2δ+η^R_t(b) - R_t(\beta_R) \le(C/L^2)a_{\beta_R,t}^2 + 2\delta+ \widehat{\eta}: insert this discrepancy before applying the two uniform error bounds. Thus coefficient accuracy and optimization accuracy have separate roles. The exact finite-history audit finds η^=0\widehat{\eta} = 0 for all eleven observed choices at t=200t = 200. Timing and decision-margin audits describe their additional empirical sensitivity.

A local connection to the loss

Tracking error matters because it perturbs a reference update. The following one-step inequality separates a systematic directional shift from the curvature cost of fluctuations. If FF has an LL-Lipschitz gradient, θ\theta, rr are fixed, and u=r+eu = r + e has finite second moment, the smoothness inequality at θ−ηr\theta- \eta r gives

EF(θ−ηu)≤F(θ−ηr)−η⟨∇F(θ−ηr),Ee⟩+Lη22E∥e∥2≤F(θ−ηr)+η∥∇F(θ−ηr)∥∥Ee∥+Lη22E∥e∥2.\begin{aligned} \mathbb{E}F(\theta- \eta u) \le F(\theta- \eta r) - \eta\langle\nabla F(\theta- \eta r),\mathbb{E}e\rangle+ \frac{L\eta^2}{2}\mathbb{E}\lVert e\rVert^2 \\ &\le F(\theta- \eta r) + \eta\lVert\nabla F(\theta- \eta r)\rVert\lVert\mathbb{E}e\rVert+ \frac{L\eta^2}{2}\mathbb{E}\lVert e\rVert^2. \end{aligned}

The term involving Ee\mathbb{E}e measures a systematic shift from the reference direction; the term involving E∥e∥2\mathbb{E}\lVert e\rVert^2 is the curvature penalty. This one-step inequality connects direction-error moments to the loss under the stated smoothness assumption. Its parameter-space norm makes a norm-transfer bound necessary when the error is measured through a sketch. The empirical comparisons evaluate the selected configurations through their full-training validation losses.

Numerical checks of the identities

These checks test the algebra and the specified innovation model, independently of the saved neural-network outcomes. With NumPy seed 20261005, 1,000 random-vector cases verify (15) with maximum absolute residual 7.11×10−157.11 \times10^{-15}, and 1,000 positive-coefficient cases verify (12) with residual 1.33×10−151.33 \times10^{-15}. An affine-model check uses 30,000 independent histories of length 128, β\beta 0.95, innovation standard deviation 0.3, and slope 0.002:

e=∑k=0127w0.95,128(k)ξk−0.002∑k=0127kw0.95,128(k),ξk∼N(0,0.32).e = \sum_{k=0}^{127} w_{0.95,128}(k)\xi_k - 0.002\sum_{k=0}^{127} k w_{0.95,128}(k), \qquad\xi_k \sim\mathcal{N}(0,0.3^2).

Its measured mean squared error is 0.00373524, versus exact 0.00373090; the Monte Carlo standard error is 2.84×10−52.84 \times10^{-5}. These checks test the statistical formulas, separately from network training.

Measurement reproducibility

To reproduce a selection, one needs four direction measurements and the fixed geometry used to compare them. The following specification covers gradient processing, state preservation, projection, and scalar calculation in that order.

Gradient samples and probe state

The pilot seed is 1 and shared β\beta 0.95. Models remain in training mode during probes, including dropout and augmentation. For accumulation count aa, each effective-batch gradient averages aa physical-batch losses. Norm clipping follows accumulation. Coupled Adam decay is added after clipping; AdamW’s decoupled decay belongs to the parameter update. Sixteen fresh effective batches are drawn per required checkpoint with parameters held fixed. Partition their ordered samples into four groups of four; each group computes its own first and second moments before normalization. The pooled direction uses all sixteen samples. Thus the dispersion calculation compares four group directions, each formed from four samples, with one pooled direction.

Python, NumPy, CPU/CUDA random states, module training flags, and mutable buffers are restored after probing, preserving the pilot’s training state. The dedicated probe iterator and generator advance through the sampled examples. Gradients are cleared afterward. Dense archives contain checkpoints through update 500 and additional probe budgets; the rule replays checkpoints 100, 150, 180, and 200 with sixteen samples each. Matching the original probe examples in a sparse collection requires reproducing the dense stream’s advancement. The supplied measured sketches provide exact reconstruction of the reported decisions. The 64-gradient operation count describes a prospective compact four-checkpoint deployment; the experiments reconstruct its decision from the dense archive’s observations.

Pilot vision loaders use zero worker processes and a separate probe generator seeded by training seed plus 10000019. GPT pilot training and probe generators use seed plus 101 and seed plus 10000101, respectively. Llama’s training shuffle uses seed 42 and the probe shuffle uses seed plus 10000003.

The exact fixed sketch

The sketch makes measurements storable while giving each parameter tensor comparable weight. It defines a tensor-balanced measurement norm. For example, multiplying one tensor’s dimension by four reduces each of its coordinate weights by two. The same fixed linear map applies to the theorem’s innovations and slope, giving the tracking identity in this measurement geometry. Transferring a sketch-space error bound to the original parameter-space norm requires an accompanying norm-transfer bound. Use dimension 1,024 and seed 12,345. For trainable tensor pp with npn_p entries, assign coordinate ii to bucket bp,ib_{p,i} and sign sp,i∈{−1,1}s_{p,i} \in\{-1,1\}. The projection is

(Pr)b=∑p1np∑i:bp,i=bsp,irp,i.(\mathit{Pr})_b = \sum_p \frac{1}{\sqrt{n_p}} \sum_{i:b_{p,i}=b} s_{p,i} r_{p,i}.

To obtain each tensor’s bucket/sign generator seed, join the decimal projection seed, parameter name, and suffix idx or sgn with \textbar. Hash its UTF-8 bytes with BLAKE2b, eight-byte digest; interpret little-endian unsigned and retain the low 31 bits. Seed independent Torch CPU generators for bucket and sign draws. Buckets are uniform integers 0–1023; signs are generated by uniform integers 0 or 1 mapped to −1-1 or +1+1. Flatten tensors and accumulate in float64. Names are the model’s named trainable parameters. Global sketches sum tensor sketches and supply the selection inputs. The archive also contains layerwise 32-coordinate diagnostic sketches.

Statistical basis of the coefficient estimates

The main estimators use two standard operations: variance estimation from independent groups and linear regression on the lag responses. This subsection supplies the calculations and states precisely where their unbiasedness applies.

Grouped variability. At a fixed checkpoint, let Zi=PξicZ_i = P\xi_i^c be independent, centered linearized direction innovations with E∥Zi∥2=VP\mathbb{E}\left\|Z_i\right\|^2 = V_P. Each of GG disjoint groups contains m/Gm/G observations. Its innovation average is Z(j)=(G/m)∑i in group jZiZ^{(j)} = (G/m)\sum_{i\ \mathrm{in\ group}\ j} Z_i, and their common mean is Zˉ=G−1∑jZ(j)\bar{Z} = G^{-1}\sum_j Z^{(j)}. Independence and centering give

E∥Z(j)∥2=GmVP,E∥Zˉ∥2=1mVP.\mathbb{E}\left\|Z^{(j)}\right\|^2 = \frac{G}{m}V_P,\qquad\mathbb{E}\left\|\bar{Z}\right\|^2 = \frac{1}{m}V_P.

The identity G−1∑j∥Z(j)−Zˉ∥2=G−1∑j∥Z(j)∥2−∥Zˉ∥2G^{-1}\sum_j\left\|Z^{(j)}-\bar{Z}\right\|^2 = G^{-1}\sum_j\left\|Z^{(j)}\right\|^2-\left\|\bar{Z}\right\|^2 therefore yields

E[1G∑j∥Z(j)−Zˉ∥2]=G−1mVP.\mathbb{E}\left[\frac{1}{G}\sum_j\left\|Z^{(j)}-\bar{Z}\right\|^2\right] = \frac{G-1}{m}V_P.

In the linearized model, subtracting the common population direction from pooled and group estimates leaves these innovation averages. (14) thus estimates VPV_P without bias under this model. For nonlinear normalized moment estimates, Proposition 2 still holds exactly, but the group vectors also contain higher-order terms. Its pooling displacement describes one observable contribution; the residual analysis in Appendix § 13 addresses the additional approximation error.

Temporal regression. Condition on the pilot parameter trajectory in the observation model of § 5. The lags and projected population directions are then fixed. Write Y=(yn1,…,ynK)TY=(y_{n_1},\ldots,y_{n_K})^\mathsf{T} and let XX be the KK-by-two matrix whose row ℓ\ell is (1,nℓ−2)(1,n_\ell^{-2}). (16) gives Y=X(DP,C)T+νY=X(D_P,C)^\mathsf{T}+\nu, where ν\nu is the regression residual vector and Eν=0\mathbb{E}\nu=0. Distinct lags make the two columns independent. The ordinary least-squares coefficients satisfy

(IfitCfit)=(XTX)−1XTY=(DPC)+(XTX)−1XTν.\begin{pmatrix} I_{\mathrm{fit}} \\ C_{\mathrm{fit}} \end{pmatrix} =(X^\mathsf{T}X)^{-1}X^\mathsf{T}Y =\begin{pmatrix} D_P \\ C \end{pmatrix} +(X^\mathsf{T}X)^{-1}X^\mathsf{T}\nu.

Taking expectations proves unbiasedness of the unconstrained coefficients. The errors in YY may be correlated and have different variances; these features affect uncertainty and efficiency, while the expectation calculation only uses their zero means. The implementation’s least-squares choice matches the affine mean relation and requires no distributional likelihood assumption. Componentwise clipping subsequently enforces the nonnegative score coefficients and can alter their sampling expectations, particularly near zero.

Coefficient calculation and conversion

The calculation uses fresh probe moments: pooled directions for checkpoint changes and individual group directions for fluctuations at a fixed checkpoint. For m=16m=16, G=4G=4, V^emp=(4/3)∑j=14∥z200(j)−z200∥2\widehat{V}_{\mathrm{emp}}=(4/3)\sum_{j=1}^{4}\left\lVert z_{200}^{(j)}-z_{200}\right\rVert^2. Each group normalizes moments from four effective-batch gradients; the pooled direction uses moments from all sixteen. The archived collector also uses a square-root floor τ=10−30\tau=10^{-30} in auxiliary derivative calculations. Its guarded direction is numerically identical to (13) in the collector’s float64 arithmetic with ϵ=10−8\epsilon=10^{-8}: the floor changes a denominator only when q^<τ\sqrt{\widehat{q}}<\tau, and both sums with epsilon then round to epsilon. For exact arithmetic the coordinatewise difference is at most τ2/(4ϵ2)=2.5×10−45\tau^2/(4\epsilon^2)=2.5\times10^{-45}, since ∣μ^∣≤q^|\widehat{\mu}|\le\sqrt{\widehat{q}}. Thus the direction estimator can be written in the standard Adam form without changing the archived selection inputs.

Build a three-by-two least-squares design with rows (1,n−2)(1,n^{-2}) for n=20,50,100n=20,50,100, and response yny_n. Solve for (I,C)(I,C), apply componentwise clipping I^=max⁡(0,I)\widehat{I}=\max(0,I) and C^=max⁡(0,C)\widehat{C}=\max(0,C), and evaluate at lag 100. The algorithm therefore consists of one ordinary least-squares fit followed by clipping. Raw checkpoint sketches supply the lag observations directly. The resulting D^emp\widehat{D}_{\mathrm{emp}} is the fitted nonnegative change on the stated observation scale, including its finite-lag contribution.

For positive coefficients, calculate the cubic memory in (21). The admissible interval is Hmin⁡=1/(1−0.68377)H_{\min}=1/(1-0.68377) through Hmax⁡=1/(1−0.999)H_{\max}=1/(1-0.999); restrict memory to this interval and convert it to β\beta. Equivalently, this minimizes the operational leading score over the continuous interval before nearest-β\beta rounding. If D^emp=0<V^emp\widehat{D}_{\mathrm{emp}}=0<\widehat{V}_{\mathrm{emp}}, the score decreases with memory, so use Hmax⁡H_{\max}. If V^emp=0<D^emp\widehat{V}_{\mathrm{emp}}=0<\widehat{D}_{\mathrm{emp}}, use Hmin⁡H_{\min}. If both vanish, all scores tie and the smaller β\beta resolves the tie. These cases follow from minimizing the stated objective. All main measurements have positive coefficients. Rounding is in β\beta distance, with ties toward the smaller grid value.

Appendix § 14.§ 3 derives the variance correction; Proposition 2 separates group scatter and nonlinear pooling displacement.

Training reproducibility

The selected configurations are evaluated using fixed-memory training runs. This appendix specifies the common protocol, then the architecture, data processing, and validation for each family. Offline reconstruction from the supplied measurements is described separately from regenerating the original training streams.

Shared settings and schedules

All sweep runs use equal β\beta values and epsilon 10−810^{-8} outside the root. For each workload, candidates share batch size, architecture, data, learning-rate recipe, and evaluation schedule. The main comparison uses seed 1. Initialization seeds Python, NumPy, Torch CPU, and all CUDA devices; cuDNN uses deterministic mode with benchmarking set to False. Models use random initialization, except T5-small, which uses its pretrained checkpoint. Pilots use CUDA and bfloat16 autocast; fused optimizers are used when available.

Full-training budgets are 10,000 updates for language models and T5; 50 epochs for Food-101 and both ViTs; 80 epochs for ImageNet100; 100 epochs for Cars; 60 epochs for Caltech-256. Vision full-training schedule horizons equal epochs times training batches per epoch. Their rates warm up linearly, then decay as

ηs=ηmin⁡+ηmax⁡−ηmin⁡2[1+cos⁡(πs−WT−W)],s>W,\eta_s = \eta_{\min} + \frac{\eta_{\max} - \eta_{\min}}{2}\left[1+\cos\left(\pi\frac{s-W}{T-W}\right)\right], \qquad s>W,

with ηs=ηmax⁡s/W\eta_s=\eta_{\max}s/W during warmup. ResNet warmup is 5% of the horizon; ViT uses 1,000 updates; EfficientNet and Swin use the larger of 100 updates and 5% of the horizon. Language warmups are 1,000 for Llama and T5, and 2,000 for GPT-2-style models.

Pilot schedule horizons are explicitly configured as listed in Table 4, including ImageNet100 and Caltech-256. Pilot warmup lengths are 1,000 for Llama and T5; 2,000 for GPT-2-style models; 1,477 for Food; 4,060 for ImageNet100; 1,000 for ViTs; 640 for Cars; and 1,128 for Swin. Thus all four compact measurements occur during warmup.

NetworkDatasetStepsBatchAccum.LR maxDecayClip
EfficientNet-B0Cars128006410.00085e-051
Llama60MC4100006480.0011e-050
Llama60MSlimPajama100006480.0011e-050
NanoGPTOpenWebText1000081280.00060.011
NanoGPTWikiText-1031000081280.00060.011
ResNet50Food-1012955012810.00030.010
ResNet50ImageNet1008120012810.00030.010
Swin-TCaltech-256225606410.00040.051
T5-smallBookCorpus10000880.00010.011
ViT-B/16CIFAR-1001950012810.00050.11
ViT-B/16TinyImageNet3905012810.00050.11

Table 4. Pilot schedule and optimizer settings. Steps is the configured schedule horizon; batch is physical batch size. Accumulation defines the effective batch. Clip zero denotes an unmodified gradient norm.

AdamW excludes one-dimensional parameters, biases, and normalization parameters from decay according to the recipe: batch-normalization names for ResNet; normalization names for GPT, ViT, Swin, and T5. Llama uses coupled Adam decay on all parameters; EfficientNet also uses coupled Adam decay. Clipping is on the full accumulated gradient norm before the optimizer update.

Causal language modeling

GPT-2-style models. Both have six decoder blocks, width 384, six attention heads, feedforward width 1,536, vocabulary 50,304, and context 256. They use learned position embeddings, tied input/output embeddings, layer normalization epsilon 10−510^{-5}, GPT-2 approximate GELU, initialization standard deviation 0.02, and dropout 0.2 in embeddings, attention, and residuals. Each effective batch averages 128 physical batches of eight sequences (262,144 input tokens). AdamW uses maximum rate 6×10−46 \times10^{-4}, minimum 6×10−66 \times10^{-6}, decay 0.01, and clip 1.

WikiText-103 uses its raw training/validation splits and GPT-2 tokenization ([18]). OpenWebText uses separately packed training/validation streams ([9]). Batches sample uniform contiguous start positions, giving length-256 inputs and one-token-shifted targets. Evaluation every 500 updates averages next-token cross-entropy over 50 validation batches. Its validation generator uses seed 123456789; train-set evaluation uses 987654321. The packed OpenWebText streams define the actual split; their corpus revision and packing manifest are required to match the exact archived samples.

Llama-style models. Both have eight decoder blocks, width 512, feedforward width 1,376, eight attention heads, SiLU-gated feedforward layers, rotary positional encoding, RMS normalization epsilon 10−610^{-6}, and initialization standard deviation 0.02 ([26]). The configured vocabulary begins at 32,000 and is expanded for the T5-base tokenizer when required. Sequences have length 256; eight physical batches of 64 sequences form each effective batch (131,072 token positions). Adam uses maximum rate 10−310^{-3}, minimum 10−410^{-4}, coupled decay 10−510^{-5}, and gradients with their original norms.

C4 uses the English configuration [22]; the second task uses the cached DKYoon/SlimPajama-6B subset [23]. Texts are shuffled with seed 42, tokenized with T5-base, truncated/padded to 256, and evaluated with valid-token masking. Validation uses batch size 64 and a ten-million-valid-token target. Evaluation is recorded at update 1 and every 1,000 updates, aggregating losses by valid target count.

Image classification models

ResNet50. Bottleneck stages have depths (3, 4, 6, 3) and output widths (256, 512, 1024, 2048), using ReLU, batch normalization, a 7×77 \times7 stride-2 stem and max pooling, and global average pooling (He et al., 2016). Dropout 0.2 precedes the linear 101-class Food or 100-class ImageNet head. AdamW uses maximum rate 3×10−43 \times10^{-4}, minimum 3×10−53 \times10^{-5}, decay 0.01, gradients with their original norms, and batch 128.

ViT-B/16. Inputs are 224×224224 \times224 RGB images with 16×1616 \times16 patches. The encoder has 12 blocks, width 768, 12 heads, feedforward width 3,072, GELU, layer-normalization epsilon 10−610^{-6}, and the standard torchvision zero encoder/attention-dropout defaults [7]. Heads have 100 CIFAR or 200 TinyImageNet outputs. AdamW uses maximum rate 5×10−45 \times10^{-4}, minimum 5×10−65 \times10^{-6}, decay 0.1, clip 1, and batch 128.

Swin-T. Patch size is 4, window size 7, base width 96, stage depths (2, 2, 6, 2), head counts (3, 6, 12, 24), and feedforward expansion 4 [15]. Shifted-window attention, GELU, layer normalization, and stochastic depth 0.2 are used, with a 256-class head. AdamW uses maximum rate 4×10−44 \times10^{-4}, minimum 4×10−64 \times10^{-6}, decay 0.05, clip 1, and batch 64.

EfficientNet-B0. The 32-channel stem is followed by seven MBConv stages. Their (expansion, kernel, first stride, output channels, repetitions) are (1, 3, 1, 16, 1), (6, 3, 2, 24, 2), (6, 5, 2, 40, 2), (6, 3, 2, 80, 3), (6, 5, 1, 112, 3), (6, 5, 2, 192, 4), and (6, 3, 1, 320, 1) [24]. Squeeze-and-excitation, SiLU, stochastic depth 0.2, a final width of 1,280, global pooling, dropout 0.2, and a 196-class head complete the model. Adam uses maximum rate 8×10−48 \times10^{-4}, minimum 10−510^{-5}, coupled decay 5×10−55 \times10^{-5}, clip 1, and batch 64.

Vision datasets, preprocessing, and evaluation

Food-101 uses 75,750 training and 25,250 validation images [4]. Stanford Cars uses 8,144/8,041 images, with its test partition used for validation [13]. CIFAR-100 uses 50,000/10,000 images [14]. TinyImageNet uses 100,000 training and 10,000 validation images across 200 classes. ImageNet100 is a 100-class subset [6]; the pilot loads 126,689 training images and remaps labels consistently across four training partitions and validation. Exact subset membership is determined by its synset manifest.

Caltech-256 excludes clutter [10]. Sort category names and image paths lexicographically, create one Python random generator with seed 123, visit classes in order and shuffle each class’s paths, then take the first 60 images for training and the remainder for validation. The generator continues across classes. This gives 15,360 training images.

All inputs are converted to RGB. ResNet uses random resized crop 224, area scale (0.6, 1), aspect ratio (3/4, 4/3), horizontal flip probability 0.5, and brightness/contrast/saturation/hue jitter (0.2, 0.2, 0.2, 0.1). ViT and Swin use crop area scale (0.5, 1), the same ratio/flip, RandAugment with two operations and magnitude 12, and random erasing probability 0.25, area (0.02, 0.2), ratio (0.3, 3.3), random fill.

EfficientNet uses crop area (0.7, 1), ratio (0.85, 1.15), flip 0.5, color jitter (0.2, 0.2, 0.15, 0.03), RandAugment with one operation and magnitude 7, and erasing probability 0.1, area (0.02, 0.12), ratio (0.5, 2), random fill. Erasing follows tensor conversion and normalization. Evaluation resizes the shorter side to 256 and center crops to 224.

Normalization uses means (0.485, 0.456, 0.406) and standard deviations (0.229, 0.224, 0.225); CIFAR uses (0.5071, 0.4867, 0.4408) and (0.2675, 0.2565, 0.2761). Training uses cross-entropy with label smoothing 0.1, except EfficientNet with 0.05. Validation uses plain cross-entropy with label smoothing set to zero. Validation averages batch-mean losses, weighting the final partial batch equally at batch level. Evaluation occurs every epoch. Training shuffles and drops partial batches except EfficientNet; validation preserves dataset order and includes every batch.

T5 denoising

T5-small begins from the pretrained checkpoint and tokenizer [22]. Both encoder and decoder have six blocks, width 512, feedforward width 2,048, eight heads with key/value width 64, ReLU, normalization epsilon 10−610^{-6}, and dropout 0.1. BookCorpus [28] uses span corruption with maximum input length 256, noise density 0.15, mean span length 3, and sentinel tokens. Padded targets are masked with −100-100.

Corruption is seeded by training seed plus example index; validation adds 10,000,000. Full training reserves the first 20,000 corpus records for validation and uses the remaining 73,984,228 for training. Here a record is one indexed text row. The pilot reserves the first 1,000 records. These are distinct pilot/full partitions. Eight physical batches of eight form each effective batch. AdamW uses maximum rate 10−410^{-4}, minimum 10−510^{-5}, decay 0.01, and clip 1. The 10,000-update training evaluates every 1,000 updates with batch size eight and valid-target-token weighting. The ten-workload comparison excluding T5 gives mean gaps 0.6850% for fixed β\beta and 0.4060% for the rule.

Metrics and implementation provenance

Take each run’s minimum recorded validation loss. For the primary table, the smallest of the eleven seed-1 grid losses defines (22)’s reference. For the common-seed comparison, first take each run’s minimum and then average those minima over identical seed sets.

The implementation uses PyTorch, torchvision, Transformers, NumPy, and dataset-loading utilities. Training was executed on a cluster equipped with eight NVIDIA A100-SXM4 GPUs with 80 GB memory each; this identifies available cluster hardware. The retained execution records identify CUDA and pilot bfloat16 autocast. Exact regeneration of the original training streams additionally requires pinned package versions, the ImageNet100 synset list, packed OpenWebText split manifest, and corpus/checkpoint revisions. The training recipes and matched-seed evaluation are specified here; those additional identifiers determine the exact environment and sample streams.

Reconstructing the selection evaluation

For each workload, use the pooled and group directions at its four measurement checkpoints. Calculate V^emp\widehat{V}_{\mathrm{emp}} by (14), fit the three squared secants by (17), calculate DempD_{\mathrm{emp}} by (18), and convert their ratio to a grid β\beta by § 6. Then evaluate that β\beta’s recorded validation loss and compute its relative gap by (22). Take the arithmetic mean of the eleven gaps, their maximum, and the mean of their three largest values. Applying the identical aggregation to a fixed β\beta gives the comparator. The resulting mean gaps are 0.6235665% for β\beta 0.94377 and 0.3694690% for the rule. Timing and probe-budget analyses repeat these steps with their stated measurement designs, holding the candidate trainings fixed.

Existing corpus content. The language tasks use existing text corpora, which can contain offensive text and personally identifying information inherited from their sources. The study uses these benchmark assets for aggregate training and validation measurements. Released measurements consist of gradient-direction sketches and aggregated validation losses. Use of the original datasets and checkpoints remains subject to their providers’ access conditions and licenses.

Existing assets and access conditions

Software and checkpoint licenses and dataset-provider terms govern access to the original assets. Table 5 identifies their providers and documented license information. Released measurements consist of gradient-direction sketches and aggregated losses.

AssetLicense information or provider record
PyTorch / torchvisionBSD-style / BSD-3-Clause: PyTorch license and torchvision license.
NumPy / TransformersBSD-3-Clause / Apache-2.0: NumPy license and Transformers license.
T5-small checkpointApache-2.0, as stated in the provider model card. The other evaluated models start from random weights.
C4 / WikiText-103C4 card: ODC-By. WikiText card: CC-BY-SA-3.0 and GFDL.
SlimPajama-6BThe subset card points to the original SlimPajama record for source and license information. This original provider record supplies the access provenance used here.
OpenWebText / Book-CorpusProvider records: OpenWebText and BookCorpus. Rights in underlying web text and books remain with their respective sources.
ImageNet / TinyImageNetImageNet access terms specify noncommercial research and educational use. The TinyImageNet release supplies its distribution provenance; consult the provider’s terms for reuse.
Caltech-256CaltechDATA provider record, including its rights metadata.
Food-101 / Cars / CIFAROriginal access sources: Food-101, Stanford Cars, and CIFAR-100. These provider records supply the dataset-access provenance used here.

Table 5. Software and model license records, and dataset access sources. The providers’ records govern access and reuse of the original assets.

Ablations and additional measurements

The following analyses address separate questions: whether a nearby decision time retains the benefit, how many probe batches are needed, how measured coefficients determine β\beta, and how the selected configurations behave over common training seeds. Each analysis reuses saved candidate losses. Measurements select the configuration; the loss lookup evaluates it afterward.

Decision timing and probe budget

First hold the probe budget at sixteen and change the decision update. Table 6 reports updates 100, 150, 200, and 250. For a decision at update ss, measure at s−100s - 100, s−50s - 50, s−20s - 20, ss and use exactly the same fit, cubic rule, and rounding. For instance, a decision at update 150 uses observations at 50, 100, 130, and 150. Shifting this window changes the observed dynamics while preserving the measurement scales and training recipes.

Decision updateMean gapMaximum gapCVaR25_{25}
1000.63452.18621.5271
1500.36951.33391.1359
2000.36951.33391.1359
2500.36951.33391.1359

Table 6. Decision-time sensitivity with sixteen probes per checkpoint and matched seed 1. Gaps are percentages. The near-0.95 comparator, β\beta 0.94377, has mean 0.6236, maximum 2.4853, and CVaR 2.0409.

Updates 150, 200, and 250 give the same aggregate result. Update 100 has a slightly larger mean gap and a smaller maximum and CVaR than the near-0.95 reference. These results locate a useful early observation region. Appendix § 16.§ 8 extends the analysis to every integer update from 100 to 500 on the same pilot trajectories and fixed candidate trainings.

Probe allocation and budget sensitivity

The common sixteen-probe design assigns four gradients to each of four groups. Averaging the gradients of each group supplies its first and second moment estimates before normalization; comparing groups supplies a dispersion measurement. The pooled direction uses all sixteen gradients. Thus the budget supports two statistical roles, rather than sixteen independent votes for a β\beta. Powers of two provide equal groups throughout the measured allocation m∈{2,4,8,16}m \in\{2, 4, 8, 16\}, with G=min⁡(m,4)G = \min(m,4).

The averaging role has a simple theoretical scale. If independent linear direction observations have covariance Σ\Sigma, their mm-sample mean has covariance Σ/m\Sigma/m; expand the covariance of the sum and use independence to eliminate cross terms. Under independent, equal-variance endpoints, the squared secant has an expected noise contribution 2tr⁡(Σ)/(mn2)2\operatorname{tr}(\Sigma)/(m n^2) at lag nn. This explains why the observation budget affects the finite-resolution term in the temporal fit. For the implemented nonlinear normalization, Proposition 2 separately accounts for pooling order. The choice m=16m = 16, G=4G = 4 is a compact common allocation; these sampling identities explain its roles and scaling, while the measured budget audit evaluates its selections. Table 7 holds update 200, the coefficient formula, and the rounding convention fixed, and reports every examined budget. The variability multiplier remains m/(G−1)m/(G - 1) throughout. Four and eight probes produce the same discrete choices, while sixteen changes the selections for EfficientNet, both ResNets, and T5. The table therefore exposes how increased averaging and changed endpoint resolution translate into the practical memory decision. The common allocation is used unchanged across tasks. Workload-specific information enters through measured

Effective batchesGroupsMean gapMaximum gapCVaR25_{25}
220.91852.59132.4600
440.68292.48532.0409
840.68292.48532.0409
1640.36951.33391.1359

Table 7. Probe-budget sensitivity at update 200. Relative gaps are percentages; the fixed comparator has mean 0.6236%, maximum 2.4853%, and CVaR25_{25} 2.0409%. Bold marks the smallest entry in each metric column.

variability and temporal change. The coefficient sensitivity and rounding margins quantify how these inputs determine the continuous memory and the final grid choice.

Separation of measurement and evaluation. For each protocol, gradient measurements determine the coefficients and the β\beta before the candidate-loss lookup. Candidate losses then evaluate the resulting configuration. The same equations and rounding apply to every workload. Protocol comparisons are exploratory sensitivity analyses on this benchmark suite, describing how the decisions respond to the implementation choices.

Comparison with every fixed grid value

Table 8 evaluates all eleven fixed β\beta values using the same seed-1 losses and aggregation. Each constant applies to the entire workload suite. The rule has smaller mean, maximum, and CVaR than every constant, reducing mean gap by 32.3% against the retrospectively best fixed value, 0.96838. This evaluates the same gradient-based decisions under a stronger comparator than the near-0.95 reference.

Fixed shared β\beta or methodMean gapMaximum gapCVaR25_{25}
0.683774.815211.66519.9106
0.822172.05016.47324.5653
0.900001.42923.87703.3543
0.943770.62362.48532.0409
0.968380.54612.18621.4304
0.982221.81287.28264.5072
0.990003.15929.47008.2164
0.994387.968724.607018.4218
0.9968413.673234.557628.0746
0.9982227.672263.789955.7021
0.9990042.758381.331273.2353
Tracking rule0.36951.33391.1359

Table 8. All fixed shared memories on the evaluated grid, and the tracking rule. Gaps are percentages. Bold marks the smallest value in each metric column.

Task-level calibration and workload composition

The two strongest fixed choices expose different compromises. Shared β\beta 0.94377 minimizes the four causal-language-model losses and the vision-transformer family mean in the recorded grid. Shared β\beta 0.96838 minimizes the ResNet family mean and the whole-suite fixed mean. The measured rule combines these task-specific choices with its shorter causal-model memory.

For a comparator bb, define gap benefit as gap⁡e(b)−gap⁡e(β^e)\operatorname{gap}_{e}(b)-\operatorname{gap}_{e}(\widehat{\beta}_{e}), in percentage points, and direct loss improvement as 100[Le(b)−Le(β^e)]/Le(b)100[L_{e}(b)-L_{e}(\widehat{\beta}_{e})]/L_{e}(b). Positive values favor the rule. Table 9 separates those metrics for both fixed comparators. Relative gap reduction is the reduction of distance to the grid reference; direct loss improvement gives the scale in the actual objective. Against 0.94377, positive task-level gap changes sum to 3.7332 points and

NetworkDatasetβ^\widehat{\beta}Rule gapGap benefit (pp) .94377Gap benefit (pp) .96838Loss improvement (%) .94377Loss improvement (%) .96838
EfficientNet-B0Cars0.968381.0124-0.2853+0.0000-0.2833+0.0000
Llama60MC40.900000.2582-0.2582-0.0700-0.2582-0.0699
Llama60MSlimPajama0.900000.1175-0.1175-0.0924-0.1175-0.0924
NanoGPTOpenWebText0.900000.1157-0.1157-0.1137-0.1157-0.1137
NanoGPTWikiText0.900000.1613-0.1613-0.0800-0.1613-0.0800
ResNet50Food-1010.968381.0613+1.4240+0.0000+1.3895+0.0000
ResNet50ImageNet1000.968380.0000+2.3036+0.0000+2.2517+0.0000
Swin-TCaltech0.943770.0000+0.0000+2.1862+0.0000+2.1395
T5-smallBookCorpus0.968380.0039+0.0056+0.0000+0.0056+0.0000
ViT-B/16CIFAR0.943770.0000+0.0000+0.4036+0.0000+0.4020
ViT-B/16TinyImageNet0.943771.3339+0.0000-0.2903+0.0000-0.2873

Table 9. Signed task-level benefits against the near-0.95 fixed value and the best global fixed value. Gap benefits are percentage points; direct loss improvements are percentages. Positive entries favor the rule.

adverse changes to 0.9381 points. Against 0.96838, these sums are 2.5899 and 0.6465 points. Both comparisons express larger corrections offset by smaller calibration costs. The ResNet contribution is 3.7276 points against the first comparator and exactly zero against the second, where both configurations coincide. Swin and ViT/CIFAR-100 provide the positive changes against the best global fixed value. These complete decompositions locate the gains of the benchmark-wide comparison.

For a workload-composition audit, remove each task in turn, retain every original rule decision, and recompute both the aggregate and the best fixed value on the remaining ten tasks. The rule has smaller mean gap in ten of the eleven subsets. Table 10 gives all subsets and also keeps the original fixed comparators visible. In the subset excluding Swin, the rule’s mean gap is 0.4064% and the best fixed mean is 0.3821%. This is a descriptive composition audit of the saved suite: the decisions remain those of the original early measurements.

Excluded taskRule meanMean-gap reduction (%) vs .94377Mean-gap reduction (%) vs .96838Best fixed on ten β\betaBest fixed on ten Reduction (%)
NetworkDataset
EfficientNet-B0Cars0.3052+50.23+38.910.96838+38.91
Llama60MC40.3806+44.51+34.600.96838+34.60
Llama60MSlimPajama0.3947+42.46+34.030.96838+34.03
NanoGPTOpenWebText0.3948+42.44+34.250.96838+34.25
NanoGPTWikiText0.3903+43.10+34.140.96838+34.14
ResNet50Food-1010.3003+31.35+39.290.94377+31.35
ResNet50ImageNet1000.4064+10.79+32.350.94377+10.79
Swin-TCaltech0.4064+40.75-6.360.96838-6.36
T5-smallBookCorpus0.4060+40.72+32.370.96838+32.37
ViT-B/16CIFAR0.4064+40.75+27.480.96838+27.48
ViT-B/16TinyImageNet0.2730+50.59+45.000.96838+45.00

Table 10. Workload-removal sensitivity. Each row evaluates the remaining ten tasks. Reduction columns give relative mean-gap reductions; positive values favor the rule. The last comparator is reselected on that ten-task subset.

From measured coefficients to a selected β\beta

Table 11 exposes every scalar entering the decision. Divide the variability proxy by four times the temporal-change proxy, take the cube root, convert memory to β\beta, then apply the stated grid rounding. Together with the supplied sketches, these scalar values make every selection reproducible. For example, Food-101 gives V^emp≈\widehat{V}_{\mathrm{emp}} \approx

NetworkDatasetV^emp\widehat{V}_{\mathrm{emp}}D^emp\widehat{D}_{\mathrm{emp}}H^emp\widehat{H}_{\mathrm{emp}}Continuous β\betaGrid β\beta
EfficientNet-B0Cars1.978×1021.978 \times10^{2}2.379×10−32.379 \times10^{-3}27.49427.4940.9636280.9636280.968380.96838
Llama60MC42.875×1012.875 \times10^{1}1.047×10−21.047 \times10^{-2}8.8238.8230.8866540.8866540.900000.90000
Llama60MSlimPajama2.111×1012.111 \times10^{1}9.030×10−39.030 \times10^{-3}8.3618.3610.8803990.8803990.900000.90000
NanoGPTOpenWebText2.142×1012.142 \times10^{1}1.183×10−21.183 \times10^{-2}7.6787.6780.8697510.8697510.900000.90000
NanoGPTWikiText-1032.292×1012.292 \times10^{1}8.208×10−38.208 \times10^{-3}8.8718.8710.8872720.8872720.900000.90000
ResNet50Food-1011.632×1021.632 \times10^{2}2.203×10−32.203 \times10^{-3}26.45826.4580.9622050.9622050.968380.96838
ResNet50ImageNet1001.695×1021.695 \times10^{2}2.173×10−32.173 \times10^{-3}26.91726.9170.9628490.9628490.968380.96838
Swin-TCaltech-2561.775×1021.775 \times10^{2}4.369×10−34.369 \times10^{-3}21.65621.6560.9538240.9538240.943770.94377
T5-smallBookCorpus1.271×1021.271 \times10^{2}1.610×10−31.610 \times10^{-3}27.01927.0190.9629890.9629890.968380.96838
ViT-B/16CIFAR-1001.142×1021.142 \times10^{2}8.147×10−38.147 \times10^{-3}15.19015.1900.9341680.9341680.943770.94377
ViT-B/16TinyImageNet1.418×1021.418 \times10^{2}4.396×10−34.396 \times10^{-3}20.05520.0550.9501370.9501370.943770.94377

Table 11. Measured coefficients and continuous-to-grid conversion. Values are rounded for display; decisions use full precision.

163.23163.23 and D^emp≈0.00220324\widehat{D}_{\mathrm{emp}} \approx0.00220324. Thus H^emp=[163.23/(4×0.00220324)]1/3≈26.458\widehat{H}_{\mathrm{emp}} = [163.23/(4 \times0.00220324)]^{1/3} \approx26.458, giving continuous β\beta 0.9622050.962205. The neighboring grid values are 0.943770.94377 and 0.968380.96838, whose midpoint is 0.9560750.956075. The continuous value lies above that midpoint, so nearest-β\beta rounding selects 0.968380.96838. Every workload uses this arithmetic at full precision.

Stationary approximation and discretization

The main rule uses a closed-form approximation and nearest-β\beta rounding. Four alternatives use exactly the same measured coefficients: the stationary root followed by nearest-β\beta rounding, direct grid minimization of (20), direct grid minimization of (9), and direct grid minimization of V^empcβ,200+D^empaβ,2002\widehat{V}_{\mathrm{emp}} c_{\beta,200} + \widehat{D}_{\mathrm{emp}} a_{\beta,200}^{2}. All four recover the same eleven selected β\beta values. The last uses the exact finite-history weights, including bias correction at history length 200. The choices thus agree across the exact finite-history score and its stationary and leading versions.

Sensitivity of grid decisions

The cube-root sensitivity concerns continuous memory. A discrete decision additionally depends on its distance to a rounding boundary, the midpoint of two neighboring β\beta values. For a boundary bb and continuous memory H^emp\widehat{H}_{\mathrm{emp}}, multiplying the measured ratio V^emp/D^emp\widehat{V}_{\mathrm{emp}}/\widehat{D}_{\mathrm{emp}} by [1/((1−b)H^emp)]3[1/((1-b)\widehat{H}_{\mathrm{emp}})]^{3} moves the continuous β\beta exactly to that boundary. Table 12 reports this deterministic arithmetic margin for the nearest boundary; its sign indicates an increase or decrease of the ratio. The table shows how far each measured decision is from changing its grid value. A small boundary margin requires more precise coefficient estimation than a large one. Continuous coefficient attenuation and stability of a discrete decision are therefore complementary diagnostics: the cube root controls the former, while the measured arithmetic margins describe the latter for the observed coefficients.

Across all eleven workloads, the simultaneous safe interval for a multiplicative change in each observed ratio V^emp/D^emp\widehat{V}_{\mathrm{emp}}/\widehat{D}_{\mathrm{emp}} is (0.824286,1.161718)(0.824286,1.161718). A ratio perturbation of ±10%\pm10\% lies inside this interval and preserves every decision. Independently perturbing each coefficient by ±7%\pm7\% gives ratio multipliers between 0.93/1.070.93/1.07 and 1.07/0.931.07/0.93, also inside the interval. These are deterministic properties of the observed coefficients and the rounding map. Table 13 pairs each nearest boundary with the validation-loss consequence of the adjacent grid choice, connecting arithmetic sensitivity to performance sensitivity.

Complete timing profile

For each integer decision time s=100,…,500s = 100,\ldots,500, use checkpoint lags {20,50,100}\{20, 50, 100\}, calculate the two coefficients, and evaluate the selected β\beta by (22). This gives 401 decisions on each pilot trajectory. Over the 351 times from 150 to 500, mean gap ranges from 0.3435% to 0.6692%; it improves over the near-0.95 reference at 339 times and over the best global fixed value at 288. CVaR improves over the near-0.95 reference at every time. Table 6 displays four times. The candidate trainings remain fixed, isolating sensitivity to the placement of the observation window.

NetworkDatasetContinuous β\betaNearest boundaryβ\beta distanceRatio change (%)
EfficientNet-B0Cars0.9636280.9560750.007553-43.224
Llama60MC40.8866540.8610850.025569-45.679
Llama60MSlimPajama0.8803990.8610850.019314-36.180
NanoGPTOpenWebText0.8697510.8610850.008666-17.571
NanoGPTWikiText-1030.8872720.8610850.026187-46.563
ResNet50Food-1010.9622050.9560750.006130-36.294
ResNet50ImageNet1000.9628490.9560750.006774-39.495
Swin-TCaltech-2560.9538240.9560750.002251+16.172
T5-smallBookCorpus0.9629890.9560750.006914-40.181
ViT-B/16CIFAR-1000.9341680.9218850.012283-40.144
ViT-B/16TinyImageNet0.9501370.9560750.005938+46.289

Table 12. Rounding-boundary audit from the same measured coefficients. Ratio change is the signed relative change needed to reach the nearest β\beta midpoint.

NetworkDatasetβ^\hat{\beta}Adjacent β\betaΔ\Delta ratio (%)Δ\Delta gap (pp)Δ\Delta loss (%)
EfficientNet-B0Cars0.968380.94377-43.22-0.2853-0.2825
Llama60MC40.900000.82217-45.68+0.6477+0.6460
Llama60MSlimPajama0.900000.82217-36.18+0.7058+0.7050
NanoGPTOpenWebText0.900000.82217-17.57+0.4311+0.4306
NanoGPTWikiText0.900000.82217-46.56+0.2984+0.2979
ResNet50Food-1010.968380.94377-36.29+1.4240+1.4091
ResNet50ImageNet1000.968380.94377-39.50+2.3036+2.3036
Swin-TCaltech0.943770.96838+16.17+2.1862+2.1862
T5-smallBookCorpus0.968380.94377-40.18+0.0056+0.0056
ViT-B/16CIFAR0.943770.90000-40.14+2.5913+2.5913
ViT-B/16TinyImageNet0.943770.96838+46.29-0.2903-0.2865

Table 13. Nearest decision boundary and its recorded loss consequence. Ratio change moves the observed coefficient ratio to that boundary. Gap and loss changes compare the adjacent choice with the current choice; positive changes indicate a larger loss.

How measurement spacing changes a discrete choice

Measurement density and observation scale are separate design choices. To isolate density, hold the decision update at 200, keep the shortest and longest lags at 20 and 100, and continue evaluating the fitted change at lag 100. Replace the original lags {20,50,100}\{20, 50, 100\} by a regular mesh on [20,100][20, 100] with spacing 1, 2, 5, 10, 20, 40, or 80. Including the final endpoint, these meshes use respectively 82, 42, 18, 10, 6, 4, or 3 checkpoints. Every checkpoint uses sixteen probes, and the OLS fit and rounding rule remain unchanged.

All seven regular meshes preserve ten original β\beta choices and select 0.96838 for Swin instead of 0.94377. Their coefficients differ, but their rounded choices coincide. Consequently their looked-up validation losses and gaps coincide as well: mean 0.5682%, maximum 2.1862%, and CVaR 1.5271%. The mean-gap benefit over the near-0.95 reference is 8.9% for every mesh; the original four-checkpoint layout gives 40.7%. This diagnostic distinguishes broad utility relative to the empirical default from sensitivity to the additional gain supplied by Swin. The repeated aggregate numbers arise from discrete β\beta selection, rather than repeated or smoothed measurements. All lag responses share the final endpoint, so denser meshes also retain dependent measurement errors.

Probe decomposition

Pooling share is ∥zˉ−z∥2\lVert\bar{z}-z\rVert^2 divided by (15)’s left side. It tells us how much measured dispersion comes from normalizing the pooled and group moments differently. Finite-lag share is (C^/1002)/D^emp(\widehat{C}/100^2)/\widehat{D}_{\mathrm{emp}}. It tells us how much fitted change remains in the inverse-square component. These descriptive shares quantify the composition of the measured proxies. In five cases the fitted intercept clips to zero, leaving all of the temporal-change proxy in its finite-lag component. Equation (16) explains how endpoint measurement variance can influence the temporal fit.

NetworkDatasetPooling contribution (%)Finite-lag contribution (%)
EfficientNet-B0Cars3.12100.00
Llama60MC44.4554.57
Llama60MSlimPajama4.6391.79
NanoGPTOpenWebText3.17100.00
NanoGPTWikiText-1033.34100.00
ResNet50Food-1013.09100.00
ResNet50ImageNet1002.6491.24
Swin-TCaltech-2563.4655.84
T5-smallBookCorpus3.3394.47
ViT-B/16CIFAR-1002.8453.98
ViT-B/16TinyImageNet3.10100.00

Table 14. Sixteen-probe measurement decomposition at update 200.

The component may also include roughness of the target. The probe budget is therefore part of the algorithm’s specification.

For intuition, consider the illustrative linear measurement model with a constant population direction. An observation with variance VV averaged over mm independent samples has variance V/mV/m. Independent endpoints give C=2V/mC=2V/m and zero drift intercept, while the linear scatter proxy has expectation VV. Inserting these expected coefficients into the operational formula yields H=[m 1002/8]1/3H=[m\,100^2/8]^{1/3}. For m=16m=16, this plug-in value is H≈27.14H\approx27.14, or β\beta approximately 0.96316. The mean of the random memory estimate additionally depends on the joint distribution of its coefficients through the nonlinear cube root. The plug-in calculation isolates how endpoint fluctuations contribute a finite memory at constant population direction. Thus the finite-lag coefficient represents effective measured change, combining the gradient dynamics and the observation scale specified by the algorithm.

Separating the two temporal contributions

The constant-direction calculation above supplies a simple diagnostic: inserting the expected coefficients of that illustrative linear model for every workload gives the same continuous β\beta 0.96316, rounding to 0.96838. Table 15 evaluates this common choice against the measured rule. It also repeats the selection calculation after replacing the temporal proxy by either C^/1002\widehat{C}/100^2 alone or I^\widehat{I} alone. When the intercept vanishes, the latter diagnostic uses the largest admissible memory, as specified by the objective’s boundary rule. These retrospective coefficient diagnostics reuse the measured sketches and completed training outcomes to isolate the information supplied by each component. The full measured rule has smaller aggregate gaps than each diagnostic. Its decisions

Coefficient diagnosticMean gapMaximum gapCVaR25\mathrm{CVaR}_{25}
Constant-target calculation0.54612.18621.4304
Endpoint contribution only0.56822.18621.5271
Intercept contribution only17.940372.496951.6408
Full measured rule0.36951.33391.1359

Table 15. Contribution diagnostics using the same sketches, rounding, and seed-1 loss lookup. Gaps are percentages; bold marks the smallest value in each column.

therefore use information beyond a budget-only common memory. The full and endpoint-only rules share ten choices; adding the intercept changes Swin from 0.96838 to 0.94377, accounting for their aggregate difference. This identifies the specific decision through which the persistent-change component contributes in this audit. Together, these checks assess the finite-measurement noise–change score on the saved workload suite, with the population tracking identity supplying the analytical form of its balance.

Evaluation summaries of the same trajectories

The primary evaluation uses each run’s minimum recorded validation loss. Two additional summaries test whether the comparison persists at the end of training: the last recorded loss and the arithmetic mean of the last three recorded losses. The selected β\beta values remain exactly those from the primary pilot. For each summary, recompute the per-workload grid reference from all eleven candidates, all fixed-memory comparisons, and the best fixed value by mean gap.

All 121 seed-1 grid curves and 155 curves including the common-seed pairs are evaluated. Candidates for each workload have matching validation counts and ordered schedules. Language losses are indexed by update and vision losses by epoch, according to Appendix § 15.

Under each summary, the rule has smaller mean, maximum, and CVaR gap than every fixed grid value. Mean-gap reductions against the respective best fixed are 32.35%, 20.51%, and 10.96%. Table 16 also reports direct loss improvements, separating evaluation-summary sensitivity from transfer across initializations.

SummaryRuleFixed .94377Best fixedFixed β\betaSeed 1Common seeds
Minimum recorded0.36950.62360.54610.96838+0.2464-0.1049
Last recorded0.45370.62420.57070.96838+0.1629-0.1093
Mean of last three0.42440.47670.47670.94377+0.0492-0.1586

Table 16. Complete sensitivity to three evaluation summaries. Mean gaps and direct loss improvements are percentages. Best fixed is recomputed for each summary. Direct improvements use the near-0.95 comparator 0.94377; positive values favor the rule. Common-seed values evaluate reuse of the seed-1 calibration across initializations.

Apply (22) and § 7’s aggregation to each summary. Common-seed improvements average the separately summarized runs; memory choices remain fixed from the original pilot.

All common training seeds

Average each configuration’s minimum validation loss over identical seed sets, obtaining Lˉfixed\bar{L}_{\mathrm{fixed}} and Lˉrule\bar{L}_{\mathrm{rule}}, and report 100(Lˉfixed−Lˉrule)/Lˉfixed100(\bar{L}_{\mathrm{fixed}}-\bar{L}_{\mathrm{rule}})/\bar{L}_{\mathrm{fixed}}. Positive values favor the rule. Table 17 uses seeds 1–3, except Food-101 with seed 1. The pilot chooses β\beta once with seed 1 and retains it for the other seeds. The primary comparison tests matched calibration; this table tests variability across initializations. Its equal-workload mean is −0.1049%.

NetworkDatasetCommon seedsImprovement (%)Rule β^\hat{\beta}
EfficientNet-B0Cars1,2,3-2.10640.96838
Llama60MC41,2,3-0.20150.90000
Llama60MSlimPajama1,2,3-0.29850.90000
NanoGPTOpenWebText1,2,3-0.20460.90000
NanoGPTWikiText-1031,2,3-0.12350.90000
ResNet50Food-10111.38950.96838
ResNet50ImageNet1001,2,30.37190.96838
Swin-TCaltech-2561,2,30.00000.94377
T5-smallBookCorpus1,2,30.01900.96838
ViT-B/16CIFAR-1001,2,30.00000.94377
ViT-B/16TinyImageNet1,2,30.00000.94377

Table 17. Direct validation-loss improvement over the same common seeds against β\beta 0.94377. Zero means the selected and fixed configurations coincide.

References

  1. [2]Ali, M. and Bhatt, R. (2026). Kalman-Adam: Optimal bayesian moment estimation for memory-efficient and generalizable deep learning. Knowledge-Based Systems, 342:115907.DOI
  2. [4]Bossard, L., Guillaumin, M., and Van Gool, L. (2014). Food-101: Mining discriminative components with random forests. In European Conference on Computer Vision.DOI
  3. [6]Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. (2009). ImageNet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.
  4. [7]Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., and Houlsby, N. (2021). An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations.
  5. [8]Fernández-Hernández, A., Pérez-Corral, C., Mestre, J. I., Dolz, M. F., and Quintana-Ortí, E. S. (2026). Refresh-scaling the memory of balanced Adam. arXiv:2605.10119.
  6. [9]Gokaslan, A. and Cohen, V. (2019). Openwebtext corpus. Open-source reproduction of the WebText corpus.
  7. [10]Griffin, G., Holub, A., and Perona, P. (2007). Caltech-256 object category dataset. Technical report, California Institute of Technology.
  8. [12]Kingma, D. P. and Ba, J. (2015). Adam: A method for stochastic optimization. In International Conference on Learning Representations.arxiv.org/abs/1412.6980
  9. [13]Krause, J., Stark, M., Deng, J., and Fei-Fei, L. (2013). Collecting a large-scale dataset of fine-grained cars. In ICCV Workshop on Fine-Grained Visual Categorization.
  10. [14]Krizhevsky, A. (2009). Learning multiple layers of features from tiny images. Technical report, University of Toronto.
  11. [15]Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021). Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision.arxiv.org/abs/2103.14030
  12. [16]Loshchilov, I. and Hutter, F. (2019). Decoupled weight decay regularization. In International Conference on Learning Representations.
  13. [17]Malladi, S., Lyu, K., Pangriha, A., and Arora, S. (2022). On the sdes and scaling rules for adaptive gradient algorithms. In Advances in Neural Information Processing Systems.arxiv.org/abs/2205.10287
  14. [18]Merity, S., Xiong, C., Bradbury, J., and Socher, R. (2017). Pointer sentinel mixture models. In International Conference on Learning Representations.arxiv.org/abs/1609.07843
  15. [20]Orvieto, A. and Gower, R. M. (2025). In search of adam’s secret sauce. In Advances in Neural Information Processing Systems.arxiv.org/abs/2505.21829
  16. [21]Ozkara, K., Karakus, C., Raman, P., Hong, M., Sabach, S., Kveton, B., and Cevher, V. (2024). MADA: Meta-adaptive optimizers through hypergradient descent. In Proceedings of the 41st International Conference on Machine Learning, volume 235, pages 38983–39008. PMLR.arxiv.org/abs/2401.08893
  17. [22]Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., and Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67.arxiv.org/abs/1910.10683
  18. [23]Soboleva, D., Al-Khateeb, F., Myers, R., Steeves, J., Hestness, J., and Dey, N. (2023). Slimpajama: A 627b token cleaned and deduplicated version of red-pajama. Dataset release.
  19. [24]Tan, M. and Le, Q. V. (2019). Efficientnet: Rethinking model scaling for convolutional neural networks. In International Conference on Machine Learning.arxiv.org/abs/1905.11946
  20. [26]Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozier, B., Goyal, N., Hambro, E., Azhar, F., Rodriguez, A., Joulin, A., Grave, E., and Lample, G. (2023). Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971.arxiv.org/abs/2302.13971
  21. [27]Zhang, J. and Mitliagkas, I. (2019). YellowFin and the art of momentum tuning. In Conference on Machine Learning and Systems.
  22. [28]Zhu, Y., Kiros, R., Zemel, R., Salakhutdinov, R., Urtasun, R., Torralba, A., and Fidler, S. (2015). Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE International Conference on Computer Vision.arxiv.org/abs/1506.06724

Paper details

vlnc:W_2ks9frpc
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Generative AI

View statement
Looking for related papers…
Contents