TL;DR
To learn effectively in an unpredictable world, humans have to distinguish between genuine shifts in the environment and harmless, moment-to-moment noise. Standard models use stochastic particle filters to simulate this mental juggling act, but their inherent randomness injects noise that blurs out subtle differences between individuals. This paper introduces the Categorical Bayes Filter (CBF), a deterministic, fully differentiable alternative that swaps drifting particles for a smart, bendable grid—unlocking clean, fast, and reliable individual profiling for cognitive science and computational psychiatry.
What Problem Does This Paper Address?
Imagine playing a carnival game where you catch falling coins in a bucket. Suddenly, a coin lands far to your left. Did the coin-dropper move (high volatility), meaning you should rapidly update where you stand? Or was it just a stray gust of wind (high stochasticity), meaning you should hold your ground and ignore the outlier? Both inflate the variance of what you observe, yet they demand opposite adjustments to your learning rate. Because attributing surprise to one source "explains away" the other, tracking both simultaneously has no neat closed-form mathematical solution.
Cognitive scientists typically model this joint inference using particle filters—specifically, Rao-Blackwellized Particle Filters (RBPFs). While theoretically sound, particle filters rely on random sampling and discrete resampling steps. Run the exact same model on the exact same human data twice, and you get two different likelihoods. Worse, the objective isn't differentiable, forcing researchers to rely on slow, derivative-free optimizers. In computational psychiatry—where you might only have a few hundred trials of behavior per patient to link model parameters to clinical symptoms—this estimator noise acts like Vaseline on a camera lens, blurring out the subtle individual differences you are trying to measure.
Methods
The authors introduce the Categorical Bayes Filter (CBF), taking a page from distributional reinforcement learning (like the C51 algorithm): instead of letting random particles drift through parameter space, anchor the support and only update the probability masses.
CBF preserves the smart conditional structure of an RBPF (using analytic Kalman filters to track the latent state given fixed noise parameters), but replaces the stochastic outer layer with a deterministic two-phase procedure:
- Exact Discrete Inference: Instead of random particles, CBF places a fixed grid of $K$ atoms across the continuous parameter space (e.g., volatility and stochasticity). On each trial, atom weights are updated via exact discrete Bayes' rule, replacing messy particle resampling with simple normalization. Summing the log-normalizers across trials yields an exact, deterministic marginal likelihood.
- Differentiable Grid Optimization: Rather than using a rigid, uniform grid, atom locations are determined by passing equally spaced quantiles through the inverse CDF (quantile function) of a Beta distribution parameterized by mean ($\mu$) and dispersion ($\eta$). Because the Beta quantile function is smooth and differentiable, the entire marginal likelihood is end-to-end differentiable. You can simply use gradient ascent to stretch, shift, and concentrate the grid right onto the high-density regions of a specific person's prior beliefs.
Datasets
No new datasets were collected; instead, the authors evaluated CBF on existing benchmarks alongside synthetic simulations:
- Volatility–Stochasticity Task: A previously published behavioral dataset of $N = 643$ human participants performing a $2 \times 2$ factorial learning task (crossing stable/volatile environments with low/high observation noise across 200 trials), with $n = 401$ participants also providing post-task psychiatric symptom scores.
- Social Latent-Cause Inference Task: A synthetic simulation setup ($N = 50$ simulated agents per model) modeled after an existing social interaction paradigm to test parameter recovery on a completely different latent structure.
Key Insights and Ideas
- Pathology lives in the extremes—right where particle filters fail: Some people are "volatility-blind" or "stochasticity-blind." In an RBPF, these traits live near the zero-boundary of update-rate parameters, where the likelihood surface flattens and particles clump together, amplifying estimation noise right where clinical signal is richest. CBF's dispersion parameter ($\eta$) stays smooth and deterministic at the boundaries, cleanly capturing narrow, inflexible priors.
- A clean, crossover computational phenotype: When someone holds an overly narrow prior ($\eta$) on stochasticity, any unexpected surprise gets misrouted to volatility, reversing how they adjust their learning rate—and vice versa. CBF's fitted parameters revealed a textbook double-dissociation between volatility-blind and stochasticity-blind participants that the RBPF completely missed on the exact same data.
- Free process-level signals: Because CBF maintains a clean discrete distribution on every trial, the spread (standard deviation) of predictive likelihoods across grid atoms gives a deterministic measure of computational ambiguity. Even though CBF was only fit to participant choices, high trial-by-trial ambiguity predicted slower human response times.
Key Results
- Near-Perfect Parameter Recovery: On synthetic data, CBF recovered all four of its generative parameters with Spearman correlations $r > 0.98$, whereas RBPF parameter recovery lagged at $r = 0.69$ and $r = 0.67$.
- Superior Behavioral Prediction & Speed: CBF tracked across-subject empirical learning rates at $r = 0.866$ (vs. RBPF's $r = 0.800$) and captured roughly two-thirds of the explainable variance in individual noise-modulation effects ($r = 0.52$ for volatility, $r = 0.61$ for stochasticity, compared to RBPF's $0.34$ and $0.36$). Moreover, per-subject fitting took seconds rather than the ~1 hour required for the regularized, multi-seed RBPF protocol.
- Decisive Model Selection & Clinical Links: Random-effects Bayesian model selection favored CBF over RBPF with a protected exceedance probability of $1.0000$. In the clinical subset ($n = 401$), lower stochasticity dispersion ($\eta_s$) significantly correlated with higher worry relative to depression ($r = -0.157, p = 0.0016$), aligning with theoretical accounts of anxiety.
- Generalizability: In the social latent-cause task, CBF achieved recovery correlations of $0.81–0.95$, outperforming an independent RBPF implementation ($0.59–0.72$).
Limitations and Future Work
- Curse of Dimensionality: Because CBF takes a Cartesian product across $D$ parameter dimensions ($M^D$ grid atoms), it is practical for low-dimensional spaces ($D = 1, 2, 3$) typical of cognitive models, but computationally prohibitive for high-dimensional latent spaces.
- Bounded & Static Priors: Using Beta quantile functions requires defining parameter bounds a priori, and the fixed grid assumes the static prior parameters don't drift online within a block.
- Future Directions: Extending the differentiable quantile-grid recipe to unbounded parameter distributions, higher-dimensional approximations, and dynamically shifting grids for online non-stationarity, as well as deploying CBF inside full hierarchical Bayesian workflows across cognitive domains like category learning and language processing.
Summary updated