SpikeToken:使用脉冲网络学习子词词汇并对字节进行分词
SpikeToken: Learning Subword Vocabularies and Tokenizing Bytes with Spiking Networks
AI总结:
本研究提出SpikeToken,一种基于脉冲网络的分词器,通过突触学习实现子词词汇构建与字节分词,在多平台验证其性能,可缩小端到端神经形态语言建模的差距,且随词汇规模扩展适配未来需求。
摘要:
神经形态语言模型作为提升生成式语言建模效率的方法,近来受到关注。这类模型需要分词算法将输入字节转换为词元,但多数采用传统软件分词器在神经形态流程外执行该任务。本研究提出SpikeToken,一种利用脉冲动力学学习子词词汇并将字节切分为词元的分词器。学习阶段,局部突触可塑性追踪相邻词元对的出现频率,突触强度决定这些对如何合并为词元神经元。推理阶段,冻结的循环网络利用这些学习到的突触路由执行基于脉冲的分词。对约1MB的英西双语训练文本的评估显示,SpikeToken与标准字节对编码(BPE)共享65536个词元拼写中的65502个(占99.95%);在512至65536的8种词汇规模下,SpikeToken均逐字节重构了测试语料中所有596篇保留文档。我们还验证了SpikeToken可在Lava的Loihi 2模拟器、SpiNNaker2 SDK模拟器及运行Lacuna C runtime的物理Teensy 4.0开发板上执行推理分词。总体而言,分词是语言建模的关键组件,SpikeToken缩小了端到端神经形态解决方案的差距;但需强调,当前神经形态硬件无论是否采用脉冲分词,均不足以支撑实用规模的语言建模。因此,本研究具有前瞻性,且因SpikeToken随词汇规模而非模型规模扩展,它为未来的神经形态语言模型做好了准备。
英文摘要:
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 $\sim$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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。