All models

CLIF-neuron

Spiking ResNet-18 built with CLIF, a hyperparameter-free neuron that adds paths for the temporal gradient.

Spiking networks · 1,773 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (603 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
11.2M
Operations
1,773
Framework
PyTorch
Recurrent
Yes
Published
ICML 2024
Cited by
8 (as of 30 October 2026)
Authors
Yulong Huang, Xiaopeng Lin, Hongwei Ren and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15111
Graph hash
dc802353b226700641f176c3285d9880c4ce0eca56d430cbd4c549934b5df0e1
Skeleton hash
58f38378627afd3ab82bcdfd4c54a5bae9964956e20cdead0e0d790ea5980a8f
Architecture hash
04de2d4968315a88c3610efa4dcae69fc71a2a3af27b31ecf00522c0b0ac28b9
Diagram SHA-256
ec61a0228b83befde40087c6a83a31dee5961bb901043ef782b521cbfa652b73
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

CLIF is the Complementary Leaky Integrate-and-Fire neuron, a neuron model for spiking neural networks (SNNs). SNNs are commonly trained with surrogate gradients, which the paper says often leaves them less accurate than conventional artificial neural networks (ANNs). The paper links that accuracy loss to gradients vanishing along the time dimension in networks built from the Leaky Integrate-and-Fire (LIF) neuron.

CLIF adds extra paths that help backpropagation when computing the temporal gradient, while the neuron's output stays binary. It has no hyperparameters of its own. The paper reports that CLIF even slightly surpasses ANNs with the identical network structure and training conditions.

The repository's CIFAR-10 training command places CLIF neurons in a spiking ResNet-18 (spiking_resnet18). The repository also notes that a model can be trained with CLIF and then deployed with LIF neurons for inference. In its CIFAR10 table, the CLIF-trained model scores 95.41%, and 95.08% when run with LIF neurons and a hard reset value of -0.06.

Key idea. CLIF is a hyperparameter-free spiking neuron that adds extra paths for the temporal gradient during backpropagation while keeping its output binary.

  • CLIF
  • Complementary Leaky Integrate-and-Fire
  • CLIF neuron
  • spiking neural network
  • SNN
  • spiking neuron
  • surrogate gradient
  • spiking ResNet-18
  • leaky integrate-and-fire

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{huang2025clifcomplementaryleakyintegrateandfire,
      title={CLIF: Complementary Leaky Integrate-and-Fire Neuron for Spiking Neural Networks}, 
      author={Yulong Huang and Xiaopeng Lin and Hongwei Ren and Haotian Fu and Yue Zhou and Zunchang Liu and Biao Pan and Bojun Cheng},
      year={2025},
      eprint={2402.04663},
      archivePrefix={arXiv},
      primaryClass={cs.NE},
      url={https://arxiv.org/abs/2402.04663}, 
}