Otters++: A Time-to-first-spike Based Energy Efficient Optical Spiking Transformer
Summary
Otters++ is a novel optical spiking Transformer that leverages time-to-first-spike coding and physical hardware decay to achieve energy-efficient inference, achieving 84.17% on GLUE while maintaining a clear energy advantage over prior spiking Transformer baselines.
View Cached Full Text
Cached at: 06/12/26, 08:55 AM
# Otters++: A Time-to-first-spike Based Energy Efficient Optical Spiking Transformer
Source: [https://arxiv.org/html/2606.13016](https://arxiv.org/html/2606.13016)
Zhanglu Yan1, Jiayi Mao2, Kaiwen Tang1, Fanfan Li2, Gang Pan4, Tao Luo5,Bowen Zhu2, Qianhui Liu1,3, Weng\-Fai Wong1 1Department of Computer Science, National University of Singapore,2School of Engineering, Westlake University,3School of Artificial Intelligence, Shandong University,4College of Computer Science and Technology, Zhejiang University,5Agency for Science, Research and Technology, Singapore\.
###### Abstract
Spiking neural networks \(SNNs\) are promising for energy\-efficient inference, and time\-to\-first\-spike \(TTFS\) coding is especially attractive because each neuron fires at most once\. In practice, however, this benefit is often reduced by the cost of computing a temporal decay term and multiplying it by the synaptic weight\. We address this issue by turning a physical hardware “bug,” the natural signal decay in optoelectronic devices, into the main computation of TTFS, named Otters\+\+\. Specifically, we use the measured decay of a custom In2O3optoelectronic synapse to directly realize the TTFS temporal term, removing the need for explicit digital decay computation\. To scale this idea to Transformer models, we establish a layer\-wise functional equivalence between the Otters\+\+ and a quantized neural network \(QNN\), and develop a hybrid training method that uses device\-faithful SNN computation in the forward pass and QNN straight\-through gradients through the equivalent QNN path in the backward pass, together with model distillation\. This avoids differentiation through discrete first\-spike events and reduces the over\-sparsity problem in direct TTFS\-SNN training\. We further make training aware of measured device noise by sampling run\-to\-run variation, and refine the system\-level energy model by accounting for device sharing and multi\-hop communication\. On GLUE dataset, Otters\+\+ improves the average score to 84\.17% while maintaining a clear energy advantage over prior spiking Transformer baselines\. These results show that physically grounded TTFS computing can be efficient, trainable, and robust under realistic hardware effects\.
## IIntroduction
Large language models\(LLMs\) have achieved remarkable success across language tasks, but their computational and energy costs remain a major obstacle to deployment on edge and resource\-constrained platforms\[[16](https://arxiv.org/html/2606.13016#bib.bib17),[9](https://arxiv.org/html/2606.13016#bib.bib18)\]\. This challenge has motivated increasing interest in spiking neural networks \(SNNs\), whose sparse and event\-driven computation offers a potential path toward low\-power inference\[[34](https://arxiv.org/html/2606.13016#bib.bib296),[26](https://arxiv.org/html/2606.13016#bib.bib297),[19](https://arxiv.org/html/2606.13016#bib.bib290),[18](https://arxiv.org/html/2606.13016#bib.bib289)\]\. Among different neural coding schemes, time\-to\-first\-spike \(TTFS\) is especially appealing because each neuron fires at most once within a coding window, thereby maximizing temporal sparsity and, in principle, reducing spike traffic and data movement\[[38](https://arxiv.org/html/2606.13016#bib.bib288),[41](https://arxiv.org/html/2606.13016#bib.bib150),[36](https://arxiv.org/html/2606.13016#bib.bib11)\]\. However, the practical efficiency of TTFS is often overstated\. In conventional TTFS implementations, the arrival time of each spike must still be converted into a numerical value through a temporal decay function, such as an exponential or linear decay, and this value is then multiplied by the synaptic weight\. As a result, the apparent benefit of sparse spike coding is partly offset by additional function evaluation, multiplication, and memory access\[[32](https://arxiv.org/html/2606.13016#bib.bib149),[5](https://arxiv.org/html/2606.13016#bib.bib141)\]\. This hidden overhead raises a fundamental question:Can TTFS preserve its sparsity advantage without paying the cost of digital temporal decoding?
In this work, we answer this question by moving the temporal computation from digital logic into device physics\. Instead of treating the natural signal decay of an optoelectronic device as an undesirable non\-ideality\[[1](https://arxiv.org/html/2606.13016#bib.bib138)\], we use it as the temporal computation required by TTFS\. Specifically, the measured decay response of a custom In2O3optoelectronic synapse directly realizes the TTFS temporal term, removing the need to explicitly evaluate the decay function in software or digital hardware\. In this way, Otters\+\+ repurposes a physical hardware “bug” as a computational primitive, fusing temporal modulation and synaptic computation into the same physical process\.
While our optical hardware mitigates the computational overhead of TTFS, a second major barrier remains: the inherent difficulty of training such networks, especially for complex architectures such as transformers\. Direct optimization of TTFS\-SNNs is challenging because discrete first\-spike events and quantized firing times make gradient propagation fragile, particularly under sparse or missing spikes\. This leads to unstable training and the over\-sparsity problem commonly observed in direct SNN optimization\[[32](https://arxiv.org/html/2606.13016#bib.bib149)\]\. In our setting, this training difficulty is further amplified by hardware\-induced mismatch and variation\[[14](https://arxiv.org/html/2606.13016#bib.bib140)\]\. Physical sampling error arises when the ideal firing time falls between realizable sampling points of the measured device response, while run\-to\-run device fluctuations perturb the decay curve and reduce robustness\. If these effects are considered only after training, they introduce a mismatch between the trained model and the deployed Otters\+\+ path\.
To address these challenges, we establish a layer\-wise functional equivalence between the Otters\+\+ and an unsigned QNN, and use this equivalence to develop a hybrid SNN\-forward/QNN\-backward training framework\. The forward pass preserves the hardware\-faithful Otters\+\+ computation\. At each discretized spike time, the device response is sampled from the interval between the measured upper and lower response curves, allowing the model to account for realistic hardware uncertainty during training\. The backward pass avoids direct differentiation through sparse and discontinuous first\-spike events, and instead computes gradients through the functionally equivalent nominal QNN with the straight\-through estimator\. As a result, the proposed training scheme maintains physical fidelity in the forward computation, enables stable optimization, and improves robustness under measured device variation\.
Beyond training, practical deployment also requires a system\-level energy evaluation\. Prior studies of SNN efficiency often focus on operation counts, while underemphasizing data movement and weight access, which can dominate energy in real deployments\. We therefore develop an energy model that explicitly captures these costs and adapt it to the physical constraints of Otters\+\+\. Further, because analog\-read energy depends on how optoelectronic devices are allocated and shared across neurons, we incorporate device sharing into the energy model\. We also extend the analysis to multi\-hop communication, so that the evaluated energy reflects different communication distances\. These refinements provide a more realistic assessment of the energy benefits of physically grounded TTFS computing\. Together, these components enable a physically grounded TTFS framework that combines optical temporal computation, stable SNN training, hardware\-variation robustness, and system\-level energy evaluation\. Evaluated on GLUE, Otters\+\+ improves the average score by 0\.95 points over the original Otters baseline and by 3\.34–4\.37 points over other SNN\-based Transformer baselines\. Under the same hardware model, it reduces per\-layer energy by 1\.84×\\timesover SpikingLM, 3\.02×\\timesover Sorbet, and up to 5\.68×\\timesover SpikingBERT\[[26](https://arxiv.org/html/2606.13016#bib.bib297),[35](https://arxiv.org/html/2606.13016#bib.bib295),[3](https://arxiv.org/html/2606.13016#bib.bib225)\]\.
The main contributions of this work are threefold:
1. 1\.We introduce a physically grounded TTFS computing mechanism that turns the natural optical decay of optoelectronic devices into the core temporal computation\. Rather than treating decay as a hardware nonideality, Otters\+\+ exploits it to replace the costly digital temporal evaluation required by conventional TTFS\-SNNs\.
2. 2\.We develop a hybrid*SNN\-forward/QNN\-backward*training framework for Otters\+\+\. Based on a layer\-wise functional equivalence between the Otters\+\+ TTFS\-SNN and QNN, the forward pass preserves the device\-faithful TTFS computation, while the backward pass uses STE\-based gradients through the equivalent QNN path\. We further incorporate measured run\-to\-run device variation into the forward pass, enabling robust training under realistic hardware uncertainty\.
3. 3\.We refine the energy evaluation of Otters\+\+ with a system\-level model that accounts for compute, data movement, memory access, analog\-read cost, device sharing, and multi\-hop communication, providing a more realistic estimate of energy efficiency\.
## IIBackground
### II\-AOptoelectronic synapse
An optoelectronic synapse is a neuromorphic device that emulates biological synaptic functions by using optical signals to modulate its electrical conductance\. These devices are renowned for their potential for extreme energy efficiency, broader bandwidth and faster signal transmission in neuromorphic computing, which are key advantages over purely electronic counterparts\[[33](https://arxiv.org/html/2606.13016#bib.bib148),[30](https://arxiv.org/html/2606.13016#bib.bib147)\]\. Recent studies have reported energy consumption reaching the femtojoule \(fJ\)/spike level, comparable to that of biological synapses and substantially lower than that of conventional CMOS neuron devices\[[23](https://arxiv.org/html/2606.13016#bib.bib146),[31](https://arxiv.org/html/2606.13016#bib.bib145)\]\. Among various implementations, oxide thin\-film transistors \(TFT\) are regarded as viable candidates for optoelectronic synapses due to their low leakage current and capability for large\-area, flexible fabrication\. Solution\-based fabrication further offers the advantages of low cost, simplified processing, and facile compositional control\. Previous reports have shown that solution\-processed devices exhibit uniform performance, operational stability, and low energy consumption\[[13](https://arxiv.org/html/2606.13016#bib.bib144)\]\. Building upon these advances, this work employs the mature and reliable oxide\-TFT platform to develop the Otters\+\+ spiking neuron\.
### II\-BTime\-to\-first\-spike SNN
In contrast to rate\-based encoding, which uses the frequency of spikes to represent information, TTFS encoding leverages the precise timing of a single spike\. The core principle is that a stronger input stimulus causes a neuron’s membrane potential to rise faster, reaching its firing threshold sooner\. Thus, the information is encoded in the arrival time of the first—and only—spike within a given time window,TT\. This approach maximizes temporal sparsity and is highly efficient, as each neuron fires at most once\[[4](https://arxiv.org/html/2606.13016#bib.bib143)\]\.
The operation of a standard TTFS neuron involves two phases\. First, the neuron integrates incoming spikes, updating its membrane potentialVjl\(t\)V\_\{j\}^\{l\}\(t\)\. Second, it compares this potential to a firing thresholdθl\(t\)\\theta^\{l\}\(t\)\. A spike is generated at the first time stepttwhere the potential meets or exceeds the threshold:
sjl\(t\)=\{1,ifVjl\(t\)≥θl\(t\)0,otherwises\_\{j\}^\{l\}\(t\)=\\begin\{cases\}1,&\\text\{if \}V\_\{j\}^\{l\}\(t\)\\geq\\theta^\{l\}\(t\)\\\\ 0,&\\text\{otherwise\}\\end\{cases\}\(1\)
However, the asynchronous nature of SNNs, combined with the “fire\-as\-early\-as\-possible” objective of TTFS, can lead to another problem\. If a presynaptic neuron fires after a postsynaptic neuron has already fired, its spike becomes invalid for membrane potential accummalation\. To solve this, we employ a Dynamic Firing Threshold \(DFT\) model that enforces a synchronous, layer\-by\-layer processing schedule\[[32](https://arxiv.org/html/2606.13016#bib.bib149)\]\. The threshold for any neuron in layerllis set to infinity outside of a designated time window, effectively ensuring that layerllis only active from timeT⋅lT\\cdot ltoT⋅\(l\+1\)T\\cdot\(l\+1\):
θl\(t\)=\{θdynamicl\(t\),ifT⋅l≤t≤T⋅\(l\+1\)\+∞,otherwise\\theta^\{l\}\(t\)=\\begin\{cases\}\\theta^\{l\}\_\{\\text\{dynamic\}\}\(t\),&\\text\{if \}T\\cdot l\\leq t\\leq T\\cdot\(l\+1\)\\\\ \+\\infty,&\\text\{otherwise\}\\end\{cases\}\(2\)This scheduling guarantees that all spikes from a preceding layer are processed before the current layer can fire, thus preserving the valid causal relationship\.
### II\-CEnergy Calculation
To enable a fair comparison across full\-precision Transformers, quantized Transformers, and SNN\-based models, we adopt a unified energy accounting framework\[[36](https://arxiv.org/html/2606.13016#bib.bib11)\]\. Specifically, we decompose the energy of each layer into two dominant parts: 1\) the energy of the linear projections, denoted byEfcE\_\{\\text\{fc\}\}, and 2\) the energy of the attention score computation, denoted byEscoreE\_\{\\text\{score\}\}\. For both parts, the total energy includes arithmetic cost, memory\-access cost, data\-movement cost, and state\-related overhead such as leakage, threshold comparison, and output write\-back\. We consider a spatial dataflow architecture where information \(e\.g\., spike packets\) is communicated over a Network\-on\-Chip \(NoC\)\[[36](https://arxiv.org/html/2606.13016#bib.bib11)\]\. This architecture is representative of modern specialized hardware such as neuromorphic chips like Loihi\[[17](https://arxiv.org/html/2606.13016#bib.bib190)\]and dataflow AI accelerators like Tenstorrent\[[28](https://arxiv.org/html/2606.13016#bib.bib287)\]and Sambanova\[[21](https://arxiv.org/html/2606.13016#bib.bib283)\]\. We consider the control logic energy to be negligible as our analysis focuses on specialized accelerator designs where such overhead is minimal\[[36](https://arxiv.org/html/2606.13016#bib.bib11)\]\.
Unless otherwise stated,BBdenotes the batch size,SSthe sequence length,CiC\_\{i\}andCoC\_\{o\}the input and output channel dimensions of a linear layer,hhthe number of attention heads, anddkd\_\{k\}the per\-head key/query dimension\. For full\-precision and quantized models,γ∈\[0,1\]\\gamma\\in\[0,1\]denotes the effective activation density\. For SNNs,TTdenotes the number of time steps,sr∈\[0,1\]s\_\{r\}\\in\[0,1\]denotes the average spike rate\. The hardware primitives used in the model are denoted as follows:EMACE\_\{\\text\{MAC\}\}for one multiply\-accumulate operation,EACCE\_\{\\text\{ACC\}\}for one accumulate operation,ECMPE\_\{\\text\{CMP\}\}for one comparison,ESUBE\_\{\\text\{SUB\}\}for one subtraction,EclampE\_\{\\text\{clamp\}\}for one clamping operation,EleakageE\_\{\\text\{leakage\}\}for one unit\-time leakage cost,EweightReadE^\{\\text\{Read\}\}\_\{\\text\{weight\}\}andEkvReadE^\{\\text\{Read\}\}\_\{\\text\{kv\}\}for reading weights and key/value operands,EkvWriteE^\{\\text\{Write\}\}\_\{\\text\{kv\}\}for writing the generated key/value outputs, andEmovesparseE^\{\\text\{sparse\}\}\_\{\\text\{move\}\}for moving one bit of sparse data\.
Full\-Precision BERT \(FP32\)\.For the full\-precision baseline, each valid input activation contributes a standard MAC together with one weight read and the corresponding data movement\. Since the activations are represented in FP32, the sparse movement cost scales with 32 bits\. In addition, each output incurs leakage, clamping, and key/value write\-back overhead\. The resulting energy is modeled as
Efc=\\displaystyle E\_\{\\text\{fc\}\}=B⋅S⋅Co⋅\[Ci⋅Eleakage\+2Eclamp\+EkvWrite\\displaystyle\\;B\\cdot S\\cdot C\_\{o\}\\cdot\\Bigl\[C\_\{i\}\\cdot E\_\{\\text\{leakage\}\}\+2E\_\{\\text\{clamp\}\}\+E^\{\\text\{Write\}\}\_\{\\text\{kv\}\}\+γ⋅Ci⋅\(EMAC\+EweightRead\+32⋅Emovesparse\)\],\\displaystyle\\qquad\\qquad\+\\gamma\\cdot C\_\{i\}\\cdot\\bigl\(E\_\{\\text\{MAC\}\}\+E^\{\\text\{Read\}\}\_\{\\text\{weight\}\}\+32\\cdot E^\{\\text\{sparse\}\}\_\{\\text\{move\}\}\\bigr\)\\Bigr\],\(3\)Escore=\\displaystyle E\_\{\\text\{score\}\}=B⋅h⋅S2⋅\[dk⋅Eleakage\+2Eclamp\\displaystyle\\;B\\cdot h\\cdot S^\{2\}\\cdot\\Bigl\[d\_\{k\}\\cdot E\_\{\\text\{leakage\}\}\+2E\_\{\\text\{clamp\}\}\+dk⋅γ⋅\(EkvRead\+EMAC\+32⋅Emovesparse\)\]\.\\displaystyle\\qquad\\qquad\+d\_\{k\}\\cdot\\gamma\\cdot\\bigl\(E^\{\\text\{Read\}\}\_\{\\text\{kv\}\}\+E\_\{\\text\{MAC\}\}\+32\\cdot E^\{\\text\{sparse\}\}\_\{\\text\{move\}\}\\bigr\)\\Bigr\]\.\(4\)
The termB⋅S⋅CoB\\cdot S\\cdot C\_\{o\}counts the total number of output neurons in the projection layer, whileB⋅h⋅S2B\\cdot h\\cdot S^\{2\}counts the total number of pairwise attention\-score evaluations across all heads\.
Quantized BERT\.For the quantized baseline, the structure of the energy model remains the same, but the representation width is reduced from 32 bits tolog2\(T\+1\)\\log\_\{2\}\(T\+1\)bits, corresponding to the quantized activation/state space withT\+1T\+1discrete levels\. Therefore, the dominant reduction comes from the data\-movement term, while leakage, clamping, and write\-back overhead remain unchanged under the same architectural schedule\. The corresponding energy is
Efc=\\displaystyle E\_\{\\text\{fc\}\}=B⋅S⋅Co⋅\[Ci⋅Eleakage\+2Eclamp\+Ekvwrite\\displaystyle B\\cdot S\\cdot C\_\{o\}\\cdot\\Bigl\[C\_\{i\}\\cdot E\_\{\\text\{leakage\}\}\+2E\_\{\\text\{clamp\}\}\+E^\{\\text\{write\}\}\_\{kv\}\+γ⋅Ci⋅\(EMAC\+EweightRead\+log2\(T\+1\)Emovesparse\)\]\\displaystyle\+\\gamma\\cdot C\_\{i\}\\cdot\\bigl\(E\_\{\\text\{MAC\}\}\+E^\{\\text\{Read\}\}\_\{\\text\{weight\}\}\+\\log\_\{2\}\(T\+1\)E^\{\\text\{sparse\}\}\_\{\\text\{move\}\}\\bigr\)\\Bigr\]\(5\)Escore=\\displaystyle E\_\{\\text\{score\}\}=B⋅h⋅S2⋅\[dk⋅Eleakage\+2Eclamp\\displaystyle B\\cdot h\\cdot S^\{2\}\\cdot\\Bigl\[d\_\{k\}\\cdot E\_\{\\text\{leakage\}\}\+2E\_\{\\text\{clamp\}\}\+dk⋅γ⋅\(EkvRead\+EMAC\+log2\(T\+1\)⋅Emovesparse\)\]\\displaystyle\+d\_\{k\}\\cdot\\gamma\\cdot\\bigl\(E^\{\\text\{Read\}\}\_\{\\text\{kv\}\}\+E\_\{\\text\{MAC\}\}\+\\log\_\{2\}\(T\+1\)\\cdot E^\{\\text\{sparse\}\}\_\{\\text\{move\}\}\\bigr\)\\Bigr\]\(6\)
Typical SNNs\.For conventional SNNs, computation unfolds overTTtime steps\. Each neuron now incurs time\-dependent state maintenance cost, including membrane leakage and threshold comparison at every step\. In addition, the synaptic update is event\-driven: only active spikes participate in accumulation, weight access, and sparse data movement, which are scaled by both the spike ratesrs\_\{r\}and the simulation lengthTT\. The energy is modeled as
Efc=\\displaystyle E\_\{\\text\{fc\}\}=B⋅S⋅Co⋅\[Ci⋅T⋅Eleakage\+T⋅\(ECMP\+sr⋅ESUB\)\\displaystyle B\\cdot S\\cdot C\_\{o\}\\cdot\\Bigl\[C\_\{i\}\\cdot T\\cdot E\_\{\\text\{leakage\}\}\+T\\cdot\\bigl\(E\_\{\\text\{CMP\}\}\+s\_\{r\}\\cdot E\_\{\\text\{SUB\}\}\\bigr\)\+EkvWrite\+Ci⋅sr⋅T⋅\(EACC\+EweightRead\+Emovesparse\)\]\\displaystyle\+E^\{\\text\{Write\}\}\_\{\\text\{kv\}\}\+C\_\{i\}\\cdot s\_\{r\}\\cdot T\\cdot\\bigl\(E\_\{\\text\{ACC\}\}\+E^\{\\text\{Read\}\}\_\{\\text\{weight\}\}\+E^\{\\text\{sparse\}\}\_\{\\text\{move\}\}\\bigr\)\\Bigr\]\(7\)Escore=\\displaystyle E\_\{\\text\{score\}\}=B⋅h⋅S2⋅\[dk⋅T⋅Eleakage\+T⋅\(ECMP\+sr⋅ESUB\)\\displaystyle B\\cdot h\\cdot S^\{2\}\\cdot\\Bigl\[d\_\{k\}\\cdot T\\cdot E\_\{\\text\{leakage\}\}\+T\\cdot\\bigl\(E\_\{\\text\{CMP\}\}\+s\_\{r\}\\cdot E\_\{\\text\{SUB\}\}\\bigr\)\+dk⋅sr⋅T⋅\(EkvRead\+EACC\+Emovesparse\)\]\\displaystyle\+d\_\{k\}\\cdot s\_\{r\}\\cdot T\\cdot\\bigl\(E^\{\\text\{Read\}\}\_\{\\text\{kv\}\}\+E\_\{\\text\{ACC\}\}\+E^\{\\text\{sparse\}\}\_\{\\text\{move\}\}\\bigr\)\\Bigr\]\(8\)
## IIIMethods
This section presents the Otters\+\+ framework from device construction to training and system\-level evaluation\. We first introduce the optoelectronic neuron and the Transformer architecture built on it\. We then show how Otters\+\+ can be constructed as a layer\-wise equivalent form of a QNN, which enables a hybrid*SNN\-forward/QNN\-backward*training method\. Next, we extend this training scheme to measured device variation through noise\-aware forward sampling\. Finally, we present the energy model used to assess deployment efficiency\.
Figure 1:Device and workflow: \(a\) the custom\-fabricated In2O3thin\-film transistor \(TFT\); \(b\) measured decay curve of the device response; \(c\) Otters\+\+ neuron workflow\.### III\-AOtters\+\+ Spiking Neuron
The core of Otters\+\+ is an optoelectronic synapse that physically realizes the temporal modulation required by time\-to\-first\-spike \(TTFS\) computation\. Each synapse consists of two parts: a custom\-fabricated In2O3thin\-film transistor \(TFT\), which provides the physical decay response, and an analog\-to\-digital converter \(ADC\), which maps the analog response to a digital post\-synaptic signal\. Device fabrication details are given in Section IV\-A\.
Under a fixed light intensity, the TFT exhibits a stable nonlinear decay curve\[[12](https://arxiv.org/html/2606.13016#bib.bib272),[15](https://arxiv.org/html/2606.13016#bib.bib273)\], which is modeled as
O\(t\)=I0exp\(−\(tτ\)β\)\+Ioffset,O\(t\)=I\_\{0\}\\exp\\\!\\left\(\-\\left\(\\frac\{t\}\{\\tau\}\\right\)^\{\\beta\}\\right\)\+I\_\{\\text\{offset\}\},\(9\)
This decay forms the temporal component of the post\-synaptic potential \(PSP\)\. However, the device nonlinearity introduces a key challenge\. For the QNN–SNN equivalence to hold, spike timing must correspond to uniformly spaced logical values\. In particular, a spike at timetkt\_\{k\}should encode the quantized value\(T−k\)/T\(T\-k\)/T\. Since the device decayO\(t\)O\(t\)is nonlinear, the physical times\{tk\}\\\{t\_\{k\}\\\}at which the device output matches these target values are generally non\-uniform\. Therefore, a naive design based on a fixed threshold and uniform time sampling cannot satisfy the required equivalence\.
To reconcile the nonlinear device physics with the linear quantization grid, we use a dynamic step\-wise threshold under a uniform physical clock\. Specifically, we precompute a set of physical sampling times\{tk\}k=0T−1\\\{t\_\{k\}\\\}\_\{k=0\}^\{T\-1\}from the inverse device response, and allow the neuron to fire only at these discrete times\. The threshold changes only at\{tk\}\\\{t\_\{k\}\\\}, so that the first firing event directly encodes the intended quantized level\. The full construction is formalized in Section[III\-C](https://arxiv.org/html/2606.13016#S3.SS3)\.
The ADC applies a synapse\-dependent scaling factorγijl\\gamma\_\{ij\}^\{l\}to the device response\. The PSP generated by a presynaptic spike is
ϵ′\(t\)=γijlO\(t\)\.\\epsilon^\{\\prime\}\(t\)=\\gamma\_\{ij\}^\{l\}\\,O\(t\)\.\(10\)The membrane potential of neuronjjin layerllaccumulates these PSPs:
Vjl\(t\)=Vjl\(t−1\)\+∑i:sil−1\(t\)=1ϵ′\(t\)\.V\_\{j\}^\{l\}\(t\)=V\_\{j\}^\{l\}\(t\-1\)\+\\sum\_\{i:\\,s\_\{i\}^\{l\-1\}\(t\)=1\}\\epsilon^\{\\prime\}\(t\)\.\(11\)A neuron fires when its membrane potential first reaches the dynamic threshold:
tspike,jl=min\{tk\|Vjl\(tk\)≥θl\(tk\)\}\.t^\{\\,l\}\_\{\\text\{spike\},j\}=\\min\\left\\\{t\_\{k\}\\,\\middle\|\\,V\_\{j\}^\{l\}\(t\_\{k\}\)\\geq\\theta^\{l\}\(t\_\{k\}\)\\right\\\}\.\(12\)Following the TTFS paradigm, the neuron is deactivated after firing, so that each neuron emits at most one spike per inference cycle\.
### III\-BOtters\+\+ Transformer Architecture
A main challenge in building a spiking Transformer is the matrix multiplication in self\-attention, i\.e\.,QK⊤QK^\{\\top\}\. In rate\-coded SNNs, one operand can often be treated as a binary spike train, which turns multiplication into selective accumulation\. This simplification does not directly apply to TTFS, because TTFS spikes encode non\-binary values through spike timing\.
To remove this bottleneck, we quantize the key \(KK\) and value \(VV\) projections to one bit, i\.e\.,\{\+1,−1\}\\\{\+1,\-1\\\}\. The dot product between a TTFS\-encoded query \(QQ\) and a binaryKKorVVvector can then be implemented using only selective additions and subtractions\. This avoids explicit multiplications while preserving the sparsity benefit of TTFS\.
Figure 2:Architecture design for scores calculations\.To support this 1\-bit attention efficiently, we adopt a PE\-array dataflow inspired by Canon\[[2](https://arxiv.org/html/2606.13016#bib.bib279)\]\. During inference, the binaryKK/VVvectors are preloaded into local PE memory, and the TTFS\-encoded query stream is broadcast to the PE array\. Each PE accumulates its local binary values only at the time steps indicated by incoming spikes, and partial sums are propagated across PEs for final reduction\. This design minimizes data movement and exploits the spatio\-temporal sparsity of TTFS inputs, as shown in Figure[2](https://arxiv.org/html/2606.13016#S3.F2)\.
Figure 3:Otters\+\+\-based transformer structure\.Together with feed\-forward layers built from Opto\-FC and the spiking neuron in Section[III\-A](https://arxiv.org/html/2606.13016#S3.SS1), this forms the complete Otters\+\+ Transformer architecture, as shown in Figure[3](https://arxiv.org/html/2606.13016#S3.F3)\.
### III\-CQNN\-Equivalent Construction of Otters\+\+
To make device\-faithful training possible, we construct each Otters\+\+ layer as the physical counterpart of annn\-bit QNN layer\. Consider an unsigned QNN layer with quantized input
qil−1=Clip\(⌊ail−1αl−1⌋,0,T\),xq,il−1=αl−1qil−1,q\_\{i\}^\{\\,l\-1\}=\\operatorname\{Clip\}\\\!\\left\(\\left\\lfloor\\frac\{a\_\{i\}^\{\\,l\-1\}\}\{\\alpha^\{\\,l\-1\}\}\\right\\rfloor,0,T\\right\),\\qquad x\_\{q,i\}^\{\\,l\-1\}=\\alpha^\{\\,l\-1\}q\_\{i\}^\{\\,l\-1\},\(13\)whereαl−1\>0\\alpha^\{\\,l\-1\}\>0is the learnable step size and
We define the QNN\-to\-Otters\+\+ construction through four conditions:
1. 1\.The SNN time window usesT=2n−1T=2^\{n\}\-1discrete levels, matching the positive quantization range of thenn\-bit QNN\.
2. 2\.Each logical levelk∈\{0,1,…,T−1\}k\\in\\\{0,1,\\dots,T\-1\\\}is mapped to a physical spike timetkt\_\{k\}such that O\(tk\)=T−kT\.O\(t\_\{k\}\)=\\frac\{T\-k\}\{T\}\.\(15\)
3. 3\.The physical synaptic scaling factor is set as γijl=wijlαl−1T\.\\gamma\_\{ij\}^\{l\}=w\_\{ij\}^\{l\}\\,\\alpha^\{\\,l\-1\}T\.\(16\)
4. 4\.The firing threshold is defined as a step\-wise decreasing function: θl\(t\)=αl\(T−k\),tk≤t<tk\+1\.\\theta^\{l\}\(t\)=\\alpha^\{l\}\(T\-k\),\\qquad t\_\{k\}\\leq t<t\_\{k\+1\}\.\(17\)
Proposition 1\.*Under the construction in Eqs\. \([15](https://arxiv.org/html/2606.13016#S3.E15)\)–\([17](https://arxiv.org/html/2606.13016#S3.E17)\), an Otters\+\+ layer is functionally equivalent to the corresponding QNN layer\. Specifically, the membrane potential of each SNN neuron equals the QNN pre\-activation, and the integer encoded by the SNN output spike time equals the clipped quantized output of the QNN\.*
Proof of Proposition 1\.We prove equivalence in two phases: \(I\) the integration phase, showing that the SNN membrane potential equals the QNN pre\-activation; and \(II\) the firing phase, showing that the SNN spike\-time encoding recovers the QNN’s quantized integer output\. Together they establish a bijection between the two representations\.
#### III\-C1Phase I Integration Equivalence
Consider an unsignednn\-bit QNN layerll\. Its quantized input from the previous layer is:
xq,il−1=αl−1⋅qil−1,qil−1=Clip\(⌊ail−1αl−1⌋,0,T\)x\_\{q,i\}^\{l\-1\}=\\alpha^\{l\-1\}\\cdot q\_\{i\}^\{l\-1\},\\qquad q\_\{i\}^\{l\-1\}=\\mathrm\{Clip\}\\\!\\left\(\\left\\lfloor\\frac\{a\_\{i\}^\{l\-1\}\}\{\\alpha^\{l\-1\}\}\\right\\rfloor,0,T\\right\)\(18\)whereαl−1\>0\\alpha^\{l\-1\}\>0is the learnable step size andqil−1∈\{0,1,…,T\}q\_\{i\}^\{l\-1\}\\in\\\{0,1,\\dots,T\\\}is the integer quantization index\.
##### Towards TTFS encoding of the integer index
We encodeqil−1q\_\{i\}^\{l\-1\}as a spike time via the mapping:
ki=T−qil−1k\_\{i\}=T\-q\_\{i\}^\{l\-1\}\(19\)This is a valid TTFS encoding: a larger quantized valueqil−1q\_\{i\}^\{l\-1\}produces a smaller \(earlier\) time indexkik\_\{i\}, consistent with the “earlier spike⇒\\Rightarrowstronger activation” principle\. The boundary cases are:qil−1=Tq\_\{i\}^\{l\-1\}=Tmaps toki=0k\_\{i\}=0\(earliest spike\);qil−1=0q\_\{i\}^\{l\-1\}=0maps toki=Tk\_\{i\}=T\(no spike within the active window\)\.
##### Device response recovers the quantization index
By Condition 2 of Proposition 1, the device output at timetkit\_\{k\_\{i\}\}is:
O\(tki\)=T−kiT=\([19](https://arxiv.org/html/2606.13016#S3.E19)\)qil−1TO\(t\_\{k\_\{i\}\}\)=\\frac\{T\-k\_\{i\}\}\{T\}\\overset\{\\eqref\{eq:ttfs\_encoding\}\}\{=\}\\frac\{q\_\{i\}^\{l\-1\}\}\{T\}\(20\)Hence the memristive decay function linearly encodes the integer quantization index into a normalized output in\[0,1\]\[0,1\]\.
##### PSP equals weighted QNN input
The post\-synaptic potential contribution from synapse\(i→j\)\(i\\to j\)is defined as:
ϵ′\(wijl,tki\)\\displaystyle\\epsilon^\{\\prime\}\(w\_\{ij\}^\{l\},\\,t\_\{k\_\{i\}\}\)=γijl⋅O\(tki\)\\displaystyle=\\gamma\_\{ij\}^\{l\}\\cdot O\(t\_\{k\_\{i\}\}\)=\(wijl⋅αl−1⋅T\)⋅qil−1T\\displaystyle=\\bigl\(w\_\{ij\}^\{l\}\\cdot\\alpha^\{l\-1\}\\cdot T\\bigr\)\\cdot\\frac\{q\_\{i\}^\{l\-1\}\}\{T\}=wijl⋅αl−1⋅qil−1⏟=xq,il−1\\displaystyle=w\_\{ij\}^\{l\}\\cdot\\underbrace\{\\alpha^\{l\-1\}\\cdot q\_\{i\}^\{l\-1\}\}\_\{=\\,x\_\{q,i\}^\{l\-1\}\}\(21\)where we used Condition 3 in the second line\. Thus, a single SNN spike produces exactly the same contribution as the corresponding weighted input in the QNN\.
##### Membrane potential equals pre\-activation
Summing over all presynaptic neurons and adding the bias:
Vjl=∑iϵ′\(wijl,tspike,il−1\)\+bjl=∑iwijlxq,il−1\+bjl=ajlV\_\{j\}^\{l\}=\\sum\_\{i\}\\epsilon^\{\\prime\}\(w\_\{ij\}^\{l\},\\,t\_\{\\mathrm\{spike\},i\}^\{l\-1\}\)\+b\_\{j\}^\{l\}=\\sum\_\{i\}w\_\{ij\}^\{l\}\\,x\_\{q,i\}^\{l\-1\}\+b\_\{j\}^\{l\}=a\_\{j\}^\{l\}\(22\)This establishes that the SNN membrane potential is identical to the QNN pre\-activation\.□\\square
#### III\-C2Phase II: Firing Equivalence
We now show that the integer value encoded by the SNN output spike time equals the QNN’s clipped floor output:
qout,jl≜T−kfire=Clip\(⌊ajlαl⌋,0,T\)=qjlq\_\{\\mathrm\{out\},j\}^\{l\}\\triangleq T\-k\_\{\\mathrm\{fire\}\}=\\mathrm\{Clip\}\\\!\\left\(\\left\\lfloor\\frac\{a\_\{j\}^\{l\}\}\{\\alpha^\{l\}\}\\right\\rfloor,0,T\\right\)=q\_\{j\}^\{l\}\(23\)
##### Firing condition
The neuron fires at the earliest time stepkksatisfyingVjl≥θl\(tk\)V\_\{j\}^\{l\}\\geq\\theta^\{l\}\(t\_\{k\}\)\. SubstitutingVjl=ajlV\_\{j\}^\{l\}=a\_\{j\}^\{l\}from \([22](https://arxiv.org/html/2606.13016#S3.E22)\) and Condition 4:
ajl≥αl⋅\(T−k\)a\_\{j\}^\{l\}\\geq\\alpha^\{l\}\\cdot\(T\-k\)\(24\)
##### Earliest firing time
Sinceαl\>0\\alpha^\{l\}\>0, the thresholdαl\(T−k\)\\alpha^\{l\}\(T\-k\)is monotonically decreasing inkk\. Therefore, if the condition is met at somek∗k^\{\*\}, it is also met for allk\>k∗k\>k^\{\*\}\. The TTFS rule selects the earliest \(smallest\) suchkk, equivalently the largest integer\(T−k\)\(T\-k\)satisfyingT−k≤ajl/αlT\-k\\leq a\_\{j\}^\{l\}/\\alpha^\{l\}\. By definition of the floor function:
T−kfire=⌊ajlαl⌋T\-k\_\{\\mathrm\{fire\}\}=\\left\\lfloor\\frac\{a\_\{j\}^\{l\}\}\{\\alpha^\{l\}\}\\right\\rfloor\(25\)provided the result lies in\{0,1,…,T\}\\\{0,1,\\ldots,T\\\}\.
##### Boundary conditions naturally implement clipping
- •Upper saturation\(⌊ajl/αl⌋\>T\\lfloor a\_\{j\}^\{l\}/\\alpha^\{l\}\\rfloor\>T\): The condition \([24](https://arxiv.org/html/2606.13016#S3.E24)\) holds for allk∈\{0,…,T−1\}k\\in\\\{0,\\ldots,T\{\-\}1\\\}\. The neuron fires atkfire=0k\_\{\\mathrm\{fire\}\}=0, encoding the valueT−0=TT\-0=T\. This implementsmin\(⋅,T\)\\min\(\\cdot,T\)\.
- •Lower saturation\(⌊ajl/αl⌋<0\\lfloor a\_\{j\}^\{l\}/\\alpha^\{l\}\\rfloor<0\): The ratioajl/αl<0a\_\{j\}^\{l\}/\\alpha^\{l\}<0whileT−k≥1T\-k\\geq 1for allk<Tk<T, so \([24](https://arxiv.org/html/2606.13016#S3.E24)\) is never satisfied\. The neuron does not fire, encoding the value0\. This implementsmax\(⋅,0\)\\max\(\\cdot,0\)\.
Combining all cases:
qout,jl=Clip\(⌊ajlαl⌋,0,T\)=qjlq\_\{\\mathrm\{out\},j\}^\{l\}=\\mathrm\{Clip\}\\\!\\left\(\\left\\lfloor\\frac\{a\_\{j\}^\{l\}\}\{\\alpha^\{l\}\}\\right\\rfloor,0,T\\right\)=q\_\{j\}^\{l\}\(26\)This completes the proof that the SNN firing mechanism produces the same quantized integer output as the QNN\.□\\square
### III\-DHybrid SNN\-Forward/QNN\-Backward Training
Proposition 1 makes the QNN more than a pretraining surrogate: it becomes the differentiable counterpart of Otters\+\+ itself\. This allows us to use a hybrid*SNN\-forward/QNN\-backward*training strategy\.
In the forward pass, we preserve the true Otters\+\+ computation flow\. Activations are first converted into spike times through threshold comparison, then mapped to discretized physical times\{tk\}\\\{t\_\{k\}\\\}, passed through the device response, and finally reconstructed into layer outputs\. This keeps training consistent with the actual hardware execution path\.
In the backward pass, instead of differentiating through sparse and discontinuous first\-spike events, we compute gradients through the equivalent QNN path using the straight\-through estimator \(STE\)\. For the activation path, we use
∂ℒ∂x~l=𝟏0≤x~l/α^l≤Qp∂ℒ∂zl,\\frac\{\\partial\\mathcal\{L\}\}\{\\partial\\tilde\{x\}^\{\\,l\}\}=\\mathbf\{1\}\_\{\\,0\\leq\\tilde\{x\}^\{\\,l\}/\\hat\{\\alpha\}^\{\\,l\}\\leq Q\_\{p\}\}\\frac\{\\partial\\mathcal\{L\}\}\{\\partial z^\{\\,l\}\},\(27\)and for the step size,
∂ℒ∂αl=1n⋅Qp∑\[𝟏over⋅Qp\+𝟏mid⋅\(⌊q⌋−q\)\]∂ℒ∂zl,\\frac\{\\partial\\mathcal\{L\}\}\{\\partial\\alpha^\{\\,l\}\}=\\frac\{1\}\{\\sqrt\{n\\cdot Q\_\{p\}\}\}\\sum\\left\[\\mathbf\{1\}\_\{\\text\{over\}\}\\cdot Q\_\{p\}\+\\mathbf\{1\}\_\{\\text\{mid\}\}\\cdot\\left\(\\lfloor q\\rfloor\-q\\right\)\\right\]\\frac\{\\partial\\mathcal\{L\}\}\{\\partial z^\{\\,l\}\},\(28\)where
q=x~lα^l,𝟏over=𝟏q\>Qp,𝟏mid=𝟏0≤q≤Qp\.q=\\frac\{\\tilde\{x\}^\{\\,l\}\}\{\\hat\{\\alpha\}^\{\\,l\}\},\\qquad\\mathbf\{1\}\_\{\\text\{over\}\}=\\mathbf\{1\}\_\{q\>Q\_\{p\}\},\\qquad\\mathbf\{1\}\_\{\\text\{mid\}\}=\\mathbf\{1\}\_\{0\\leq q\\leq Q\_\{p\}\}\.\(29\)
Corollary 1\.*Under nominal device conditions, the layer\-wise Otters\+\+ forward pass and the corresponding QNN forward pass are identical\. Therefore, STE gradients computed through the QNN path provide valid descent directions for the Otters\+\+ parameters\{Wl,βl,αl\}\\\{W\_\{l\},\\beta\_\{l\},\\alpha\_\{l\}\\\}\.*
To further stabilize optimization, we adopt knowledge distillation from a pretrained teacher\. The student is supervised at both the output level and the hidden\-state level:
ℒ=KL\(σ\(𝐲^S/τ\)∥σ\(𝐲^T/τ\)\)\+∑l=0L‖𝐡lS−𝐡lT‖22,\\mathcal\{L\}=\\mathrm\{KL\}\\\!\\left\(\\sigma\(\\hat\{\\mathbf\{y\}\}^\{S\}/\\tau\)\\,\\\|\\,\\sigma\(\\hat\{\\mathbf\{y\}\}^\{T\}/\\tau\)\\right\)\+\\sum\_\{l=0\}^\{L\}\\left\\\|\\mathbf\{h\}\_\{l\}^\{S\}\-\\mathbf\{h\}\_\{l\}^\{T\}\\right\\\|\_\{2\}^\{2\},\(30\)where𝐲^T\\hat\{\\mathbf\{y\}\}^\{T\}and𝐲^S\\hat\{\\mathbf\{y\}\}^\{S\}are the teacher and student logits,τ\\tauis the temperature, and𝐡lT\\mathbf\{h\}\_\{l\}^\{T\}and𝐡lS\\mathbf\{h\}\_\{l\}^\{S\}are the hidden states at layerll\. This distillation objective complements the hybrid training framework by improving optimization under quantization and spike\-timing constraints\. Algorithm[1](https://arxiv.org/html/2606.13016#alg1)summarizes the full training procedure\.
Algorithm 1Noise\-Robust Otters\+\+ Training via Knowledge Distillation0:Pretrained teacher
fTf^\{T\}; student
fSf^\{S\}initialized from
fTf^\{T\}; training set
𝒟\\mathcal\{D\}; epochs
EE; learning rates
η\\etaand
ηα\\eta\_\{\\alpha\}; temperature
τ\\tau; weight bits
bw=1b\_\{w\}=1; activation bits
bab\_\{a\}; time resolution
δ\\delta
0:Noise\-robust Otters\+\+ model
fSf^\{S\}
1:Initialize learnable step sizes
\{αl\}\\\{\\alpha\_\{l\}\\\}for each layer
ll
2:
T←2ba−1T\\leftarrow 2^\{b\_\{a\}\}\-1,
Qn←0Q\_\{n\}\\leftarrow 0,
Qp←2ba−1Q\_\{p\}\\leftarrow 2^\{b\_\{a\}\}\-1
3:forepoch
=1=1to
EEdo
4:foreach mini\-batch
\(𝐗,𝐲\)∈𝒟\(\\mathbf\{X\},\\mathbf\{y\}\)\\in\\mathcal\{D\}do
5:
𝐲^T,\{𝐡lT\}l=0L←fT\(𝐗\)\\hat\{\\mathbf\{y\}\}^\{T\},\\\{\\mathbf\{h\}\_\{l\}^\{T\}\\\}\_\{l=0\}^\{L\}\\leftarrow f^\{T\}\(\\mathbf\{X\}\)with no gradient
6:foreach layer
llin
fSf^\{S\}do
7:
𝐖lq←sign\(𝐖l−𝐖¯l\)⋅‖𝐖l‖1nl\\mathbf\{W\}\_\{l\}^\{q\}\\leftarrow\\operatorname\{sign\}\(\\mathbf\{W\}\_\{l\}\-\\bar\{\\mathbf\{W\}\}\_\{l\}\)\\cdot\\frac\{\\\|\\mathbf\{W\}\_\{l\}\\\|\_\{1\}\}\{n\_\{l\}\}// BWN
8:for
k=0k=0to
T−1T\-1do
9:
θk←αl\(T−k\)\\theta\_\{k\}\\leftarrow\\alpha\_\{l\}\(T\-k\)// unsigned threshold
10:
tk←⌊O−1\(T−kT\)/δ⌉⋅δt\_\{k\}\\leftarrow\\left\\lfloor O^\{\-1\}\\\!\\left\(\\frac\{T\-k\}\{T\}\\right\)/\\delta\\right\\rceil\\cdot\\delta// discretized spike time
11:endfor
12:Assign
t^ij←tk\\hat\{t\}\_\{ij\}\\leftarrow t\_\{k\}for the first
kksuch that
x~ij≥θk\\tilde\{x\}\_\{ij\}\\geq\\theta\_\{k\}// priority encoding
13:
oij=Clamp\[ℓij,hij\]\(Omean\(t^ij\)\+ϵij\)o\_\{ij\}=\\operatorname\{Clamp\}\_\{\[\\ell\_\{ij\},h\_\{ij\}\]\}\\left\(O\_\{\\mathrm\{mean\}\}\(\\hat\{t\}\_\{ij\}\)\+\\epsilon\_\{ij\}\\right\)// device noise injection
14:
𝐳l←𝐖lq\(αl⋅T⋅𝐨\)\\mathbf\{z\}\_\{l\}\\leftarrow\\mathbf\{W\}\_\{l\}^\{q\}\\big\(\\alpha\_\{l\}\\cdot T\\cdot\\mathbf\{o\}\\big\)// layer output
15:endfor
16:Compute
ℒ\\mathcal\{L\}using Eq\. \([30](https://arxiv.org/html/2606.13016#S3.E30)\)
17:Compute
∇ℒ\\nabla\\mathcal\{L\}via STE in Eqs\. \([27](https://arxiv.org/html/2606.13016#S3.E27)\)–\([28](https://arxiv.org/html/2606.13016#S3.E28)\)
18:Update
\{𝐖l,𝜷l\}←BertAdam\(η\)\\\{\\mathbf\{W\}\_\{l\},\\boldsymbol\{\\beta\}\_\{l\}\\\}\\leftarrow\\text\{BertAdam\}\(\\eta\);
\{αl\}←BertAdam\(ηα\)\\\{\\alpha\_\{l\}\\\}\\leftarrow\\text\{BertAdam\}\(\\eta\_\{\\alpha\}\)
19:endfor
20:endfor
21:return
fSf^\{S\}
### III\-ENoise\-Aware Extension under Measured Device Variation
The equivalence in Proposition 1 holds for the nominal device response curve\. In practice, however, the measured optoelectronic response exhibits run\-to\-run variation\. To make training robust to this effect, we extend the forward pass to sample from the measured variation envelope\.
Figure 4:Noise decay function under measurement\.Specifically, for a discretized spike timet^ij\\hat\{t\}\_\{ij\}, we sample the device response as
oij=Clamp\[ℓij,hij\]\(Omean\(t^ij\)\+ϵij\),ϵij∼𝒩\(0,σij2\)o\_\{ij\}=\\operatorname\{Clamp\}\_\{\[\\ell\_\{ij\},h\_\{ij\}\]\}\\left\(O\_\{\\mathrm\{mean\}\}\(\\hat\{t\}\_\{ij\}\)\+\\epsilon\_\{ij\}\\right\),\\qquad\\epsilon\_\{ij\}\\sim\\mathcal\{N\}\(0,\\sigma\_\{ij\}^\{2\}\)\(31\)
whereℓij=Olow\(⋅\)\\ell\_\{ij\}=O\_\{\\mathrm\{low\}\}\(\\cdot\)andhij=Ohigh\(⋅\)h\_\{ij\}=O\_\{\\mathrm\{high\}\}\(\\cdot\)are the lower and upper measured response bounds, respectively\. This perturbs the nominal SNN forward pass while keeping the perturbation physically grounded\. Under this model, the perturbed membrane potential becomes
V~jl=ajl\+∑iwijlαl−1TΔoij,Δoij=oij−O\(t^ij\)\.\\tilde\{V\}\_\{j\}^\{\\,l\}=a\_\{j\}^\{\\,l\}\+\\sum\_\{i\}w\_\{ij\}^\{\\,l\}\\,\\alpha^\{\\,l\-1\}T\\,\\Delta o\_\{ij\},\\qquad\\Delta o\_\{ij\}=o\_\{ij\}\-O\(\\hat\{t\}\_\{ij\}\)\.\(32\)The backward pass still uses the nominal QNN graph and the STE in Section[III\-D](https://arxiv.org/html/2606.13016#S3.SS4)\. This makes the method efficient while minimizing the expected loss under realistic device uncertainty\. In effect, the model is trained not only to match the nominal device response, but also to remain robust within the measured variation envelope\.
### III\-FOtters\+\+ Energy Calculation
We next derive the energy model of Otters\+\+ under the same accounting framework\. Unlike conventional multi\-step SNNs, Otters\+\+ does not digitally evaluate the TTFS decay term at every synaptic event\. Instead, the temporal component is directly realized by the measured analog response of the optoelectronic device\. Therefore, its energy is dominated by three parts: 1\) thresholding for first\-spike generation, 2\) spike\-driven analog accumulation, and 3\) binary K/V write or read overhead in the attention pipeline\.
For consistency with the previous subsections, we decompose the total energy into the projection energyEfcE\_\{\\text\{fc\}\}and the attention\-score energyEscoreE\_\{\\text\{score\}\}\. The projection\-layer energy is given by
Efc=\\displaystyle E\_\{\\text\{fc\}\}=B⋅S⋅Co⋅\[T⋅\(ECMP\+EthresholdRead\)⏟Thresholding\+EbinarykvWrite⏟K/V Write\\displaystyle B\\cdot S\\cdot C\_\{o\}\\cdot\\Bigl\[\\underbrace\{T\\cdot\\bigl\(E\_\{\\text\{CMP\}\}\+E^\{\\text\{Read\}\}\_\{\\text\{threshold\}\}\\bigr\)\}\_\{\\text\{Thresholding\}\}\+\\underbrace\{E^\{\\text\{Write\}\}\_\{\\text\{binarykv\}\}\}\_\{\\text\{K/V Write\}\}\+Ci⋅T⋅\(sr⋅\(EACC\+EAnalogRead\+Emovesparse\)\+Eleakage\)⏟Spike Processing\]\\displaystyle\+\\underbrace\{C\_\{i\}\\cdot T\\cdot\\Bigl\(s\_\{r\}\\cdot\\bigl\(E\_\{\\text\{ACC\}\}\+E^\{\\text\{Read\}\}\_\{\\text\{Analog\}\}\+E^\{\\text\{sparse\}\}\_\{\\text\{move\}\}\\bigr\)\+E\_\{\\text\{leakage\}\}\\Bigr\)\}\_\{\\text\{Spike Processing\}\}\\Bigr\]\(33\)Escore=\\displaystyle E\_\{\\text\{score\}\}=B⋅h⋅S2⋅\[T⋅\(ECMP\+EthresholdRead\)⏟Thresholding\+dk⋅T⋅\\displaystyle B\\cdot h\\cdot S^\{2\}\\cdot\\Bigl\[\\underbrace\{T\\cdot\\bigl\(E\_\{\\text\{CMP\}\}\+E^\{\\text\{Read\}\}\_\{\\text\{threshold\}\}\\bigr\)\}\_\{\\text\{Thresholding\}\}\+d\_\{k\}\\cdot T\\cdot\(sr⋅\(EACC\+EAnalogRead\+Emovesparse\+EbinarykvRead\)\+Eleakage\)⏟Spike Processing\]\\displaystyle\\underbrace\{\\Bigl\(s\_\{r\}\\cdot\\bigl\(E\_\{\\text\{ACC\}\}\+E^\{\\text\{Read\}\}\_\{\\text\{Analog\}\}\+E^\{\\text\{sparse\}\}\_\{\\text\{move\}\}\+E^\{\\text\{Read\}\}\_\{\\text\{binarykv\}\}\\bigr\)\+E\_\{\\text\{leakage\}\}\\Bigr\)\}\_\{\\text\{Spike Processing\}\}\\Bigr\]\(34\)
These equations can be interpreted as follows\. The prefactorsB⋅S⋅CoB\\cdot S\\cdot C\_\{o\}andB⋅h⋅S2B\\cdot h\\cdot S^\{2\}count the total number of output neurons in the projection layer and the total number of pairwise attention\-score evaluations across all heads, respectively\. For each output, the first term models*thresholding*, i\.e\., the step\-wise comparison between the membrane state and the time\-varying threshold overTTtime steps, together with the threshold read cost\. The second term accounts for the write\-back of binarized key/value states in the projection path\. The third term captures*spike processing*: for each presynaptic channel and each time step, an active event incurs an accumulation, an analog read from the device response, and sparse spike movement, scaled by the average spike ratesrs\_\{r\}, while the leakage term accounts for the state\-holding cost during temporal evolution\.
Compared with conventional SNNs, the key difference is that Otters\+\+ replaces explicit digital temporal decoding and weight\-modulated MAC\-style evaluation by a device\-native analog response\. As a result, the dominant synaptic cost is reduced to event\-driven accumulation plus analog readout, without separately paying for digital evaluation of the TTFS temporal function\. Moreover, unlike full\-precision and quantized Transformers, Otters\+\+ communicates binary spike, which further reduces data\-movement overhead\. Therefore, the energy advantage of Otters\+\+ comes from jointly reducing arithmetic complexity, activation precision, and temporal decoding cost\.
## IVResults
In this section, we evaluate Otters\+\+ on seven datasets from the GLUE benchmark\. We compare its performance against both standard QNN and SNN baselines, usingBERTbase\\text\{BERT\}\_\{\\text\{base\}\}as the teacher model for knowledge distillation\. We further provide a detailed analysis of the model’s energy efficiency and robustness\. All experiments were conducted on three NVIDIA A100 GPUs with a fixed 4\-bit simulation window size recommended by Sorbet\[[26](https://arxiv.org/html/2606.13016#bib.bib297)\]\(In our setting, it is equal to timestepT=15T=15\)\.
### IV\-AFabricated In2O3TFTs
To prepare the indium oxide thin\-film transistors \(In2O3TFTs\), indium nitrate was first dissolved in a mixed solvent of 2\-methoxyethanol \(2\-ME\), acetylacetone \(AcAc\), and ammonium hydroxide \(NH3·H2O\) to form a precursor solution, which was stirred overnight to ensure complete dissolution and coordination\. Subsequently, gate electrodes were fabricated on a silicon substrate coated with a SiO2insulating layer, followed by sequential deposition of 8 nm chromium and 50 nm gold via electron\-beam evaporation\. A 30 nm\-thick Al2O3dielectric layer was then uniformly deposited over the substrate using atomic layer deposition \(ALD\)\. The In2O3precursor solution was spin\-coated onto the dielectric surface, after which the channel regions were defined through standard photolithography, and the unprotected areas were removed by hydrochloric acid wet etching\. The films were annealed in air at 300∘C for 1 hour to enhance crystallinity and improve film quality\. Portions of the Al2O3layer were subsequently etched to expose selected regions of the gate electrodes\. Finally, source and drain electrodes, along with interconnects, were patterned and metallized with an additional 8 nm chromium and 50 nm gold layer via electron\-beam evaporation\. The indium oxide thin\-film transistor was characterized under a gate bias of 0 V and a drain bias of 5 mV\. Upon 405 nm laser illumination, oxygen vacancies in the channel layer were photoionized, generating free electrons and thereby enhancing the channel conductivity\.
Figure 5:Details design of Otters\+\+\.Regarding integration with state\-of\-the\-art digital hardware, recent studies show that In2O3TFTs are compatible with 3D stacking on CMOS chips\. This is because they have a low thermal budget \(≤\\leq300 °C\) and good uniformity\[[27](https://arxiv.org/html/2606.13016#bib.bib6)\]\. This provides a practical path for vertical integration\. However, several challenges remain, such as managing wire density in stacked layers, aligning the photodetectors/TFT layers with metal layers, and handling device variability in large arrays\.
### IV\-BGLUE Benchmark Performance
Table[I](https://arxiv.org/html/2606.13016#S4.T1)summarizes the GLUE benchmark results\. We report two variants of Otters\+\+\.*Nominal*uses the mean measured device response\.*Measured Variation*samples run\-to\-run device responses from the experimentally measured variation envelope, and the reported results are mean±\\pmstd over 20 independent trials\.
Under the nominal setting, Otters\+\+ achieves the best average score among all SNN\-based methods, reaching 84\.17\. It outperforms SpikingBERT, SpikeLM, 1\-bit SpikeLM, and 1\-bit Sorbet by 3\.34, 3\.66, 3\.93, and 4\.37 points, respectively\. Compared with the original Otters, Otters\+\+ improves the average score from 83\.22 to 84\.17, with gains on six out of seven tasks: QQP, MNLI\-m, SST\-2, QNLI, MRPC, and STS\-B, while matching the same RTE score\. The largest improvements are observed on QNLI \(\+1\.46\) and MRPC \(\+2\.44\), suggesting that the proposed hybrid training framework better aligns the physical TTFS forward path with the optimization objective\.
Under measured device variation, Otters\+\+ maintains the same average score of 84\.17, with a standard deviation of 0\.28 across 20 independent variation trials\. The task\-level results show that the model remains stable under realistic hardware uncertainty: performance improves over the nominal setting on QQP, MNLI\-m, QNLI, and RTE, while showing moderate decreases on SST\-2, MRPC, and STS\-B\. Importantly, the average performance is not degraded by measured variation, indicating that the proposed training procedure preserves robustness under experimentally observed device fluctuations\.
TABLE I:Performance comparison on the GLUE benchmark\. All scores are accuracy, except for STS\-B \(Pearson correlation\)\. “\*” indicates that the model size was not reported in the original paper\.Boldindicates the best performance among SNN models\. Only Otters\+\+ quantizes KV to 1 bit\. “Nominal” denotes evaluation using the mean device response, while “Variation” denotes evaluation under measured run\-to\-run device variation sampled from the experimental response envelope\.
### IV\-CEnergy Efficiency Analysis
We next evaluate the system\-level energy efficiency of Otters\+\+ from three perspectives: overall per\-layer energy, component\-wise energy breakdown, and sensitivity to communication hops\. Energy costs are derived from a combination of 22\-nm post\-synthesis measurements and prior hardware studies\. For FP32 operations, we use a MAC energy of 4\.6 pJ and an FP32 arithmetic energy of 0\.9 pJ from prior literature\[[8](https://arxiv.org/html/2606.13016#bib.bib245)\], since our synthesis flow targets integer datapaths\. For INT4 models, we distinguish between 4\-4\-16\-bit MACs \(0\.0848 pJ\) and 1\-4\-16\-bit MACs \(0\.0663 pJ\)\. The energies of 4\-16\-16\-bit, 2\-16\-16\-bit, and 1\-16\-16\-bit ACC operations are 0\.0502 pJ, 0\.0477 pJ, and 0\.0429 pJ, respectively\. SNN\-specific comparison and subtraction operations are each modeled as 0\.0502 pJ\. The analog read energy is 0\.0246 pJ, including 0\.00875 pJ for powering the TFT, 1\.33×10−6\\times 10^\{\-6\}pJ for sampling, 0\.0053 pJ for the ADC and amplifier, and 0\.0105 pJ for the 4\-bit LUT\. We further model static leakage as 0\.002 pJ per cycle, weight/activation read\-write energy as 0\.0985 pJ/bit, and sparse data movement as 0\.18 pJ/bit\. Integer compute, data movement, and memory\-access costs are obtained from a commercial 22\-nm process, while FP32 compute and ADC costs are taken from existing literature\[[8](https://arxiv.org/html/2606.13016#bib.bib245),[25](https://arxiv.org/html/2606.13016#bib.bib142)\]\.
#### IV\-C1Overall Energy Comparison
Figure[6](https://arxiv.org/html/2606.13016#S4.F6)compares the per\-layer energy of different low\-bit language models under the same hardware cost model\. Otters\+\+ achieves the lowest energy consumption, requiring only 14\.2 mJ per layer, compared with 40\.8 mJ for Quantized BERT, 42\.9 mJ for Sorbet, 80\.6 mJ for SpikingBERT, and 26\.1 mJ for SpikingLM\. This corresponds to energy reductions of 65\.2%, 66\.9%, 82\.4%, and 45\.6%, respectively\. Equivalently, Otters\+\+ is about 2\.87×\\times, 3\.02×\\times, 5\.68×\\times, and 1\.84×\\timesmore energy\-efficient than these baselines\. These results show that the proposed design substantially lowers the inference cost not only relative to conventional quantized Transformers, but also relative to prior SNN\-based language models\.
Figure 6:Per\-layer energy comparison under the unified hardware cost model\. Otters\+\+ achieves the lowest per\-layer energy among all compared methods\.
#### IV\-C2Energy Breakdown Analysis
To better understand where the savings come from, Figure[7](https://arxiv.org/html/2606.13016#S4.F7)reports the normalized energy breakdown\. For Sorbet, SpikingBERT, and SpikingLM, the dominant cost comes from data/spike movement, which accounts for 52%–54% of the total energy, followed by weight/KV read at 31%, and MAC/ACC at 12%–13%\. In contrast, Otters\+\+ exhibits a markedly different profile\. Although data/spike movement remains the largest term at 58%, the high\-precision digital weight/KV\-read bottleneck is substantially reduced and partly replaced by low\-cost analog readout\. The added analog read contributes only a modest single\-digit share, while the remaining energy is mainly distributed across MAC/ACC \(16%\) and leakage \(13%\)\.
Figure 7:Per\-layer energy breakdown across models\. Otters\+\+ removes the large weight/KV\-read component that dominates prior baselines, while keeping analog\-read overhead modest\.
#### IV\-C3Impact of Communication Hops
Figure[8](https://arxiv.org/html/2606.13016#S4.F8)further studies total energy as a function of the number of communication hops, which provides a more deployment\-aware view than per\-operation accounting alone\. As expected, the energy of all methods increases monotonically with the hop count\. However, the relative ordering remains unchanged: Otters\+\+ consistently stays below all baselines from 0 to 10 hops\. The shaded Otters\+\+ band, bounded by the minimum\- and maximum\-analog\-read assumptions, remains narrow, and the inset shows that this gap is still small even in the low\-hop regime\. This indicates that the advantage of Otters\+\+ is robust to uncertainty in analog\-read cost\. More importantly, it shows that the proposed method retains its energy benefit even after communication overhead is explicitly incorporated into the model\. Therefore, the efficiency gain of Otters\+\+ is not limited to a favorable local\-compute setting, but persists under increasingly communication\-dominated deployment scenarios\. The Otters\+\+ energy band also captures different analog\-read assumptions induced by device sharing: stronger sharing amortizes the device access cost across more synaptic operations, while weaker sharing gives the upper\-bound analog\-read estimate\.
Figure 8:Total energy versus number of communication hops\. The shaded region denotes the Otters\+\+ energy range under minimum and maximum analog\-read assumptions; the inset zooms in on the low\-hop regime\.Overall, the three figures lead to a consistent conclusion\. Otters\+\+ achieves the lowest total energy, exhibits a more favorable energy composition by removing the large weight/KV\-read bottleneck, and maintains this advantage as communication distance increases\. These results support the main claim of this work: by implementing the TTFS temporal term through device physics, Otters\+\+ reduces not only arithmetic cost, but also memory\-access and system\-level communication overhead\.
### IV\-DAblation Study: Direct QNN\-to\-SNN Conversion vs\. Integrated TTFS Training
To isolate the effect of the proposed training strategy, we compare four settings in Table[II](https://arxiv.org/html/2606.13016#S4.T2): the full\-precision BERT teacher, the quantized neural network \(QNN\),Ottersobtained by direct post\-training QNN\-to\-SNN conversion, andOtters\+\+, which incorporates the TTFS forward path during training\. This comparison examines whether the accuracy loss mainly comes from the physical TTFS representation itself, or from the mismatch between training in the QNN domain and deployment in the TTFS\-SNN domain\. Direct conversion introduces a small but consistent accuracy gap\. The QNN achieves an average score of 83\.81, while Otters drops to 83\.22, corresponding to a 0\.59\-point degradation\. The largest losses appear on RTE, MRPC, and STS\-B, suggesting that direct conversion does not fully capture the discretized TTFS sampling process and the device\-dependent response used during deployment\. Thus, even when the QNN and SNN are functionally aligned under nominal conditions, training only in the QNN domain can still introduce a deployment\-time mismatch\.
Otters\+\+ closes this gap by integrating the TTFS forward path into training\. It improves the average score to 84\.17, which is 0\.95 points higher than Otters and 0\.36 points higher than the QNN baseline\. The gains over Otters are broad across tasks, including QQP, MNLI\-m, SST\-2, QNLI, MRPC, and STS\-B, while maintaining the same RTE score\. These results show that the proposed hybrid SNN\-forward/QNN\-backward training strategy not only reduces the QNN\-to\-SNN conversion gap, but also improves the final task performance under the nominal Otters\+\+ execution path\.
TABLE II:Accuracy gap analysis on the GLUE benchmark under nominal device response\. All scores are accuracy except for STS\-B, which reports Pearson correlation\.
### IV\-EAblation study of using Otters\+\+ and traditional TTFS methods
We further compare Otters\+\+ with traditional TTFS implementations\. Existing TTFS methods can be broadly divided into continuous\-time and quantized\-time designs\. Continuous\-time TTFS methods, such as TTFSFormer\[[41](https://arxiv.org/html/2606.13016#bib.bib150)\], propagate spike times between layers as FP32 values\. This high\-precision representation helps preserve accuracy after ANN\-to\-SNN conversion, but it also makes the hardware cost fundamentally different from low\-bit TTFS\. For example, an FP32 accumulator costs about 0\.9 pJ per operation, whereas the INT4 accumulator used in our setting costs about 0\.05 pJ\. The wider representation also increases memory\-access and data\-movement energy\.
To make the comparison more controlled, we re\-evaluate the traditional TTFS method in the same quantized\-time domain as Otters\+\+, while keeping the weights, architecture, and hyperparameters unchanged\. In this setting, traditional quantized\-time TTFS still requires digital time encoding, additional MAC\-style operations, and extra weight accesses to evaluate the temporal term\. WithT=15T=15and the simpleT−tT\-tencoding, the traditional TTFS attention block consumes 19\.09 mJ, which is 34\.3% higher than Otters\+\+ under the same energy model\. This comparison isolates the benefit of replacing digital temporal decoding with the device\-native optical decay response\.
### IV\-FInference time analysis
In Otters\+\+, the inference latency is mainly determined by the duration of the optical decay function\. Within this time window, the SNN neuron compares its accumulated membrane potential with the dynamic threshold at each time steptkt\_\{k\}\. If the membrane potential is larger than the threshold, the neuron fires\. It then samples the value from the thin\-film transistor and adds it to the next neuron’s membrane potential\. Once the decay period finishes, the next layer is ready to start\. Thus, in theory, the computation for one layer is completed within a single time window\. Taking a transformer block as an example, the calculation requires roughly 8 optical cycles: 6 cycles for the Self\-Attention module \(projections of Q, K, V, their multiplication and output\) and 2 cycles for the Feedforward module\.
In our current measurements, the transient optoelectronic response was recorded using a source\-measure unit \(SMU\), whose minimum integration time is on the order of tens of microseconds\. To ensure a window that can reliably acquire complete attenuation and fit parameters, we used a conservative sampling configuration, which resulted in a coding window of about 100μ\\mus\. This results in a total latency of 0\.8 ms for one block\. Further, in theory, the window can be compressed by faster readout and higher light intensity\.
## VDiscussion and Future works
To make SNNs more energy\-efficient, Otters\+\+ focuses on hardware\-software co\-design to optimize a core computing operation\. We replace the temporal decay function and its following multiplication by sampling the natural decay of an oxide optoelectronic synapse\. This shifts the computation from digital to analog for a more energy\-efficient computing method\. However, at the same time, many related works are also working toward better energy efficiency for SNNs, but from another direction, such as algorithmic and architectural improvements\. These methods, including QKFormer, SSSA, and A2OS2A, optimize the spiking attention mechanism fromO\(N2\)O\(N^\{2\}\)to linear complexity \(linear\-attention SNNs\)\[[43](https://arxiv.org/html/2606.13016#bib.bib9),[29](https://arxiv.org/html/2606.13016#bib.bib8),[7](https://arxiv.org/html/2606.13016#bib.bib3)\]\.These two directions are not in conflict\. They are complementary and solve different parts of the problem\. Future work includes designing a linear attention mechanism based on the Otters\+\+ spiking neuron to make energy use even more efficient\. We further discuss the hardware scale\. The In2O3optoelectronic synapse in our prototype has an effective area of about 0\.012 mm2with a channel length of 30μ\\mum\. This size is mainly due to the precision limits of our fabrication equipment and does not represent the scaling limits of In2O3technology\. Since the goal of this paper is to validate the optoelectronic TTFS mechanism, we did not focus on device size optimization\. However, recent work has demonstrated In2O3transistors with channel lengths down to 40 nm\[[24](https://arxiv.org/html/2606.13016#bib.bib7)\], showing that the device area can be reduced by nearly three orders of magnitude\. Additionally, several studies show that oxide devices can be integrated in 3D stacked layers, providing another path to further reduce the effective area per synapse\[[27](https://arxiv.org/html/2606.13016#bib.bib6),[39](https://arxiv.org/html/2606.13016#bib.bib5),[11](https://arxiv.org/html/2606.13016#bib.bib4)\]\.
## VIConclusion
This paper presents Otters\+\+, a physically grounded TTFS framework for energy\-efficient spiking Transformer\. By repurposing the natural signal decay of a custom\-fabricated In2O3optoelectronic synapse, Otters\+\+ directly realizes the TTFS temporal term in device physics and avoids explicit digital decay evaluation\. To make this mechanism trainable for Transformer models, we establish a layer\-wise equivalence between Otters\+\+ and an unsigned QNN, and develop a hybrid SNN\-forward/QNN\-backward training method with knowledge distillation and measured\-variation\-aware forward sampling\. On GLUE, Otters\+\+ reaches an average score of 84\.17, improving over the original Otters baseline and outperforming prior SNN\-based Transformer baselines\. Under the same system\-level energy model, Otters\+\+ achieves the lowest per\-layer energy among the compared models, with 1\.84×\\times–5\.68×\\timesenergy reduction over prior spiking Transformer baselines\. These results show that device\-native TTFS computation can improve the trainability, robustness, and energy efficiency of spiking Transformers under realistic hardware effects\.
## VIIAcknowledgement
This research is partially supported by the Ministry of Education, Singapore, under the Academic Research Fund Tier 1 \(FY2024\)\.
## References
- \[1\]\(2025\)From light sensing to adaptive learning: hafnium diselenide reconfigurable memcapacitive devices in neuromorphic computing\.Light: Science & Applications14\(1\),pp\. 30\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p2.2)\.
- \[2\]Z\. Bai, P\. Dangi, R\. Juneja, Z\. Li, Z\. Yan, H\. Lan, and T\. Mitra\(2025\)A data\-driven dynamic execution orchestration architecture\.International Conference on Architectural Support for Programming Languages and Operating Systems \(ASPLOS\)\.Cited by:[§III\-B](https://arxiv.org/html/2606.13016#S3.SS2.p3.2)\.
- \[3\]M\. Bal and A\. Sengupta\(2024\)Spikingbert: distilling bert to train spiking language models using implicit differentiation\.InProceedings of the AAAI conference on artificial intelligence,Vol\.38,pp\. 10998–11006\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p5.3),[TABLE I](https://arxiv.org/html/2606.13016#S4.T1.10.10.16.6.1)\.
- \[4\]K\. Che, W\. Fang, Z\. Ma, Y\. Huang, P\. Xue, L\. Yuan, T\. Masquelier, and Y\. Tian\(2024\)Efficiently training time\-to\-first\-spike spiking neural networks from scratch\.arXiv preprint arXiv:2410\.23619\.Cited by:[§II\-B](https://arxiv.org/html/2606.13016#S2.SS2.p1.1)\.
- \[5\]K\. Che, W\. Fang, Z\. Ma, L\. Yuan, T\. Masquelier, and Y\. Tian\(2024\)ETTFS: an efficient training framework for time\-to\-first\-spike neuron\.arXiv e\-prints,pp\. arXiv–2410\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p1.1)\.
- \[6\]J\. Devlin, M\. Chang, K\. Lee, and K\. Toutanova\(2019\)Bert: pre\-training of deep bidirectional transformers for language understanding\.InProceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 \(long and short papers\),pp\. 4171–4186\.Cited by:[TABLE I](https://arxiv.org/html/2606.13016#S4.T1.1.1.1.1)\.
- \[7\]Y\. Guo, X\. Liu, Y\. Chen, W\. Peng, Y\. Zhang, and Z\. Ma\(2025\)Spiking transformer: introducing accurate addition\-only spiking self\-attention for transformer\.InProceedings of the Computer Vision and Pattern Recognition Conference,pp\. 24398–24408\.Cited by:[§V](https://arxiv.org/html/2606.13016#S5.p1.11)\.
- \[8\]M\. Horowitz\(2014\)1\.1 computing’s energy problem \(and what we can do about it\)\.In2014 IEEE international solid\-state circuits conference digest of technical papers \(ISSCC\),pp\. 10–14\.Cited by:[§IV\-C](https://arxiv.org/html/2606.13016#S4.SS3.p1.1)\.
- \[9\]N\. Jegham, M\. Abdelatti, L\. Elmoubarki, and A\. Hendawi\(2025\)How hungry is ai? benchmarking energy, water, and carbon footprint of llm inference\.arXiv preprint arXiv:2505\.09598\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p1.1)\.
- \[10\]X\. Jiao, Y\. Yin, L\. Shang, X\. Jiang, X\. Chen, L\. Li, F\. Wang, and Q\. Liu\(2020\)TinyBERT: distilling bert for natural language understanding\.InFindings of the Association for Computational Linguistics: EMNLP 2020,pp\. 4163–4174\.Cited by:[TABLE I](https://arxiv.org/html/2606.13016#S4.T1.2.2.2.1)\.
- \[11\]J\. Kwak, G\. Choe, J\. Lee, and S\. Yu\(2024\)Monolithic 3d transposable 3t embedded dram with back\-end\-of\-line oxide channel transistor\.In2024 IEEE International Symposium on Circuits and Systems \(ISCAS\),pp\. 1–5\.Cited by:[§V](https://arxiv.org/html/2606.13016#S5.p1.11)\.
- \[12\]D\. Li, Y\. Chen, H\. Ren, Y\. Tang, S\. Zhang, Y\. Wang, L\. Xing, Q\. Huang, L\. Meng, and B\. Zhu\(2024\)An active\-matrix synaptic phototransistor array for in\-sensor spectral processing\.Advanced Science11\(39\),pp\. 2406401\.Cited by:[§III\-A](https://arxiv.org/html/2606.13016#S3.SS1.p2.1)\.
- \[13\]D\. Li, G\. Liu, F\. Li, H\. Ren, Y\. Tang, Y\. Chen, Y\. Wang, R\. Wang, S\. Wang, L\. Xing,et al\.\(2025\)Double\-opponent spiking neuron array with orientation selectivity for encoding and spatial\-chromatic processing\.Science Advances11\(7\),pp\. eadt3584\.Cited by:[§II\-A](https://arxiv.org/html/2606.13016#S2.SS1.p1.1)\.
- \[14\]F\. Li, D\. Li, C\. Wang, G\. Liu, R\. Wang, H\. Ren, Y\. Tang, Y\. Wang, Y\. Chen, K\. Liang,et al\.\(2024\)An artificial visual neuron with multiplexed rate and time\-to\-first\-spike coding\.Nature Communications15\(1\),pp\. 3689\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p3.1)\.
- \[15\]K\. Liang, R\. Wang, H\. Ren, D\. Li, Y\. Tang, Y\. Wang, Y\. Chen, C\. Song, F\. Li, G\. Liu,et al\.\(2022\)Printable coffee\-ring structures for highly uniform all\-oxide optoelectronic synaptic transistors\.Advanced Optical Materials10\(24\),pp\. 2201754\.Cited by:[§III\-A](https://arxiv.org/html/2606.13016#S3.SS1.p2.1)\.
- \[16\]Z\. Lin, G\. Qu, Q\. Chen, X\. Chen, Z\. Chen, and K\. Huang\(2023\)Pushing large language models to the 6g edge: vision, challenges, and opportunities\.arXiv preprint arXiv:2309\.16739\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p1.1)\.
- \[17\]A\. Lines, P\. Joshi, R\. Liu, S\. McCoy, J\. Tse, Y\. Weng, and M\. Davies\(2018\)Loihi asynchronous neuromorphic research chip\.In2018 24th IEEE International Symposium on Asynchronous Circuits and Systems \(ASYNC\),Vol\.,pp\. 32–33\.External Links:[Document](https://dx.doi.org/10.1109/ASYNC.2018.00018)Cited by:[§II\-C](https://arxiv.org/html/2606.13016#S2.SS3.p1.2)\.
- \[18\]Q\. Liu, J\. Wang, Y\. Wang, X\. Yang, G\. Pan, and H\. Li\(2025\)Human\-inspired computing for robust and efficient audio\-visual speech recognition\.IEEE Transactions on Computers74\(9\),pp\. 2950–2961\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p1.1)\.
- \[19\]Q\. Liu, J\. Yan, M\. Zhang, G\. Pan, and H\. Li\(2024\)LitE\-snn: designing lightweight and efficient spiking neural network through spatial\-temporal compressive network search and joint optimization\.InProceedings of the Thirty\-Third International Joint Conference on Artificial Intelligence,pp\. 3097–3105\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p1.1)\.
- \[20\]Z\. Liu, B\. Oguz, A\. Pappu, L\. Xiao, S\. Yih, M\. Li, R\. Krishnamoorthi, and Y\. Mehdad\(2022\)Bit: robustly binarized multi\-distilled transformer\.Advances in neural information processing systems35,pp\. 14303–14316\.Cited by:[TABLE I](https://arxiv.org/html/2606.13016#S4.T1.10.10.14.4.1)\.
- \[21\]R\. Prabhakar, S\. Jairath, and J\. L\. Shin\(2022\)SambaNova sn10 rdu: a 7nm dataflow architecture to accelerate software 2\.0\.In2022 IEEE International Solid\-State Circuits Conference \(ISSCC\),Vol\.65,pp\. 350–352\.Cited by:[§II\-C](https://arxiv.org/html/2606.13016#S2.SS3.p1.2)\.
- \[22\]V\. Sanh, L\. Debut, J\. Chaumond, and T\. Wolf\(2020\)DistilBERT, a distilled version of bert: smaller, faster, cheaper and lighter\.External Links:1910\.01108,[Link](https://arxiv.org/abs/1910.01108)Cited by:[TABLE I](https://arxiv.org/html/2606.13016#S4.T1.10.10.12.2.1)\.
- \[23\]J\. Shi, J\. Jie, W\. Deng, G\. Luo, X\. Fang, Y\. Xiao, Y\. Zhang, X\. Zhang, and X\. Zhang\(2022\)A fully solution\-printed photosynaptic transistor array with ultralow energy consumption for artificial\-vision neural networks\.Advanced Materials34\(18\),pp\. 2200380\.Cited by:[§II\-A](https://arxiv.org/html/2606.13016#S2.SS1.p1.1)\.
- \[24\]M\. Si, Z\. Lin, Z\. Chen, and P\. D\. Ye\(2021\)High\-performance atomic\-layer\-deposited indium oxide 3\-d transistors and integrated circuits for monolithic 3\-d integration\.IEEE Transactions on Electron Devices68\(12\),pp\. 6605–6609\.Cited by:[§V](https://arxiv.org/html/2606.13016#S5.p1.11)\.
- \[25\]Q\. Su, D\. Li, X\. Guo, H\. Zhang, B\. He, H\. Jia, D\. Wu, and X\. Liu\(2023\)A 5\.3\-fj/conv\.\-step pipelined\-sar adc with resistance assisted two\-stage dynamic amplifier based on gm\-unit\.In2023 8th International Conference on Integrated Circuits and Microsystems \(ICICM\),pp\. 322–325\.Cited by:[§IV\-C](https://arxiv.org/html/2606.13016#S4.SS3.p1.1)\.
- \[26\]K\. Tang, Z\. Yan, and W\. Wong\(2025\)Sorbet: a neuromorphic hardware\-compatible transformer\-based spiking language model\.InForty\-second International Conference on Machine Learning,Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p1.1),[§I](https://arxiv.org/html/2606.13016#S1.p5.3),[TABLE I](https://arxiv.org/html/2606.13016#S4.T1.10.10.19.9.1),[§IV](https://arxiv.org/html/2606.13016#S4.p1.2)\.
- \[27\]W\. Tang, Z\. Wang, Z\. Lin, L\. Feng, Z\. Liu, X\. Li, P\. Ye, X\. Guo, and M\. Si\(2022\)Monolithic 3d integration of vertically stacked cmos devices and circuits with high\-mobility atomic\-layer\-deposited in 2 o 3 n\-fet and polycrystalline si p\-fet: achieving large noise margin and high voltage gain of 134 v/v\.In2022 International Electron Devices Meeting \(IEDM\),pp\. 483–486\.Cited by:[§IV\-A](https://arxiv.org/html/2606.13016#S4.SS1.p2.3),[§V](https://arxiv.org/html/2606.13016#S5.p1.11)\.
- \[28\]J\. Vasiljevic, L\. Bajic, D\. Capalija, S\. Sokorac, D\. Ignjatovic, L\. Bajic, M\. Trajkovic, I\. Hamer, I\. Matosevic, A\. Cejkov,et al\.\(2021\)Compute substrate for software 2\.0\.IEEE micro41\(2\),pp\. 50–55\.Cited by:[§II\-C](https://arxiv.org/html/2606.13016#S2.SS3.p1.2)\.
- \[29\]S\. Wang, M\. Zhang, D\. Zhang, A\. Belatreche, Y\. Xiao, Y\. Liang, Y\. Shan, Q\. Sun, E\. Zhang, and Y\. Yang\(2025\)Spiking vision transformer with saccadic attention\.arXiv preprint arXiv:2502\.12677\.Cited by:[§V](https://arxiv.org/html/2606.13016#S5.p1.11)\.
- \[30\]X\. Wang, Y\. Zong, D\. Liu, J\. Yang, and Z\. Wei\(2023\)Advanced optoelectronic devices for neuromorphic analog based on low\-dimensional semiconductors\.Advanced Functional Materials33\(15\),pp\. 2213894\.Cited by:[§II\-A](https://arxiv.org/html/2606.13016#S2.SS1.p1.1)\.
- \[31\]Y\. Wang, Y\. Zha, C\. Bao, F\. Hu, Y\. Di, C\. Liu, F\. Xing, X\. Xu, X\. Wen, Z\. Gan,et al\.\(2024\)Monolithic 2d perovskites enabled artificial photonic synapses for neuromorphic vision sensors\.Advanced Materials36\(18\),pp\. 2311524\.Cited by:[§II\-A](https://arxiv.org/html/2606.13016#S2.SS1.p1.1)\.
- \[32\]W\. Wei, M\. Zhang, H\. Qu, A\. Belatreche, J\. Zhang, and H\. Chen\(2023\)Temporal\-coded spiking neural networks with dynamic firing threshold: learning with event\-driven backpropagation\.InProceedings of the IEEE/CVF international conference on computer vision,pp\. 10552–10562\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p1.1),[§I](https://arxiv.org/html/2606.13016#S1.p3.1),[§II\-B](https://arxiv.org/html/2606.13016#S2.SS2.p3.4)\.
- \[33\]P\. Xie, D\. Li, S\. Yip, and J\. C\. Ho\(2024\)Emerging optoelectronic artificial synapses and memristors based on low\-dimensional nanomaterials\.Applied Physics Reviews11\(1\)\.Cited by:[§II\-A](https://arxiv.org/html/2606.13016#S2.SS1.p1.1)\.
- \[34\]X\. Xing, B\. Gao, Z\. Zhang, D\. A\. Clifton, S\. Xiao, L\. Du, G\. Li, and J\. Zhang\(2024\)Spikellm: scaling up spiking neural network to large language models via saliency\-based spiking\.arXiv preprint arXiv:2407\.04752\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p1.1)\.
- \[35\]X\. Xing, Z\. Zhang, Z\. Ni, S\. Xiao, Y\. Ju, S\. Fan, Y\. Wang, J\. Zhang, and G\. Li\(2024\)SpikeLM: towards general spike\-driven language modeling via elastic bi\-spiking mechanisms\.InProceedings of the 41st International Conference on Machine Learning,ICML’24\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p5.3),[TABLE I](https://arxiv.org/html/2606.13016#S4.T1.10.10.17.7.1),[TABLE I](https://arxiv.org/html/2606.13016#S4.T1.10.10.18.8.1)\.
- \[36\]Z\. Yan, Z\. Bai, and W\. Wong\(2024\)Reconsidering the energy efficiency of spiking neural networks\.arXiv preprint arXiv:2409\.08290\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p1.1),[§II\-C](https://arxiv.org/html/2606.13016#S2.SS3.p1.2)\.
- \[37\]Z\. Yan, J\. Mao, Q\. Liu, F\. Li, T\. Luo, G\. Pan, B\. Zhu, and W\. Wong\(2026\)Otters: an energy\-efficient spiking transformer via optical time\-to\-first\-spike encoding\.InThe Fourteenth International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=oK0ISeb5Dw)Cited by:[TABLE I](https://arxiv.org/html/2606.13016#S4.T1.10.10.20.10.1.1)\.
- \[38\]M\. Yu, T\. Xiang, S\. P, K\. T\. N\. Chu, B\. Amornpaisannon, Y\. Tavva, V\. P\. K\. Miriyala, and T\. E\. Carlson\(2023\)A ttfs\-based energy and utilization efficient neuromorphic cnn accelerator\.Frontiers in Neuroscience17,pp\. 1121592\.Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p1.1)\.
- \[39\]S\. Yuvaraja, H\. Faber, M\. Kumar, N\. Xiao, G\. I\. Maciel García, X\. Tang, T\. D\. Anthopoulos, and X\. Li\(2024\)Three\-dimensional integrated metal\-oxide transistors\.Nature Electronics7\(9\),pp\. 768–776\.Cited by:[§V](https://arxiv.org/html/2606.13016#S5.p1.11)\.
- \[40\]W\. Zhang, L\. Hou, Y\. Yin, L\. Shang, X\. Chen, X\. Jiang, and Q\. Liu\(2020\)TernaryBERT: distillation\-aware ultra\-low bit bert\.InProceedings of the 2020 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),pp\. 509–521\.Cited by:[TABLE I](https://arxiv.org/html/2606.13016#S4.T1.10.10.13.3.1)\.
- \[41\]L\. Zhao, Z\. Huang, J\. Ding, and Z\. Yu\(2025\)TTFSFormer: a ttfs\-based lossless conversion of spiking transformer\.InForty\-second International Conference on Machine Learning,Cited by:[§I](https://arxiv.org/html/2606.13016#S1.p1.1),[§IV\-E](https://arxiv.org/html/2606.13016#S4.SS5.p1.1)\.
- \[42\]C\. Zhou, L\. Yu, Z\. Zhou, Z\. Ma, H\. Zhang, H\. Zhou, and Y\. Tian\(2023\)Spikingformer: spike\-driven residual learning for transformer\-based spiking neural network\.arXiv preprint arXiv:2304\.11954\.Cited by:[TABLE I](https://arxiv.org/html/2606.13016#S4.T1.10.10.15.5.1)\.
- \[43\]C\. Zhou, H\. Zhang, Z\. Zhou, L\. Yu, L\. Huang, X\. Fan, L\. Yuan, Z\. Ma, H\. Zhou, and Y\. Tian\(2024\)Qkformer: hierarchical spiking transformer using qk attention\.Advances in Neural Information Processing Systems37,pp\. 13074–13098\.Cited by:[§V](https://arxiv.org/html/2606.13016#S5.p1.11)\.
![[Uncaptioned image]](https://arxiv.org/html/2606.13016v1/figures/yanzhanglu1.jpg)Zhanglu Yanreceived the BSc degree in computer science from Xian Jiaotong University, in 2019, and the MSc degree in artificial intelligence from National University of Singapore, in 2020\. He is working toward the PhD degree in the School of Computing, National University of Singapore\. His research focuses on neuromorphic computing and spiking neural networks\.![[Uncaptioned image]](https://arxiv.org/html/2606.13016v1/figures/jiayi.jpg)Mao jiayireceived the BEng degree in electronic information engineering from Zhejiang Normal University in 2023\. She is working toward the PhD degree in electronic science and technology at Westlake University\. Her research focuses on oxide thin\-film transistor\-based artificial neuron devices for neuromorphic computing and sensing applications\.![[Uncaptioned image]](https://arxiv.org/html/2606.13016v1/figures/tangkaiwen1.jpg)Kaiwen Tangreceived the BSc degree in computer science from Xi’an Jiaotong University in 2022\. She is working toward the PhD degree in the School of Computing, National University of Singapore\. Her research focuses on spiking neural networks and efficient language models\.![[Uncaptioned image]](https://arxiv.org/html/2606.13016v1/figures/fanfan.jpg)Li fanfanreceived the B\.E\. degree in inorganic non\-metallic materials from Xi’an University of Science and Technology in 2019, and the M\.S\. degree in materials science and engineering from Xidian University in 2022\. He is currently pursuing the Ph\.D\. degree in materials science and engineering at Zhejiang University\. His research focuses on neuromorphic sensing systems and memristor\-based artificial neurons\.![[Uncaptioned image]](https://arxiv.org/html/2606.13016v1/figures/pangang.jpg)Gang Panis a professor of the College of Computer Science and Technology, and vice\-director of State Key Lab of CAD&CG, Zhejiang University\. He received the B\.Eng\. and Ph\.D\. degrees from Zhejiang University in 1998 and 2004 respectively\. From 2007 to 2008, he was a visiting scholar at the University of California, Los Angeles\. His interests include artificial intelligence, brain\-inspired computing, brain\-machine interfaces, and pervasive computing\. He has co\-authored more than 100 refereed papers, and has 49 patents granted\. He serves as Associate Editors of IEEE Systems Journal, IEEE Transactions on Neural Networks and Learning Systems, IEEE Transactions Cybernetics, Pervasive and Mobile Computing, and IEEE Transactions on Cognitive and Developmental Systems\.![[Uncaptioned image]](https://arxiv.org/html/2606.13016v1/figures/luptao.jpg)Luo Taoreceived his bachelor’s degree from the Harbin Institute of Technology, Harbin, China, in 2010, his master’s degree from the University of Electronic Science and Technology of China, Chengdu, China, in 2013, and his Ph\.D\. degree from the School of Computer Science and Engineering, Nanyang Technological University, Singapore, in 2018\. He is currently a senior research scientist with the Institute of High Performance Computing \(IHPC\), Agency for Science, Technology and Research, Singapore \(A\*STAR\), Singapore\. His current research interests include high\-performance computing, machine learning, computer architecture, hardware–software co\-exploration, quantum comput\- ing, efficient AI and its application\.![[Uncaptioned image]](https://arxiv.org/html/2606.13016v1/figures/bowen.jpg)Zhu bowenreceived his BS degree in chemistry from Jilin University \(China\) in 2010\. He obtained his PhD degree in materials science in 2016 from Nanyang Technological University, Singapore\. After his postdoctoral fellow training at UCLA, he moved to Monash University in 2017, Australia, as a Discovery Early Career Researcher Award \(DECRA\) fellow\. He joined School of Engineering, Westlake University, China, as an independent Principal Investigator \(PI\) in August 2019\. His research is focused on developing high\-performance flexible metal oxide thin\-film transistors \(TFTs\) to construct active\-matrix sensing arrays by integrating TFT backplane with physical sensors, biosensors, and displays\. Meanwhile, he is also interested in developing artificial spiking sensory systems by integrating Mott memristor neurons into sensors\. He has published over 80 peer\-reviewed papers on leading journals of materials and electronics research with a total citation of over 8000 with a H\-index of 40\.![[Uncaptioned image]](https://arxiv.org/html/2606.13016v1/figures/liuqianhui.jpg)Qianhui Liureceived the B\.S\. and Ph\.D\. degrees in the College of Computer Science and Technology from Zhejiang University in 2016 and 2021 respectively\. She is currently an Associate Professor in the School of Artificial Intelligence, Shandong University\. From 2022 to 2025, she was a research fellow at the Department of Electrical and Computer Engineering, National University of Singapore, Singapore\. Her research interests include neuromorphic computing, spiking neural networks, and audio\-visual speech recognition\.![[Uncaptioned image]](https://arxiv.org/html/2606.13016v1/figures/wongwengfai.jpg)Wong Weng\-Faireceived the BSc degree from the National University of Singapore, in 1988, and the DrEngSc degree from the University of Tsukuba, Japan, in 1993\. He is currently an associate professor with the Department of Computer Science, National University of Singapore\. His research interests include computer architecture, compilers, and high\-performance computing\. He is a senior member of the IEEE\.Similar Articles
Plug-and-Play Spiking Operators: Breaking the Nonlinearity Bottleneck in Spiking Transformers
This paper proposes a plug-and-play framework that implements spike-friendly approximations for Transformer nonlinearities (e.g., Softmax, SiLU, normalization) via population computation with LIF neurons and lightweight bit-shift scaling, achieving less than 1% accuracy drop on LLMs without fine-tuning.
My toy spiking network completely flunked NARMA-10, but a simple neuroscience trick unlocked a 15x compute bargain. [D]
The author describes building a spiking neural network engine that initially failed the NARMA-10 benchmark, but by applying heterogeneous wire delays from neuroscience, it achieved usable memory depth and a 15x computational efficiency advantage over continuous nets on a recognition task.
Optimizing Transformer Neural Network for Real-Time Outlier Detection on FPGAs
This paper explores optimizing Transformer neural network inference on FPGAs for real-time anomaly detection in financial time series, demonstrating efficient implementation on a PYNQ-Z2 board.
@Underfox3: In this paper is proposed a hardware-software co-design framework for N:M sparse vision Transformer inference, enabling…
This paper proposes a hardware-software co-design framework for N:M sparse vision Transformer inference, achieving over 2.2× latency speedup on GPUs while maintaining accuracy through a novel CUDA kernel (MD-SpMM) and a deployment-aware sparsity search.
Transformer co-author validates post-transformer cost efficiency breakthrough
A 150M-parameter non-transformer architecture achieves state-of-the-art cost-efficiency on ARC-AGI-1, validated by Transformer co-author Łukasz Kaiser, suggesting that recurrent latent reasoning can replace brute-force scaling.