AdderDiff: All-Addition Spiking Diffusion Models with Attention Enhancement

Yuhan Zhang, Yuanpei Chen, Zhou Jie, Weihang Peng, Xiaode Liu, Yinglei Wang, Yufei GuoNeurIPS 2026

TL;DR

Diffusion models create breathtaking images by burning through massive amounts of energy, largely due to endless matrix multiplications. AdderDiff bridges the gap between generative quality and extreme efficiency by building a Spiking Neural Network (SNN) diffusion model that uses strictly addition during inference—zero multiplications required. By rethinking how spiking neurons handle attention and shortcuts, it slashes energy consumption by nearly 87% compared to standard diffusion models while achieving state-of-the-art image quality among spiking networks.

What Problem Does This Paper Address?

Standard Artificial Neural Networks (ANNs)—especially iterative diffusion models—are energy hogs because they rely on continuous values and heavy floating-point multiplications. Brain-inspired Spiking Neural Networks (SNNs) offer a clever escape hatch: neurons communicate via discrete binary spikes (0 or 1). Multiply a weight by 1 or 0, and you aren't really multiplying anymore; you're just selectively adding weights together.

However, marrying SNNs with diffusion models has hit two major walls:

  1. Information Loss (Especially in Attention): Compressing rich continuous features into binary {0, 1} spikes throws away a lot of signal. This is so destructive inside self-attention layers that adding vanilla spiking attention to a U-Net actually makes the generated images worse—forcing prior SNN diffusion models to awkwardly omit attention altogether.
  2. Hidden Multiplications: Previous "spiking" diffusion models cheated on the all-addition promise. They still relied on standard convolutions over full-precision features in residual shortcut connections or scaling factors in attention, reintroducing power-hungry multiplications.

Methods

To build a genuinely multiplication-free diffusion U-Net that actually benefits from attention, the authors introduce three core innovations:

Figure 1: The overview of the proposed spiking diffusion model AdderDiff. Our improved spiking U-Net comprises a sequence of attention-enabled all-additive Resblocks, each integrated with membrane potential attention and an all-additive shortcut, both constructed using non-negative ternary spiking neurons (NNTSN).
  • Non-Negative Ternary Spiking Neurons (NNTSN) & Re-parameterization: To reduce information loss, neurons are allowed to fire {0, 1, 2} instead of {0, 1}. Why not standard ternary spikes {-1, 0, 1}? Because negative spikes produce negative attention weights, which breaks the logic of attention (unless you use a Softmax, which requires non-additive exponentials and divisions). Firing a 2, however, introduces multiplication! The authors solve this via mathematical re-parameterization: since {0, 1, 2} is just {-1, 0, 1} + 1, during inference they rewrite the convolution $O^{T+} * w$ as $(O^T * w) + (1 * w)$. Both terms require only additions and subtractions.
  • Membrane Potential Attention (MPA): Instead of multiplying spike-based Queries and Keys, MPA takes the continuous membrane potential tensor, passes it through NNTSNs and a channel-wise sum to get {0, 1, 2} importance weights, and applies an element-wise product against the original membrane potential. Using the same {-1, 0, 1} + 1 trick, this entire full-precision attention map is computed via pure addition.
  • All-Additive Shortcut (AAS): Standard residual connections use $1\times 1$ convolutions when channel counts change. AdderDiff replaces these with multiplication-free rules: identity mapping if channels match, tensor concatenation if channels double, element-wise averaging of split channels if they halve (noting a bit-shift/halving factor), and a pre-spike unit for arbitrary ratios.

Datasets

The authors evaluate unconditional image generation across four standard vision benchmarks (no new datasets were introduced):

  • MNIST ($32 \times 32$)
  • Fashion-MNIST ($32 \times 32$)
  • CIFAR-10 ($32 \times 32$)
  • CelebA ($64 \times 64$)

Key Insights and Ideas

  • Why Spiking Transformers Struggled: The authors mathematically quantify the representational capacity of vanilla binary spiking self-attention, showing it is scaled down by a factor of $\frac{\log_2(C \times H \times W + 1)}{32}$ compared to standard ANN attention. This neatly explains a puzzling quirk in recent literature: why transformer-based SNN diffusion models were losing to U-Net SNNs that simply turned attention off.
  • The {0, 1, 2} Sweet Spot: Shifting ternary spikes up by 1 is a wonderfully clean algebraic trick. During training, the network enjoys non-negative, higher-capacity representations suitable for attention; during inference, a simple algebraic expansion folds it right back into sign-flips and additions.

Key Results

AdderDiff sets a new state-of-the-art for SNN-based generative models across all four datasets while using fewer spiking time steps ($T_s = 2$ or $4$):

  • Image Quality (FID - lower is better): With just 2 time steps, AdderDiff achieves FID scores of 1.19 on MNIST, 6.40 on Fashion-MNIST, and 14.25 on CelebA—outperforming prior 4-step and 16-step SNN baselines by wide margins (e.g., beating SDDPM's 25.09 on CelebA) and approaching standard ANN DDPM quality. On CIFAR-10 (4 time steps), it hits an FID of 15.24 (and an Inception Score of 8.242), beating the 8-step TSDDPM (15.45 FID).
  • Energy Efficiency: On CIFAR-10, the 2-step AdderDiff consumes just 3.66 mJ per generation—roughly 12.8% of the energy required by an equivalent ANN DDPM (28.61 mJ) and about a third of the 4-step TSDDPM (10.97 mJ), while still beating TSDDPM-4T on image quality (17.77 vs. 18.57 FID).

Limitations and Future Work

Not discussed in the paper. (Note: While the authors do not include a dedicated limitations section, the experimental results show that on more complex natural images like CIFAR-10 and CelebA, a noticeable quality gap still remains between SNN-based AdderDiff [15.24 and 14.25 FID] and full-precision ANN DDPMs with attention [3.31 and 6.80 FID], and evaluations are currently limited to $32\times 32$ and $64\times 64$ resolutions).

Summary updated

Abstract

Diffusion models have achieved state-of-the-art (SoTA) performance in generative tasks through their iterative denoising mechanism, yet they remain computationally intensive and energy-prohibitive. Spiking Neural Networks (SNNs) represent a promising energy-efficient alternative to traditional Artificial Neural Networks (ANNs). Their binary spike encoding enables the conversion of multiplication operations into addition operations, which is a key attribute for reducing energy consumption. Integrating the strong generative capabilities of diffusion models with the energy efficiency of SNNs thus forms a highly promising research direction. In adherence to the design goal of all-additive computation, this paper proposes a novel spiking diffusion model with attention enhancement. Specifically, we adopt non-negative ternary spiking neurons (NNTSN) to construct the U-Net backbone, which helps mitigate information loss during feature processing. To align NNTSN with the requirement of using only additive operations, we further design two core components: a membrane potential attention mechanism and an all-additive shortcut module. Leveraging a reparameterization technique, the proposed diffusion model is developed to retain only additive operations during inference, ensuring strict compliance with energy-saving design principles. Extensive experiments on relevant benchmarks demonstrate that our method achieves SoTA performance in generative tasks. It also substantially outperforms other SNN-based generative models while using fewer time steps, which validates both its effectiveness and efficiency.
BibTeX
@inproceedings{zhang2026adderdiff,
  author = {Yuhan Zhang and Yuanpei Chen and Zhou Jie and Weihang Peng and Xiaode Liu and Yinglei Wang and Yufei Guo},
  title = {{AdderDiff: All-Addition Spiking Diffusion Models with Attention Enhancement}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9bpunbjC2G},
}
Figure