Definition

Mathematical Formulation of Prompt Ensembling

Prompt ensembling involves using a set of KK distinct prompts, x1,...,xK\mathbf{x}_1, ..., \mathbf{x}_K, to perform a task. The process consists of two main steps. First, for each prompt xi\mathbf{x}_i, a Large Language Model (LLM) is used to find the best prediction, y^i\hat{\mathbf{y}}_i, by maximizing the conditional probability: y^i=argmaxyiPr(yixi)\hat{\mathbf{y}}_i = \arg\max_{\mathbf{y}_i} \Pr(\mathbf{y}_i|\mathbf{x}_i). Second, these KK individual predictions are combined to form a new prediction. This formalizes the approach of generating multiple outputs and then combining them to improve results.

0

1

Updated 2026-05-02

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

Related