Wiring the Brain Through Experience
The brain is not a fixed circuit — it rewires itself continuously in response to experience. Every time you learn a new skill, form a memory, or recover from injury, synaptic connections are being created, strengthened, weakened, or eliminated. This experience-dependent neuroplasticity, operating from molecular to systems levels, is the biological foundation of learning. This simulator focuses on spike-timing-dependent plasticity (STDP), the millisecond-precision learning rule that governs synaptic change.
The STDP Window
Spike-timing-dependent plasticity depends on the precise temporal order of pre- and postsynaptic firing. When the presynaptic neuron fires 1-20ms before the postsynaptic neuron (positive Δt), the synapse is strengthened — long-term potentiation (LTP). When the order is reversed (negative Δt), the synapse is weakened — long-term depression (LTD). This asymmetric time window implements a causal learning rule: connections that predict postsynaptic firing are reinforced.
Repetition and Consolidation
A single paired spike produces only a small synaptic change. Robust plasticity requires repeated pairings — the repetitions parameter n captures this. In the brain, repetitive practice strengthens motor skills through LTP in motor cortex and cerebellum. During sleep, hippocampal memory traces are replayed and consolidated into neocortical long-term storage through another round of synaptic modification.
Stability vs Plasticity
The brain faces a fundamental dilemma: too much plasticity causes catastrophic forgetting of old memories, while too little prevents new learning. Metaplasticity — the plasticity of plasticity itself — helps resolve this by adjusting learning thresholds based on recent synaptic history. The BCM (Bienenstock-Cooper-Munro) theory formalizes this as a sliding threshold that prevents runaway potentiation or depression.