Case 59: Choosing between a cheap AI model and a strong one
A teaching case on reading invoices with AI: a cheap model, a strong model or a cascade that escalates hard cases. Compare cost per call, errors and speed.
When a company starts using AI at scale, one of the first questions is which model to use. The strongest models are the most accurate and the most expensive. The smaller ones are cheap and fast and make more mistakes. The natural instinct is to pick one and use it for everything, either the best, to be safe, or the cheapest, to save money. But the real tasks are not uniform. Most calls are easy and any model gets them right. A minority are hard, and only the strong model handles them well. A system that sends each call to the model it needs, instead of one model for all, can be both cheaper and more accurate than either choice alone. This case shows how to find out. You will practise comparing models by cost per call including errors, measuring how accuracy differs between easy and hard cases, building a cascade that escalates only the uncertain ones, and finding the share to escalate.
This is a composite case. Docuread, its people and its figures are invented for teaching. The prices and accuracies are illustrative, not benchmarks for any real model, and real prices change often. No real company is described.
The decision
Preeti Nair, head of engineering at Docuread, a company that reads invoices and extracts the supplier, date, tax and amounts for accounting software, has to choose how to run the extraction step for the coming year. The company processes 2 million invoices a month. The product lead wants the strongest model for every call, because "accuracy is our product". The finance lead wants the cheapest model, because the volume makes every rupee matter. Preeti suspects there is a third way and has asked her team to measure it.
Background
The two models.
The small model costs ₹0.80 per invoice and gets 88 per cent of invoices fully right. It responds in about 0.8 seconds.
The large model costs ₹3.50 per invoice and gets 94 per cent fully right. It responds in about 3.2 seconds.
The cost of an error. If an invoice is read wrongly, someone must catch and fix it, or a wrong payment is made. Docuread's customers and Docuread together bear a cost that Preeti estimates at ₹40 per wrong invoice.
The key finding. Preeti's team labelled 5,000 invoices and looked at where the small model fails. The errors are not spread evenly. About 20 per cent of invoices are hard: handwritten, scanned at an angle, in a different language or with an unusual layout. On those the small model gets only 62 per cent right and the large model gets 93 per cent right. On the other 80 per cent, the small model gets about 93.8 per cent right. (Check: 0.2 × 62 + 0.8 × 93.8 = 87.4, close to the 88 per cent overall.)
The confidence score. Each model returns a confidence with its answer. The small model's confidence is informative: the hard invoices tend to have low confidence. The team found that if invoices are ranked by the small model's confidence, the lowest-scoring 20 per cent contain most of the hard ones.
The numbers
Exhibit 1: single-model costs
The cost per invoice, including the expected cost of errors:
Model · Price · Accuracy · Error rate · Cost of errors (₹40 each) · Cost per invoice · Monthly cost for 2 millionSmall · ₹0.80 · 88% · 12% · ₹4.80 · ₹5.60 · ₹112.0 lakh
Large · ₹3.50 · 94% · 6% · ₹2.40 · ₹5.90 · ₹118.0 lakh
The small model, though less accurate, is cheaper in total than the large one, because the error cost of ₹40 is not high enough to justify the large model's price. The product lead's instinct that the best model is safest is not borne out by the numbers at this error cost.
Exhibit 2: the cascade
A cascade works in two steps. First, every invoice goes to the small model. Second, the invoices on which it has the lowest confidence are sent again to the large model, and the large model's answer is used. The escalated share is a setting. The table shows what the team measured for each setting.
Share escalated · Accuracy of the small model on the kept invoices · Overall accuracy · Cost per invoice (model price + errors)0% (small only) · 88.0% · 88.0% · ₹5.60
10% · 91.5% · 91.6% · ₹4.49
20% · 93.8% · 93.6% · ₹4.04
30% · 95.0% · 94.4% · ₹4.09
40% · 95.8% · 94.7% · ₹4.33
50% · 96.4% · 94.7% · ₹4.67
100% (large only) · n/a · 94.0% · ₹5.90
At 20 per cent, the cost per invoice is ₹4.04: the small model's ₹0.80 plus 20 per cent × ₹3.50 for the escalated calls, plus errors of 6.4 per cent × ₹40 = ₹2.56. That is 28 per cent below the small model alone and 32 per cent below the large model alone, and the overall accuracy (93.6 per cent) is almost as high as the large model's (94.0 per cent).
Exhibit 3: monthly cost and time
For 2 million invoices a month:
Option · Cost per month · Overall accuracy · Average response timeSmall only · ₹112.0 lakh · 88.0% · 0.8 s
Large only · ₹118.0 lakh · 94.0% · 3.2 s
Cascade, 20% escalated · ₹80.8 lakh · 93.6% · 0.8 + 0.2 × 3.2 = 1.4 s
Cascade, 30% escalated · ₹81.8 lakh · 94.4% · 1.8 s
The 20 per cent cascade saves about ₹31 lakh a month against the small model and ₹37 lakh against the large model, and gives answers more than twice as fast as the large model.
Questions to consider
1. Why is the small model, with 88 per cent accuracy, cheaper in total than the large model at 94 per cent?
2. Why does the cascade beat both single models? What does it need to work?
3. Why does the cost rise again when more than 20 or 30 per cent of invoices are escalated?
4. How would the best cascade change if an error cost ₹100? If it cost ₹10?
5. What could go wrong with the cascade in practice, and how would you check it?
6. What would you recommend to Preeti, and how would you set the escalation share?
Analysis
Step 1: compare models on total cost, not on price or accuracy alone
The two single-model options trade a price against an accuracy. The large model costs ₹2.70 more per invoice and avoids 6 errors in 100, worth 6 × ₹40 = ₹2.40 per invoice. Since ₹2.40 is less than ₹2.70, the large model does not pay for itself at ₹40 per error.
The break-even is where the cost per error makes the extra accuracy worth the extra price: ₹2.70 ÷ 0.06 = ₹45 per error. Above ₹45, the large model is the better single choice, and below it the small model is. At ₹40 the two are close (₹5.60 against ₹5.90), which is a sign that neither is obviously right, and that a mixed approach should be examined.
Step 2: errors are concentrated, and that is the opening
The central fact in the case is that the small model's errors are concentrated in a fifth of the invoices. On 80 per cent of invoices, the small model is right 93.8 per cent of the time, and has little room to improve. On the hard 20 per cent it is right only 62 per cent of the time, and the large model is right 93 per cent. A 31-point gain on a fifth of the invoices is worth 6.2 points overall at a price of only 20 per cent × ₹3.50 = ₹0.70 per invoice on average.
If errors were spread evenly, there would be no gain from a cascade: the large model would help everywhere or nowhere. The gain comes from targeting the strong model at the cases where it makes the difference, and not paying for it where it adds nothing.
Step 3: what makes a cascade work
A cascade needs three things.
1. A trustworthy signal of difficulty. The small model's confidence must predict its errors. If its confidence is high on calls it gets wrong, the escalation will miss the hard cases. The team should check the calibration: among calls with confidence of 0.9, about 90 per cent should be right. A cheap alternative signal is a simple rule: invoices from unfamiliar suppliers, low scan quality, or fields that fail a check such as "the line items do not add up to the total".
2. A large gap in accuracy on the escalated calls. Here 62 against 93 per cent.
3. A price gap that is not too big. If the large model cost ₹30, even escalating 20 per cent would cost ₹6 an invoice.
When all three hold, the cascade is better than either model alone. This pattern appears often: a cheap first pass, an expensive second look at the uncertain cases and, sometimes, a human for the hardest.
Step 4: finding the right share
The table shows a flat bottom: at 20 per cent the cost is ₹4.04, and at 30 per cent ₹4.09. Moving from 10 to 20 per cent escalated saves ₹0.45 an invoice, because the invoices escalated are very hard and the large model gains much on them. Moving from 20 to 30 per cent adds cost of ₹0.35 for the large model's price and gains only a little accuracy, because the invoices in that band are mostly ones that the small model got right.
The best share is where the marginal gain in accuracy times the cost of an error equals the extra price: for each step, compare the benefit (extra accuracy × ₹40) with the cost (₹3.50 − ₹0.80 per call escalated, minus what the small model would have gotten right). Beyond 20 to 30 per cent the benefit shrinks below the cost.
As with the support assistant in Case 58, the curve is flatter on the cautious side. Escalating 30 per cent when 20 is best costs ₹0.05 an invoice more. Escalating only 10 per cent costs ₹0.45 more. When unsure, escalate a little more than the optimum.
Step 5: sensitivity to the cost of an error
The best share depends on what an error costs. At ₹100 per error, the best share rises to about 30 per cent, with a cost of about ₹7.45 an invoice against ₹7.86 at 20 per cent, because each correct answer on a hard invoice is worth more. At ₹10 per error, the best share is lower, and at ₹10 the small model alone, with a total of ₹0.80 + 12% × ₹10 = ₹2.00, beats the large model (₹3.50 + 6% × ₹10 = ₹4.10) and the cascade (about ₹2.14), so a cascade would not be worth the complexity.
In the simulator, set the cost of an error to 100 and the share to 30 to see the cost per invoice move to about ₹7.45, and compare it with the large model alone at ₹9.50. Preeti should record the cost of an error by type: a wrong amount on an invoice is more costly than a wrong supplier name, and the cascade could use a higher escalation rate for amount fields.
Step 6: what could go wrong
Drift. If invoice types change (a new large customer with unusual layouts), the small model's confidence may be badly calibrated for a while. The cascade needs a monitor (see Case 60).
Escalation volume surprises. If 40 per cent of invoices come in hard one month, the large model's cost doubles. Set a budget alarm and a fallback.
Latency. Escalated invoices take 4.0 seconds (0.8 + 3.2), not 0.8, so the product must handle uneven response times. Users may be shown the small model's answer and updated after.
Complexity. Two models, a threshold and a monitoring system are more to build and run than one model. The saving of ₹31 to 37 lakh a month pays for a good deal of engineering.
Vendor changes. Prices and model versions change. Keep the interface so that either model can be swapped.
Fairness. A model's errors may be higher for particular languages or small suppliers. Check accuracy by group, and not just overall.
Step 6b: a note on measuring the cascade in production
Once the cascade is live, it should be judged on the same labelled sample each month, with a small share of invoices (say 2 per cent) sent to both models and to a human checker regardless of confidence. This audit sample gives an unbiased view of how often each model is right, including on the invoices the small model was confident about, which are the ones a cascade would otherwise never look at. If the audit shows that the small model is wrong more often than its confidence suggests, the threshold should rise at once. It also gives the data to retrain the small model on the hard cases it currently fails, which can lower the escalation share over time and cut the cost further.
Step 7: the recommendation
Preeti might say: "Use a cascade. Run every invoice through the small model, escalate the 25 per cent with the lowest confidence or with failed consistency checks to the large model, and send anything still uncertain to human review. At ₹40 per error this costs about ₹4.05 an invoice, ₹81 lakh a month, against ₹112 lakh and ₹118 lakh for the single models, with accuracy within half a point of the large model. Before launch, check the confidence calibration on 5,000 fresh invoices, set an alarm if the escalation share goes above 35 per cent and re-measure the cost of an error by field. Review every quarter, because prices and models change."
What happened
This part of the case is an illustrative epilogue, not a real outcome.
Docuread launched the cascade at 25 per cent escalation. The small model's confidence was less well calibrated than expected for scanned handwritten invoices, and the team added a rule that sent every invoice failing a total check to the large model. The cost per invoice settled at ₹4.20 and accuracy at 94.1 per cent. After a quarter, a new model release cut the large model's price by about a third, and the optimum moved to 30 per cent escalation. Monthly cost was about ₹84 lakh, 29 per cent below the small model alone.
Key takeaways
Compare models on total cost per call including errors. At ₹40 per error, the small model cost ₹5.60 per invoice and the large one ₹5.90, though the large one was 6 points more accurate.
The large model pays for itself only above about ₹45 per error in this case.
Errors are concentrated. The small model got 62 per cent of the hard 20 per cent of invoices right and 93.8 per cent of the rest.
A cascade that escalates the least confident 20 per cent cost ₹4.04 per invoice, with overall accuracy of 93.6 per cent against 94.0 per cent for the large model alone.
Monthly cost for 2 million invoices: ₹80.8 lakh for the cascade, ₹112.0 lakh for the small model and ₹118.0 lakh for the large one.
A cascade needs a reliable difficulty signal, a large accuracy gap on the escalated calls and a manageable price gap. Check calibration.
Watch for drift, escalation spikes, latency, complexity, vendor changes and unequal accuracy across groups.
Try this
Design a model choice for a task of your own. Set aside forty-five minutes.
1. Choose a task where an AI model reads, classifies or writes, with a cheap model and a strong model available. Write the price and accuracy of each and the cost of an error.
2. Compute the cost per call including errors for each model, and the cost of an error at which the strong model breaks even with the cheap one.
3. Find out, on a labelled sample, where the cheap model fails. Estimate its accuracy on the easy and hard parts.
4. Design a cascade, and compute cost and accuracy at five escalation shares. Use the simulator pattern.
5. Test the result at half and double the cost of an error. List what could go wrong and how you would monitor it.
6. Write a five-sentence recommendation: the design, the cost per call, the escalation share, the signal you rely on and the monitoring.
A good result is a cost per call including errors, a break-even error cost, an analysis of where errors fall, a cascade table, a stress test and a monitoring plan. Case 60 looks at what happens to a model after it is in use: how often to retrain it.
Tags: Case study AI models Cascades Cost per correct answer Model choice