Personal Learnings← Interconnects  Library

Interconnects · Tech & AI

OpenAI's Reinforcement Finetuning and RL for the masses

TIER 4   2024-12-11

Reminder, I’m raising prices in 2025. This applies to new subscribers only, so it is a good time to lock in the cheap price if you’ve been considering it.

As for now, I’m at NeurIPS. I gave two talks yesterday, which I have slides for now and recordings later, a tutorial on language modeling, and my thoughts on post-training for AI applications. For friends of Interconnects at the conference, I’m going to hang out from 1:30-2:30 PM on Thursday the 12th and Friday the 13th on level two, on the northeastern corner, ocean foyer (see map, if this location doesn’t work, I’ll post the location on socials). Otherwise, I am sure I’ll cross paths with plenty of you at events and sessions.

Onto the media front. On episode 35 of The Retort, Tom and I recapped the biggest AI stories of the year. On ChinaTalk this week I recapped the year and tried to explain the processes you use to create an effective AI model training team. Onto the post.


At the 2016 edition of the Neural Information Processing Systems (NeurIPS) conference, Yann LeCun first introduced his now-famous cake metaphor for where learning happens in modern machine learning systems:

If intelligence is a cake, the bulk of the cake is unsupervised learning, the icing on the cake is supervised learning, and the cherry on the cake is reinforcement learning (RL).

This analogy is now largely complete with modern language models. Self-supervised learning on vast swaths of internet data makes up the majority of the cake (especially when viewed in compute spent in FLOPs), the beginning of post-training in supervised finetuning (SFT) for instructions tunes the model to a narrower distribution, and finally “pure” reinforcement learning (RL) is the cherry on top. We learn just “a few bits” of information with RL in just a few training samples.

Many versions of this slide have been used across the years.

Despite many, many takes that “RL doesn’t work yet” or “RL scaling isn’t ready yet” (and implicit versions of this saying to focus on “RL that Matters”), Yann’s view seems to have been right.

OpenAI’s new Reinforcement Finetuning (RFT) API (just a research program for now), announced on day 2 of the 12 days of OpenAI, is the bridge that brings RL to the masses. This is a very surprising development even for those most faithful to RL. With RFT, one can likely finetune any of OpenAI’s models, while they highlighted o1 mini, it is of obvious value to both standard autoregressive models and reasoning-heavy models. To use RFT, you need three things — 1) training data for your application, 2) validation data for your application to test overfitting, and 3) a definition via OpenAI’s “grader” configuration (more on this later).

Reinforcement Finetuning has been met with excitement and trepidation. The best practices for using existing finetuning APIs, built on instruction tuning infrastructure, are still far from established. The general public of AI builders knows very little about how RL training can change model behavior to improve performance on tasks with minimal overall changes to the model.

In many domains, Reinforcement Finetuning is much more aligned with the goals of developers by being focused on performance rather than behavior. Standard finetuning APIs generally use a parameter-efficient finetuning method such as LoRA with supervised finetuning on instructions. Developers pass in prompts and completions and the model is tuned to match that by updating model parameters to match the completions. OpenAI describes this as increasing the prevalence of “features” in the text of interest.

Reinforcement finetuning is focused on matching answers. Given queries and correct answers, RFT helps the model learn to get the correct answers. While standard instruction tuning is done with 1 or 2 epochs of loss updates over the data, reinforcement finetuning gets its name by doing hundreds or thousands of epochs over the same few data points to give the model time to learn new behaviors. This can be viewed as reinforcing positive behaviors that would work sparingly in the base model version into robust behaviors after RFT.

Share

The impact of reinforcement finetuning’s existence

Reinforcement finetuning signals many changes to the fate of RL and language models, both at OpenAI and elsewhere:

Hypotheses on reinforcement finetuning’s implementation

Technically, there are still more questions than answers given the lack of specific details. Still, the way the API is communicated sheds some light:


The stability in RL infrastructure is at least related to the large-scale training done for o1. A finetuning platform team member at OpenAI, John Allard said:

The idea that anyone can leverage the same training algorithms and infra we use to create our o1 models and craft expert models in new domains is super exciting.

These types of fundamental improvements to tooling (along with clean data) are regarded as the most important pieces of modern frontier laboratories. The full o1 release, especially the early vibes of o1 Pro, which is the publicly available expression of that infrastructure, is best left to their own post.

The question is: Can RL grow to be more than just the “cherry on top” of ML? The reaction of many to o1’s extensive RL training is that the cherry on top may be overperforming even Yann’s predictions. We could be heading to a world where supervised finetuning is less important and all we learn from is a mix of self-supervised internet data and self-reinforced behaviors with no explicit human design. Reinforcement learning is shifting from a niche field run by a few passionate scientists to something that every AI engineer needs to know, use, and love.