CANNs: A Toolkit for Research on Continuous Attractor Neural Networks

Sichao He, Aiersi Tuerhong, Shangjun She, Tianhao Chu, Yuling Wu +2 more
6/26/2026
q-bio.NCcs.LGcs.NE

No confident code implementation found for this paper.

Abstract

Continuous attractor neural networks (CANNs) are the canonical computational framework for how the brain encodes continuous variables such as spatial position, head direction, and movement direction, and explain the activity of hippocampal place cells, entorhinal grid cells, and head-direction cells. CANN research, however, is fragmented: most results rest on lab-specific implementations, general-purpose simulators lack CANN-specific abstractions, and the path from spike trains to attractor geometry in real recordings lacks a standardized toolkit.

Show full abstract

Here, we present a comprehensive open-source toolkit that unifies the full CANN research workflow. It combines three tightly integrated components: 1) canns, a Python library on BrainPy/JAX that provides standardized 1D/2D CANNs, spike-frequency-adaptation variants, grid cell networks, hierarchical path-integration models, and brain-inspired attractor architectures, together with curated datasets, task generators, an analyzer module and trainer modules for biologically plausible plasticity; 2) canns-lib, a Rust acceleration backend delivering hundreds-of-times speedups for spatial-navigation workloads and modest gains for Ripser-based persistent homology; 3) ASA (Attractor Structure Analyzer), a PySide6 pipeline applying persistent homology and cohomology to experimental neural recordings to detect ring-like and toroidal attractor signatures in real data. The toolkit ships with full-detail reproducible pipelines that recover recent CANN results including SFA-driven anticipative tracking, theta sweeps in head-direction/place/grid systems, and hierarchical path integration.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{he2026canns,
  title  = {CANNs: A Toolkit for Research on Continuous Attractor Neural Networks},
  author = {Sichao He and Aiersi Tuerhong and Shangjun She and Tianhao Chu and Yuling Wu and Junfeng Zuo and Si Wu},
  year   = {2026},
  eprint = {2606.27783},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.27783v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.27783.svg)](https://codeofpaper.com/paper/2606.27783)

Discussion