Boltzmann machine 2026-10-18
A Boltzmann machine is a stochastic neural network that learns a probability distribution specified by pairwise energies. To compare it directly with a Hopfield network, use the bipolar energy . Here controls the preference for low energy, and the partition function normalizes all states. In a computational model, is an algorithmic inverse temperature; interpreting it as additionally requires physical energy units.
A random single-unit Gibbs sampling update has conditional probabilityIndeed, the two possible energies differ by ; their normalized Boltzmann weights give this logistic function. Random selection of one unit at a time satisfies detailed balance. For finite weights and finite positive , all conditional probabilities lie strictly between zero and one, so the finite Markov chain can reach every state and can remain in place. Its unique stationary distribution is . A short run need not yet sample that distribution accurately.
As , a nonzero field selects its sign, approaching asynchronous Hopfield energy descent. At zero field the stochastic rule remains a fair coin, whereas the deterministic convention above retains the old value. At finite inverse temperature, uphill moves permit exploration beyond one local minimum. Recall and learning are different operations: sampling changes the units at fixed weights; learning changes the weights to fit the training data.
Hebbian memory weights for a Hopfield network Created 2026-10-14 Updated 2026-10-18
For binary units and desired patterns , use these symmetric weights and set . For one pattern, the field at that pattern is , so it is stable. Several patterns add cross-talk terms; storage by this rule alone does not guarantee stability of every arbitrary collection of patterns.
Writing givesfor stored patterns. The subtraction removes the forbidden self-couplings. It makes explicit how the desired association competes with all other stored patterns. An unintended stable state can therefore arise even though every update obeys asynchronous Hopfield energy descent.
Hopfield recall from a corrupted cue 2026-10-18
Store only with , zero thresholds, and Hebbian memory weights for a Hopfield network. If bits differ from , their Hamming distance is and . Squaring this sum and subtracting the diagonal terms yields the displayed energy. Thus gives .
For the cue , the first unit has input and flips to . The second then has and flips to , completing recall. The energy drops . Every cue with at most two wrong bits is corrected under a fair asynchronous schedule: a wrong bit sees the correct majority among the other four, while a correct bit either sees agreement or retains its value at a tie. The opposite pattern is also stored implicitly, so cues with at least three errors retrieve it. This is a limitation of this symmetric one-pattern construction.
An exact five-unit memory landscape and correction of two wrong bits
. Each point represents every state at the indicated Hamming distance; multiplicities count the states. Arrows follow two actual updates of the illustrated cue under asynchronous Hopfield energy descent. This is an original finite calculation. Details. Past exam of the computational neuroscience course of the University of Oxford 2022 3 Solution 2026-10-25
A useful hippocampal episodic memory model assigns complementary computations to competitive learning, recurrent autoassociation and feedforward pattern association. The event must bind its participants, location and context, so that a partial cue later reinstates the appropriate conjunction. Merely classifying inputs or remembering a location is insufficient to explain an episodic memory.
A concrete pathway begins with distributed cortical input through the entorhinal cortex. The dentate gyrus expands and sparsifies this input: strong synaptic competition means that only a small fraction of granule cells respond strongly. A winning unit or winning sparse population strengthens its active afferents through constrained Hebbian learning. Similar episodes can then recruit less-overlapping outputs, providing pattern separation before storage. Separating two nearly identical episodes is useful because a recurrent memory otherwise tends to merge their cues. The desired separation must preserve relevant conjunctions; indiscriminately randomizing the input would make later retrieval impossible.
The sparse code recruits a hippocampal CA3 ensemble. Rapid, associatively induced long-term potentiation is a candidate substrate for storing the conjunction, with its induction conditions and persistence requiring experimental constraints. Its recurrent collateral synapses allow coactive elements of the event to become associated through Hebbian learning. One idealized centred storage rule iswhere is mean coding activity and is an event pattern. With inhibitory control maintaining sparsity, recurrent retrieval iterates from cue . A sufficiently informative partial cue can move activity into the stored event's basin of attraction; recurrent reinstatement supplies missing components. This is pattern completion. A Hopfield network makes the principle precise in a symmetric idealization with an energy landscape, but biological CA3 connectivity need not obey the exact symmetry or update assumptions of asynchronous Hopfield energy descent. Interference, spurious states and an incorrect initial cue can all produce erroneous completion.
The hippocampal CA1 and cortical return pathways provide heteroassociative memory. During the event, CA3 activity is paired with a cortical or CA1 target , giving an illustrative mapping . When CA3 completes the event, reinstates its associated output representation. Thus competitive learning distinguishes inputs, autoassociation restores a stored conjunction, and pattern association translates the retrieved conjunction into content usable elsewhere. These are separable operations even if a real circuit performs them concurrently. CA1 also receives direct entorhinal information, so it cannot be treated as a passive relay without testing the contribution of that second input.
There is mechanistically relevant evidence beyond anatomical resemblance. In adult mice, CA3-restricted NMDA receptor deletion spared ordinary acquisition and retrieval of water-maze reference memory with the full cue set, but impaired retrieval when only some cues remained. CA1 place-related activity also deteriorated under partial-cue conditions. Full-cue performance is an important control against interpreting the deficit as a general inability to swim, see cues or express a learned response. This fits the prediction that recurrent associative plasticity is particularly important for pattern completion. Nevertheless, the deletion affects receptor-dependent processing throughout the targeted CA3 cells, and does not isolate only recurrent collateral plasticity or the exact storage rule.[ref]
Requirement for hippocampal CA3 NMDA receptors in associative memory recall by Kazu Nakazawa and others. Abstract; pp. 211–218, adult CA3-restricted deletion and full-cue versus partial-cue recall
A separate delayed matching-to-place experiment found impaired rapid acquisition of novel platform locations after CA3-restricted NMDA receptor deletion, with previously experienced locations relatively spared. That extends the interpretation from partial-cue recall to rapid storage of new experiences; it also cautions against assigning CA3 an exclusively retrieval-related role.[ref]
Hippocampal CA3 NMDA receptors are crucial for memory acquisition of one-time experience by Kazu Nakazawa and others. Abstract; pp. 305–315, delayed matching-to-place and novel versus familiar platform locations
Simultaneous dentate gyrus and hippocampal CA3 recordings offer a more direct input–output comparison. In behaving rats, conflict between local and global spatial reference frames disrupted dentate population patterns, while CA3 maintained a more coherent representation related to the stored map. Comparing the two populations under the same manipulation supports the complementary pattern separation and pattern completion computations more specifically than finding different firing rates in different areas. It still does not prove that a particular recalled human episode corresponds to one fixed CA3 attractor.[ref]
CA3 retrieves coherent representations from degraded input: direct evidence for CA3 pattern completion and dentate gyrus pattern separation by Joshua P. Neunuebel and others. Abstract; simultaneous DG/CA3 recordings during local/global cue conflict
The evidence supports the computational division of labour, but the simplest implementation is incomplete. The same region can separate strongly changed inputs and complete moderately degraded ones; separation and completion are operating regimes, not immutable labels for every trial. Fast storage must coexist with protection of old memories, and recurrent completion must not overwrite a new but similar event. Novelty, inhibition and synaptic plasticity regulation are therefore functional requirements, rather than arbitrary additions. Experimental interventions can affect acquisition, retrieval, exploration and sensory input differently, so their timing and behavioural controls matter.
An unordered fixed-point memory also omits the temporal structure of an episode. The same people in the same place at different times need contextual or sequential representations; an attractor for a bag of features does not distinguish reversed event order. Rehearsal and longer-term cortical learning may change the dependence on the hippocampus. The theory should consequently predict partial-cue success, lure errors, interference and pathway-specific deficits across time, while acknowledging that neither a spatial task nor a correlation in population activity establishes the whole of episodic memory. The combined architecture supplies an explicit storage-and-retrieval mechanism, with experimentally supported components and clear remaining requirements.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 84 1 a Solution Created 2026-10-03 Updated 2026-10-14
A binary Hopfield network has recurrently connected units , symmetric weights , zero self-weights, and thresholds . A distributed memory is a desired population pattern . One Hebbian learning prescription isCoactive signs strengthen a connection, and opposite signs weaken it. This is Hebbian memory weights for a Hopfield network, rather than a separate address for each memory.
Initialize the units with the input cue, which can be a corrupted or partially specified pattern. Update one unit at a time by , retaining its old sign when the field is exactly zero. A fair asynchronous schedule revisits every unit. The energychanges on a single update by . An actual flip with the tie convention strictly reduces energy; finitely many states imply eventual arrival at a fixed point. This proves asynchronous Hopfield energy descent. Synchronous updating lacks this single-unit argument and can cycle.
For one stored pattern and zero thresholds, the field at is , so the pattern is a fixed point. With multiple patterns, the desired signal is accompanied by cross-talk from other memories; not every arbitrary set is guaranteed to be stable. Retrieval is attraction from a cue to a stored-pattern fixed point, provided the cue lies in its basin of attraction. Spurious minima and limited basins are part of the model, not errors in its update algorithm.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 73 3 e Solution Created 2026-10-03 Updated 2026-10-14
For the symmetric zero-diagonal weights and asynchronous rule just specified, update only unit . In the energy difference, terms involving neither nor its symmetric partner cancel. Thus asynchronous Hopfield energy descent givesIf the unit was already aligned, it does not change and . If it flips into alignment, , soAt our tie rule retains the old activity. The network has only configurations. Strict descent on every actual change prevents revisiting a configuration and permits only finitely many changes. With a fair schedule every misaligned unit is eventually updated, so the terminal configuration is a fixed point. At that point each possible single-bit flip has energy cost . The network reaches a minimum against single-unit changes, not necessarily the global minimum. Its energy is a Lyapunov function for these asynchronous dynamics.
The qualifications are essential to the printed claim. Synchronous updates can cycle: for two units with , the state alternates with , keeping energy . Symmetry alone therefore does not prove convergence under simultaneous updates.
Nor does the valid descent proof guarantee a global minimum. Consider four units with and all four cross-group weights equal to , symmetrically and with zero diagonal. The state has aligned fields and energy , so it is a strict single-flip local minimum. The all-positive state has energy . This explicit counterexample shows why local minima may trap retrieval even though the energy always descends under the stipulated rule.
