Hyperparameter transfer for Dense Associative Memories, reproduced

arXiv:2605.10164 · Holtzman, Krotov, Hanin (2026) · target: Table 1 and Figure 4. No author code was released, so this is a reimplementation from the equations.

Verdict: verified, with one caveat. A single effective learning rate η0 serves all six plaquette scales of MNIST denoising, from N = 784 down to N = 25, to within 1.4× of each scale's own optimum under Adam, and the Adam stability threshold is the same at every scale. The ReLU + SGD panel does not reproduce the paper's upturn location: our runs stay stable to η0 ≈ 30 instead of 0.3–1.

The claim

A DenseAM

f(x) = s2 WT σC( s1 W g(x) + b ) + c, σC = C σ C, C = I − 11T/K

trained on MNIST denoising in the proportional regime (K = 2N, P = 5N, B = 0.1P) keeps the same optimal η0 across six input-dimension scales made by plaquette coarse graining, a 31× range of model size, provided the centered parameterisation of Table 1 is used: s1 = 1/√N, s2 = 1/√K, and ηW = η0√K for SGD, η0 for Adam.

Result

528 runs on Modal CPU containers: 396 for the ReLU panels with three seeds, 132 for the softmax panels with one seed. Eleven learning rates per run spanning 5.5 decades, 256 epochs each. The whole ReLU grid finishes in 164 s with one container per run.

armoptimal η0, j=1…6spreadone η0worst penalty
ReLU + SGD30, 30, 10, 10, 3, 310×33.67×
ReLU + Adam0.1, 0.1, 0.03, 0.01, 0.01, 0.0110×0.031.42×
Softmax + SGD30, 30, 30, 30, 10, 103×101.17×
Softmax + Adam1, 0.3, 0.3, 0.3, 0.3, 0.110×0.11.13×

"one η0" is the single learning rate that minimises the worst per-scale penalty relative to that scale's own optimum. Across a 31× range of N, one number is within 1.4× of optimal everywhere in three of the four arms. That is the paper's claim.

Final train MSE against the effective learning rate for six plaquette scales, four panels: ReLU SGD, ReLU Adam, softmax SGD, softmax Adam.

Our Figure 4: final train MSE against η0, medians over seeds, stars mark each scale's optimum. Compare with Figure 4 of the paper: same ordering, same collapse onto one profile, minima one decade apart rather than in one band.

What reproduces

Where it diverges from the paper

Assumptions the caption leaves open

  • noise σε = 0.1 on inputs mapped to [-1, 1]
  • plaquette border edge-replicated on the ⌈28/j⌉ grid
  • biases trainable, ηb = ηc = η0
  • metric: per-element MSE on the P training points, median over seeds, 2000-image held-out slice reported alongside

Everything is public

Code: denseam_repro.py, run_grid.py, analyze.py. Full write-up: REPRO.md. Every run, including the diverged ones and their loss curves: results/grid_*.jsonl. Modal client logs, including the failed first attempts: logs/. Machine-readable verdict: verdict.json. Raw runs as a dataset: UncleanCode/neurips2026-repro-denseam, which also carries the agent trace.

Produced on 3 December 2026 for the NeurIPS 2026 reproducibility hackathon. Runs executed on Modal; no GPU was used.