SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.01646 · ICML · 2026

Spike-HTR: Spiking Neural Transformer for Handwritten Text Recognition

Hongzhi Wang, Yu Zhao, Yuke Li, Xiubo Liang, Jinxing Han, Haoqi Zhu

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 5 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
QomolangmaH/SpikeHTR canonical 5 of 6
FunctionStatusWhere it lives
compute_valid_width Ran QomolangmaH/SpikeHTR/ocr_datasets/common.py
code served (permissive licence) · get_code("96eb93e433cd35ba")
estimate_valid_width_from_ink Ran QomolangmaH/SpikeHTR/ocr_datasets/common.py
code served (permissive licence) · get_code("320781133d6a2af2")
make_norm_1d Ran QomolangmaH/SpikeHTR/spike_htr.py
code served (permissive licence) · get_code("e671d620e4bf5cc8")
make_norm_2d Ran QomolangmaH/SpikeHTR/spike_htr.py
code served (permissive licence) · get_code("baff48cd1ac5fe13")
normalize_transcription Ran QomolangmaH/SpikeHTR/ocr_datasets/common.py
code served (permissive licence) · get_code("d58eec740eb28091")
build_ctc_dataloaders Not yet run QomolangmaH/SpikeHTR/ocr_datasets/builder.py
code served (permissive licence) · get_code("199e9b4941a97c44")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Handwritten Text Recognition (HTR) is computationally imbalanced in two ways: most image pixels are background, and many width-axis sequence positions are blank-dominated. This creates a mismatch for Spiking Neural Networks (SNNs): handwriting is observed as a static image, whereas spiking computation unfolds over timesteps. We propose Spike-HTR, a hybrid spiking recognizer that controls both the number of spiking steps and the number of width positions processed by the deep sequence mixer. To make a static image suitable for short-horizon spiking inference, InkCoder converts it into a coarse-to-fine input stream, where early steps cover broad stroke regions and later steps emphasize sharper stroke details. To reduce sequence computation, a CTC-guided length reducer keeps likely character or uncertain positions and compresses long blank-dominated stretches before deep mixing. With T =2, Spike-HTR trains only on target data, decodes without language models or lexicons, and reaches validation/test CERs of 3.5/5.4, 2.3/2.5, and 4.2/3.9 on IAM, LAM, and READ2016. Codes are available at https://github.com/QomolangmaH/SpikeHTR.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.01646")
get_code_for_paper("2608.01646")
have("2608.01646")

Connect an agent — have() is free.