EasySpiking: Spike-Friendly Function Approximations for Spiking LLMs Without Fine-Tuning

Xinzhe Yuan, Xiang Peng, Huan Xiong, Bin GuOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

EasySpiking introduces a suite of hardware-friendly approximations that allow Large Language Models (LLMs) to run as fully spike-driven networks without the need for expensive fine-tuning. By replacing complex floating-point operations like Softmax and SiLU with simple integer additions and bit-shifts, the authors pave a practical path for deploying LLaMA-scale models on low-power neuromorphic hardware.

What Problem Does This Paper Address?

Large Language Models (LLMs) are notoriously power-hungry, primarily due to their reliance on dense floating-point Multiply-Accumulate (MAC) operations. Spiking Neural Networks (SNNs) offer a biologically inspired, energy-efficient alternative by using sparse, binary "spikes" to communicate.

However, a major "dirty secret" in the SNN community is that most current ANN-to-SNN conversion pipelines aren't truly spike-native. They often leave behind "floating-point residues"—complex functions like Softmax, RMSNorm, and SiLU (the activation function used in LLaMA) that still require high-precision floating-point units or large, power-intensive lookup tables. Furthermore, naively replacing these functions with spike-friendly versions usually destroys the model's accuracy, requiring costly retraining or fine-tuning that is impractical for models with billions of parameters.

Methods

The authors propose the EasySpiking framework, which reformulates these non-linear "bottleneck" functions into a fractional structure (a numerator divided by a denominator) that can be computed using three core building blocks:

  1. Division Neuron: This is the heart of the framework. It extends the standard Integrate-and-Shift (IS) neuron by using the denominator of a function to define a dynamic firing threshold. This allows the neuron to output a spike sequence that approximates a ratio using only shifts and accumulations.
  2. PWL-Exp Unit: To handle exponentials ($e^x$) found in Softmax and SiLU, the authors use Piecewise Linear (PWL) interpolation. They divide the input range into segments and use a tiny, 8-bit quantized lookup table to store linear coefficients, turning a complex curve into a series of simple $ax + b$ calculations.
  3. PolarNorm Unit: To replace the square-root-heavy RMSNorm, they utilize the CORDIC-Hypot algorithm. This is a classic hardware trick that calculates vector magnitudes using only recursive additions and bit-shifts, completely avoiding square roots and multiplications.

These blocks are "plug-and-play," meaning they can be dropped into a pre-trained LLaMA model to convert it into an SNN without changing the original weights.

Datasets

The framework was evaluated using the LLaMA family of models (LLaMA2-7B, LLaMA3-8B, and LLaMA3-70B) across several standard natural language processing benchmarks:

  • Winogrande: Commonsense reasoning.
  • HellaSwag: Sentence completion.
  • ARC (Challenge and Easy): Science-based question answering.
  • PIQA: Physical interaction QA.
  • MMLU: A massive multitask language understanding benchmark (used for module-level error analysis).

Key Insights and Ideas

  • The "Fractional" Insight: The authors realized that the most problematic functions in Transformers (Softmax, SiLU, RMSNorm) all share a common structure: a non-linear numerator divided by a norm-based denominator. By solving the "division" problem in a spike-friendly way, they solved all three functions at once.
  • Zero-Shot Fidelity: Unlike previous methods (like Sorbet) that require fine-tuning to recover accuracy after conversion, EasySpiking maintains high functional fidelity. This makes it a "zero-shot" conversion tool, which is essential for the LLM era where retraining is too expensive.
  • Hardware-First Design: Every approximation was chosen specifically because it maps well to neuromorphic chips (like Intel’s Loihi). By eliminating general-purpose floating-point units, they significantly lower the barrier for specialized AI hardware.

Key Results

  • Accuracy Retention: On LLaMA3-8B, the EasySpiking (ES) version achieved an average accuracy of 72.84% (at $T=1$), nearly identical to the baseline SNN's 72.85% which still used floating-point activations.
  • Scalability: The method held up even at the 70B parameter scale, with LLaMA3-70B showing only negligible performance drops compared to the baseline.
  • Computational Efficiency: The framework successfully replaced billions of floating-point MAC operations with integer Accumulations (ACs) and bit-shifts. For example, in the SiLU function, MAC counts dropped to zero, replaced by a manageable number of shifts and ACs.
  • Error Bounds: The authors provided rigorous theoretical proofs showing that their approximations have tightly controlled error margins, which they validated empirically.

Limitations and Future Work

  • Input Range Clipping: The PWL-Exp unit relies on a defined input interval (recommended as $[-5, 5]$). While this covers most normalized activations, extreme outliers could still introduce errors.
  • Temporal Latency: Like all SNNs, there is a trade-off between the number of timesteps ($T$) and accuracy. While $T=1$ works well, higher $T$ values (which improve accuracy) increase the latency of the model.
  • Hardware Deployment: While the math is "spike-friendly," the paper focuses on simulation and theoretical hardware costs. The next logical step is a physical implementation on neuromorphic silicon to measure actual energy savings in Joules.

Summary updated

BibTeX
@misc{yuan2026easyspiking,
  author = {Xinzhe Yuan and Xiang Peng and Huan Xiong and Bin Gu},
  title = {{EasySpiking: Spike-Friendly Function Approximations for Spiking LLMs Without Fine-Tuning}},
  year = {2026},
  url = {https://openreview.net/forum?id=Vz0fxQp79c},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure