[Paper Review] Hebbian learning with gradients: Hebbian convolutional neural networks with modern deep learning frameworks
This paper demonstrates that Hebbian learning rules—such as plain Hebbian, Grossberg’s instar, and Oja’s rule—can be implemented in modern deep learning frameworks using surrogate loss functions whose gradients exactly produce the desired weight updates. By leveraging these losses, the authors train deep convolutional Hebbian networks that achieve significantly improved performance through interventions like sparse plasticity and pruning, reversing the typical degradation in decoding performance across layers.
Deep learning networks generally use non-biological learning methods. By contrast, networks based on more biologically plausible learning, such as Hebbian learning, show comparatively poor performance and difficulties of implementation. Here we show that Hebbian learning in hierarchical, convolutional neural networks can be implemented almost trivially with modern deep learning frameworks, by using specific losses whose gradients produce exactly the desired Hebbian updates. We provide expressions whose gradients exactly implement a plain Hebbian rule (dw ~= xy), Grossberg's instar rule (dw ~= y(x-w)), and Oja's rule (dw ~= y(x-yw)). As an application, we build Hebbian convolutional multi-layer networks for object recognition. We observe that higher layers of such networks tend to learn large, simple features (Gabor-like filters and blobs), explaining the previously reported decrease in decoding performance over successive layers. To combat this tendency, we introduce interventions (denser activations with sparse plasticity, pruning of connections between layers) which result in sparser learned features, massively increase performance, and allow information to increase over successive layers. We hypothesize that more advanced techniques (dynamic stimuli, trace learning, feedback connections, etc.), together with the massive computational boost offered by modern deep learning frameworks, could greatly improve the performance and biological relevance of multi-layer Hebbian networks.
Motivation & Objective
- To enable biologically plausible Hebbian learning in deep convolutional neural networks using modern deep learning frameworks.
- To address the long-standing issue of performance degradation in higher layers of Hebbian networks, where decoding performance decreases despite increasing filter counts.
- To demonstrate that Hebbian learning can be implemented with minimal engineering overhead by using surrogate losses that produce exact Hebbian weight updates.
- To explore how architectural interventions such as dense activations with sparse plasticity and inter-layer pruning can restore and enhance information flow in hierarchical Hebbian networks.
- To open new pathways for unsupervised and self-supervised learning by combining biologically inspired learning rules with the computational power of modern deep learning frameworks.
Proposed method
- Use surrogate loss functions whose gradients exactly implement standard Hebbian rules: plain Hebbian ($\Delta w \propto xy$), instar ($\Delta w \propto y(x-w)$), and Oja’s rule ($\Delta w \propto y(x - yw)$).
- Define the network output $y$ as a function of input $x$, weights $w$, and, for Oja’s rule, the real output $\hat{y}$, to ensure gradient equivalence to the desired update.
- Apply a k-WTA (k-th largest thresholding) operation to binarize activations, simulating sparse plasticity and enabling local learning rules to be applied effectively.
- Use the standard backpropagation mechanism in PyTorch to compute gradients of the surrogate loss, which directly yield the Hebbian weight updates without custom autograd extensions.
- Introduce two key interventions: (1) the 'triangle' method for computing activations to promote sparsity, and (2) pruning of inter-layer connections to prevent overfitting to simple features.
- Train the network on CIFAR-10 using standard convolutional layers and evaluate performance across layers, comparing decoding accuracy in unconstrained vs. intervention-aided networks.
Experimental results
Research questions
- RQ1Can standard deep learning frameworks be used to implement biologically plausible Hebbian learning rules in deep convolutional networks without custom autograd machinery?
- RQ2Why do higher layers in Hebbian networks typically learn only simple features like Gabor-like filters and blobs, leading to reduced decoding performance?
- RQ3Can architectural interventions such as sparse plasticity and pruning restore information flow and improve performance in higher layers of Hebbian networks?
- RQ4To what extent can surrogate loss functions be used to implement a wide range of local learning rules in a modular and reusable way within modern deep learning frameworks?
- RQ5Can the combination of modern computational resources and biologically inspired learning rules lead to more accurate and biologically relevant hierarchical representations in unsupervised learning?
Key findings
- Hebbian learning rules, including plain Hebbian, instar, and Oja’s rule, can be implemented with exact gradient equivalence using simple surrogate loss functions in modern deep learning frameworks.
- In unconstrained Hebbian networks, higher layers consistently learn large, simple features such as Gabor-like edge detectors and blobs, which correlates with a drop in decoding performance over layers.
- The introduction of dense activations with sparse plasticity (via k-WTA) and pruning of inter-layer connections significantly improves performance in higher layers, reversing the typical performance degradation.
- These interventions lead to sparser, more informative learned features and allow higher layers to outperform lower layers in decoding performance, contrary to the baseline behavior.
- The authors demonstrate that modern deep learning frameworks can be used to explore complex Hebbian networks with minimal implementation overhead, enabling rapid prototyping of biologically inspired learning rules.
- The method enables the use of standard training pipelines while achieving biologically plausible learning, suggesting a promising path for unsupervised and self-supervised representation learning.
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.