Key findings

The choice between fine-tuning a model and using in-context learning (ICL) — providing examples and instructions in the prompt at inference time — is one of the most consequential decisions in AI product development. It affects cost, latency, accuracy, maintainability, and time-to-market. We conducted a systematic comparison across eight production tasks at Logicbric to develop a decision framework grounded in empirical data rather than intuition.

Finding 1: ICL matches fine-tuning for 70% of classification tasks

For intent classification, entity extraction, and document categorisation tasks, well-designed in-context learning with 5-10 examples achieved accuracy within 3 percentage points of fine-tuned models. The exception was tasks with more than 30 classes or where classes had subtle distinctions — here fine-tuning outperformed ICL by 12-18%. In Yezda, classifying screening document types (employment reference, identity verification, address confirmation, gap explanation) used ICL successfully because the taxonomy is well-defined and the number of classes is manageable.

Fine-tuning is not a quality improvement tool — it is a specialisation tool. If your task is well-defined enough to explain in a prompt, ICL will likely match fine-tuning. If it requires implicit knowledge that is hard to articulate, fine-tuning wins.

Finding 2: Fine-tuning reduces latency and cost at scale

ICL requires sending examples with every request, consuming input tokens and adding latency. For high-volume tasks, this cost compounds significantly. A classification task using 8 few-shot examples consumed approximately 1,200 input tokens per request. At 50,000 requests per day, this translates to 60 million tokens daily — just for examples the model has already learned during fine-tuning. Our fine-tuned classifier reduced per-request latency by 40% and token costs by 65% on equivalent tasks.

Finding 3: ICL is dramatically faster to iterate

When business requirements change — and they always do — ICL adapts in minutes. Changing the classification taxonomy, adding a new entity type, or adjusting the output format requires editing a prompt, not retraining a model. Fine-tuning requires curating new training data, running a training job (hours to days depending on the model), evaluating the new model against your benchmark suite, and deploying it to production. At Logicbric, our average iteration cycle is 15 minutes for ICL changes versus 3-5 days for fine-tuning iterations.

Finding 4: The hybrid approach outperforms both

Our best-performing systems use a hybrid approach: fine-tuned models for stable, high-volume tasks that rarely change, and ICL for evolving tasks, edge cases, and low-volume specialisations. In WyseAgent, the document type classifier (stable, high-volume) is fine-tuned. The legal reasoning prompts (evolving, complex) use ICL with extensive prompt architecture. This hybrid approach achieved 93% overall accuracy at 40% lower cost than either approach used exclusively.

Finding 5: Fine-tuning creates vendor lock-in that most teams underestimate

A fine-tuned model is tied to a specific provider and base model. When the provider releases a better base model, you must retrain. When the provider changes pricing, you cannot easily switch. When the provider experiences an outage, your fine-tuned model is unavailable and you cannot failover to an alternative. ICL-based approaches are inherently more portable — the same prompts can run on different models with minimal adaptation. This portability has proven valuable multiple times at Logicbric when we needed to switch providers due to reliability or pricing changes.

Methodology

We compared fine-tuning and ICL across eight production tasks: document classification (Yezda), intent routing (PMS), entity extraction (WyseAgent), sentiment analysis (PMS tenant communications), data normalisation (Downstream ERP), compliance check categorisation (Yezda), maintenance triage (Dynabric), and financial categorisation (BTR Quant). Each task was evaluated on accuracy (against human-labelled test sets of 500+ examples), latency (P50 and P95), cost per 1,000 requests, and iteration speed (time from requirement change to production deployment).

Recommendations

  • Start with ICL for every new AI task — fine-tune only when you have empirical evidence that ICL is insufficient for your quality, latency, or cost requirements
  • Fine-tune when: your task is stable, high-volume (more than 10,000 requests/day), well-defined, and ICL latency or cost is unacceptable
  • Use ICL when: your task is evolving, low-to-medium volume, requires flexibility, or you need provider portability
  • Consider the hybrid approach for complex products — fine-tune the stable core, use ICL for the adaptive periphery
  • Always maintain an ICL fallback for fine-tuned tasks so you can failover if the fine-tuned model becomes unavailable
  • Track the total cost of ownership including training data curation, training compute, and iteration cycles — not just per-request inference cost