Reward-Weighted Probability Distribution
A reward-weighted probability distribution, denoted as , is a new distribution created by modifying a reference distribution, , based on a reward signal, . The reference distribution's probability for each output is scaled by an exponential factor of the reward, controlled by a temperature or inverse scaling parameter, . The entire expression is then normalized by the partition function to ensure it sums to one and is a valid probability distribution. The formula is:

0
1
Tags
Ch.4 Alignment - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Reward-Weighted Probability Distribution
Consider a scenario where for a given input , there are only two possible outputs, and . A reference model assigns probabilities and . A reward function gives scores and . Assuming the scaling factor is 1, what is the value of the normalization factor , which is calculated as ?
Consider the calculation of a normalization factor using the formula: If the reward function consistently returns a value of 0 for all possible outputs , the normalization factor will always be equal to 1.
Impact of Scaling Factor on Normalization
An AI text generation system adjusts the likelihood of different outputs using the formula: New_Likelihood = Base_Likelihood * exp((1/β) * Reward). In this formula, 'Base_Likelihood' is the initial probability from a reference model, 'Reward' is a score for the output's quality, and 'β' is a positive 'temperature' parameter. A team wants to use this system to generate a diverse set of creative, high-quality story endings. They are comparing two settings for the temperature parameter: β = 0.5 and β = 2.0. Which setting should they choose to better achieve their goal, and why?
Tuning a Generative Model for Different Tasks
Effect of Temperature Scaling on a Reward-Modified Distribution
Reward-Weighted Probability Distribution
Learn After
In the formula for a reward-weighted probability distribution, the parameter
βacts as a temperature or inverse scaling factor. How does decreasing the value ofβ(i.e., moving it closer to 0, but remaining positive) affect the final distributionπ*?Applying a Reward Function to a Language Model's Output
Target Policy as a Reward-Weighted Distribution
In the context of a reward-weighted probability distribution, defined as , consider a scenario where a specific output, , receives a very high reward, . However, the reference distribution assigns a probability to this output that is extremely close to zero, i.e., . What will be the approximate probability of in the final distribution, ?
Effect of Temperature Parameter on Reward-Weighted Distributions