Precision-Aware Hopfield Retrieval:Unifying Population Codes and Memory Retrieval
with Information Optimization

NeurIPS 2026

Yi-Chun Hung1, Dennis Wu1,2, Hong-Yu Chen1,2, Han Liu1,2,3, Emma Alexander1

1Department of Computer Science, Northwestern University

2Center for Foundation Models and Generative AI (CFMG), Northwestern University

3Department of Statistics and Data Science, Northwestern University

A stimulus passes through a neural encoder into a Hopfield memory decoder. Precision-aware retrieval replaces a fixed inverse temperature with a stimulus-dependent temperature and memory density, linking encoding precision to the final readout.

Overview of precision-aware Hopfield retrieval. A stimulus s is encoded with Fisher information FIenc(s) and decoded by a Hopfield network. Our framework uses a stimulus-dependent inverse temperature β(s) to control attention sharpness and a density ρ(s) to describe stored memories. The combined encoder–decoder precision is γ(s). The starred quantities γ∗(s) and ρ∗(s) denote the optimal precision and memory density for stimulus prior p(s), under the paper’s Lp loss and resource constraints.

Abstract

Bayesian estimation has long been used to study both continuous estimation and discrete associative memory, but how encoding precision and memory retrieval should be jointly optimized remains unclear. We introduce precision-aware Hopfield retrieval, a framework that uses the encoder’s Fisher information to quantify encoding precision and incorporates it directly into the decoder of memory retrieval. Four results follow. First, optimal encoder-decoder information is shaped only by the prior, across Lp loss functions. Second, the optimal information follows a general coupling law across Lp loss functions. Third, optimal precision-aware Hopfield retrieval uses a stimulus-dependent inverse temperature. It outperforms the encoder-blind Bayesian decoder on both retrieval loss and required coding resource. Last, the framework yields a closed-form expression for memory recall bias. It reproduces central-tendency and cognitive-load effects observed in cognitive psychology. These effects emerge only when the encoder and decoder are modeled jointly.

Experiments

Three panels show a Gaussian stimulus prior, retrieval loss versus coding resource, and loss by stimulus. The adaptive decoder lies below the constant-temperature trade-off curve and reduces loss for common stimuli near the prior’s peak.
Adaptive versus constant-temperature retrieval. We compare the optimal inverse temperature β∗(s) with constant-temperature baselines under L2 loss and constant encoder Fisher information FIenc = 12. (a) Gaussian stimulus prior. (b) Global loss versus coding resource C, the total retrieval resolution. The adaptive decoder (green) achieves lower loss at the same resource (yellow), or uses less resource at the same loss (purple). (c) Per-stimulus loss shows how it reallocates precision: loss decreases for common stimuli and increases for rare stimuli.

Connection to diffusion models

Memory retrieval can be viewed as denoising. Let b(s) be the mean shift from the stimulus s to the retrieved value s̄. At leading order, the recall variance is Var(s̄ | s) ≈ 1/γ(s), which gives

(logρ)′(s)≈b(s)Var(s¯∣s)

The left side is the score of the memory density: the derivative of its logarithm. The relation connects the mean denoising shift, divided by the noise variance, to score estimation. Score-based diffusion models learn such denoising directions across a range of noise levels.

This suggests a connection between memory retrieval and generation: the score of the memory density could serve as a signal for generative modeling. The paper presents this as a heuristic connection and a direction for future work.