Research · Movie reviews from IMDB · Models called through Vercel AI Gateway

Large model not required?

We asked four AI models whether each of 1,000 movie reviews was positive or negative, without showing them the answers. Jev, a purpose-built evaluation model, got 963 right. Claude Sonnet 5 got 960. Jev typically answered in 0.3 seconds, for under 4% of Claude Sonnet 5’s cost.

Jevtypesafe-ai/jev
96.3%
963 of 1,000 correct · 95% CI 94.9%–97.3%
Median response
346 ms
Cost / 1k reviews
$0.0266
Purpose-built evaluation model
Qwen3.7 Flashalibaba/qwen3.7-flash
96.1%
961 of 1,000 correct · 95% CI 94.7%–97.1%
Median response
5.7 s
Cost / 1k reviews
$0.0659
General-purpose flash LLM

Gap 0.2 ptsPaired test p = 0.832Class balance 50 / 50Chance 50%

Also on the same 1,000 reviewsClaude Sonnet 596.0%≥ $0.77 / 1kClaude Haiku 4.596.1%≥ $0.39 / 1k

  1. 01Sample

    1,000 reviews drawn at random from 49,581 unique IMDB reviews, half positive and half negative (seed 42).

  2. 02Blind

    The human label is set aside. Each model sees only the review and the task.

  3. 03Ask

    Both models are called through Vercel AI Gateway with the same instructions and label definitions.

  4. 04Score

    Every answer is checked against the IMDB star-rating label and filed, once.

Technical report · September 2026

Blind binary sentiment classification on IMDB: an evaluation model versus a general-purpose flash LLM

Abstract

We compare typesafe-ai/jev, an evaluation model that returns a structured choice with probabilities, against alibaba/qwen3.7-flash, a general-purpose generative model, on 1,000 class-balanced movie reviews from the IMDB dataset of Maas et al. [1]. Neither model saw the reference label. Jev labelled 96.3% of reviews correctly (95% CI 94.9%–97.3%) and Qwen3.7 Flash 96.1% (94.7%–97.1%). The 0.2-point gap in favour of Jev is not statistically significant under an exact McNemar test on the 22 reviews where the models disagreed (p = 0.832). Both models missed the same 27 reviews; we publish all 1,000 answers for inspection.

1Headline accuracy

Accuracy is the share of all 1,000 reviews labelled correctly; an answer that could not be parsed counts as wrong. Because the sample is exactly half positive and half negative, a coin flip scores 50%, and so does a model that always answers the same way.

Jev
96.3%
Qwen3.7 Flash
96.1%
90%95%100%
Figure 1. Accuracy with 95% Wilson score intervals [2]. Intervals are for each model on its own; the paired comparison is in Figure 4.
ModelAccuracy95% CIMacro F1Recall +Recall −No answerMedian latencyTokens in / outExpected cost / 1kBilled / 1k
Jev96.3%94.9%–97.3%0.96396.6%96.0%0346 ms634 / 32$0.0266$0.0000
Qwen3.7 Flash96.1%94.7%–97.1%0.96197.2%95.0%05.7 s382 / 419$0.0659$0.0659
Table 1. Recall + / − is accuracy on positive and on negative reviews. Median latency comes from a separate speed test of 50 reviews per model: one request at a time from one client through AI Gateway, each timed as a single attempt. Any request the gateway throttled or failed to serve was discarded and sent again rather than timed (discarded: Jev 4 throttled; Qwen3.7 Flash 39 throttled). 95th percentile: Jev 444 ms, Qwen3.7 Flash 11.8 s. Tokens are the mean per review. Expected cost is those tokens at list price (Jev $0.042 in / $0 out; Qwen3.7 Flash $0.03 in / $0.13 out per million tokens), whatever free tier or credits apply. Billed is what AI Gateway charged this run; Jev was billed $0 on this account (free tier).

Throttling. AI Gateway held this account to about 5 requests a minute for Qwen3.7 Flash. The full run sent requests in parallel and retried each one the gateway turned away, so counting those waits the median request took 267 ms for Jev and 51.7 s for Qwen3.7 Flash. The waits come from the account’s limit, not the model, and an account with a higher limit would not see them. So the response times above come only from the separate throttle-free speed test. Without throttling, Qwen3.7 Flash is still slower than Jev because it produces about 420 tokens per review, most of them reasoning that is not part of its one-word reply; Jev produces 32.

