cd /news/machine-learning/four-ways-to-teach-an-ai-to-draw-a-c… · home topics machine-learning article
[ARTICLE · art-112454] src=julin.ai ↗ pub= topic=machine-learning verified=true sentiment=· neutral

Four Ways to Teach an AI to Draw a Cat

A new explainer outlines four methods for training AI models to draw a cat: Supervised Fine-Tuning (SFT), Direct Preference Optimization (DPO), Reinforcement Learning (RL), and On-policy distillation (OPD). Each method uses a different training data format, from copying expert examples to scoring generated responses or receiving per-token teacher feedback.

read1 min views3 publishedAug 23, 2026

Same student, same cat, four very different lessons — and every way of training a language model is one of them.

SFT — Trace the teacher #

Copy the teacher's drawing, stroke for stroke.

Supervised Fine-Tuning (SFT) is training a model to copy expert-written examples, token by token.

See example training JSON data set:

{
  "prompt": "Draw a cat.",
  "completion": "[the teacher's drawing, stroke by stroke]"
}

DPO — Pick the better one #

Pick the better of two drawings.

Direct Preference Optimization (DPO) is training a model to prefer one labeled response over another.

See example training JSON data set:

{
  "prompt": "Draw a cat.",
  "chosen": "[a good drawing]",
  "rejected": "[a worse drawing]"
}

RL — Just a score #

Draw a cat, get a single score back.

Reinforcement Learning (RL) is training a model by scoring its own generated responses and reinforcing what scored well.

See example training JSON data set:

{
  "prompt": "Draw a cat.",
  "response": "[the model's own drawing]",
  "reward": 7
}

OPD — Notes on every line #

Draw a cat, get corrected stroke by stroke.

On-policy distillation (OPD) is training a model on its own responses, graded token by token by a stronger teacher model.

See example training JSON data set:

{
  "prompt": "Draw a cat.",
  "response": "[the model's own drawing]",
  "teacher_logits": "[the teacher's per-token distribution over this response]"
}
── more in #machine-learning 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/four-ways-to-teach-a…] indexed:0 read:1min 2026-08-23 ·