Case Study

Calculating a Target Policy Distribution

A language model's behavior is being refined. The goal is to create a new target distribution, π*, by adjusting a reference distribution, π_ref, based on a reward score, r(x, y). The relationship is defined by the formula: π(yx)=πref(yx)exp(1βr(x,y))Z(x)\pi^{*}(\mathbf{y}|\mathbf{x}) = \frac{\pi_{\text{ref}}(\mathbf{y}|\mathbf{x}) \exp \left(\frac{1}{\beta}r(\mathbf{x}, \mathbf{y})\right)}{Z(\mathbf{x})} where Z(x) is a normalization term ensuring the probabilities sum to 1. Given the scenario below, calculate the new probability for the output 'Bonjour' under the target distribution π*. Assume β = 1.0 for this calculation.

0

1

Updated 2025-10-08

Contributors are:

Who are from:

Tags

Ch.4 Alignment - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science