Answer · updated

When a fine-tuned small model can outperform a frontier model on insurance document

A fine-tuned small model can beat a frontier model when the task is narrow, you have substantial labeled data and structured outputs, and operational constraints (latency, cost, privacy, on‑prem deployment) favor smaller models. Evaluate with metrics that capture accuracy, robustness, cost, and traceability.

Key performance metrics to compare

Compare models across accuracy (F1, precision, recall) for each field and for end‑to‑end extraction, plus per‑class breakdowns. Measure hallucination or false positive rate for extracted values and provenance accuracy (is the extracted value traceable to a page/line/region). Also track latency (p99 and median), cost per inference, throughput, memory footprint, and operational robustness (behavior on OCR errors, noisy scans, variant formatting). Finally include monitoring metrics: drift indicators, failure rate, and human review workload.

When fine‑tuning a small model wins

Small models tend to win when the extraction domain is narrow (a fixed set of fields, templates, or insurer forms), you have ample high‑quality labeled examples for those fields, and outputs can be constrained to structured formats (JSON, schemas). They are advantageous when strict privacy or regulatory needs require on‑premise or edge deployment, or when latency and cost constraints prohibit large‑model inference. Fine‑tuning also helps reduce hallucination for repetitive, template‑based entries and improves traceability when training includes provenance labels.

When frontier models tend to win

Frontier models usually outperform small fine‑tuned models when labeled data is scarce, documents show high linguistic or layout variability, or extraction requires complex reasoning, long document context, or synthesis across pages. They are more robust to rare phrasings, unseen templates, and noisy or OCR‑heavy inputs. If you need rapid prototyping across many new claim types or languages, a large model with few‑shot or instruction strategies often yields higher recall and fewer missed fields.

Operational and evaluation approach

Use a benchmark test set representative of production: include common templates, rare forms, noisy scans, and multilingual cases. Conduct slice analysis (per form type, per field rarity, OCR quality levels). Evaluate provenance by requiring each extracted value to point to an image region or token span, and measure human review time saved. Use systematic A/B trials in production with rollback triggers (sudden drop in F1, rise in untraceable values, latency spikes). Balance cost and latency tradeoffs by measuring end‑to‑end throughput and cost per processed document under expected load.

Related questions

How much labeled data is needed to tilt the choice toward fine‑tuning a small model?

There is no fixed number; practical thresholds depend on label complexity and variability. For repetitive fields and template families, hundreds to low thousands of high‑quality examples per field can make fine‑tuning effective. Always run learning‑curve experiments to see incremental gains.

How should I measure hallucination in extraction systems?

Measure hallucination as the rate of non‑traceable or incorrect extractions: values not present in the source or contradicted by provenance. Combine automatic checks (span matching, validation rules) with sampled human review to quantify false positives and inscrutable outputs.

When should I deploy a hybrid approach?

Use a hybrid when some fields are well‑covered by a fine‑tuned small model (structured, high‑volume) while others require a frontier model for open‑ended or rare cases. Route easy templates to the small model and escalate uncertain or low‑confidence extractions to the larger model or human review.

Related Qylis capability

Model Training & SLMs

Train and fine-tune small language models on your data, for your domain and your infrastructure.

Discuss your requirement