Memory Retrieval Algorithm
- 16Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Why is instant recall of a song from a short snippet considered computationally non-trivial?
16 questions
- 1
Why is instant recall of a song from a short snippet considered computationally non-trivial?
Model answer
Exhaustively searching a database of all stored memories for a match would be astronomically large and impossible, but the brain accomplishes it quickly without explicit search.
Explanation
The problem is that the number of memories is huge, and a naive search would be too slow. The brain must use a more efficient mechanism.
- 2
How does the protein folding paradox illustrate the need for an energy-based approach?
Model answer
The paradox is that a protein has an enormous number of possible configurations yet folds in milliseconds, implying it does not search but instead minimizes potential energy.
Explanation
The protein folds by naturally descending an energy landscape to the lowest energy (native) state, avoiding an exhaustive search.
- 3
What is an energy landscape in the context of protein folding?
Model answer
An energy landscape is a surface where each point represents a possible configuration of the protein, and the height represents the potential energy of that configuration.
Explanation
The landscape has peaks and valleys; proteins roll downhill to valleys (low energy) corresponding to the native folded state.
- 4
How does the energy landscape concept apply to associative memory in Hopfield networks?
Model answer
Memories are stored as local minima in an energy landscape, and retrieval corresponds to starting from an input pattern and descending to the nearest minimum.
Explanation
Just as a protein folds into its lowest energy state, a Hopfield network evolves from an initial state to a stored memory by minimizing energy.
- 5
Describe the neuron model used in a Hopfield network.
Model answer
Each neuron is a binary unit that can be in one of two states: +1 (active) or -1 (silent), representing firing or not firing.
Explanation
This abstracts the all-or-nothing firing of biological neurons at a given time point.
- 6
What is the role of symmetric weights in a Hopfield network?
Model answer
Symmetric weights (wij=wji) ensure the energy function is well-defined and guarantee convergence during asynchronous updates.
Explanation
The convergence proof for Hopfield networks relies on symmetric weights; without symmetry, the network might oscillate.
- 7
How does the sign of a weight wij affect the relationship between neurons i and j?
Model answer
A positive weight is excitatory and favors both neurons having the same state (both +1 or both -1); a negative weight is inhibitory and favors opposite states.
Explanation
The product xixj is positive when states match; multiplying by wij gives the contribution to the happiness or energy.
- 8
Define the happiness (or conflict) of a connection in a Hopfield network.
Model answer
The happiness of a connection between neurons i and j is wijxixj. Summing over all pairs gives the total network happiness; minimizing the negative of this sum equals minimizing energy.
Explanation
A large positive happiness means the connection and states agree, contributing to low energy.
- 9
Write the energy function for a Hopfield network.
Model answer
E=−21∑i=jwijxixj (often with 21 factor to avoid double counting).
Explanation
The sum is over all pairs; the negative sign means that aligning states with weights reduces energy.
- 10
How is a single memory pattern stored in a Hopfield network using Hebbian learning?
Model answer
Set wij=cicj for all i=j, where ci is the state of neuron i in the memory pattern.
Explanation
This makes the memory a stable state because any flip increases energy; it implements 'neurons that fire together wire together'.
- 11
How are multiple memories stored in a Hopfield network?
Model answer
Sum the Hebbian contributions from each memory: wij=∑mci(m)cj(m), where m indexes the memories.
Explanation
Adding the weight matrices creates an energy landscape with multiple local minima at the memory patterns, provided the patterns are sufficiently uncorrelated.
- 12
Describe the asynchronous update rule used during inference in a Hopfield network.
Model answer
Pick a neuron at random and update its state to the sign of the total weighted input: xi←sign(∑jwijxj).
Explanation
This rule ensures the energy decreases or stays the same; repeating for all neurons sequentially leads to a stable state.
- 13
Why does the asynchronous update rule guarantee convergence to a stable state?
Model answer
With symmetric weights and no self-connections, each update strictly decreases the energy, and since energy is bounded below, the network must reach a minimum (fixed point).
Explanation
The energy function acts as a Lyapunov function; each flip reduces energy, preventing cycles.
- 14
What is the capacity of a Hopfield network in terms of stored patterns?
Model answer
Approximately 0.14×N, where N is the number of neurons, meaning at most about 14 patterns for 100 neurons in the best case.
Explanation
If more patterns are stored, the energy wells interfere, and the network may not converge to the correct memory.
- 15
How does correlation among stored patterns affect Hopfield network capacity?
Model answer
Correlated patterns cause their energy wells to interfere even before reaching the theoretical capacity, reducing the number of reliably retrievable memories.
Explanation
Similar patterns create overlapping basins of attraction, making it easy for the network to settle into spurious states.
- 16
What is a key limitation of vanilla Hopfield networks that restricts practical use?
Model answer
Their limited storage capacity (linear in the number of neurons) and sensitivity to correlated patterns, making them unreliable for large-scale memory.
Explanation
This limitation motivated more advanced energy-based models like Boltzmann machines and modern Hopfield networks.

Ask anything
We've read this whole study set, so questions about it get the best answers.