← Latest papers
💻 bioinformatics

Surrogate Gradients for Gradient-Based Parameter Estimation in Simplified Neuron Models

This paper introduces a differentiable Adaptive Exponential Integrate-and-Fire model using surrogate gradients within the Jaxley framework, demonstrating that while this approach enables efficient gradient-based parameter estimation for subthreshold dynamics, it currently fails to outperform gradient-free methods in recovering full spike trains due to the non-differentiable nature of the spike mechanism.

Original authors: Mayer, P., Kozlov, A.

Published 2026-09-24
📖 5 min read🧠 Deep dive

Original authors: Mayer, P., Kozlov, A.

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ⚕️ This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

The brain is a vast, intricate network of billions of cells, each firing electrical signals to carry thoughts, sensations, and commands. To understand how this machinery works, scientists build computer models of these cells. For decades, the most accurate models were like detailed blueprints, simulating every tiny chemical channel and physical structure inside a neuron. While precise, these models are so computationally heavy that simulating even a small piece of brain tissue takes immense time and power. To study the brain as a whole, researchers turned to simplified models. These are like rough sketches that capture the essential firing behavior of a neuron without the heavy baggage of every microscopic detail. They are fast and efficient, making them the only practical way to simulate large networks. However, there is a catch: these simplified models rely on a sudden, sharp jump when a neuron fires, a mechanism that breaks the smooth mathematical rules computers use to learn and improve. This has forced scientists to use slow, trial-and-error methods to tune these models to match real brain data, rather than the faster, more direct methods used in modern artificial intelligence.

A team of researchers at KTH Royal Institute of Technology in Stockholm set out to see if they could bridge this gap. They wanted to know if they could teach these simplified models to fit real brain data using the same fast, gradient-based methods that power modern machine learning. To do this, they built a new version of a popular simplified model called the Adaptive Exponential Integrate-and-Fire model. They implemented it in a powerful, modern software framework designed for high-speed computing. Crucially, they added a mathematical trick known as a surrogate gradient. In simple terms, this trick allows the computer to pretend the sudden jump of a neuron firing is smooth and continuous just for the purpose of calculating how to improve the model, even though the actual simulation still fires in sharp, discrete jumps. This allowed them to run the model on powerful graphics processors, making it hundreds of times faster than the standard software used by neuroscientists.

With this new tool in hand, the researchers ran a massive series of tests to see if the fast, gradient-based method could actually find the correct settings for the neuron model. They created thousands of synthetic brain recordings and asked the computer to adjust the model's parameters to match them perfectly. They compared their fast method against the traditional, slower trial-and-error approach. The results were surprising and clear. While the fast method worked perfectly when the model was already close to the right answer, it failed to find the correct settings when starting from a distance. In every scenario where the starting point was slightly off, the fast method got stuck or found the wrong solution, while the slower, traditional method consistently succeeded. The researchers discovered that the problem was not the speed of the method, but the landscape of the problem itself. The sudden jump of the neuron firing creates a jagged, uneven terrain for the computer to navigate. The fast method, which relies on smooth slopes to guide it, gets confused by these jagged edges and falls into dead ends, whereas the slower method is robust enough to climb over them.

The study also revealed that the type of error the computer tries to minimize matters deeply. When the researchers asked the computer to simply match the voltage levels of the recorded signal at every single moment, the fast method would often decide that the easiest way to reduce error was to stop the model from firing at all. It found a quiet, non-firing state to be a better solution than a slightly misaligned firing pattern. This happened because the math of the fast method could not distinguish between a slightly wrong spike and no spike at all in a way that encouraged the model to keep firing. The researchers found that using more complex ways to measure the difference between the model and the data, such as counting spikes or measuring the timing between them, helped a little, but not enough to overcome the fundamental difficulty. Even with these improvements, the fast method could only recover the correct settings if the starting guess was already extremely close to the truth.

Ultimately, the paper concludes that for these specific simplified neuron models, the promise of using fast, gradient-based fitting to replace slow trial-and-error methods has not yet been realized. The mathematical shortcut used to make the models differentiable introduces a bias that misleads the optimizer, and the jagged nature of the firing mechanism creates a landscape that is too difficult for the fast method to navigate reliably. The researchers showed that while their new software implementation is incredibly fast and efficient for running simulations, the optimization strategy itself hits a wall. The slow, derivative-free methods, though computationally expensive, remain the most reliable way to fit these models to data. The work highlights a specific limitation in applying modern machine learning techniques to certain types of biological models, suggesting that for now, the most effective path forward is to stick with the proven, albeit slower, methods or to look for entirely different types of neuron models that do not have these jagged mathematical barriers.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →