arXiv:2610.27570stat.MLOct 2026

Manuscript Offprint

arXiv:2610.27570

Bayesian Neural Networks via Dirichlet Process Priors on the Data-Generating Distribution for Randomized Value Functions in Deep Reinforcement Learning

Sumit Vashishtha

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Bayesian neural networks (BNNs) offer a principled framework for quantifying epistemic uncertainty. However, standard weight-space priors yield complex, high-dimensional neural network posteriors that are computationally prohibitive to sample from, and popular approximate inference schemes often fail to capture epistemic uncertainty effectively—a failure mode particularly acute in reinforcement learning (RL) (Osband et al., 2018). To resolve this challenge, we introduce a new class of BNNs that quantify uncertainty by placing Bayesian nonparametric Dirichlet Process (DP) priors directly on the underlying data-generating distribution rather than on network parameters. Building on this foundation, we develop DP-DQN, a reinforcement learning algorithm that leverages DP-BNNs to maintain posterior distributions over value functions and perform efficient Thompson sampling. By grounding randomized value functions in Bayesian nonparametrics, DP-DQN unifies data-driven posterior reweighting (via the Bayesian Bootstrap) with generative prior hypotheses injected directly through the DP base measure, enabling decisive “deep exploration” with a single neural network without the overhead of multi-network ensembles.

1 Introduction

In reinforcement learning (RL), maximizing cumulative return requires navigating the fundamental exploration-exploitation dilemma: balancing current best estimates (exploitation) with exploratory actions that resolve epistemic uncertainty. Solving this trade-off efficiently is challenging because delayed rewards require actions to be coordinated across extended multi-step decision sequences—a property known as deep exploration (Osband et al., 2016; 2019a; Oren et al., 2025)—rather than perturbed independently at each individual state.

Thompson Sampling (Thompson, 1933; Kaufmann et al., 2012; Russo et al., 2018; Durand et al., 2018; Riquelme et al., 2018; Maillard, 2019) provides an elegant approach that tackles the exploration-exploitation dilemma by maintaining a posterior distribution over models and selecting actions in proportion to the probability that they are optimal. While these models are conventionally drawn from parametric distribution families (e.g., exponential families), Thompson sampling can in principle be applied to any statistical model admitting tractable posterior sampling (Riquelme et al., 2018). A natural choice for such statistical models is Bayesian Neural Networks (BNNs), owing to their universal function approximation and rich representation learning capabilities. In contrast to standard neural networks that provide only point estimates, conventional BNNs specify a prior distribution over parameters θ\theta. Given n training observations z1:nz_{1:n}, one infers a posterior distribution over θ\theta, which in turn captures epistemic uncertainty in function predictions.

In deep RL, one can represent value functions via BNNs and drive exploration via Thompson sampling over value-function predictions. However, exact posterior inference over neural network weights is notoriously intractable, prompting extensive research into approximate Bayesian methods. These range from Monte-Carlo (MC) dropout (Gal & Ghahramani, 2016) and variational inference (Blundell et al., 2015) to stochastic mini-batch Markov Chain Monte Carlo (Welling & Teh, 2011). Unfortunately, deep RL algorithms built on these weight-space approximate Bayesian methods struggle on hard-exploration tasks because they fail to capture function-space epistemic uncertainty faithfully (Osband et al., 2018). This deficiency stems largely from the difficulty of designing meaningful priors directly in parameter space (Arbel et al., 2023): while practitioners frequently possess domain knowledge regarding the data-generating process (e.g., transition dynamics and reward scales), mapping such insight into high-dimensional, isotropic parameter priors on over-parameterized neural weight vectors θ∈Rd\theta \in \mathbb{R}^d ( d≫1d \gg 1) is rarely straightforward and often causes posterior uncertainty collapse.

To resolve these limitations, we introduce Bayesian Neural Networks via Dirichlet Process priors (DP-BNNs), a paradigm that quantifies epistemic uncertainty by placing a nonparametric DP prior directly on the underlying data-generating distribution rather than on network parameters. Under this formulation, posterior inference over the data distribution decomposes into two complementary components (Ferguson, 1973; Vashishtha & Maillard, 2025; Vashishtha, 2026): an empirical reweighting of observed data (the Bayesian Bootstrap) and an explicit prior base measure. In reinforcement learning, optimizing an action-value network on random measures sampled from this DP posterior induces a principled functional posterior distribution over value functions. Crucially, whereas existing randomized value function approaches require training an ensemble of multiple neural networks to represent functional uncertainty (Osband et al., 2016; 2018), our approach achieves temporally coordinated deep exploration with a single neural network by freezing the value function sampled for each episode across the entire rollout.

We summarize our primary contributions as follows:

• DP-BNN Formulation and Sampling: We introduce Bayesian Neural Networks via Dirichlet Process priors (DP-BNNs), a framework that quantifies epistemic uncertainty by placing a nonparametric DP prior on the data-generating distribution rather than on network weights. Using the Sethuraman stick-breaking construction, we develop a tractable posterior sampling algorithm for deep architectures and validate its epistemic uncertainty quantification on spatial 2D regression.

• Deep Reinforcement Learning via DP-BNNs (DP-DQN): We instantiate DP-BNNs for randomized value functions in deep Q-learning, establishing the DP-DQN algorithm. By optimizing an action-value DP-BNN on random measures sampled from the DP posterior via episodic boundary warmstarts, DP-DQN realizes principled Thompson sampling with exact multi-step temporal consistency using a single neural network.

• Comprehensive Empirical Benchmarking: We evaluate DP-BNNs across diverse decision-making benchmarks, demonstrating that they resolve hard exploration in DeepSea across extensive horizons evaluated up to N=50N = 50 ( 250≈10152^{50} \approx 10^{15} trajectory search space with empirical O(N1.45)\mathcal{O}(N^{1.45}) sample complexity), RiverSwim-6, deceptive N-Chain, continuous MountainCar-v0, and contextual Wheel Bandit, matching or outperforming multi-network ensembles while strictly maintaining a single-network footprint.

The remainder of this paper is organized as follows. Section 2 surveys related work. Section 3 reviews Dirichlet Processes and their stick-breaking construction. Section 4 introduces Bayesian Neural Networks via Dirichlet Process priors (DP-BNNs) and details their posterior sampling algorithm. Section 5 presents DP-DQN, applying DP-BNNs to randomized value functions in deep reinforcement learning, and evaluates its performance on challenging exploration benchmarks. Finally, Section 6 concludes the paper.

References (47)