Inferring response times of perceptual decisions with Poisson variational autoencoders

Hayden R. Johnson, Anastasia N. Krouglova, Hadi Vafaii, Jacob L. Yates, Pedro J. Gonçalves

TL;DR

The authors introduce $\mathcal{P}$-VAE-RT, a novel framework that bridges the gap between deep learning and cognitive psychology by combining a Poisson variational autoencoder with a Bayesian decoder. By simulating evidence accumulation from noisy neural spikes, the model can perform image-level tasks while naturally reproducing human-like decision dynamics, such as right-skewed response time distributions and speed-accuracy trade-offs.

What Problem Does This Paper Address?

Deep neural networks (DNNs) excel at processing complex visual inputs, but they typically treat classification as an instantaneous readout. They cannot tell us how long a decision takes or simulate the temporal hesitation seen in biological brains. Conversely, traditional cognitive psychology models (like the Drift Diffusion Model) excel at predicting response times and decision confidence, but they operate on abstract, hand-crafted variables rather than raw sensory inputs.

This paper addresses the lack of "image-computable" models—systems capable of simultaneously processing high-dimensional visual stimuli (like raw images) while simulating realistic, time-dependent decision-making dynamics under biological constraints.

Methods

The proposed architecture, named $\mathcal{P}$-VAE-RT, consists of three main stages:

  1. Sensory Encoding: A pretrained Poisson Variational Autoencoder ($\mathcal{P}$-VAE) maps an input image $x$ to a vector of firing rates $\lambda$. These rates parameterize independent, homogeneous Poisson processes that generate discrete spike trains over time, mimicking biological neural codes.
  2. Task-Optimized Decoding: An approximate Bayesian decoder (a multi-layer perceptron) continually processes the accumulated spike counts ($z_t$) up to time $t$, updating a posterior probability distribution over possible actions or classes ($p_\theta(a|z_t)$).
  3. Entropy-Based Stopping Rule: Instead of a fixed time limit, the model uses an information-theoretic threshold. It computes the entropy (uncertainty) of the posterior distribution at each time step. The decision is triggered the moment this entropy drops below a predefined threshold $\tau$.
Figure 1: (A) P-VAE-RT architecture. Input stimuli x are processed by a pretrained P-VAE encoder, encϕ(x), producing a vector of firing rates λ. These rates generate spike trains via a set of homogeneous Poisson processes. Throughout the spike train, an approximate Bayesian decoder continually infers the posterior distribution, pθ(a | zt), over actions a based on the accumulated spike count zt. (B) Schematic of the entropy-based stopping rule. Posterior entropy H[pθ] decreases as spikes accumulate. Response times are modeled as the first passage time for the posterior to hit an entropy stopping threshold τ. (C) Schematic of response distributions. We generate response distributions from repeated simulation of actions and response times for a given stimulus.

Datasets

The model was evaluated on the standard MNIST dataset of handwritten digits (28×28 grayscale images). No new benchmarks were introduced.

Key Insights and Ideas

  • Emergent Behavior without Direct Fitting: Crucially, the model is never trained to match human response times. Instead, realistic temporal dynamics emerge naturally from the fundamental constraints of information transmission via noisy spikes and optimal Bayesian inference.
  • Metabolic Constraints Breed Sparsity: Because the $\mathcal{P}$-VAE's objective function penalizes excessive spiking (acting as a metabolic cost), it naturally learns sparse, efficient representations reminiscent of the biological visual cortex.
  • Latent Dimensionality as Signal Power: Varying the number of latent dimensions reveals that higher-dimensional models accumulate evidence faster (reducing response times) because they capture more "signal power," providing a clear link between network architecture and behavioral speed.

Key Results

  • Task Difficulty Dictates Response Time (RT) Shape: For easy images, posterior entropy drops rapidly, yielding highly right-skewed response time distributions. For ambiguous or difficult images, evidence accumulates slowly, leading to longer, more symmetric response times and increased variance across actions.
Figure 2: Response distributions depend on task difficulty. Response distributions for stimuli of varying difficulty. Each row corresponds to a digit at a given difficulty level, while each column highlights a property of the response distribution across repeated trials with a fixed stimulus. Easy stimuli are characterized by rapidly decreasing entropy, strongly skewed distributions, and low variance in the action distribution. Difficult stimuli, by contrast, exhibit slower entropy reduction, more symmetric distributions, and greater variability across actions.
  • Hick's Law Verification: When the decoder was trained on varying numbers of digit classes, the average response time scaled monotonically and logarithmically with the number of choices, perfectly mirroring Hick's Law of human psychophysics.
  • Speed-Accuracy Trade-off: By adjusting the entropy threshold $\tau$, the authors could smoothly trade speed for accuracy. Lowering $\tau$ forces the model to gather more spikes (longer response times) but results in significantly higher classification accuracy.

Limitations and Future Work

  • Lack of Direct Human Comparison: The model's predictions have only been compared qualitatively to well-known psychophysical trends; a direct quantitative fit to human behavioral datasets remains for future work.
  • Simplistic Noise Model: The assumption of a homogeneous Poisson process ignores richer, time-varying neural dynamics (like adaptation or burst firing). Moving to inhomogeneous processes will require more expressive, recurrent, or state-space decoding architectures.
  • Static Stimuli Only: The current setup cannot handle dynamic visual inputs (such as moving dot paradigms), limiting its application to static image classification tasks.

Summary updated

BibTeX
@inproceedings{johnson2025inferring,
  author = {Hayden R. Johnson and Anastasia N. Krouglova and Hadi Vafaii and Jacob L. Yates and Pedro J. Gonçalves},
  title = {{Inferring response times of perceptual decisions with Poisson variational autoencoders}},
  booktitle = {DBM @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=XilhL6xI2B},
}
Figure