[Paper Review] Fast Parametric Learning with Activation Memorization
This paper proposes Hebbian Softmax, a method that accelerates learning of infrequent classes by memorizing recent network activations directly into the softmax layer weights using a Hebbian update rule. It achieves state-of-the-art perplexity of 29.2 on WikiText-103 and faster novel class binding in image classification, with no additional compute or memory overhead.
Neural networks trained with backpropagation often struggle to identify classes that have been observed a small number of times. In applications where most class labels are rare, such as language modelling, this can become a performance bottleneck. One potential remedy is to augment the network with a fast-learning non-parametric model which stores recent activations and class labels into an external memory. We explore a simplified architecture where we treat a subset of the model parameters as fast memory stores. This can help retain information over longer time intervals than a traditional memory, and does not require additional space or compute. In the case of image classification, we display faster binding of novel classes on an Omniglot image curriculum task. We also show improved performance for word-based language models on news reports (GigaWord), books (Project Gutenberg) and Wikipedia articles (WikiText-103) --- the latter achieving a state-of-the-art perplexity of 29.2.
Motivation & Objective
- Address the challenge of slow learning for infrequent classes in neural network classifiers, especially in low-resource or long-tail scenarios.
- Overcome limitations of standard backpropagation, which requires many examples to accurately estimate parameters for rare classes.
- Improve data efficiency and initial representation quality for rare or newly introduced classes without increasing model complexity.
- Explore a simple, scalable alternative to external memory or meta-learning for fast adaptation to novel classes.
- Demonstrate effectiveness in both vision and language modeling tasks with minimal computational cost.
Proposed method
- Introduce a hybrid learning rule that combines standard gradient descent with a Hebbian update rule for the softmax layer weights.
- Apply the Hebbian update: θ[y] ← θ[y] + h_t when a class y is observed with hidden activation h_t, particularly for low-frequency classes.
- Use the Hebbian rule only when a class has been seen fewer than a threshold number of times, switching to gradient descent afterward.
- Store and accumulate recent activations directly into the softmax weight parameters, effectively turning them into a fast, compressed memory.
- Maintain model efficiency by avoiding additional memory or compute, as the updates are integrated into existing parameters.
- Apply the method in both image classification (Omniglot) and language modeling (GigaWord, Project Gutenberg, WikiText-103) with minimal architectural changes.
Experimental results
Research questions
- RQ1Can direct memorization of recent activations into the softmax layer improve learning speed for rare classes in neural networks?
- RQ2How does the proposed Hebbian Softmax method compare to standard backpropagation and adaptive optimizers like RMSProp in few-shot learning scenarios?
- RQ3Does the method improve performance on language modeling tasks with large, long-tailed vocabularies, especially for low-frequency words?
- RQ4Can the approach maintain performance gains without increasing inference or training compute, and without external memory components?
- RQ5To what extent does activation memorization preserve representations of rare classes over extended time intervals compared to conventional memory mechanisms?
Key findings
- The Hebbian Softmax method achieves a state-of-the-art perplexity of 29.2 on the WikiText-103 language modeling benchmark, outperforming strong LSTM baselines.
- On the Omniglot image classification task, the model demonstrates faster binding of novel classes compared to RMSProp with adaptive learning rates.
- Perplexity analysis shows significant improvement for low-frequency word buckets, confirming better modeling of rare and unseen words.
- The method improves performance across diverse corpora, including GigaWord (news), Project Gutenberg (books), and WikiText-103 (Wikipedia), indicating broad applicability.
- The approach achieves these gains without additional memory or compute, as activation memorization is performed directly in the existing softmax parameters.
- The model maintains improved representations of rare classes over longer time intervals because memorized activations are not displaced by more frequent classes, unlike in external memory systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.