2Every verdict, one square each

Each square below is one review, in the same position in both grids, so you can compare the two models review by review. Grey squares are correct and red squares are mistakes. Hover a square to see what each model said, or switch the highlight to the reviews where the models disagreed.

  • Correct
  • ✕ Wrong
  • No usable answer
Jev37 missed
Positive reviews500
Negative reviews500
Qwen3.7 Flash39 missed
Positive reviews500
Negative reviews500
Figure 2. All 1,000 verdicts per model, grouped by the human label. Full per-review answers are in the CSV download.
Jev
actual ↓  predicted →positivenegative
positive48317
negative20480
Qwen3.7 Flash
actual ↓  predicted →positivenegative
positive48614
negative25475
Figure 3. Confusion matrices. Rows are the human label and columns are the model’s answer; shading is the share of the row. Errors off the diagonal show whether a model leans positive or negative.

3Where they disagree

Both models saw the same reviews, so the fair comparison is paired. The models agreed on 978 reviews (97.8%) and disagreed on 22. Only those disagreements tell the models apart, and McNemar’s test [3] asks whether they split more unevenly than chance would. Jev was right on 12 and Qwen3.7 Flash on 10 (p = 0.832). That is not enough evidence to say Jev is better than Qwen3.7 Flash on this task.

Qwen3.7 Flash right Qwen3.7 Flash wrong
Jev right95195.1%121.2%
Jev wrong101.0%272.7%
Figure 4. Paired outcomes. The off-diagonal cells are the discordant pairs used by the exact McNemar test.

Does length matter? Short reviews carry fewer clues, while long ones may spend paragraphs on plot before giving a verdict. Figure 5 splits the sample into five equal groups by word count.

  • Jev
  • Qwen3.7 Flash
90%
95%
100%
98.0%97.0%
29–118118–151151–203203–327327–999
Review length, words (five equal-size groups of 200)
View as table
WordsReviewsJevQwen3.7 Flash
29–11820096.0%95.0%
118–15120096.5%97.0%
151–20320095.0%95.5%
203–32720096.0%96.0%
327–99920098.0%97.0%
Figure 5. Accuracy by review length. Each group holds 200 reviews, so each point has a 95% interval of roughly ±3 points. Read the trend, not single points.

4Does Jev know when it’s wrong?

As an evaluation model, Jev returns a probability for each label, not just an answer. A well-calibrated model that says “90% sure” should be right about 90% of the time. Its average confidence was 99.0% on answers it got right and 83.9% on answers it got wrong. The expected calibration error [4] is 2.3 points, which is well calibrated. Qwen3.7 Flash returns only text, so it has no equivalent chart.

0%
25%
50%
75%
100%
perfectly calibrated
50%60%70%80%90%100%
Jev’s probability for the label it chose · bubble area = number of reviews
View as table
Confidence binReviewsMean confidenceAccuracy
50%–55%353.0%0.0%
55%–60%757.6%57.1%
60%–65%663.2%66.7%
65%–70%569.0%80.0%
70%–75%773.0%57.1%
75%–80%278.5%50.0%
80%–85%1083.3%80.0%
85%–90%788.7%57.1%
90%–95%1794.1%70.6%
95%–100%93699.9%98.5%
Figure 6. Reliability diagram for Jev, in 5-point confidence bins. Points below the diagonal are over-confident and points above it are under-confident.

5Error analysis

Accuracy doesn’t show what the mistakes look like. These are the actual reviews the models got wrong, with the human label and each model’s answer.

6Reference models on 1,000 reviews

For scale, two reference models answered all 1,000 reviews of the sample, with the same system prompt and review template as Qwen3.7 Flash and without seeing the labels. All four models land within 3 reviews of each other, well inside one another’s 95% intervals, so on accuracy this task doesn’t separate them; cost and speed do.

