From LIF to QIF: Toward Differentiable Spiking Neurons for Scientific Machine Learning
Ruyin Wan, George Em Karniadakis, Panos Stinis
TL;DR
This work addresses the challenge of training spiking neural networks for continuous regression and PDE solving by introducing Quadratic Integrate-and-Fire (QIF) neurons as differentiable alternatives to Leaky Integrate-and-Fire (LIF). By embedding QIF dynamics into MLPs, DeepONets, and PINNs and contrasting against LIF in both direct training and ANN-to-SNN conversion, the authors demonstrate that QIF enables smooth gradient propagation and reduces jagged, non-physical artifacts in predictions. Across function regression, operator learning, and PDE benchmarks, QIF-based models deliver smoother, more accurate results and robust optimization, highlighting the potential of differentiable spiking dynamics to bridge neuroscience-inspired computation with physics-informed and operator-learning frameworks. The findings suggest that QIF can facilitate more reliable, scalable, and energy-efficient spiking architectures suitable for SciML, with promising implications for neuromorphic hardware and large-scale, event-driven computation.
Abstract
Spiking neural networks (SNNs) offer biologically inspired computation but remain underexplored for continuous regression tasks in scientific machine learning. In this work, we introduce and systematically evaluate Quadratic Integrate-and-Fire (QIF) neurons as an alternative to the conventional Leaky Integrate-and-Fire (LIF) model in both directly trained SNNs and ANN-to-SNN conversion frameworks. The QIF neuron exhibits smooth and differentiable spiking dynamics, enabling gradient-based training and stable optimization within architectures such as multilayer perceptrons (MLPs), Deep Operator Networks (DeepONets), and Physics-Informed Neural Networks (PINNs). Across benchmarks on function approximation, operator learning, and partial differential equation (PDE) solving, QIF-based networks yield smoother, more accurate, and more stable predictions than their LIF counterparts, which suffer from discontinuous time-step responses and jagged activation surfaces. These results position the QIF neuron as a computational bridge between spiking and continuous-valued deep learning, advancing the integration of neuroscience-inspired dynamics into physics-informed and operator-learning frameworks.
