Formula

Formula for the Predictive Distribution in Bayesian Prompt Ensembling

In the Bayesian framework for prompt ensembling, the predictive distribution of an output y\mathbf{y} given a problem pp is calculated by marginalizing over the prompt x\mathbf{x}. This integral computes the total probability of y\mathbf{y} by considering all possible prompts, weighted by their respective likelihoods. The formula is expressed as: Pr(yp)=Pr(yx)Pr(xp)dx\Pr(\mathbf{y}|p) = \int \Pr(\mathbf{y}|\mathbf{x}) \Pr(\mathbf{x}|p) d\mathbf{x}. Here, Pr(yx)\Pr(\mathbf{y}|\mathbf{x}) is the predictive distribution of the output given a specific prompt, and Pr(xp)\Pr(\mathbf{x}|p) is the prior distribution reflecting the probability of the prompt given the problem.

Image 0

0

1

Updated 2026-04-30

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences