Turning Your Model's Errors into Golden Training Data

Ramon Kaspar, Alexandru Dumitru, Kinga Szarkowska, Zülküf Genç25 Feb 2026

Problem

A fine-tuned vision language model (VLM) at iFood, a food delivery platform, classifies product listings into a taxonomy from a name, a short description and sometimes an image. Overall accuracy was good, but errors clustered on items at the boundary between similar categories. The model also leaned on keywords: "2 for 1" in a name pushed items toward hamburgers, because most promotions in the training data were hamburgers. More generic data does not fix this. The model needs examples that show why one class differs from its neighbor.

Example from the article: a chocolate bar named "Oreo" was labeled Biscuits/Cookies, but the ground truth is Filled Chocolate.

Solution in brief

The Active Learning Pipeline (ALP) finds the model's errors on a held-out set, asks a reasoning LLM why each error happened, and has the same LLM write 6–8 synthetic samples per error. Each sample follows a named strategy that attacks the confusion from a different side. The model is retrained on real plus synthetic data.

Questions this case answers
  • How to fix systematic errors of a fine-tuned classifier on semantically overlapping classes when more generic training data does not help
  • How to generate diverse synthetic training samples aimed at a model's known failure modes rather than at random examples of a class
  • How to fix the systematic errors of a fine-tuned classifier on categories that sit close together?
  • How to generate synthetic training samples that target a model's specific confusions instead of adding generic data?

Tools and methods

  • Negative mining on a held-out set — collects the model's misclassified items as input for the pipeline
  • Reasoning LLM (e.g. GPT-5, Claude Opus 4.5) — explains errors and generates samples, offline only
  • Generation strategies — named recipes that force diverse, targeted samples
  • Supervised fine-tuning of Qwen3-VL-2B-Instruct — the retraining step
Continue reading — it's free

Google or a one-time email code. No password.