Build1 distinct publisher3 min readUpdated
A dev.to walkthrough of BARGAIN holds 0.976 accuracy on court opinions using a cheap classifier plus one oracle sample. Its own runs put the proxy on 40.6% to 57% of records.
The Engineer · Build desk

Compiled by The EngineerSomething wrong?How this is made
Whatever the proxy handles, the oracle handles the rest, and on the court-opinions example that rest was 59.4% of records [1]. Across the three worked examples in the post the proxy's share averages 47.5% [2]: 45% on a toy binary task [7], 57% on open-ended extraction [8]. The expensive model stays in the loop. What changes is the fraction of traffic that reaches it.
Calibration is paid for out of that fraction. Five hundred oracle labels [3] are 10% of a 5,000-record job, which puts oracle-priced calls at 69.4% of volume and caps the saving at 30.6% even if the proxy were free [5]. Run the same task over 50,000 records and the sample is 1% of volume, with a ceiling of 39.6% [4]. The technique is a volume play, and below a few thousand records the sample is the bill.
Then there is the overshoot. The court run was configured for a 0.9 target and returned 0.976 [6], which is 7.6 points of accuracy above what was asked for [3]. The accuracy mode is one-sided by design: match the oracle on at least the target share of records, using the proxy as often as possible [4]. Accuracy above target is not a bonus, it is threshold conservatism, and it is charged at oracle rates. For binary work the package also offers precision and recall modes that fix the oracle budget instead [5], which is the honest way to buy a known amount of escalation.
The most useful line in the post is a failure mode rather than a saving. If the calibration run shows the proxy handling only a small fraction, the post's reading is that the logits are not tracking the oracle, and the fix is a different proxy or a simpler prompt before any tuning [13]. That makes 500 oracle labels a cheap test of the premise itself: either the cheap model's token probabilities correlate with the expensive model's answers on your data, or the cascade is not available to you at all.
That correlation sits on a vendor field. The example passes logprobs and top_logprobs to ChatOpenAI and reads the scores back out of response_metadata on gpt-5-nano [15], with the confidence built from the probabilities of the response tokens [2]. The post's own caveat on the court figures, one run, subject to model versions, API behaviour and dataset changes [9], applies to the threshold as much as to the accuracy. The claimed advantage over FrugalGPT and SUPG is statistical: guarantees that hold at any sample size, with adaptive sampling and better estimation [12]. A guarantee about a sampling procedure is not a guarantee about a provider changing what the logprobs mean.
The paper's headline figure is a margin over competing methods rather than a discount on an invoice [10]. The follow-up's further 48.5% average comes from rewriting prompts into simpler surrogate questions, reading only relevant document chunks, and searching for the cheapest cascade [11]. The first two of those would cut a single-model pipeline's costs too.
Follow any of these and your For You feed starts watching them — no settings page required.
Ranked by verification strength, evidence, and original report placement.
The post describes a model cascade in which a cheap proxy model returns an output and a confidence score, and an expensive oracle model returns its own output plus whether the proxy output was correct.
The proxy's confidence comes from token probabilities: the LLM gives the probability of every token in the output using the same probability model used to generate the response, and the tokens are combined to give the probability of the response.
Calibration is done once offline: a sample run of about 500 to 1,000 records is labelled with the oracle, the proxy is run on the same records, every observed confidence value is tried as a threshold, and the cheapest threshold that meets the accuracy target is picked.
The example code passes logprobs=True and top_logprobs=5 to ChatOpenAI with model gpt-5-nano and temperature 0, then reads the scores from response_metadata["logprobs"]["content"].
BARGAIN_A is the accuracy target mode: match the oracle on at least the target percent of records, using the proxy as often as possible.
BARGAIN_P and BARGAIN_R are precision and recall target modes for binary tasks, with a fixed oracle call budget.
Evidence-backed comparisons of source perspectives and observed adoption signals. Read the methodology
Which Builder, Operator, and Investor concerns the observed source mix emphasized—not a truth score.
Evidence, demonstrated adoption, hype gap, incentives, and confidence are assessed independently, each on its own current evidence. How these are measured.
Single self-reported walkthrough with concrete numbers
The mechanics, calibration procedure, code path and package surface are documented in enough detail to be reproduced, and three quantitative results are given. But everything rests on one publisher and one author's single run, the author himself flags version and dataset sensitivity, and the strongest cost figures are relayed from papers absent from the cluster. No independent replication, no cost model, no confidence intervals.
Installable package, one hobbyist run, no deployments
Observable uptake is minimal: a pip-installable package with an examples directory and one developer's self-run experiments on public datasets. The sources contain no production deployment, no organisation using it, no scale or spend disclosure, and no third-party adoption signal.
Cheap-path framing overstates the measured routing split
The post's diagram routes 'most records' to the proxy and its paper summary leads with up to 86% more cost reduction plus a further 48.5%, while its own measurements put the proxy on 40.6% to 57% of records (47.5% mean) and never net the 500-1,000-record oracle calibration pass against savings; accounting for it caps best-case saving at roughly 30.6% to 39.6% at the flagship run's split. The gap is moderate rather than severe because the author states his target/delta, discloses the exact proxy shares, and explicitly flags the single-run limitation.
Independent developer post relaying academic marketing figures
The single source is an individual developer's tutorial on a community platform about an open-source package from an academic repository; no vendor sponsorship, paid placement, employment relationship or commercial interest is disclosed or evident, and the author volunteers limitations. The residual pressure is engagement-driven framing plus uncritical reuse of the papers' own comparative and cost-reduction headlines.
Mechanics well pinned, magnitudes weakly held
Confidence is fair on what the technique is and how to implement it, because the source is explicit and internally consistent, and fair on the derived routing arithmetic, which follows directly from stated numbers. Confidence is low on any cost-saving magnitude, generalisation across tasks and models, and durability of the calibrated threshold, given one publisher, one run, and second-hand paper figures.
science
21 language models, one habit: tell them your politics and they adopt them1 distinct publisher
product
Rillet's $100M reads as proof mid-market ERP is rip-and-replace, mostly at the cheap end1 distinct publisher
leadership
Disney swaps raises for discounted stock and a full health-plan re-enrollment1 distinct publisher
science
Text watermarks land on 2 December. The detection they imply does not.1 distinct publisher
Distinct publishers with included, body-backed reporting in this cluster.
dev.to
1 article · August 23, 2026