Skip to main content
QUICK REVIEW

[Paper Review] A wake-sleep algorithm for recurrent, spiking neural networks

Johannes Thiele, Peter U. Diehl|arXiv (Cornell University)|Mar 18, 2017
Advanced Memory and Neural ComputingEngineering10 references10 citations
TL;DR

This paper proposes a wake-sleep algorithm to prevent weight clustering in recurrent spiking neural networks trained with spike-timing-dependent plasticity (STDP). By alternating between wake-phase learning and sleep-phase anti-Hebbian unlearning using random inputs, the method suppresses harmful attractor states, enabling up to 10× higher learning rates and faster convergence with lower inference error.

ABSTRACT

We investigate a recently proposed model for cortical computation which performs relational inference. It consists of several interconnected, structurally equivalent populations of leaky integrate-and-fire (LIF) neurons, which are trained in a self-organized fashion with spike-timing dependent plasticity (STDP). Despite its robust learning dynamics, the model is susceptible to a problem typical for recurrent networks which use a correlation based (Hebbian) learning rule: if trained with high learning rates, the recurrent connections can cause strong feedback loops in the network dynamics, which lead to the emergence of attractor states. This causes a strong reduction in the number of representable patterns and a decay in the inference ability of the network. As a solution, we introduce a conceptually very simple "wake-sleep" algorithm: during the wake phase, training is executed normally, while during the sleep phase, the network "dreams" samples from its generative model, which are induced by random input. This process allows us to activate the attractor states in the network, which can then be unlearned effectively by an anti-Hebbian mechanism. The algorithm allows us to increase learning rates up to a factor of ten while avoiding clustering, which allows the network to learn several times faster. Also for low learning rates, where clustering is not an issue, it improves convergence speed and reduces the final inference error.

Motivation & Objective

  • Address the challenge of weight clustering in recurrent spiking networks trained with STDP, which leads to attractor states and degraded inference performance.
  • Overcome the limitation of low learning rates in STDP-based training, which is currently the only way to avoid clustering.
  • Develop a method that leverages the network’s intrinsic dynamics to identify and unlearn problematic weight clusters without architectural changes.
  • Enable faster training and improved convergence by allowing significantly higher learning rates while maintaining low inference error.
  • Demonstrate the method’s effectiveness not only in preventing clustering but also in removing existing clusters in trained networks.

Proposed method

  • Use a two-phase training schedule: wake phase with standard STDP learning and sleep phase with random input stimulation.
  • During the sleep phase, the network generates internal activity patterns ("dreaming") that activate existing attractor states induced by clustered weights.
  • Apply an anti-Hebbian learning rule by reversing the sign of excitatory STDP learning rates during sleep to unlearn the weights responsible for attractor formation.
  • Utilize the network’s recurrent spiking dynamics as a generative model to identify clusters through correlated activity in neurons participating in attractor states.
  • Apply the anti-Hebbian mechanism selectively to weights contributing to strong feedback loops, effectively dissolving clusters.
  • Implement the algorithm using the Brian spiking neural network simulator on a three-way relational inference network with LIF neurons and STDP using the triplet rule.

Experimental results

Research questions

  • RQ1Can a wake-sleep algorithm mitigate weight clustering in recurrent spiking neural networks trained with STDP?
  • RQ2Does the proposed method allow for higher learning rates without inducing attractor states or reducing inference performance?
  • RQ3Can the algorithm remove existing clusters in a network already exhibiting weight clustering?
  • RQ4Does the wake-sleep algorithm improve convergence speed and reduce final inference error even at low learning rates?
  • RQ5Is the effectiveness of the algorithm dependent on specific network architectures or generalizable across recurrent spiking networks?

Key findings

  • The wake-sleep algorithm successfully prevents the formation of weight clusters in recurrent spiking networks, even when using learning rates up to ten times higher than previously possible.
  • The method enables training with learning rates that would otherwise cause rapid convergence to poor attractor states, thereby expanding the viable training regime.
  • For networks already exhibiting clustering, the sleep phase effectively removes clusters, restoring the desired diagonal weight structure in input and recurrent matrices within seconds of sleep training.
  • Even at low learning rates—where clustering is not an issue—the algorithm improves convergence speed and reduces the final inference error compared to standard STDP.
  • The recovery of the correct weight matrix structure after cluster removal occurs faster than training from random initial weights, indicating efficient reorganization of synaptic weights.
  • The algorithm’s success stems from leveraging the network’s intrinsic recurrent dynamics as a generative model, requiring minimal hyperparameter tuning and suggesting broad applicability beyond the tested architecture.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.