ModelCorrectAccuracy95% CIMedian responseCost / 1k reviews
Claude Sonnet 5960 / 1,00096.0%94.6%–97.0%not measured≥ $0.77
Claude Haiku 4.5961 / 1,00096.1%94.7%–97.1%not measured≥ $0.39
Jev963 / 1,00096.3%94.9%–97.3%346 ms$0.0266
Qwen3.7 Flash961 / 1,00096.1%94.7%–97.1%5.7 s$0.0659
Table 2. All models on the same 1,000 reviews. Response times for Jev and Qwen3.7 Flash are from the speed test in Table 1; their costs are the full-run figures at list price. Claude Sonnet 5 and Claude Haiku 4.5 were run through Claude Code subagents rather than AI Gateway, because the gateway account’s free tier doesn’t include them. Each subagent got ten reviews to judge one by one and gave the same one-word answer, inside Claude Code’s own instructions, so this is close to, not identical with, a bare API call. There is no per-request timing, and cost is a lower-bound estimate at list price (Claude Sonnet 5 $2 in / $10 out; Claude Haiku 4.5 $1 in / $5 out per million tokens), with input taken from Qwen’s measured prompt tokens on the same reviews (the tokenizers differ) and output counted as the one-word answer only, excluding any thinking tokens. Haiku skipped a review in 2 of its first 50 batches; each such batch was rerun whole (one needed two reruns).

7Method

Data. The IMDB Large Movie Review dataset [1] labels a review negative if its star rating is 4/10 or lower and positive if it is 7/10 or higher; mid-range reviews are excluded. From the 50,000-review distribution we dropped 419 exact duplicates, converted <br /> tags to line breaks, and drew 500 positive and 500 negative reviews with a seeded shuffle (seed 42). The sample is committed in data/sample.json.

Blinding. A request contains only the review text, the task instructions and the two label definitions below. The reference label stays on disk and is joined back only when scoring.

Models. Both models were called once per review through Vercel AI Gateway with the AI SDK (ai@7.0.113). Jev is an evaluation model, called with experimental_evaluate and a single choice question; it returns the chosen label with a probability for each option. Qwen3.7 Flash is a chat model, called with generateText at temperature 0. Its reply was matched against the words “positive” and “negative”, and a reply containing neither or both counted as no answer (there were none).

Jev · typesafe-ai/jev
{
  "state": "<review text>",
  "questions": {
    "sentiment": {
      "type": "choice",
      "instructions": "Classify the overall sentiment the author expresses toward the film in this IMDB movie review.",
      "criteria": {
        "positive": "The reviewer's overall opinion of the movie is favorable.",
        "negative": "The reviewer's overall opinion of the movie is unfavorable."
      }
    }
  }
}
Qwen3.7 Flash · alibaba/qwen3.7-flash
system
You are a sentiment classifier.
Classify the overall sentiment the author expresses toward the film in this IMDB movie review.
positive: The reviewer's overall opinion of the movie is favorable.
negative: The reviewer's overall opinion of the movie is unfavorable.
Answer with exactly one lowercase word, positive or negative, and nothing else.

user
<review>
<review text>
</review>

Listing 1. The exact requests. Both models get the same instructions and label definitions.

Statistics. Intervals are 95% Wilson score intervals [2]. The two models are compared with a two-sided exact McNemar test [3] (a binomial test on the discordant pairs). Calibration uses expected calibration error [4] over 5-point bins of the evaluation model’s probability for its chosen label.

8Limitations

  • An easier task than real use. Excluding 5–6/10 reviews removes the genuinely ambivalent cases, so real product reviews will score lower.
  • Labels come from star ratings, not the text. A reviewer can write something that reads like a pan and still give it 7 stars. Some of each model’s “errors” may be label noise; the gallery above is the place to check.
  • Possible contamination. IMDB reviews have been public since 2011 and may be in either model’s training data.
  • One run, one prompt. Results are from a single pass with one wording. Different instructions, few-shot examples or a different answer parser could move the numbers by a point or two.
  • Different interfaces. The evaluation model answers in a fixed format; the chat model has to be parsed. That is part of what is being compared, not a flaw to correct for.

References

  1. A. L. Maas, R. E. Daly, P. T. Pham, D. Huang, A. Y. Ng, C. Potts. Learning Word Vectors for Sentiment Analysis. ACL, 2011. ai.stanford.edu/~amaas/data/sentiment
  2. E. B. Wilson. Probable inference, the law of succession, and statistical inference. JASA 22(158), 1927.
  3. Q. McNemar. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika 12(2), 1947.
  4. C. Guo, G. Pleiss, Y. Sun, K. Q. Weinberger. On Calibration of Modern Neural Networks. ICML, 2017.

Data & reproduction

Every answer is filed in data/results.json and in results.csv, one row per review. The site is static and makes no model calls. To re-run:

npm install
cp .env.example .env.local        # add AI_GATEWAY_API_KEY
npm run eval                      # 1,000 reviews × 2 models, resumable
npm run build