Skip to content

About

Research scaffold testing whether neuroscience-inspired plasticity improves emergent coordination in multi-agent systems

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Neuroplastic — Biological Plasticity Against Loss of Plasticity

Can biologically-inspired neuroplasticity mechanisms keep artificial neural networks learning, where standard ones stop?

Deep networks trained on a sequence of tasks gradually lose the ability to learn — neurons go dormant, representational rank collapses, weights drift (Dohare & Sutton et al., Nature 2024; Lyle et al. 2023; Sokar et al. 2023). Biological brains stay plastic for life through homeostatic and structural plasticity. This project replicates those mechanisms in artificial networks and asks, rigorously, whether — and how — they preserve plasticity.

Status: study complete on two benchmarks — a positive result. Biologically-inspired homeostatic synaptic scaling significantly exceeds the state-of-the-art remedy (Continual Backprop) on both a synthetic permuted-regression task and Continual Permuted-MNIST. Structural and homeostatic mechanisms repair complementary failure modes. Reported honestly (the best-of-ours method is benchmark-dependent; a strong baseline is competitive on MNIST). See docs/study_results.md, the write-up in docs/paper_draft.md, and the preregistered hypotheses in docs/preregistration.md.

Headline result — homeostatic scaling beats SOTA on both benchmarks

vanilla Continual Backprop (SOTA) homeostatic (ours)
synthetic — late loss ↓ 0.82 0.71 0.58 (p=0.02 vs SOTA)
Permuted-MNIST — accuracy ↑ 0.59 0.70 0.76 (p<10⁻³ vs SOTA)

Reproduce:

python scripts/run_study.py --seeds 10 --num-tasks 250 --output results/study
python scripts/run_study.py --benchmark permuted_mnist --seeds 8 --num-tasks 300 \
    --task-length 800 --batch-size 16 --hidden-dim 32 --lr 0.05 --output results/study_mnist

Robustness analyses — results in docs/robustness_results.md: A1 the plasticity gain is genuine (it survives independent per-task teachers); A2 robust under Adam (where the SOTA degrades) but not at a larger network under plain SGD; A3 insensitive to the homeostatic rate (beats SOTA at 5/5 settings). Statistics use Cohen's d effect sizes and Holm-Bonferroni-corrected p-values (A4).

python scripts/probe_plasticity_gain.py   # A1
python scripts/run_robustness.py          # A2
python scripts/run_sensitivity.py --method homeostatic --param rate --values 0.02 0.05 0.1 0.2 0.4  # A3

The phenomenon (reproduced)

Vanilla SGD over 300 permuted-regression tasks measurably loses plasticity — per-task fitting error rises, dormant units triple (0.10 → 0.33), and effective rank halves (17 → 9):

python scripts/reproduce_plasticity_loss.py --seeds 3 --num-tasks 300

Approach

  • Benchmark (data/): permuted-input regression — a fixed nonlinear teacher with a fresh input permutation per task; synthetic, reproducible, no downloads. Per-task late loss measures the learner's current plasticity.
  • Diagnostics (diagnostics/): dormant-unit fraction, effective rank, weight magnitude — the standard loss-of-plasticity signatures, which also let us attribute each mechanism to the failure mode it repairs.
  • Mechanisms (mechanisms/, Phase 2): homeostatic synaptic scaling and utility-gated structural plasticity (pruning + neurogenesis), vs baselines (L2, shrink-and-perturb, Continual Backprop, ReDo).

Repository layout

neuroplastic/
├── data/          # continual task streams
├── models/        # instrumented networks (expose hidden activations)
├── diagnostics/   # plasticity metrics
├── mechanisms/    # biological plasticity mechanisms + baselines (Phase 2)
├── training/      # online continual training loop
├── core/          # registry, seeding, types (shared primitives)
├── scripts/       # runnable experiments
├── docs/          # preregistration, plan, results
└── tests/

Prior work in this repo

The earlier multi-agent neuroplastic communication project (MARL) is archived at tag marl-communication-v1 and branch archive/marl-communication — recover with git checkout marl-communication-v1.

Install

pip install -e ".[viz,dev]"   # torch, numpy, matplotlib, pytest

License

MIT — see LICENSE.

About

Research scaffold testing whether neuroscience-inspired plasticity improves emergent coordination in multi-agent systems

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages