Reinforcement Learning (RL) provides a general framework for sequential decision-making in which an agent interacts with an environment, observes the consequences of its actions, and seeks to identify a policy that maximizes cumulative reward. Despite its theoretical appeal and success across many applications, deploying RL in real-world settings remains challenging. Data are often scarce, interactions become available only gradually, and collecting additional experience may require substantial time, financial resources, or exposure to risk. These constraints make it essential to use available information efficiently and to represent uncertainty about both the environment and the decisions that should be taken within it. Bayesian Reinforcement Learning (BRL) offers a principled response to these challenges. By combining prior knowledge with observations collected during interaction, BRL maintains and updates a probability distribution over plausible descriptions of the environment. This allows the agent to account for uncertainty rather than relying exclusively on a single estimated model. However, many conventional Bayesian approaches presuppose an explicit probabilistic model and the ability to evaluate its likelihood. In complex environments, the likelihood may be unavailable, difficult to formulate reliably, or too computationally demanding to evaluate, even when it is possible to simulate the environment and generate synthetic observations. This thesis develops a full Bayesian Reinforcement Learning (fBRL) framework designed to overcome this limitation through likelihood-free inference. Its central methodological contribution is Likelihood-Free Iterated Batch Importance Sampling (LF-IBIS), a novel algorithm that combines Approximate Bayesian Computation (ABC) with Iterated Batch Importance Sampling (IBIS). ABC replaces direct likelihood evaluation with simulation-based comparisons between observed and synthetic data. LF-IBIS incorporates this idea into a sequential Bayesian updating procedure, allowing the agent's beliefs to be revised as new interactions with the environment become available. In this way, Bayesian learning can proceed online without requiring a tractable analytical expression for the likelihood function. A distinctive feature of the proposed framework is that inference concerns not only unknown environmental parameters but also the optimal policies associated with plausible environments. Uncertainty about the environment induces uncertainty about which policy is optimal; LF-IBIS is designed to approximate both the posterior distribution over environment parameters and the resulting posterior distribution over optimal policies. Rather than reducing all available evidence to a single point estimate and a fixed decision rule, the framework retains a distribution of possible optimal decisions. This provides a basis for quantifying policy uncertainty and for investigating the exploration–exploitation tradeoff from a fully Bayesian perspective. In particular, the agent can use its evolving beliefs about candidate policies when choosing actions, balancing the pursuit of currently promising outcomes with the value of learning from further interactions. The proposed methodology is studied through analytical arguments and a series of numerical experiments. The experiments cover several sequential decision-making problems, including response-adaptive randomization in simulated clinical trials, where treatment-allocation decisions must be updated as patient outcomes are observed. Further settings examine the algorithm under different modelling assumptions and in higher-dimensional parameter spaces. These applications are selected not only for their decision-making relevance but also for their ability to support careful assessment of posterior approximation. An important part of the validation strategy is the use of models for which conjugate prior distributions yield exact analytical posterior distributions. In these cases, the posterior generated by LF-IBIS can be compared directly with a known Bayesian reference, making it possible to evaluate the accuracy of likelihood-free inference as observations accumulate over time. The thesis also examines a setting in which no closed-form posterior is available, in order to investigate the applicability of the approach beyond analytically convenient models. These complementary experiments distinguish approximation accuracy in settings with an exact benchmark from practical performance in settings where such a benchmark is not available. The evaluation further places LF-IBIS in the context of Approximate Bayesian Computation methods previously applied to reinforcement learning. In particular, the proposed sequential approach is compared with acceptance–rejection ABC, which provides a natural reference method for likelihood-free posterior approximation. This comparison highlights the methodological difference between repeatedly accepting or rejecting simulated candidates and maintaining a posterior approximation that can be updated as new data arrive. The experimental results indicate that LF-IBIS can track online Bayesian updates accurately: when an analytical posterior is available, its estimates closely reproduce the corresponding reference distribution. The results also illustrate how the inferred distribution over optimal policies can inform policy updates during sequential interaction.

A Likelihood-Free Framework for Bayesian Reinforcement Learning: the novel LF-IBIS algorithm

MASINI, STEFANO
2026

Abstract

