Categorical Bayes filtering for computational phenotyping in adaptive learning
Abstract
Adaptive learning depends on inferring the sources of uncertainty in the environment. Simultaneous estimation of two such sources, volatility and stochasticity, is difficult, but critical for adaptive learning. The two require opposite adjustments of the learning rate, yet both inflate the variance of experienced outcomes, and no closed-form solution exists for dissociating them. Particle filters are the standard method for this joint inference, but their likelihood is stochastic and their objective is not differentiable, so fitting requires derivative-free methods that add estimator noise. This is a serious problem for individual-difference analyses, because estimator noise attenuates any correlation between fitted parameters and other measures. Here we introduce the Categorical Bayes Filter (CBF), a deterministic alternative. The CBF keeps the conditional structure of recent particle-filter models, but replaces the stochastic outer layer with a categorical distribution over a quantile grid, parameterized by differentiable Beta quantile functions. Fitting is therefore evidence maximization with an exact, deterministic, and differentiable marginal likelihood. In a large-scale study of a volatility-stochasticity task, the CBF outperformed a state-of-the-art particle filter in predicting trial-by-trial empirical learning rates, its dispersion parameters captured volatility-blind and stochasticity-blind participants, and its trial-by-trial ambiguity predicted response times. Fitted CBF parameters also predicted psychiatric symptoms in the direction previously hypothesized. More broadly, the CBF applies to any particle-filter model with continuous latent parameters, and makes individual-level analyses with such models practical in cognitive modeling and computational psychiatry.