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.
| arm | optimal η0, j=1…6 | spread | one η0 | worst penalty |
|---|---|---|---|---|
| ReLU + SGD | 30, 30, 10, 10, 3, 3 | 10× | 3 | 3.67× |
| ReLU + Adam | 0.1, 0.1, 0.03, 0.01, 0.01, 0.01 | 10× | 0.03 | 1.42× |
| Softmax + SGD | 30, 30, 30, 30, 10, 10 | 3× | 10 | 1.17× |
| Softmax + Adam | 1, 0.3, 0.3, 0.3, 0.3, 0.1 | 10× | 0.1 | 1.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.
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
- Curve shapes and their ordering across all four (activation, optimiser) arms: Adam below SGD,
ReLU below softmax, and final train MSE falling monotonically with N at fixed
η0. - Transfer itself: worst-case penalty 1.13× (softmax Adam), 1.17× (softmax SGD) and 1.42× (ReLU Adam) against a grid 5.5 decades wide.
- The Adam stability threshold,
η0 = 10, is identical at all six scales. That is a sharper statement of the same phenomenon than the position of the minimum.
Where it diverges from the paper
- The SGD upturn is two decades late. The paper's ReLU + SGD curves turn up
around
η0 ≈ 0.3–1; ours keep improving to 30 and diverge above 100, so that panel has no interior minimum and its "optimal" value is the grid edge. Adam matches the paper's shape at the printed values, so this is specific to theηW = η0√Kbranch, not a global scale error. - Our ReLU fits better. Best train MSE 1.5e-3 to 2.7e-3 against 1e-2 to 4e-1 in the figure. At j=6 there are 120 points and 1325 parameters, so memorisation is cheap and a well tuned run can go below the Bayes denoising floor. The softmax levels, 0.004 to 0.25, do land in the paper's range.
Assumptions the caption leaves open
- noise
σε = 0.1on 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.