Reinforcement Learning (RL) provides a general framework for sequential decision-making in which an agent interacts with an environment, observes the consequences of its actions, and seeks to identify a policy that maximizes cumulative reward. Despite its theoretical appeal and success across many applications, deploying RL in real-world settings remains challenging. Data are often scarce, interactions become available only gradually, and collecting additional experience may require substantial time, financial resources, or exposure to risk. These constraints make it essential to use available information efficiently and to represent uncertainty about both the environment and the decisions that should be taken within it. Bayesian Reinforcement Learning (BRL) offers a principled response to these challenges. By combining prior knowledge with observations collected during interaction, BRL maintains and updates a probability distribution over plausible descriptions of the environment. This allows the agent to account for uncertainty rather than relying exclusively on a single estimated model. However, many conventional Bayesian approaches presuppose an explicit probabilistic model and the ability to evaluate its likelihood. In complex environments, the likelihood may be unavailable, difficult to formulate reliably, or too computationally demanding to evaluate, even when it is possible to simulate the environment and generate synthetic observations. This thesis develops a full Bayesian Reinforcement Learning (fBRL) framework designed to overcome this limitation through likelihood-free inference. Its central methodological contribution is Likelihood-Free Iterated Batch Importance Sampling (LF-IBIS), a novel algorithm that combines Approximate Bayesian Computation (ABC) with Iterated Batch Importance Sampling (IBIS). ABC replaces direct likelihood evaluation with simulation-based comparisons between observed and synthetic data. LF-IBIS incorporates this idea into a sequential Bayesian updating procedure, allowing the agent's beliefs to be revised as new interactions with the environment become available. In this way, Bayesian learning can proceed online without requiring a tractable analytical expression for the likelihood function. A distinctive feature of the proposed framework is that inference concerns not only unknown environmental parameters but also the optimal policies associated with plausible environments. Uncertainty about the environment induces uncertainty about which policy is optimal; LF-IBIS is designed to approximate both the posterior distribution over environment parameters and the resulting posterior distribution over optimal policies. Rather than reducing all available evidence to a single point estimate and a fixed decision rule, the framework retains a distribution of possible optimal decisions. This provides a basis for quantifying policy uncertainty and for investigating the exploration–exploitation tradeoff from a fully Bayesian perspective. In particular, the agent can use its evolving beliefs about candidate policies when choosing actions, balancing the pursuit of currently promising outcomes with the value of learning from further interactions. The proposed methodology is studied through analytical arguments and a series of numerical experiments. The experiments cover several sequential decision-making problems, including response-adaptive randomization in simulated clinical trials, where treatment-allocation decisions must be updated as patient outcomes are observed. Further settings examine the algorithm under different modelling assumptions and in higher-dimensional parameter spaces. These applications are selected not only for their decision-making relevance but also for their ability to support careful assessment of posterior approximation. An important part of the validation strategy is the use of models for which conjugate prior distributions yield exact analytical posterior distributions. In these cases, the posterior generated by LF-IBIS can be compared directly with a known Bayesian reference, making it possible to evaluate the accuracy of likelihood-free inference as observations accumulate over time. The thesis also examines a setting in which no closed-form posterior is available, in order to investigate the applicability of the approach beyond analytically convenient models. These complementary experiments distinguish approximation accuracy in settings with an exact benchmark from practical performance in settings where such a benchmark is not available. The evaluation further places LF-IBIS in the context of Approximate Bayesian Computation methods previously applied to reinforcement learning. In particular, the proposed sequential approach is compared with acceptance–rejection ABC, which provides a natural reference method for likelihood-free posterior approximation. This comparison highlights the methodological difference between repeatedly accepting or rejecting simulated candidates and maintaining a posterior approximation that can be updated as new data arrive. The experimental results indicate that LF-IBIS can track online Bayesian updates accurately: when an analytical posterior is available, its estimates closely reproduce the corresponding reference distribution. The results also illustrate how the inferred distribution over optimal policies can inform policy updates during sequential interaction.
11-nov-2026
Inglese
approximate bayesian computation
bayesian reinforcement learning
importance sampling
likelihood-free inference
sequential learning
Baccini, Michela
Viscardi, Cecilia
File in questo prodotto:
File Dimensione Formato  
PhD_Thesis.pdf

accesso aperto

Licenza: Creative Commons
Dimensione 10.35 MB
Formato Adobe PDF
10.35 MB Adobe PDF Visualizza/Apri

I documenti in UNITESI sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/20.500.14242/386572
Il codice NBN di questa tesi è URN:NBN:IT:UNIPI-386572