Tag: memory

  • Reviving Hopfield Neural Networks

    Reviving Hopfield Neural Networks

    To initiate the streams of consciousness in a neural network, it is vital to establish the temporal memory as this serves as the primary catalyst in steering Tom away from his robotic self.

    Hopfield Neural Network (HNN)

    The Hopfield Neural Network (HNN) is a type of recurrent Artificial neural network and can be subcategorized into modern and classical types. HNN is an associative memory that excels in the ability to recall patterns and associate them with even incomplete versions of these memories. However, the limitations in Classical HNN’s includes:

    • Limited storage capacity.
    • Slow convergence rate to stable state during the pattern recall stage. It’s application is more of a stimulation algorithm. It reminds me of numerical approximation methods like Euler Maruyama.
    • Spurious patterns may emerge during pattern recall stage, stemming from various factors such as 1) the inherent capacity limitations of storage, 2) what neuroscientists describe as “the neuron’s reaction to being entrapped at local convexities,” and 3) the correlation among stored patterns

    To summarize, more stored patterns equates to higher retrieval errors. Figure 1 illustrates the contrast between the output and inputs of a classical HNN for discrete states. Applying Hebbian learning method, a set of 7 letter block patterns were fed. The initial state signifies the learned pattern, while the final state represents the pattern retrieved.

    Modern HNN has mitigated most of these problems that limited the Classical HNN. For instance, a recent post: Hopefield Networks is All You Need, improved the update rule in HNN with Bert’s attention mechanisms. This increases the storage of patterns with lower retrieval errors. For more information on HNN, check out Hopfield’s most recent works in here or for a quick summary, click here.

    The delayed development in this field may be due to the uncertainty surrounding its optimal usage. I guess the uncertainty is posed by the unsolvable cases within Reinforcement Learning – an area where I believe models like HNN shines the most, especially when you can incorporate time into its memory storage.

    Tom vs HNN

    In Tom’s case, HNN acts as a replicator of short-term memory where it distinguishes observations by associating current patterns with those previously stored. HNN’s role in Tom’s long-term memory is still being fiddled with, especially in areas like recounting memory traces of people. Other than that, I haven’t discovered anything that seems breath-taking. At the moment, its results are most promising in storing signals like vision and sound tasks. In the realms of NLP tasks, it is not applicable in prediction tasks but more of a tool for observing historical conversations. It accomplishes this effortlessly by its seamless integration into network architectures, particularly in Markov networks and within stochastic processes, such as Markov decision-making processes.

    Tom’s progression · Post 2 of 14

    This post sits in Memory: Episodic · Cognition: Memory.

    ← Travelling back in time Frankenstein →