NeuroInk: Retinomorphic Spiking Sequence Modeling for Handwritten Text Recognition

Xiubo Liang, Jinxing Han, Hongyi Duan, Qizhen Jiang, Yuke Li, Haoqi Zhu, Yu Zhao, Hongzhi WangNeurIPS 2026

TL;DR

When Spiking Neural Networks (SNNs) look at a static image, they usually create "time" by awkwardly staring at the exact same picture frame after frame. NeuroInk changes the rules for handwritten text recognition by acting like a biological retina: in just two timesteps, it breaks a static text line down into a sequence of coarse ink blobs followed by fine stroke edges. By turning simulation time into ordered visual evidence, it reads messy historical manuscripts with top-tier accuracy at a fraction of the theoretical energy cost.

What Problem Does This Paper Address?

Spiking Neural Networks (SNNs) are the brain-inspired cousins of standard deep networks. Instead of passing continuous floating-point numbers everywhere, neurons communicate via sparse, binary spikes (0s and 1s) over time—making them phenomenally energy-efficient.

Naturally, SNNs love dynamic, sparse data. Handwritten text seems like a match made in heaven: ink strokes are sparse against a page. Yet there’s a catch: a scanned historical document is a static image. To force a static image into a temporal SNN, standard practice is to simply feed the exact same image into the network $T$ times in a row.

For Handwritten Text Recognition (HTR), this repeated-frame trick falls flat for three reasons:

  1. It’s redundant: Replaying identical frames burns compute without separating different visual cues.
  2. SNNs blur fine details: Spiking neuron membranes naturally act like low-pass filters, smoothing away the faint contours, diacritics, and tiny gaps that distinguish an ‘e’ from a ‘c’ in degraded, centuries-old ink.
  3. Geometry matters: Unlike classifying a whole image ("that's a dog"), reading text requires collapsing vertical height while strictly preserving left-to-right order for CTC (Connectionist Temporal Classification, the standard algorithm for aligning unsegmented audio or text sequences).

Methods

NeuroInk is a hybrid spike-oriented architecture that replaces "repeated frames" with sensory temporalization—turning space and ink density into a meaningful two-step timeline ($T=2$).

Overview of the NeuroInk architecture

Here is how a strip of handwriting flows through the system:

  • Retinomorphic Temporal Transduction (New): Before generating a single spike, a continuous front-end splits the image into two maps: Intensity (broad, dark stroke mass, flattened against background stains) and Boundary (sharp edges and gaps). Over $T=2$ steps, quantized gates schedule these maps so Step 1 emphasizes coarse stroke support and Step 2 highlights fine boundaries. A "thalamic relay" injects both gate magnitude and positive changes between steps (gate-deltas) as driving electrical currents.
  • Spiking Visual Hierarchy (Adapted + Enhanced): The currents drive multi-step convolutional stages powered by learnable Adaptive Gated Leaky Integrate-and-Fire (GLIF) neurons. To keep the SNN from washing out delicate ink, the authors add high-frequency enhancement before the relay and reinject mid-level stroke details into the final visual stage.
  • Columnar Readout & Synaptic Association (New): Attention-gated pooling collapses the 2D feature map vertically into a 1D left-to-right sequence of columns. Instead of heavy, quadratic self-attention across all columns, NeuroInk refines the sequence using four lightweight mixers—including a custom Selective Trace circuit that scans left-and-right with learnable write/decay gates to bridge broken strokes across blank spaces.
Figure 2: Width-wise synaptic association modules in NeuroInk. After columnar readout, the visual state is represented as a width-indexed sequence along the writing direction. The four panels show the reusable sequence mixers used by the association pathway: (a) positive-kernel global integration, (b) associative context mixing, (c) selective bidirectional trace, and (d) large-kernel horizontal context. The main layout instantiates these mixers in the order (a) →(b) →(c) →(d) →(c) →(a).
  • CTC Decoding & Supervision (Standard + Twist): A standard linear CTC head decodes characters greedily (no external language models). During training, an auxiliary CTC head taps into an intermediate visual layer, tethered to the main output via a symmetric KL-divergence loss so mid-level features learn crisp character shapes early.

Datasets

No new datasets were introduced. NeuroInk is trained and evaluated exclusively on three established line-level HTR benchmarks spanning different languages, eras, and degradation levels:

  • LAM: Large-scale Italian historical manuscripts (19,830 train / 2,470 val / 3,523 test lines).
  • READ2016: Early modern German historical documents (8,349 train / 1,040 val / 1,138 test lines).
  • IAM: Modern English handwriting from multiple writers (6,482 train / 976 val / 2,915 test lines).

