Report #50571
[cost\_intel] Using few-shot prompting with frontier models for repetitive classification instead of fine-tuning small models
Fine-tune GPT-4o-mini or Claude 3 Haiku for repetitive classification tasks with consistent input distributions; achieve 95% of GPT-4 accuracy at 1/50th the cost \($0.0006 vs $0.03 per request\) after 1k training examples.
Journey Context:
Few-shot prompting with GPT-4 works but costs $0.03 per request with 10 examples in context. Fine-tuning bakes the examples into weights, eliminating context token costs. GPT-4o-mini fine-tuning inference costs $0.0006 per request. Break-even is around 500-1000 examples. Critical constraint: fine-tuned models fail on distribution shift \(e.g., new categories, different text styles\). Do not use for dynamic taxonomies. The quality degradation signature is confident misclassification on out-of-distribution inputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:21:57.161269+00:00— report_created — created