Papers
Topics
Authors
Recent
Search
2000 character limit reached

Random Contrastive Hebbian Learning (rCHL)

Updated 18 March 2026
  • 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 LL layers, with each layer kk (k=0,,Lk=0,\ldots,L) maintaining an activity vector xkRnkx_k \in \mathbb{R}^{n_k}. Inputs x0x_0 and outputs xLx_L are clamped during training as appropriate. The synaptic structure consists of:

  • Feed-forward weights WkRnk×nk1W_k \in \mathbb{R}^{n_k\times n_{k-1}}, k=1Lk=1 \ldots L
  • Fixed random feedback matrices GkRnk1×nkG_k \in \mathbb{R}^{n_{k-1}\times n_k}, k=2Lk=2 \ldots L
  • Optional biases kk0

Each training example kk1 invokes two distinct phases:

  1. Free (positive) phase: Input kk2 is clamped; kk3 is unconstrained.
  2. Clamped (negative) phase: kk4, output kk5 is clamped.

All hidden units exchange activity via bottom-up (kk6) and top-down (kk7) pathways in each phase.

2. Continuous-Time Neural Dynamics

At every hidden layer (kk8), neural state dynamics in either phase are described by a first-order non-linear ordinary differential equation:

  • Free phase: For kk9,

k=0,,Lk=0,\ldots,L0

with k=0,,Lk=0,\ldots,L1, k=0,,Lk=0,\ldots,L2.

  • Clamped phase: For k=0,,Lk=0,\ldots,L3,

k=0,,Lk=0,\ldots,L4

with k=0,,Lk=0,\ldots,L5, k=0,,Lk=0,\ldots,L6, k=0,,Lk=0,\ldots,L7.

k=0,,Lk=0,\ldots,L8 is a Lipschitz continuous nonlinearity (e.g., sigmoid). Both phases are integrated numerically (e.g., forward Euler) for a fixed time duration k=0,,Lk=0,\ldots,L9 until a steady state is reached.

3. Hebbian-Contrastive Weight Update and Locality

After both phases reach equilibrium, synaptic updates are performed as follows:

xkRnkx_k \in \mathbb{R}^{n_k}0

with analogous updates for the biases if learnable. Here, xkRnkx_k \in \mathbb{R}^{n_k}1 is the learning rate and xkRnkx_k \in \mathbb{R}^{n_k}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 (xkRnkx_k \in \mathbb{R}^{n_k}3), rCHL replaces these with fixed random matrices xkRnkx_k \in \mathbb{R}^{n_k}4 drawn at initialization from a specified distribution (e.g., xkRnkx_k \in \mathbb{R}^{n_k}5 or xkRnkx_k \in \mathbb{R}^{n_k}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 xkRnkx_k \in \mathbb{R}^{n_k}7 and random feedback matrices xkRnkx_k \in \mathbb{R}^{n_k}8
  • For each training epoch:

    1. Integrate network for free phase with xkRnkx_k \in \mathbb{R}^{n_k}9
    2. Integrate for clamped phase with x0x_00
    3. Update x0x_01 and x0x_02 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 x0x_03: Stable and rapid learning is achieved for x0x_04 in the range x0x_05–x0x_06; larger values (x0x_07) induce instability due to the scaling effect in the weight updates.

  • Learning rate x0x_08: Values x0x_09 produce slow or underfitted learning, while xLx_L0 in xLx_L1–xLx_L2 accelerates convergence, though excessive xLx_L3 may cause oscillations.
  • Random feedback matrix spectrum: Wider support in xLx_L4 or higher xLx_L5 in xLx_L6 increases convergence speed but can increase oscillatory behavior.
  • Pseudospectra of xLx_L7: Matrices with broader xLx_L8-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 xLx_L9 100% WkRnk×nk1W_k \in \mathbb{R}^{n_k\times n_{k-1}}05,000 epochs, WkRnk×nk1W_k \in \mathbb{R}^{n_k\times n_{k-1}}1, WkRnk×nk1W_k \in \mathbb{R}^{n_k\times n_{k-1}}2
XOR 2-2-1 WkRnk×nk1W_k \in \mathbb{R}^{n_k\times n_{k-1}}3 1.0 Equal/better than BP/FDA/CHL speed
MNIST digits 784-128-64-10 WkRnk×nk1W_k \in \mathbb{R}^{n_k\times n_{k-1}}4 97.5% Comparable to CHL (97.7%), outperforms BP/FDA
eMNIST letters 784-256-128-26 WkRnk×nk1W_k \in \mathbb{R}^{n_k\times n_{k-1}}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).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Random Contrastive Hebbian Learning (rCHL).