Key Insights and Ideas

  • Time as evidence organization, not simulation overhead: By feeding coarse stroke bodies at $t_0$ and crisp boundaries at $t_1$, the network fires more sparsely on the first step (mean firing rate ~6–8% in visual stages) and ramps up on the second step (~8–11%) as sharp edges arrive. Time actually means something.
  • Positive gate-deltas matter: Explicitly rewarding newly emerging evidence between timesteps ($[G_t - G_{t-1}]_+$) measurably improves recognition over static gates, mimicking how biological retinas respond to changing stimuli.
  • Bigger context isn't always better: In sequence ablations, adding extra association blocks or widening convolution kernels to $k=47$ actually hurt character error rates. A balanced mix of local, trace, and global operators beat brute-force capacity.
  • Context vs. literalism: Error analysis revealed that 31.55% of all character edits on LAM validation occurred on just 5.99% of lines—specifically those containing the # symbol (used by historians to mark unreadable text). NeuroInk's context circuits kept trying to "helpfully" hallucinate plausible Italian letters instead of outputting #.

Key Results

Using only $T=2$ timesteps and simple greedy decoding (zero language models or lexicons):

  • Accuracy: On LAM, NeuroInk achieves 2.4% validation CER (Character Error Rate) and 2.6% test CER (9.1% Word Error Rate). This beats heavy standard Transformers like HTR-VT (2.8% CER) and pre-trained TrOCR (3.6% CER, 385M params), and sits right alongside the 76.7M-parameter Spike-HTR (2.5% CER) while using fewer parameters (64.1M). On READ2016 and IAM tests, it scores 4.2% and 5.6% CER, respectively.
  • Sparsity & Energy: Across measured spiking blocks, the average firing rate is just 9.37%. Using standard theoretical operation-energy proxies, NeuroInk consumes an estimated 28.39 mJ per image—a 29.52× reduction (96.61% less energy) compared to an equivalent dense network.

Limitations and Future Work

  • Hybrid, not pure SNN: NeuroInk is pragmatic—its retinal front-end, relay gating, height pooling, and core sequence mixers rely on continuous floating-point math rather than pure binary spikes.
  • Theoretical energy estimates: The 29.52× energy reduction is calculated via idealized operation counts (MACs vs. Accumulates). It does not model real-world hardware bottlenecks like memory access traffic or sparse-routing overhead on actual neuromorphic chips.
  • Edge-case sensitivity: Without a lexicon or specialized handling, the model still stumbles on rare transcription placeholders (#), subtle vowel diacritics, and punctuation boundaries. Future work is not explicitly mapped out by the authors, though resolving this tension between contextual smoothing and strict symbol preservation stands out as an immediate frontier.

Summary updated

Abstract

Static-input Spiking Neural Networks (SNNs) commonly create temporal dynamics by repeating the same image over multiple timesteps. For handwritten text recognition, however, this convention is input-redundant: the image contains no native event stream, while recognition depends on faint stroke fragments, degraded ink boundaries, and monotonic left-to-right alignment. We introduce NeuroInk, a retinomorphic spike-oriented recognizer that converts static handwriting into a low-timestep sequence of temporally ordered ink evidence. Instead of replaying identical frames, NeuroInk performs temporal ink transduction with quantized gates and positive gate-delta current modulation, decomposing each text-line image into coarse stroke-mass support and fine stroke-boundary evidence. The resulting evidence sequence is injected as time-varying currents into an adaptive spiking visual hierarchy, where high-frequency enhancement and mid-level detail reinjection are used to preserve fine ink structures during spiking propagation. For Connectionist Temporal Classification (CTC) decoding, two-dimensional spiking maps are read out as width-wise columnar sequences and processed by CTC-aligned association circuits that combine local horizontal context, global association, and selective trace memory. On the LAM benchmark, NeuroInk achieves a character error rate (CER) of 2.4\% on the validation split and 2.6\% on the test split using only two timesteps and greedy CTC decoding, without an external language model or lexicon. These results support the view that static-input SNN sequence recognition can benefit from co-designing sensory temporalization, spiking visual abstraction, and monotonic sequence association.
BibTeX
@inproceedings{liang2026neuroink,
  author = {Xiubo Liang and Jinxing Han and Hongyi Duan and Qizhen Jiang and Yuke Li and Haoqi Zhu and Yu Zhao and Hongzhi Wang},
  title = {{NeuroInk: Retinomorphic Spiking Sequence Modeling for Handwritten Text Recognition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uKMBVkBuxL},
}
Figure