WhoBuilt

RFT, DPO, SFT: Fine-tuning with OpenAI

Jun 23, 2025· 1 h 46 min· 21K views·Watch on YouTube

Speaker

Ilan Bigio of OpenAI’s Developer Experience team explains supervised fine-tuning, direct preference optimization, and reinforcement fine-tuning at AI Engineer’s Model Maxing with OpenAI session.

Choosing a fine-tuning method

Bigio frames optimization as improving the input, model, or surrounding system, then focuses on model weights. SFT teaches by imitation, DPO nudges outputs toward preferred examples, and RFT uses a grader to reward successful reasoning. He recommends prompting first and considering fine-tuning when clean data and evaluation results show a need.

SFT for constrained tasks

For a customer with 120 function schemas and a latency constraint, Bigio’s team generated synthetic input and function-call pairs, then distilled outputs from GPT-4 for unlabeled requests. Fine-tuning GPT-3.5 brought performance within 2% of GPT-4 at much lower latency. In a banking intent-classification demo, fine-tuned models also beat the base models on a 150-example test set; Bigio says to start with about 100 training examples and aim for 500 or more.

DPO for preferences and style

Bigio uses jokes to illustrate DPO, where each topic has a preferred joke and a less preferred one. He manually filtered generated jokes, then paired the stronger joke with a weaker one about the same topic. He says DPO can help with tone and other preferences that are hard to score directly, but synthetic preference data is only as reliable as its labels.

RFT needs clear grading

With RFT, a model generates a response and a grader scores it; training reinforces behaviors associated with higher scores. Bigio stresses that grading should be unambiguous and data should be clean, since noisy signals can be amplified. In his email-classification attempt, subjective labels produced weak results; a hydrogen-bond prediction task improved from about 65% to 80% with a multi-part grader. He says RFT supports reasoning models and single-turn tasks in the setup described.

Evaluate before investing

Bigio advises starting with prompts and evals, then fine-tuning only when prompting has reached its limits and suitable data is available. For new knowledge, he recommends context, retrieval, and search; fine-tuning is better suited to learning behaviors and formats. He also describes an improvised prompt-tuning experiment for email triage that did not show significant improvement, partly because the labels lacked clear reasons.

Takeaways

  • Start with a prompt and an evaluation set; fine-tune when measured results show a persistent gap.
  • Use SFT for constrained outputs such as classification, formatting, or function calls, and keep training examples diverse.
  • Use DPO when people can reliably compare preferred and less preferred responses, especially for style or tone.
  • Use RFT only when a clean, high-signal task can be graded consistently.
  • Use retrieval or search to supply changing or detailed knowledge; fine-tuning is not a substitute for access to facts.

Mentioned in this talk

Search inside this talk

What was claimed 13

  • works at
    Builds research tools (earlier: developer experience; joined as solutions architect)
    “I'm on the developer experience team at OpenAI.”
    0:00inFunction Calling is All You NeedYouTube
    Verified3 sources· Talk, Web· archived
  • feature
    OpenAI: teaches a model to imitate provided input and output examples
    teaches a model to imitate provided input and output examples
    “you show the model what you want it to output, and it learns to copy that”
    YouTube
    Unverified1 source· Talk
  • feature
    OpenAI: uses graders to train reasoning models on task performance
    uses graders to train reasoning models on task performance
    “You can use this algorithm on this platform as well”
    YouTube
    Unverified1 source· Talk
  • feature
    OpenAI: uses preferred and non-preferred output pairs to tune model preferences
    uses preferred and non-preferred output pairs to tune model preferences
    “Do more of what I like and less of what I don't like”
    YouTube
    Unverified1 source· Talk
  • feature
    supervised fine-tuning: Suited to classification, formatting, and structured data extraction
    “It's great for classification use cases, formatting, and structured data extraction”
    YouTube
    Unverified1 source· Talk
  • feature
    DPO: Suited to tone matching and preference comparisons
    “It’s very good at learning tone matching”
    YouTube
    Unverified1 source· Talk
  • feature
    Reinforcement fine-tuning: Suited to hard problems with gradable, verifiable answers
    “reinforcement fine-tuning is for gradable, hard problems”
    YouTube
    Unverified1 source· Talk
  • feature
    RAG: Recommended for teaching models new information
    “RAG and other solutions like agentic retrieval are much better if you want to teach the model new information”
    YouTube
    Unverified1 source· Talk
Show all 13 facts

Related talks