sparse-gradient-plasticity

Implement sparse gradient-based synaptic plasticity for online learning in spiking neural networks.

2|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/hiyenwong/ai_collection --skill sparse-gradient-plasticity
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sparse-gradient-plasticity
Source: https://github.com/hiyenwong/ai_collection/tree/main/collection/skills/sparse-gradient-plasticity
Command: npx skills add https://github.com/hiyenwong/ai_collection --skill sparse-gradient-plasticity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables online learning with truly sparse, general gradient-based synaptic plasticity, avoiding manual gradient derivations while preserving online adaptability.

Core Features & Use Cases

  • Sparse online gradient updates to neural weights.
  • Applies to spiking neural networks and online learning experiments.
  • Useful for plasticity research and online adaptation tasks.

Quick Start

Initialize SparseGradientPlasticity(n_pre, n_post, sparsity) and run an online update loop with your pre- and post-synaptic signals to start learning.

Frequently Asked Questions about sparse-gradient-plasticity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement online learning with sparse gradient updates for neural networks?▼

You can apply sparse gradient plasticity to spiking neural networks by using a lightweight numpy implementation that includes initialization, a sparsity mask, a forward method, and an update method to process pre- and post-synaptic signals.

What is sparse gradient plasticity and how does it work for synaptic updates?▼

Sparse gradient plasticity is a learning rule that applies truly sparse, general gradient-based updates to synaptic weights during online learning. It works by using a sparsity mask to constrain which connections are updated, avoiding full dense gradient calculations.

Can I use numpy for spiking neural network online adaptation tasks?▼

Yes, you can use numpy for spiking neural network online adaptation tasks because the implementation is a lightweight numpy-based module. You initialize it with pre-neuron, post-neuron, and sparsity parameters, then run an online update loop with synaptic signals.

Do I need to manually derive gradients for online learning experiments?▼

No, you do not need to manually derive gradients for online learning experiments. This sparse gradient plasticity rule handles general gradient-based synaptic updates automatically, letting you focus on the online adaptation task itself.

What is the best way to start running plasticity research with sparse connections?▼

The best way to start plasticity research with sparse connections is to initialize the SparseGradientPlasticity object with your pre-synaptic and post-synaptic neuron counts plus desired sparsity, then run an online update loop feeding your signals to the forward and update methods.