← Reinforcement learning for language models
·
CS7150 class demos
RL is guidance for language models
: bending every token toward how the output must end
example:
a story that ends happy
a ten-syllable line
code with balanced brackets
guidance strength w = 1/β
guide with:
RL optimum (soft value)
naive classifier guidance
New samples
drift arrows
A generator, its value field, and the guided generator
Three panels with the token number across and a one-dimensional state up. Left: samples from the base model, fanning out. Middle: the soft value of every (token, state) as a heat map, with arrows for the guided model's expected change of state. Right: samples from the guided model using the same random numbers, bending toward the goal. Beside each panel, the distribution of the final state.