Otters: An Energy-Efficient SpikingTransformer via Optical Time-to-First-Spike Encoding

Zhanglu Yan, Jiayi Mao, Qianhui Liu, Fanfan Li, Gang Pan +3 more
9/23/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Spiking neural networks (SNNs) promise high energy efficiency, particularly with time-to-first-spike (TTFS) encoding, which maximizes sparsity by emitting at most one spike per neuron. However, such energy advantage is often unrealized because inference requires evaluating a temporal decay function and subsequent multiplication with the synaptic weights.

Show full abstract

This paper challenges this costly approach by repurposing a physical hardware `bug', namely, the natural signal decay in optoelectronic devices, as the core computation of TTFS. We fabricated a custom indium oxide optoelectronic synapse, showing how its natural physical decay directly implements the required temporal function. By treating the device's analog output as the fused product of the synaptic weight and temporal decay, optoelectronic synaptic TTFS (named Otters) eliminates these expensive digital operations. To use the Otters paradigm in complex architectures like the transformer, which are challenging to train directly due to the sparsity issue, we introduce a novel quantized neural network-to-SNN conversion algorithm. This complete hardware-software co-design enables our model to achieve state-of-the-art accuracy across seven GLUE benchmark datasets and demonstrates a 1.77$\times$ improvement in energy efficiency over previous leading SNNs, based on a comprehensive analysis of compute, data movement, and memory access costs using energy measurements from a commercial 22nm process. Our work thus establishes a new paradigm for energy-efficient SNNs, translating fundamental device physics directly into powerful computational primitives. All codes and data are open source.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yan2025otters,
  title  = {Otters: An Energy-Efficient SpikingTransformer via Optical Time-to-First-Spike Encoding},
  author = {Zhanglu Yan and Jiayi Mao and Qianhui Liu and Fanfan Li and Gang Pan and Tao Luo and Bowen Zhu and Weng-Fai Wong},
  year   = {2025},
  eprint = {2509.18968},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.18968v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.18968.svg)](https://codeofpaper.com/paper/2509.18968)

Discussion