Random Contrastive Hebbian Learning (rCHL)
- Random Contrastive Hebbian Learning (rCHL) is a variant of contrastive Hebbian learning that eliminates weight symmetry by using fixed random feedback matrices.
- It employs a fully local Hebbian/anti-Hebbian update rule with continuous-time dynamics to perform credit assignment without explicit error backpropagation.
- Empirical benchmarks on logic, classification, and autoencoding tasks demonstrate that rCHL achieves competitive performance while enhancing biological plausibility.
Random Contrastive Hebbian Learning (rCHL) is a variant of contrastive Hebbian learning that dispenses with biologically implausible weight symmetries by employing fixed random matrices for feedback during learning. In rCHL, synaptic weight updates occur via a contrastive, fully local Hebbian/anti-Hebbian rule using continuous-time neural dynamics, enabling effective credit assignment in multilayer feed-forward networks without requiring the transpose of feed-forward weights. rCHL has demonstrated competitive empirical performance on logic, classification, and autoencoding tasks, while enhancing biological plausibility for computational neuroscience modeling (Detorakis et al., 2018).
1. Network Structure and Training Phases
rCHL operates on a purely feed-forward architecture of layers, with each layer () maintaining an activity vector . Inputs and outputs are clamped during training as appropriate. The synaptic structure consists of:
- Feed-forward weights ,
- Fixed random feedback matrices ,
- Optional biases 0
Each training example 1 invokes two distinct phases:
- Free (positive) phase: Input 2 is clamped; 3 is unconstrained.
- Clamped (negative) phase: 4, output 5 is clamped.
All hidden units exchange activity via bottom-up (6) and top-down (7) pathways in each phase.
2. Continuous-Time Neural Dynamics
At every hidden layer (8), neural state dynamics in either phase are described by a first-order non-linear ordinary differential equation:
- Free phase: For 9,
0
with 1, 2.
- Clamped phase: For 3,
4
with 5, 6, 7.
8 is a Lipschitz continuous nonlinearity (e.g., sigmoid). Both phases are integrated numerically (e.g., forward Euler) for a fixed time duration 9 until a steady state is reached.
3. Hebbian-Contrastive Weight Update and Locality
After both phases reach equilibrium, synaptic updates are performed as follows:
0
with analogous updates for the biases if learnable. Here, 1 is the learning rate and 2 scales the magnitude across layers. This update is local (depends only on pre- and post-synaptic activity in the two phases) and requires no explicit gradient calculation, weight symmetry, or error backpropagation.
4. Random Feedback Matrices and Algorithm Implementation
Unlike classical contrastive Hebbian learning, which requires top-down feedback via transposed weights (3), rCHL replaces these with fixed random matrices 4 drawn at initialization from a specified distribution (e.g., 5 or 6). These random projections are held constant during all training epochs and propagate “error-like” signals from the output layer to the hidden layers.
A high-level pseudocode excerpt for rCHL includes:
- Initialization of weights 7 and random feedback matrices 8
- For each training epoch:
- Integrate network for free phase with 9
- Integrate for clamped phase with 0
- Update 1 and 2 using the difference of outer products
This execution is asynchronous and event-driven, supporting continuous state evolution and local computations (Detorakis et al., 2018).
5. Parameter Sensitivity and Pseudospectra Analysis
rCHL’s convergence and stability depend on key hyperparameters:
Feedback gain 3: Stable and rapid learning is achieved for 4 in the range 5–6; larger values (7) induce instability due to the scaling effect in the weight updates.
- Learning rate 8: Values 9 produce slow or underfitted learning, while 0 in 1–2 accelerates convergence, though excessive 3 may cause oscillations.
- Random feedback matrix spectrum: Wider support in 4 or higher 5 in 6 increases convergence speed but can increase oscillatory behavior.
- Pseudospectra of 7: Matrices with broader 8-pseudospectra contours (i.e., minimal singular value contours further from the origin) yield faster and less oscillatory convergence; narrower, sub-Gaussian pseudospectra provide slower yet more robust learning.
This suggests that proper tuning of the feedback matrix distribution and hyperparameters is essential for optimal rCHL performance.
6. Empirical Benchmarks
Empirical evaluation of rCHL covers Boolean logic, image classification, and autoencoding:
| Task | Architecture | Test MSE | Accuracy | Notes |
|---|---|---|---|---|
| Bars-and-Stripes (4x4) | 16-50-2 | 9 | 100% | 05,000 epochs, 1, 2 |
| XOR | 2-2-1 | 3 | 1.0 | Equal/better than BP/FDA/CHL speed |
| MNIST digits | 784-128-64-10 | 4 | 97.5% | Comparable to CHL (97.7%), outperforms BP/FDA |
| eMNIST letters | 784-256-128-26 | 5 | 84.6% | Slightly below CHL/BP/FDA (89–90%) |
| Autoencoder | 784-36-784 | – | – | rCHL codebook slightly noisier than CHL |
On the MNIST benchmark, rCHL effectively matches classical CHL and outperforms backpropagation (BP) and feedback alignment (FDA) in both MSE and accuracy. On eMNIST letters, rCHL lags by several percent compared to BP, CHL, and FDA, indicating sensitivity to the choice of feedback matrices and possible avenues for further optimization. For autoencoding, both CHL and rCHL achieve reasonable reconstruction, though rCHL encodings are marginally noisier (Detorakis et al., 2018).
7. Biological Plausibility and Computational Implications
rCHL’s design eliminates the biologically dubious requirement for bidirectional (symmetric) synapses by substituting fixed random feedback pathways, paralleling possible unknown or nonspecific feedback routes in biological cortex. The synaptic update rule is strictly local, utilizing only co-activation of pre/post-synaptic neurons in both free and clamped states, and is compatible with both rate-coded and spiking-neuron implementations via first-order ODE dynamics. The use of random feedback can be interpreted as a computational proxy for inter-laminar or higher-order feedback signals or background network activity. The strictly local computations and absence of global error signals make rCHL inherently suited to neuromorphic implementations, including spiking networks governed by STDP-like rules.
Overall, rCHL sustains the favorable convergence behavior of contrastive Hebbian learning and backpropagation while achieving a higher level of neurobiological fidelity. This renders rCHL a promising methodology for integrating learning theory and systems neuroscience (Detorakis et al., 2018).