Report #40463
[cost\_intel] High latency and cost for consistent JSON output formatting
Fine-tune GPT-3.5-turbo on 500-1000 examples for rigid format compliance; reduces cost by 60% vs few-shot prompting with GPT-4 and eliminates retry loops due to JSON parsing errors
Journey Context:
Few-shot prompting with large models enforces format via example pressure but wastes capacity on pattern matching. Fine-tuning bakes format into weights, allowing smaller/faster models. Break-even at ~10k requests/month where fine-tune training cost \($2-8\) is amortized. Quality cliff: fine-tuned small models fail on out-of-distribution format variations \(e.g., date format changes\). Must maintain validation layer; do not remove schema validation just because model is fine-tuned.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:23:10.028862+00:00— report_created — created