SpikeToken: Learning Subword Vocabularies and Tokenizing Bytes with Spiking Networks
Abstract
Neuromorphic language models have recently garnered attention as a way to improve the efficiency of generative language modeling. These models require tokenization algorithms to convert incoming bytes to tokens; however, most use conventional software tokenizers to perform this task outside of the neuromorphic pipeline. In this work, we introduce SpikeToken, a tokenizer that uses spike dynamics to learn subword vocabularies and segment bytes into tokens. During learning, local synaptic plasticity tracks the frequency of adjacent token pairs. The synaptic strengths determine how pairs are merged into token neurons. During inference, the frozen recurrent network performs spike-based tokenization using these learned synaptic routes. Evaluation on 1 MB of English-Spanish training text shows that SpikeToken shared 65,502 of 65,536 token spellings (99.95%) with standard byte-pair encoding (BPE). On all eight vocabulary sizes from 512 to 65,536, SpikeToken reconstructed all 596 held-out documents in our test corpus, byte for byte. We also verified that SpikeToken performs inference tokenization in Lava's Loihi 2 simulator, the SpiNNaker2 SDK simulator, and on a physical Teensy 4.0 board running the Lacuna C runtime. Overall, tokenization is a critical component of language modeling and SpikeToken narrows the gap towards an end-to-end neuromorphic solution. However, we emphasize that current neuromorphic hardware is insufficient for practical-scale language modeling, with or without spiking tokenization. As such, our work is forward-looking, and because SpikeToken scales with vocabulary size rather than model size, it is well positioned for future neuromorphic language models.
Create a lesson
Related papers
NeuroInk: Retinomorphic Spiking Sequence Modeling for Handwritten Text Recognition
Shared title terminologycs.NEXiubo Liang, Jinxing Han, Hongyi Duan et al.
Spike-SFT: Selective Parameter Enhancement and Fusion for Efficient Spiking Neural Networks
Shared title terminologycs.NEXiubo Liang, Jinxing Han, Hongyi Duan et al.
What must be built in? Small spiking networks learning 4×4 Sudoku across levels of skill encapsulation
Shared title terminologycs.NEShuyao Gao, Minghao Huang
FLASCHE: A Feedforward Location Activated Spike-based Computational-CAM Hardening Edge-processor Using Hierarchical Feature Extraction for Rapid On-Chip Learning and Inference
Shared title terminologycs.NEDongwhi Kim, Hyunki Rhim, Huiseong Choi et al.
SpikeBill: An Open Cost Simulator for Large Spiking Neural Networks on Multi-Chip Neuromorphic Systems
Shared title terminologycs.NEHyunseok Oh, Youngki Lee
SPARC: Task-Free Class-Incremental Learning for Deep Spiking Neural Networks under a Local Rule
Shared title terminologycs.NELorenzo Capuano, Alessio Caviglia, Filippo Marostica et al.