A Differentiable Partially Observable Generalized Linear Model with Forward-Backward Message Passing

Chengrui Li, Weihan Li, Yule Wang, Anqi Wu

Introduction

In the study of neural circuits, researchers are frequently confronted with the "hidden variable" problem: while we can record the activity of a specific subset of neurons (visible neurons), many others in the same circuit remain unobserved (hidden neurons). These hidden actors exert significant influence on the network's dynamics, yet accounting for them mathematically is notoriously difficult. The Partially Observable Generalized Linear Model (POGLM) has emerged as a standard framework for inferring these latent connections. However, traditional POGLMs suffer from computational instabilities and a lack of temporal context. This paper introduces a differentiable approach to POGLMs that utilizes continuous relaxation and a forward-backward message-passing scheme to overcome these hurdles.

Methodological Innovations

The proposed model addresses two primary limitations in existing POGLM implementations: the discrete bottleneck of neural spikes and the "future blind spot" of unidirectional inference.

Differentiable Relaxation

Neural spikes are discrete events, typically modeled as Poisson counts (0, 1, 2, etc.). This discreteness prevents the use of standard calculus-based optimization, forcing reliance on "score function" gradient estimators. These estimators are often noisy and lead to unstable training. To solve this, the authors employ the Gumbel-Softmax trick, relaxing discrete spike counts into continuous, "soft" approximations. This allows for the application of pathwise gradient estimators (the reparameterization trick), which provide a much smoother and more stable learning signal. The researchers also explored the use of other continuous distributions, such as Exponential and Rayleigh distributions, to further facilitate optimization.

Forward-Backward (FB) Message Passing

Most existing models are "forward-only," meaning they attempt to guess a hidden neuron's current state based solely on its past activity. However, in a biological network, a hidden neuron’s spike at time t will influence the activity of visible neurons at time t+1. To capture this causal relationship, the authors designed a variational sampling scheme using Forward-Backward (FB) message passing. By conditioning the hidden state on both historical data and the future spikes of visible neurons, the model significantly improves its ability to reconstruct latent activity.

Experimental Evaluation

The model's performance was validated across three distinct datasets, ranging from controlled simulations to complex biological recordings:

  1. Synthetic Dataset: A controlled 5-neuron network (3 visible, 2 hidden) used to verify the model's ability to recover known ground-truth connectivity and bias parameters.
  2. Retinal Ganglion Cell (RGC) Dataset: Real-world recordings from 27 neurons in a mouse retina, testing the model's capacity to handle biological noise.
  3. PVC-5 Dataset: Recordings from the primary visual cortex (V1) of a macaque monkey, used to evaluate how the model scales as the number of assumed hidden neurons increases.

Key Results and Insights

Optimization over Accuracy

One of the most striking findings was that "smoothness trumps truth." Even though the underlying biological data is discrete, using continuous distributions (like Rayleigh or Exponential) during the inference process yielded superior results. These continuous mathematical landscapes are easier for optimization algorithms to navigate, leading to better parameter recovery than models strictly adhering to discrete Poisson logic.

The Power of Bidirectional Context

The Forward-Backward scheme consistently outperformed forward-only models. By integrating information from future visible spikes, the model could more accurately pinpoint the timing of hidden spikes. Furthermore, the FB scheme proved to be more computationally efficient; by avoiding long sequential dependencies, it allowed for greater parallelization during the training phase.

Biological Interpretability

Beyond statistical performance, the model demonstrated practical utility in neuroscience. When applied to the RGC dataset, the model identified a hidden neuron that appeared to function as a "negative feedback unit." This unit inhibited "OFF" cells and excited "ON" cells, providing a biologically plausible explanation for network behaviors that were previously difficult to interpret using standard models.

Discussion and Limitations

While the differentiable POGLM represents a significant step forward, it introduces new conceptual challenges. By relaxing spikes into continuous values, the physical interpretation of a "spike count" becomes more abstract—it represents a probability or an intensity rather than a hard event.

Additionally, the problem of model selection remains: how many hidden neurons should be included? While increasing the number of hidden neurons generally improves the model's fit, it risks overfitting or creating redundant latent variables. Future research will focus on automating the determination of the optimal hidden layer size and further investigating whether continuous distributions might actually offer a more nuanced biological approximation of neural activity than traditional discrete models.

Summary updated

BibTeX
@inproceedings{li2024differentiable,
  author = {Chengrui Li and Weihan Li and Yule Wang and Anqi Wu},
  title = {{A Differentiable Partially Observable Generalized Linear Model with Forward-Backward Message Passing}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=2FKzbEE24s},
}
Figure