arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.22876cs.LG
收藏

Matterhorn: 一种高效的类脑稀疏脉冲变压器架构与掩码时间到首次脉冲编码

Matterhorn: Masked Time-to-First-Spike Encoding by Reassigning the Silent State for Sparse and Energy-Efficient Spiking Transformers

Department of computer science, National University of Singapore(新加坡国立大学计算机科学系);School of Artificial Intelligence, Shandong University(山东大学人工智能学院);Shanghai Advanced Research Institute, Chinese Academy of Science(中国科学院上海先进研究院);University of Chinese Academy of Sciences, Beijing(中国科学院大学北京校区)

Zhanglu Yan, Kaiwen Tang, Zixuan Zhu, Zhenyu Bai, Qianhui Liu, Yongxin Zhu, Weng-Fai Wong

AI总结:

Matterhorn通过引入掩码时间到首次脉冲编码和类比计算在内存技术,实现高效稀疏脉冲变压器架构,提升能效并达到新的准确率水平。

摘要:

脉冲神经网络(SNNs)已逐渐成为一种有前途的候选者,用于高效低功耗大语言模型(LLM)推理。然而,目前SNNs的能耗评估主要集中在计数累积操作上,而未能考虑现实硬件成本,如数据移动,这可能消耗近80%的总能耗。在本文中,我们提出了Matterhorn,一种集成新颖的掩码时间到首次脉冲(M-TTFS)编码方法的脉冲变压器,以减少脉冲移动并消除权重访问开销。M-TTFS采用一种掩码策略,将零能耗静默状态(一个全0的脉冲序列)重新分配给最频繁的膜电位,而不是最低的。这使编码方案与数据分布对齐,从而在不丢失信息的情况下最小化脉冲移动能耗。我们进一步提出了一种“死区”策略,通过将给定范围内的所有值映射到静默状态来最大化稀疏性。在硬件层面,MSU利用计算在内存(CIM)技术,在内存中直接执行类比整合,从而有效消除权重访问成本。在GLUE基准测试中,Matterhorn建立了新的最先进的状态,比现有SNNs在平均准确率上提高了1.42%,同时在能效方面提高了2.31倍。

英文摘要:

Spiking neural networks (SNNs) promise energy-efficient inference for large language models (LLMs), yet most reported savings rely on compute-operation counts that overlook data movement. Energy characterization of representative spiking transformers on a commercial 22-nm process shows that accumulation contributes less than 3% of total energy, while spike-triggered inter-core transfers and weight reads dominate the cost. This makes time-to-first-spike (TTFS) encoding a natural choice, as it limits each neuron to at most one spike. However, standard TTFS maps the silent state, an all-zero spike train that transmits no events, to the rarely occurring smallest value, while the most common activations still spike. This raises a simple question: why reserve the only cost-free codeword for a rare value? This choice inverts a basic principle of energy-aware coding, under which the zero-event codeword should represent the most common value, rather than a rare extreme. Thus, we introduce masked time-to-first-spike encoding (M-TTFS), which uses a temporal mask to reassign the silent state to the most common activation value, and a dead-zone extension that trades a controlled amount of information for greater sparsity. Built on M-TTFS with dead-zone radius $k{=}1$, our spiking transformer Matterhorn reaches an overall spike rate of 1.64% on GLUE at an average score of 84.64, exceeding the best prior spiking transformer by 1.42 percentage points while consuming 67% less energy, with consistent gains on spiking LLaMA models from 7B to 70B parameters. Together, these results show that under hardware-faithful accounting, the energy advantage of SNNs is not a given: it is earned by encodings that align spikes with the data distribution.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