Existing frameworks for gradient-based training of spiking neural networks face a trade-off: discrete-time methods using surrogate gradients support arbitrary neuron models but introduce gradient bias and constrain spike-time resolution, while continuous-time methods that compute exact gradients require analytical expressions for spike times and state evolution, restricting them to simple neuron types such as Leaky Integrate and Fire (LIF). We introduce the Eventax framework, which resolves this trade-off by combining differentiable numerical ODE solvers with event-based spike handling. Built in JAX, our frame-work uses Diffrax ODE-solvers to compute gradients that are exact with respect to the forward simulation for any neuron model defined by ODEs . It also provides a simple API where users can specify just the neuron dynamics, spike conditions, and reset rules. Eventax prioritises modelling flexibility, supporting a wide range of neuron models, loss functions, and network architectures, which can be easily extended. We demonstrate Eventax on multiple benchmarks, including Yin-Yang and MNIST, using diverse neuron models such as Leaky Integrate-and-fire (LIF), Quadratic Integrate-and-fire (QIF), Exponential integrate-and-fire (EIF), Izhikevich and Event-based Gated Recurrent Unit (EGRU) with both time-to-first-spike and state-based loss functions, demonstrating its utility for prototyping and testing event-based architectures trained with exact gradients. We also demonstrate the application of this framework for more complex neuron types by implementing a multi-compartment neuron that uses a model of dendritic spikes in human layer 2/3 cortical Pyramidal neurons for computation. Code available at https://github.com/efficient-scalable-machine-learning/eventax.
$\texttt{immrax}$: A Parallelizable and Differentiable Toolbox for Interval Analysis and Mixed Monotone Reachability in JAX
School of Electrical and Computer Engineering, Georgia Institute of Technology(佐治亚理工学院电气与计算机工程学院);Department of Electrical, Computer, and Energy Engineering, University of Colorado, Boulder(科罗拉多大学博尔德分校电气、计算机与能源工程系)
JAX-SPH: A Differentiable Smoothed Particle Hydrodynamics Framework
NXAI GmbH(NXAI 有限公司);Munich Institute of Integrated Materials, Energy and Process Engineering, TUM(慕尼黑工业大学集成材料、能源与过程工程研究所);ELLIS Unit Linz(ELLIS 林茨单元);LIT AI Lab(LIT 人工智能实验室);Institute for Machine Learning(机器学习研究所)
JAX-Fluids 2.0: Towards HPC for Differentiable CFD of Compressible Two-phase Flows
Technical University of Munich, School of Engineering(慕尼黑工业大学工程学院);Technical University of Munich, Munich Institute of Integrated Materials, Energy and Process Engineering(慕尼黑工业大学慕尼黑集成材料、能源与过程工程研究所)
A Differentiable Atari VCS:A Complex, Fully Known Ground Truth for Explainable AI
Pattern Recognition Lab, Friedrich-Alexander-University Erlangen-Nuremberg(模式识别实验室,弗里德里希-亚历山大-埃森纳赫大学);Mannheim Center for Neuromodulation and Neuroprosthetics, Heidelberg University(曼海姆神经调制与神经假体中心,海德堡大学)
Fast, accurate, and differentiable: a neural-network surrogate for NRSur7dq4 precessing binary black hole waveforms
University of Rhode Island(罗德岛大学);Institute for AI & Computational Research(人工智能与计算研究所);California Institute of Technology(加州理工学院);LIGO Laboratory(LIGO实验室)
Inverse Neural Operator for ODE Parameter Optimization
Department of Computational Engineering, Lappeenranta-Lahti University of Technology(莱文拉塔-拉赫蒂技术大学计算工程系);Atmospheric Modelling Center Lahti (AMC-Lahti)(拉赫蒂大气建模中心(AMC-Lahti));University of Helsinki(赫尔辛基大学);Saarland University(萨尔兰大学);University of Heidelberg(海德堡大学);Zhejiang University(浙江大学)
Differentiable Multiphysics Co-Optimization via Implicit Neural Representations: A Transient Hamburger-Cooking Benchmark
Department of Materials Science and Engineering, University of Washington(材料科学与工程系,华盛顿大学);William E. Boeing Department of Aeronautics & Astronautics, University of Washington(威廉·E·博伊宁航空航天与天体航行系,华盛顿大学)
Interpretable Neural ODEs for Gene Regulatory Network Discovery under Perturbations
Department of Computer Science, Columbia University, New York, U.S.(哥伦比亚大学计算机科学系);Department of Industrial Engineering and Operations Research, Columbia University, New York, U.S.(哥伦比亚大学工业工程与运筹学系);Department of Applied Mathematics and Applied Physics, Columbia University, New York, U.S.(哥伦比亚大学应用数学与应用物理系);New York Genome Center, New York, U.S.(纽约基因组中心);Irving Institute of Cancer Dynamics, New York, U.S.(伊万·罗伯特癌症动力学研究所);Institute of Computational Biology, Helmholtz Munich, Munich, Germany(海德堡医学院计算生物学研究所);Department of Mathematics, Technische Universität München, Munich, Germany(慕尼黑技术大学数学系)