Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Design and implement advanced fine-tuning methods

A worked example

Single answer

You are designing fine-tuning for a customer support agent with Managed Training in Microsoft Foundry. The agent's system prompt already contains 10 examples, yet responses often leave out required sections and their structure varies from one response to the next.

Requirements and constraints:

  • The goal is a consistent response structure and correct product terminology.
  • You have 400 historical conversations, each with the complete approved response. You only have labeled examples; no alternative responses have been ranked.
  • Finance must be able to estimate the training cost in advance from the dataset size.
  • The agent answers in text and doesn't call any functions or tools.

The selected base model supports SFT, DPO and RFT in your region.

Which fine-tuning method should you use?

Choose one answer
Why

The agent's problem is inconsistent structure and terminology, which is the primary purpose of SFT. You already have labeled prompt-and-approved-response examples, which is exactly the data SFT needs. SFT training is token-based (per million tokens × epochs), so finance can estimate the cost from the dataset size. DPO would need preference pairs, RFT is billed hourly for training, and tool use fine-tuning targets function-calling behaviour.

  • Not correct: Direct preference optimization (DPO). DPO has token-based cost and can work on text, but it needs preference pairs with a preferred and a non-preferred response. A method that needs preference pairs doesn't work with labeled examples only.
  • Not correct: Tool use fine-tuning. Tool use fine-tuning improves decisions about invoking functions and handling their returned results. The agent does not use functions, so this method does not address its response-structure problem.
  • Not correct: Reinforcement fine-tuning (RFT). RFT training is billed at time-based hourly rates, plus grading tokens when the grader calls a model. Its cost is not derived from dataset size the way SFT's token-based pricing is.
  • Correct: Supervised fine-tuning (SFT). SFT suits format consistency and domain terminology. It trains on labeled prompt-plus-response examples, which you have. Its token-based training cost is predictable from dataset size.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free