Temporal Smoothness Constraints on Efficient Neurobiological Codes Imply Temporal Specialization

John J. Vastola, Samuel J. GershmanNeurIPS 2026

TL;DR

Why does the brain process information across a dizzying array of timescales, from millisecond spikes to sluggish molecular shifts? By treating rapid changes in neural activity—not just activity itself—as metabolically expensive, the authors prove mathematically that energy-efficient brains should naturally divide labor: slow circuits track slow trends, and fast circuits catch rapid fluctuations. Surprisingly, when you solve for the optimal neural filters, classic mathematical structures like Fourier modes and Legendre polynomials emerge right out of the equations.

What Problem Does This Paper Address?

Training and running massive AI models takes an eye-watering amount of electricity, while the human brain runs on the equivalent of a dim lightbulb. Neuroscience usually explains this efficiency via sparsity: spikes cost ATP, so fire fewer of them.

However, standard "efficient coding" models assume only the level of activity is expensive. Vastola and Gershman point out a missing piece of biophysics: changing your mind quickly is also expensive. Making a slow neuron react faster requires packing its membrane with extra ion channels or cranking up recurrent synaptic weights, both of which burn serious metabolic fuel. At the same time, real brains exhibit massive heterogeneity in their intrinsic timescales across cell types and regions. How do smoothness costs and diverse timescales interact when a circuit tries to maximize information about the world?

Methods

The authors build a tractable mathematical model of a neural population linearly encoding the history of a 1D time-varying stimulus (modeled as Gaussian white noise). Each neuron acts as a temporal filter—essentially a weighted moving average of the recent past—corrupted by Gaussian noise.

They set up a variational optimization problem balancing two competing goals, controlled by a trade-off parameter $\beta$:

  1. Maximize Mutual Information between neural activity and stimulus history (standard efficient coding).
  2. Minimize Metabolic Cost, which includes a novel temporal smoothness penalty proportional to the squared derivative of the filter ($\dot{\phi}_n(t)^2$), scaled by each subsystem's intrinsic timescale $\tau_n^2$. Pushing a naturally slow system (large $\tau_n$) to vary rapidly incurs a heavy penalty.

Using the calculus of variations, they solve this system analytically—first in the "highly efficient" limit ($\beta \to \infty$ where information is paramount), and then across finite $\beta$ values to watch how the trade-off unfolds.

Datasets

To qualitatively sanity-check their theory against real biology, the authors analyzed the Allen Brain Observatory Visual Coding Neuropixels dataset, examining electrophysiological recordings from 1,998 neural units across 8 mouse visual areas (6 cortical, 2 thalamic) responding to bright and dark flashes, alongside spontaneous activity. No new benchmarks were introduced.

Key Insights and Ideas

  • Biology meets Sturm-Liouville: In the high-efficiency regime, maximizing information forces neural filters to be orthogonal (non-redundant). Minimizing the smoothness cost under this constraint turns the optimization into a classic Sturm-Liouville eigenvalue problem—the exact same math that governs vibrating strings and quantum wavefunctions.
  • Canonical math for free: Depending on how you weight time and variation costs, the optimal neural filters turn out to be famous families of special functions, such as Fourier cosine bases or shifted Legendre polynomials.
Figure 1: Examples of highly efficient codes. a. The eigenvalues λn = π2
  • The Division of Temporal Labor: Because eigenvalues grow with oscillation frequency, total energy is minimized by pairing the slowest neural subsystems with the smoothest, lowest-order eigenfunctions, and reserving fast subsystems for jittery, high-frequency features. This might even offer a normative reason for why ultra-slow molecular substrates (like RNA or protein counts) interact with fast spiking networks!
  • Specialization isn't automatic—it phase-transitions: When $\beta$ is small (energy matters way more than information), all neurons lazily copy the single cheapest, flattest filter. As demand for information ($\beta$) increases, the system hits sharp phase transitions where degenerate filters suddenly "split" and specialize into orthogonal features.
Figure 2: Tradeoff between energetic cost and efficiency (N = 2). a. The optimal overlap ⟨ϕ0, ϕ1⟩w as a function of β. Notice the phase transitions at β = βlower and β = βupper. Below βlower, it is optimal for ϕ0 and ϕ1 to both equal the lowest order eigenfunction ψ0; above βupper, it is optimal for them to be assigned distinct eigenfunctions; for intermediate values of β (shaded region), the optimal overlap is neither zero nor one. b. The shifted objective J −Jmin as a function of the overlap for three different values of β. It only has a nontrivial minimum for βlower < β < βupper. c. The optimal ϕ1(t) for β = βlower (gray), β = βupper (black), and an intermediate β (blue). It only equals a nontrivial linear combination of ψ0 and ψ1 for intermediate β. For concreteness, Fourier eigenfunctions (see Sec. 4) are shown.

Key Results

  • Exact Analytical Solutions: For $N$ neurons at finite $\beta$, optimal filters only ever use the lowest $N$ Sturm-Liouville eigenfunctions. For $N=2$, the authors derive exact closed-form equations for the lower and upper critical $\beta$ thresholds where filters begin to diverge and where they become strictly orthogonal.
  • Empirical Echoes in Mouse Cortex: Across the 1,998 Neuropixels units (with intrinsic timescales $\tau$ mostly $<1\text{ s}$ up to $\sim 4\text{ s}$), three trends aligned with the theory:
  • A neuron's maximum filter oscillation frequency is bounded from above by its intrinsic timescale $\tau$ (high-frequency outliers drop off noticeably as $\tau$ increases).
  • Fast neurons show a wider spread in filter frequencies (a larger 5%–95% quantile range per $250\text{ ms}$ bin) than slow neurons, suggesting fast units are metabolically "cheaper" to allocate flexibly.
  • Slower outlier neurons pack more of their filter energy into lower-order Fourier modes (though capturing most of their energy still requires $>16$ modes).

Limitations and Future Work

The authors are refreshingly candid that their model is an abstract idealization. Real sensory neurons aren't pure linear filters, and early visual areas rarely exhibit even triphasic filters, let alone high-frequency cosine waves. Furthermore, the theory doesn't explain the "bulk" of fast neurons in the mouse data that still compute slow features—likely because visual cortex does much more than just encode flashes. Future work could unify these smoothness costs with predictive coding (predicting the future rather than just remembering the past) and incorporate realistic constraints of task-driven learning.

Summary updated

Abstract

Neurobiological circuits may be energy efficient in part because there is a division of labor: different subsystems compute or represent different things. In light of this, it is interesting that a major difference between subsystems is the time scale on which they typically vary. Here, we argue that temporal smoothness constraints---the idea that it may be energetically costly for systems to vary much more quickly than their typical time scale---imply a certain division of labor with respect to temporal stimulus features. In particular, slow subsystems ought to represent slowly varying stimulus features, and fast subsystems ought to represent quickly varying features. We formulate a novel efficient coding model that we use to investigate this claim, and exactly solve for the optimal division of labor. In addition to finding that slower subsystems ought to represent more slowly varying temporal features, we find surprising structure of mathematical interest: optimal codes have subsystems which represent orthogonal temporal features, and which correspond to the eigenfunctions of a Sturm-Liouville problem.
BibTeX
@inproceedings{vastola2026temporal,
  author = {John J. Vastola and Samuel J. Gershman},
  title = {{Temporal Smoothness Constraints on Efficient Neurobiological Codes Imply Temporal Specialization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ozDoFOpYZp},
}
Figure