Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Model test on public dataPublic labelled text

Self-service measurement

With few labels, language models beat a word-count classifier: given contact-reason definitions I wrote with the dataset's 77 category names in view, four models agreed with the dataset on 87.7% to 90.1% of banking queries, against 57.2% for the word-count classifier after 100 labelled messages.

With 2,400 labels the word-count classifier, called bag of words below, caught up: 90.0% (88.9% to 91.0%), level with the best model, after 77.4% at 400 and 83.8% at 800 (medians of 200 random samples of labels). Each model ran once, so run-to-run noise is not in these figures; the agreement chart further down gives each model's figure with its interval. A contact driver is the reason a customer got in touch; I grouped the dataset's 77 categories, which it calls intents, into six. With 100 labels, use them to measure a classifier, not to correct its driver chart: correcting, which adjusts the shares for the measured errors, made every model's chart worse, as predicted. A measurement on 100 labels was rough but told every model apart from bag of words (after the results). That tag marks a reading I chose once the results were in; it counts toward no prediction.

Key figures
Accuracy with driver names only (after the results) 79.3% to 85.1% The same models with the definitions deleted and only the driver names kept: Claude Haiku 5.5 79.3%, Claude Sonnet 5.5 82.2%, GPT-6 Luna 81.9%, GPT-6.1 Sol 84.6% to 85.1%, depending on which of two answers counts for the 2,480 messages it labelled twice. Three of four fall below bag of words at 800 labels and all four stay ahead of it at 400. How definitions written by someone blind to the categories would do is untested. Correcting a chart with 100 labels 3.3 to 4.0 Correcting with 100 labels moved every model's chart further from the dataset's shares. The figure is the points off at the driver each model gets most wrong, median of 200 random samples of 100 labels; raw labels were off by Claude Haiku 5.5 0.8, Claude Sonnet 5.5 3.3, GPT-6 Luna 2.1, GPT-6.1 Sol 1.6. At 800 labels, on one run of each model, correcting beat raw in 187 of 200 samples for Claude Sonnet 5.5 (3.3 to 1.7) and 140 for GPT-6 Luna (2.1 to 1.8), about half (96) for GPT-6.1 Sol, and only 24 for Claude Haiku 5.5, which had the smallest raw gap. A prompt change the driver chart's alarm could not detect at this size 9.0% to 13.6% Messages that changed driver when the driver definitions were deleted, against 1.9% to 7.1% that changed between two runs of the same prompt in new batches, on average (Claude Haiku 5.5: 13.6% against 7.1%); accuracy fell 5.0 to 8.5 points. The alarm fired about as often as with no change. After the results: at 118 messages a period it needs a rise of about 10.1 to 15.1 points, against 4.3 at most here. GPT-6.1 Sol, the low end, answered some requests twice, and I chose which answer counts after the results; its second answers give 10.1% and 5.5 points.

Main limitation The reference is the dataset's own labels grouped by my taxonomy, not ground truth: a published paper reports that over 1,400 (14%) of its training queries may be mislabelled. An independent author who saw only my definitions reproduced my grouping on 77 of 77 intents, which shows the definitions spell it out, not that it is the only sensible one. BANKING77 and its test labels are public, so the language models may have met these messages and their categories in their training data, which would favour them over bag of words; I did not test for it.

In plain words

A support lead reads a chart of why customers contact the team, and each slice of it comes from a classifier tagging each message with a contact driver. This study's support metrics page simulated that classifier from confusion matrices I set, and recommended measuring it on a labelled sample, correcting the shares with it, and logging every version. That page's classifier was an assumption. Here the classifiers are working models labelling public text, scored against another team's intent labels, grouped by me.

I grouped the dataset's 77 intents into six drivers before anything ran. Then five classifiers labelled the same messages. Bag of words with logistic regression learns from labels, so at a budget of 100, 400 or 800 it trains on them and checks itself on labels it was not trained on, holding back a different part of them each time. Four language models get the driver definitions and no labels, and use labels only for measuring. For each classifier I compared raw label shares and corrected shares with the dataset's shares, on the published mix and on a declared spike, over 200 random draws of the labels. Then I deleted the definitions from the prompt and read what changed.

Bag of words
A simple text classifier: it counts which words appear in a message and learns from labelled examples which counts go with which driver.
Worst-driver gap
The largest gap of the six, in points, between a driver's share and the dataset's share. A driver chart fails at its worst driver.
Confusion matrix
How often each true driver gets each label. Here it is measured against the dataset's grouped labels.
Corrected shares
Label shares with the measured matrix solved out of them, the support metrics page's method. It assumes a given driver gets each label in the same proportions in the sample and in the stream.
Stream
The messages being classified: the dataset's test split, with every intent appearing exactly 40 times. That is the published mix; the spike mix doubles one driver's share by sampling from it.
The six drivers, as the prompt defines them
Getting a card
Ordering, delivery, activation, linking or replacing a card, including virtual and extra cards.
Something failed or is stuck
A payment, transfer, top-up or withdrawal that was declined, is pending, failed, was reverted or has not arrived; a card or a balance that is not working as it should.
Fees and exchange rates
A charge, fee or exchange rate the customer asks about or disagrees with.
Fraud, disputes and money back
An unrecognised or duplicated transaction, a lost, stolen or compromised card or phone, a refund, cancelling a transfer, or receiving the wrong amount of cash.
Identity and account access
Verifying identity or source of funds, a verification code, a pin or passcode, personal details, or closing the account.
How-to and product questions
What is supported, where and how something works, limits, and the ways to top up or to send and receive money.

Agreement, and what the driver chart shows

Agreement, per model

Share of the 3,080 stream messages on which each classifier agreed with the dataset's driver. Language models: no labels, the definitions in the prompt, one run, with the 95% interval. Bag of words: the median of 200 draws at each label budget with the 5th to 95th percentile, and one fit on all 2,400 labels with its 95% interval. The scale starts at 50%.
50%60%70%80%90%Language models, no labelsClaude Haiku 5.5: agreed with the dataset on 87.7% of 3,080 messages (95% interval 86.5% to 88.8%), with the driver definitions in the prompt and no labels, one runClaude Haiku 5.5Claude Sonnet 5.5: agreed with the dataset on 88.4% of 3,080 messages (95% interval 87.3% to 89.5%), with the driver definitions in the prompt and no labels, one runClaude Sonnet 5.5GPT-6 Luna: agreed with the dataset on 88.6% of 3,080 messages (95% interval 87.5% to 89.7%), with the driver definitions in the prompt and no labels, one runGPT-6 LunaGPT-6.1 Sol: agreed with the dataset on 90.1% of 3,080 messages (95% interval 89.0% to 91.1%), with the driver definitions in the prompt and no labels, one runGPT-6.1 SolBag of wordsBag of words trained on 100 labels: agreed with the dataset on 57.2%, median of 200 draws (5th to 95th percentile 52.2% to 61.9%)100 labelsBag of words trained on 400 labels: agreed with the dataset on 77.4%, median of 200 draws (5th to 95th percentile 75.3% to 79.1%)400 labelsBag of words trained on 800 labels: agreed with the dataset on 83.8%, median of 200 draws (5th to 95th percentile 82.9% to 84.9%)800 labelsBag of words trained on all 2,400 labels: agreed with the dataset on 90.0%, one fit (95% interval 88.9% to 91.0%)2,400 labels
Show the data, with kappa and cost
Agreement with the dataset on 3,080 messages. Language models: no labels, definitions in the prompt, 95% intervals. Bag of words: median of 200 draws with the 5th to 95th percentile, and one fit on all 2,400.
ClassifierAccuracyCohen's kappaUS$ per 1,000 messages
Claude Haiku 5.587.7%86.5% to 88.8%0.850.84 to 0.87US$0.005
Claude Sonnet 5.588.4%87.3% to 89.5%0.860.85 to 0.87US$0.087
GPT-6 Luna88.6%87.5% to 89.7%0.860.85 to 0.88not priced
GPT-6.1 Sol90.1%89.0% to 91.1%0.880.87 to 0.89not priced
Bag of words, 100 labels57.2%52.2% to 61.9%0.470.40 to 0.53no call
Bag of words, 400 labels77.4%75.3% to 79.1%0.720.70 to 0.74no call
Bag of words, 800 labels83.8%82.9% to 84.9%0.800.79 to 0.82no call
Bag of words, 2,400 labels90.0%88.9% to 91.0%0.88no call

Cost is per 1,000 messages from the usage the API reported; the two GPT models have no per-message price here. The 95% intervals cover which messages were sampled and leave out run-to-run noise: three same-prompt runs on 1,000 messages read Claude Haiku 5.5 87.0% to 89.2%, Claude Sonnet 5.5 88.9% to 89.7%, GPT-6 Luna 88.5% to 89.7%, GPT-6.1 Sol 90.1% to 91.2%.

Against bag of words' first 800-label draw, which read 83.5%, with 95% paired intervals that hold that training sample fixed: Claude Haiku 5.5 4.3 points more (2.8 to 5.7; 3.9 over the median draw), Claude Sonnet 5.5 5.0 points more (3.4 to 6.6; 4.6 over the median draw), GPT-6 Luna 5.2 points more (3.7 to 6.8; 4.8 over the median draw), GPT-6.1 Sol 6.6 points more (5.0 to 8.2; 6.2 over the median draw). Worked out after the results, the leads over its 95th percentile draw still read 2.9 to 5.2. Between the two Claude models I can't tell at this size: Claude Sonnet 5.5 led by 0.7 points, interval minus 0.3 to +1.8. GPT-6.1 Sol led GPT-6 Luna by 1.4, interval +0.7 to +2.1. Neither result ranks models beyond this dataset.

In 168 messages (5.5%, interval 4.7% to 6.3%) all four models agree with each other against the reference, so part of what reads as model error may be the reference's. They concentrate in a few intents, such as ordering a physical card, where my grouping and a message's plain sense can differ.

Raw against corrected shares

Points between each classifier's share and the dataset's share at the worst of six drivers, on the published mix, per label budget. The line is the 5th to 95th percentile of the corrected reading over 200 draws. The scale stops at 12 points; a figure at the right edge gives a median beyond it.

Raw labelsCorrected, median of draws

024681012Claude Haiku 5.5Claude Haiku 5.5, 100 labels: raw shares 0.8 points from the dataset at the worst driver; corrected shares 4.0 (5th to 95th percentile 1.7 to 9.1); corrected beat raw in 1 of 200 draws100 labelsClaude Haiku 5.5, 400 labels: raw shares 0.8 points from the dataset at the worst driver; corrected shares 1.8 (5th to 95th percentile 0.9 to 3.5); corrected beat raw in 8 of 200 draws400 labelsClaude Haiku 5.5, 800 labels: raw shares 0.8 points from the dataset at the worst driver; corrected shares 1.3 (5th to 95th percentile 0.7 to 2.2); corrected beat raw in 24 of 200 draws800 labelsClaude Sonnet 5.5Claude Sonnet 5.5, 100 labels: raw shares 3.3 points from the dataset at the worst driver; corrected shares 4.0 (5th to 95th percentile 1.7 to 9.8); corrected beat raw in 71 of 200 draws100 labelsClaude Sonnet 5.5, 400 labels: raw shares 3.3 points from the dataset at the worst driver; corrected shares 2.1 (5th to 95th percentile 1.0 to 4.4); corrected beat raw in 160 of 200 draws400 labelsClaude Sonnet 5.5, 800 labels: raw shares 3.3 points from the dataset at the worst driver; corrected shares 1.7 (5th to 95th percentile 0.7 to 3.4); corrected beat raw in 187 of 200 draws800 labelsGPT-6 LunaGPT-6 Luna, 100 labels: raw shares 2.1 points from the dataset at the worst driver; corrected shares 3.5 (5th to 95th percentile 1.7 to 8.7); corrected beat raw in 26 of 200 draws100 labelsGPT-6 Luna, 400 labels: raw shares 2.1 points from the dataset at the worst driver; corrected shares 1.9 (5th to 95th percentile 0.9 to 3.8); corrected beat raw in 111 of 200 draws400 labelsGPT-6 Luna, 800 labels: raw shares 2.1 points from the dataset at the worst driver; corrected shares 1.8 (5th to 95th percentile 0.8 to 2.9); corrected beat raw in 140 of 200 draws800 labelsGPT-6.1 SolGPT-6.1 Sol, 100 labels: raw shares 1.6 points from the dataset at the worst driver; corrected shares 3.3 (5th to 95th percentile 1.3 to 7.4); corrected beat raw in 18 of 200 draws100 labelsGPT-6.1 Sol, 400 labels: raw shares 1.6 points from the dataset at the worst driver; corrected shares 1.8 (5th to 95th percentile 0.8 to 3.5); corrected beat raw in 81 of 200 draws400 labelsGPT-6.1 Sol, 800 labels: raw shares 1.6 points from the dataset at the worst driver; corrected shares 1.6 (5th to 95th percentile 0.9 to 2.6); corrected beat raw in 96 of 200 draws800 labelsBag of wordsBag of words, 100 labels: raw shares 14.1 points from the dataset at the worst driver; corrected shares 21.4 (5th to 95th percentile 9.6 to 56.2); corrected beat raw in 46 of 200 draws100 labelsraw 14.1, corrected 21.4Bag of words, 400 labels: raw shares 5.2 points from the dataset at the worst driver; corrected shares 4.4 (5th to 95th percentile 2.0 to 8.3); corrected beat raw in 128 of 200 draws400 labelsBag of words, 800 labels: raw shares 3.2 points from the dataset at the worst driver; corrected shares 2.4 (5th to 95th percentile 1.4 to 3.9); corrected beat raw in 149 of 200 draws800 labels
Show the data
Worst-driver gap in points, published mix, language models
ClassifierRaw labelsCorrected, 100 labelsCorrected, 400 labelsCorrected, 800 labelsCorrected, all 2,400
Claude Haiku 5.50.84.01.7 to 9.11.80.9 to 3.51.30.7 to 2.20.8
Claude Sonnet 5.53.34.01.7 to 9.82.11.0 to 4.41.70.7 to 3.41.8
GPT-6 Luna2.13.51.7 to 8.71.90.9 to 3.81.80.8 to 2.91.6
GPT-6.1 Sol1.63.31.3 to 7.41.80.8 to 3.51.60.9 to 2.61.5
Worst-driver gap in points, published mix, bag of words, which trains on the same labels
LabelsRaw labelsCorrectedCorrected beat raw, of 200 draws
100 labels14.17.2 to 29.221.49.6 to 56.246
400 labels5.22.6 to 9.74.42.0 to 8.3128
800 labels3.21.8 to 4.82.41.4 to 3.9149
2,400 labels1.50.9one fit
Worst-driver gap in points, spike mix, language models
ClassifierRaw labelsCorrected, 100 labelsCorrected, 400 labelsCorrected, 800 labelsCorrected, all 2,400
Claude Haiku 5.51.33.91.7 to 8.81.90.8 to 3.61.30.7 to 2.40.8
Claude Sonnet 5.52.93.61.6 to 8.31.90.9 to 4.01.50.6 to 2.81.5
GPT-6 Luna1.53.31.7 to 7.41.80.8 to 3.21.40.8 to 2.41.3
GPT-6.1 Sol1.33.11.4 to 7.01.80.9 to 3.51.71.0 to 2.71.6
Worst-driver gap in points, spike mix, bag of words, which trains on the same labels
LabelsRaw labelsCorrectedCorrected beat raw, of 200 draws
100 labels18.27.0 to 35.122.88.3 to 58.366
400 labels7.74.3 to 11.94.82.0 to 10.3151
800 labels4.83.4 to 6.72.61.3 to 5.3178
2,400 labels2.41.4one fit
Total variation distance in points, and how often correcting won, published mix
Classifier and labelsTotal variation, rawTotal variation, correctedCorrected beat raw on the worst driver, of 200 draws
Claude Haiku 5.5, 100 labels1.35.52.4 to 10.810% to 3%
Claude Haiku 5.5, 400 labels1.32.71.3 to 4.582% to 8%
Claude Haiku 5.5, 800 labels1.32.01.2 to 3.3248% to 17%
Claude Sonnet 5.5, 100 labels4.05.42.4 to 11.57129% to 42%
Claude Sonnet 5.5, 400 labels4.03.11.6 to 5.316074% to 85%
Claude Sonnet 5.5, 800 labels4.02.41.1 to 3.818789% to 96%
GPT-6 Luna, 100 labels2.75.12.7 to 10.9269% to 18%
GPT-6 Luna, 400 labels2.72.71.2 to 4.811149% to 62%
GPT-6 Luna, 800 labels2.72.31.2 to 3.414063% to 76%
GPT-6.1 Sol, 100 labels2.54.72.2 to 9.8186% to 14%
GPT-6.1 Sol, 400 labels2.52.61.3 to 4.48134% to 47%
GPT-6.1 Sol, 800 labels2.52.31.2 to 3.79641% to 55%
Bag of words, 100 labels19.628.612.0 to 61.54618% to 29%
Bag of words, 400 labels7.16.23.3 to 11.512857% to 70%
Bag of words, 800 labels4.13.72.0 to 5.714968% to 80%
Total variation distance in points, and how often correcting won, spike mix
Classifier and labelsTotal variation, rawTotal variation, correctedCorrected beat raw on the worst driver, of 200 draws
Claude Haiku 5.5, 100 labels1.95.52.7 to 11.241% to 5%
Claude Haiku 5.5, 400 labels1.92.81.3 to 4.83714% to 24%
Claude Haiku 5.5, 800 labels1.92.11.2 to 3.49239% to 53%
Claude Sonnet 5.5, 100 labels2.95.02.1 to 10.46526% to 39%
Claude Sonnet 5.5, 400 labels2.92.81.3 to 5.016074% to 85%
Claude Sonnet 5.5, 800 labels2.92.11.0 to 3.419091% to 97%
GPT-6 Luna, 100 labels2.04.82.5 to 9.841% to 5%
GPT-6 Luna, 400 labels2.02.71.3 to 4.36627% to 40%
GPT-6 Luna, 800 labels2.02.11.2 to 3.310747% to 60%
GPT-6.1 Sol, 100 labels2.34.42.1 to 8.931% to 4%
GPT-6.1 Sol, 400 labels2.32.71.5 to 4.74216% to 27%
GPT-6.1 Sol, 800 labels2.32.51.5 to 3.94115% to 27%
Bag of words, 100 labels24.231.212.7 to 64.16627% to 40%
Bag of words, 400 labels9.76.83.2 to 13.515169% to 81%
Bag of words, 800 labels6.04.02.1 to 7.017884% to 93%

Below each median, the 5th to 95th percentile over 200 draws. Below each count of draws, its Wilson 95% interval as a share of draws. Total variation is half the summed gap across all six drivers. All results.

At 100 labels the correction is worse than leaving the labels alone, for every language model and for bag of words (14.1 raw, 21.4 corrected, with the 95th percentile of draws at 56.2 points; in 23 of those draws the matrix could not be solved and they keep raw shares). A matrix from about 17 messages a driver is mostly noise. At 400 labels it depends on the model: better for Claude Sonnet 5.5 (3.3 to 2.1), about level for GPT-6 Luna (2.1 to 1.9) and GPT-6.1 Sol (1.6 to 1.8), worse for Claude Haiku 5.5 (0.8 to 1.8). At 800 labels correcting beat raw in 187 of 200 draws for Claude Sonnet 5.5, which had the largest raw gap, and in only 24 for Claude Haiku 5.5, which had the smallest. A small raw gap can hide errors that cancel: Claude Haiku 5.5 sat 0.8 points off with about one message in eight disagreeing with the dataset. Those raw gaps come from one run. Worked out after the results, over three same-prompt runs on 1,000 messages they read Claude Haiku 5.5 1.2 to 2.1, Claude Sonnet 5.5 2.6 to 2.8, GPT-6 Luna 1.4 to 2.0, GPT-6.1 Sol 1.3 to 2.2, so only Claude Sonnet 5.5's larger gap stands apart.

Even with all 2,400 pool labels the correction leaves a gap: the language models still sat 0.8 to 1.8 points off. Part of that is the matrix's own sampling error, since it rests on 267 to 621 messages a driver, and part may be that confusion differs between the pool, which keeps the train split's mix of intents, and the stream, which is balanced by intent. I did not separate the two.

A built shift: one driver doubles

The published mix cannot show what raw labels do to a change in mix, so the design builds one by sampling from the same messages. On the spike mix, the fraud, disputes and money back driver rises from 14.3% to 28.0%, a true rise of 13.7 points. Language models' raw labels showed 90% to 94% of it. Bag of words showed 36% at 100 labels, 67% at 400 and 78% at 800, so a weak classifier flattens the kind of spike a team wants to see. Correcting bag of words with 400 or 800 labels brought it back and overshot a little (15.2 and 14.8 points). The spike reuses the same messages and labels, so the correction's assumption nearly holds here by construction, and part of that recovery is built in.

One likely cause of the overshoot, worked out after the results and not tested as a cause: the matrix comes from models trained on 80% of the labels. At 800 it puts the share of fraud, disputes and money back messages labelled that way at 74.8% where the final model reads 78.6%, which pushes the corrected share high.

Show the data
A true rise of 13.7 points in one driver: what each language model shows
ClassifierRaw rise, pointsShare of the true rise raw labels showCorrected rise, 100 labelsCorrected rise, 400 labelsCorrected rise, 800 labels
Claude Haiku 5.512.490%13.812.5 to 16.213.813.1 to 14.913.813.3 to 14.4
Claude Sonnet 5.512.994%13.512.9 to 15.613.713.2 to 14.313.613.3 to 13.9
GPT-6 Luna12.591%13.412.5 to 15.213.412.9 to 14.113.413.1 to 13.9
GPT-6.1 Sol12.792%12.912.7 to 14.513.112.8 to 13.613.112.9 to 13.4
The same rise, bag of words
LabelsShare of the true rise raw labels showCorrected rise, points
100 labels36%10.20.0 to 26.3
400 labels67%15.212.6 to 18.8
800 labels78%14.813.4 to 16.4

The confusion matrices at 100, 400 and 800 labels

Row shares in percent for each classifier: the first draw at each budget, then the matrix measured on the whole stream, which only a dataset with labels allows. Letters are the drivers above. The median cell error shrinks with labels for every classifier. Bag of words sits at 6.6, 3.0 and 1.9 points at 100, 400 and 800 labels, still above every language model at 400.

Claude Haiku 5.5
Claude Haiku 5.5, estimated from 100 labelled messages (first draw); median cell error over 200 draws 3.0 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card71060024
Something failed or is stuck4850704
Fees and exchange rates0092800
Fraud, disputes and money back0809200
Identity and account access00001000
How-to and product questions141400568
Claude Haiku 5.5, estimated from 400 labelled messages (first draw); median cell error over 200 draws 1.6 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card8400079
Something failed or is stuck2850715
Fees and exchange rates0089605
Fraud, disputes and money back01108702
Identity and account access0200935
How-to and product questions5330090
Claude Haiku 5.5, estimated from 800 labelled messages (first draw); median cell error over 200 draws 1.2 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card8302187
Something failed or is stuck2890504
Fees and exchange rates0193204
Fraud, disputes and money back1509112
Identity and account access0000937
How-to and product questions3700189
Claude Haiku 5.5, measured on all 3,080 stream messages
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card7814098
Something failed or is stuck2880306
Fees and exchange rates0093304
Fraud, disputes and money back1509111
Identity and account access0100945
How-to and product questions6610185
Claude Sonnet 5.5
Claude Sonnet 5.5, estimated from 100 labelled messages (first draw); median cell error over 200 draws 2.9 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card8806006
Something failed or is stuck4890007
Fees and exchange rates0892000
Fraud, disputes and money back00010000
Identity and account access00001000
How-to and product questions51400082
Claude Sonnet 5.5, estimated from 400 labelled messages (first draw); median cell error over 200 draws 1.5 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card71044713
Something failed or is stuck1890209
Fees and exchange rates0088606
Fraud, disputes and money back0609400
Identity and account access02008612
How-to and product questions8500087
Claude Sonnet 5.5, estimated from 800 labelled messages (first draw); median cell error over 200 draws 1.2 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card71083811
Something failed or is stuck2890306
Fees and exchange rates0091505
Fraud, disputes and money back1119602
Identity and account access0000928
How-to and product questions5500091
Claude Sonnet 5.5, measured on all 3,080 stream messages
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card79041710
Something failed or is stuck2890207
Fees and exchange rates0089308
Fraud, disputes and money back0109701
Identity and account access01008612
How-to and product questions5500089
GPT-6 Luna
GPT-6 Luna, estimated from 100 labelled messages (first draw); median cell error over 200 draws 2.8 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card9406000
Something failed or is stuck0890704
Fees and exchange rates0892000
Fraud, disputes and money back00010000
Identity and account access00001000
How-to and product questions51400577
GPT-6 Luna, estimated from 400 labelled messages (first draw); median cell error over 200 draws 1.5 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card8202079
Something failed or is stuck3880306
Fees and exchange rates0089506
Fraud, disputes and money back0209404
Identity and account access0200952
How-to and product questions8600086
GPT-6 Luna, estimated from 800 labelled messages (first draw); median cell error over 200 draws 1.2 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card7905097
Something failed or is stuck4880404
Fees and exchange rates0088507
Fraud, disputes and money back2129213
Identity and account access0000982
How-to and product questions4500189
GPT-6 Luna, measured on all 3,080 stream messages
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card8103087
Something failed or is stuck3850507
Fees and exchange rates0192206
Fraud, disputes and money back1109520
Identity and account access1000953
How-to and product questions6600088
GPT-6.1 Sol
GPT-6.1 Sol, estimated from 100 labelled messages (first draw); median cell error over 200 draws 2.4 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card9406000
Something failed or is stuck0890704
Fees and exchange rates00100000
Fraud, disputes and money back00010000
Identity and account access00001000
How-to and product questions51400082
GPT-6.1 Sol, estimated from 400 labelled messages (first draw); median cell error over 200 draws 1.3 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card73042119
Something failed or is stuck1880308
Fees and exchange rates0094303
Fraud, disputes and money back00010000
Identity and account access0200952
How-to and product questions6600087
GPT-6.1 Sol, estimated from 800 labelled messages (first draw); median cell error over 200 draws 1.1 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card74081134
Something failed or is stuck1890504
Fees and exchange rates0194203
Fraud, disputes and money back0009811
Identity and account access0000973
How-to and product questions6500089
GPT-6.1 Sol, measured on all 3,080 stream messages
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card80040105
Something failed or is stuck1880406
Fees and exchange rates0093304
Fraud, disputes and money back0109620
Identity and account access0000982
How-to and product questions7500088
Bag of words
Bag of words, estimated from 100 labelled messages (first draw); median cell error over 200 draws 6.6 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card531860024
Something failed or is stuck117400015
Fees and exchange rates01577008
Fraud, disputes and money back846031015
Identity and account access038001250
How-to and product questions231455055
Bag of words, estimated from 400 labelled messages (first draw); median cell error over 200 draws 3.0 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card80112007
Something failed or is stuck2902106
Fees and exchange rates23832011
Fraud, disputes and money back03485702
Identity and account access512256710
How-to and product questions31910077
Bag of words, estimated from 800 labelled messages (first draw); median cell error over 200 draws 1.9 points
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card7397219
Something failed or is stuck2930302
Fees and exchange rates1585207
Fraud, disputes and money back31457612
Identity and account access2803833
How-to and product questions3910185
Bag of words, measured on all 3,080 stream messages, first 800-label draw
True \ labelGetting a cardSomething failed or is stuckFees and exchange ratesFraud, disputes and money backIdentity and account accessHow-to and product questions
Getting a card7881247
Something failed or is stuck3920104
Fees and exchange rates04814011
Fraud, disputes and money back41228011
Identity and account access3805822
How-to and product questions41110282

A worked example

One message, picked by a rule fixed before the run: the first stream message in the dataset's order where all four models give the dataset's driver with the definitions and at least one gives another driver with the definitions deleted. It is row 10 of the test split.

How do I track my card?

The same message, labelled each way
The dataset's intentcard_arrival
My driver for that intentGetting a card
Prompt with definitionsAll four models A
Prompt with the definitions deletedClaude Haiku 5.5 F, the other three A
Bag of words, first 800-label drawA

Someone tracking a card is waiting for one, and the definitions put that under getting a card. With the definitions gone, Claude Haiku 5.5 read the same words as a how-to question and the other three models stayed where they were. Nothing in a share chart would point at this message.

Changing one thing about the prompt

The simulated page's classifier relabel showed up as a jump in a driver series. I expected the same here, and at this size the test could not show it either way. I deleted the driver definitions, kept the names, and ran the same messages through the same batches. Between 9.0% and 13.6% of messages changed driver, and accuracy fell 5.0 to 8.5 points per model. But the changes run in both directions, so no driver's share moved more than 4.3 points.

Show the data, per model
What deleting the definitions did, per model, on the same messages
ModelMessages that changed driverChanged with no prompt change, in new batchesAccuracy lost, pointsLargest raw share move, pointsLargest move after correcting, pointsFalse alarms, raw, of 200False alarms, corrected, of 200False alarms, no prompt change, of 200
Claude Haiku 5.513.6%12.4% to 14.9%7.1%+8.5+7.3 to +9.61.6Fees and exchange rates2.51.4 to 4.7248% to 17%3814% to 25%279% to 19%
Claude Sonnet 5.511.0%10.0% to 12.2%5.0%+6.2+5.1 to +7.33.2Fraud, disputes and money back2.41.2 to 5.02910% to 20%3111% to 21%248% to 17%
GPT-6 Luna12.9%11.7% to 14.1%4.4%+6.7+5.5 to +7.93.3Something failed or is stuck3.31.4 to 6.13513% to 23%3613% to 24%279% to 19%
GPT-6.1 Sol9.0%8.1% to 10.1%1.9%+5.0+4.0 to +6.04.3How-to and product questions2.10.8 to 5.23212% to 22%4618% to 29%259% to 18%

Below each count of false alarms, its Wilson 95% interval as a share of 200 shuffles.

The dataset has no dates, so I split the stream into 26 artificial periods of 118 messages, 200 times over, used labels from the prompt with definitions for periods 1 to 13 and from the prompt without them for the rest, and ran the support metrics page's alarm rule on each driver series. Raw labels raised a false spike at the switch in 24 to 35 of 200 shuffles, about what the same models raised with no change at all (24 to 27) and what the dataset's own labels raised by chance (26, interval 9% to 18%). Correcting with 400 labels did not lower it, and for two models it rose: Claude Haiku 5.5 from 24 to 38 and GPT-6.1 Sol from 32 to 46. Correcting likely adds noise to periods this small; I did not test that.

That test could not detect a change this small at this size. Worked out after the results: at 118 messages a period the rule needs a rise of about 12 to 18 messages, or 10.1 to 15.1 points depending on the driver, and the largest rise here was 4.3 points. So I can't tell at this size. In a simulation at each model's own shares, the alarm fired at 2,000 messages a period from 33% of runs for Claude Haiku 5.5 to 84% for GPT-6.1 Sol, against 6% to 7% with no change. On the simulated page, with about 1,100 new issues a week and a relabel I set, the same kind of rule read it as a spike in 189 of 200 years. So the absence here is about this size of period and this prompt change, not about relabels in general.

The simulation, per model

Alarm rate at 1,100 messages a period: Claude Haiku 5.5 23%, Claude Sonnet 5.5 39%, GPT-6 Luna 37%, GPT-6.1 Sol 58%, against 8% to 10% with no change. At 2,000: Claude Haiku 5.5 33%, Claude Sonnet 5.5 61%, GPT-6 Luna 56%, GPT-6.1 Sol 84%. At 118 messages each simulated rate sits within 10 points of the measured one, the bar declared before this code ran. Each driver's count is drawn independently, and a larger queue is assumed to look like these messages.

There is a noise floor too. Running the same prompt on the same 1,000 messages in new batches changed the driver of 1.9% to 7.1% of messages per model, and for Claude Haiku 5.5 the prompt change moved only 1.9 times that. The two are not like for like: the repeat runs change the batches and the prompt comparison keeps them fixed, and that could bias these ratios either way. Worked out after the results, a partial check: the 33 requests answered twice repeated the same batches under the names-only prompt, and changed 4.7% of GPT-6 Luna's labels (3.5% to 6.5%) and 2.7% of GPT-6.1 Sol's (2.2% to 3.5%), against 4.4% and 1.9% in new batches with the definitions. A fixed batch did not lower the noise there, though the prompt and the messages differ. A same-batch repeat of the main prompt, left to a later round because it needs new model calls, would settle it.

What I predicted, and what held

Eleven predictions with bands were written down before any classifier saw a dataset message. 4 of 11 held, and two of those (the gap left after correcting with all 2,400 labels, and the independent grouping) were weak tests. The misses are the useful part: bag of words learned faster than I guessed, the alarm test could not detect this change at this period size, and same-prompt noise was larger.

The eleven predictions, one by one
Predictions, declared before the run
PredictionResultVerdict
Each language model's accuracy lies between 85% and 96%.Claude Haiku 5.5 87.7%, Claude Sonnet 5.5 88.4%, GPT-6 Luna 88.6%, GPT-6.1 Sol 90.1%held
Bag of words reaches 40 to 58% at 100 labels, 58 to 72% at 400, 65 to 78% at 800.57.2%, 77.4%, 83.8%. It learned faster than I guessed.missed
Each language model beats bag of words at 800 labels by at least 5 points, paired interval above zero.Claude Haiku 5.5 3.9 points, Claude Sonnet 5.5 4.6 points, GPT-6 Luna 4.8 points, GPT-6.1 Sol 6.2 points against the median draw, so three models fell short of 5; the paired intervals, taken against the first draw, all sat above zero.missed
Each language model's raw worst-driver gap is at most 5 points, and bag of words at 800 labels at least 4.Claude Haiku 5.5 0.8, Claude Sonnet 5.5 3.3, GPT-6 Luna 2.1, GPT-6.1 Sol 1.6; bag of words 3.2.missed
At 100 labels, correcting makes the gap larger than raw for at least 3 of 4 language models.4 of 4.held
At 800 labels on the spike mix, correcting does no harm for at least 2 of 4 language models, and for bag of words beats raw in at least 90% of draws.2 of 4; bag of words 178 of 200 draws, just under the bar.missed
With all 2,400 labels, at least one language model still sits above 0.5 points after correcting.Claude Haiku 5.5 0.8, Claude Sonnet 5.5 1.8, GPT-6 Luna 1.6, GPT-6.1 Sol 1.5. Weak test, marked after the results: a matrix from a few hundred messages a driver leaves some gap by sampling error alone, so this could hardly fail.held
On the spike, raw labels show at most 70% of the true rise for bag of words at 800 labels, and at least 85% for each language model.Bag of words 78%; Claude Haiku 5.5 90%, Claude Sonnet 5.5 94%, GPT-6 Luna 91%, GPT-6.1 Sol 92%missed
Deleting the definitions moves 3 to 15% of messages, and at least 3 times the same-prompt flip rate.Claude Haiku 5.5 13.6% (1.9 times), Claude Sonnet 5.5 11.0% (2.2 times), GPT-6 Luna 12.9% (2.9 times), GPT-6.1 Sol 9.0% (4.7 times). The no-change figure comes from new batches and the prompt comparison keeps them fixed, so these ratios could sit off either way; a partial same-batch check, worked out after the results, was no quieter.missed
Raw labels raise a false spike in at least half of the shuffles for at least 2 of 4 language models; correcting lowers it; the dataset's labels raise it in at most 15%.Claude Haiku 5.5 24 raw and 38 corrected, Claude Sonnet 5.5 29 raw and 31 corrected, GPT-6 Luna 35 raw and 36 corrected, GPT-6.1 Sol 32 raw and 46 corrected of 200; the dataset's labels 26. Design error, seen after the results: at this period size the rule needs a rise of 10.1 to 15.1 points, and even the top of the declared band for messages moved by deleting the definitions would reach that only if most of the moved messages landed on one driver.missed
The independent grouping matches mine on at least 65 of 77 intents and moves accuracy by at most 3 points.77 of 77, no move. Weak evidence: my definitions spell the grouping out.held

What a team should do with it

Limits

Use this at your company

Paste this into an AI assistant along with your own messages and labels to run the same checks on your classifier.

This method comes from Diogo Travassos's study "Real classifiers on public banking queries" (https://diogotravassos.dev/self-service-measurement/text-classifier.html). If you can open links, read it first: it works the method through end to end, with its checks. The steps below stand on their own if you can't.

Help me check how far our contact driver chart can be trusted, and whether a language model or a simple classifier should produce it.

Data: a sample of our support messages, our driver definitions, and as many messages as we can label by reason, drawn at random from recent contacts.

Method:
1. Write the driver taxonomy and definitions before running anything, and keep a share of the labelled messages out of every prompt and every training step.
2. Label the messages with a plain bag of words and logistic regression trained on the labels, and with the language models we would actually use, each on its own line.
3. Report agreement on the kept-out messages with 95% intervals, and the confusion matrix per driver.
4. Compute driver shares from the raw labels and corrected with the measured matrix, at 100, 400 and 800 labelled messages drawn at random many times, and compare both with the labelled shares.
5. Run the same prompt twice on the same messages, in the same batches and in new ones, to measure how many change driver with no change at all.
6. Change one thing about the prompt or the model version, and compare per-message agreement and driver shares on the same messages.

Checks before trusting the answer: whether the labelled sample and the live stream have the same mix; whether a small share gap hides errors that cancel; whether a change shows up in per-message agreement but not on the chart; whether the correction beats raw labels at our number of labels; how large a move our chart alarm can detect at our period size.

Report back: each model's agreement and worst-driver share gap side by side; the smallest labelled sample at which correcting helped; the same-prompt noise floor; and the limits, including how good our reference labels are.

In your report, say which study you followed and link it: https://diogotravassos.dev/self-service-measurement/text-classifier.html

Method and checks

Data and terms

BANKING77: 13,083 online-banking queries labelled with 77 intents, 10,003 in the train split and 3,080 in the test split, from the curators' repository, licensed Creative Commons Attribution 4.0 International; URLs, hashes and the sentences checked are in the sources file. On label quality, Ying and Thomas write of the train split: "We found that over 1,400 (14%) of the 10,003 training utterances may have been incorrectly labelled." Pool: 2,400 train messages at random. Stream: the whole test split. Spike mix: all 440 fraud, disputes and money back messages plus 1,131 others in proportion, 1,571 in total, so that driver holds 28%.

Classifiers and prompts

Bag of words: scikit-learn 1.9.1, lowercased word unigrams and bigrams, TF-IDF with sublinear term frequency, logistic regression with C = 10 and no tuning, 5-fold out-of-fold predictions for its matrix (2 of the 200 draws at 100 labels used 3 folds, because a driver held only 3 messages). Two other settings, medians of 40 draws each: C = 1 reads 79.2% accuracy at 800 labels, raw gap 7.8, corrected 4.5; C = 100 reads 84.5% accuracy at 800 labels, raw gap 2.7, corrected 2.3. At 100 labels C = 1 reads 45.6% and C = 100 reads 59.0%, against 57.2% for C = 10 over all 200 draws, so no setting tried brings bag of words near the language models there. Language models: Claude Haiku 5.5 and Claude Sonnet 5.5 at low effort, GPT-6 Luna and GPT-6.1 Sol at low reasoning effort, read-only. 100 messages a call, in one shuffled order, with the same batches for every model and both prompts. Exact prompts are in the taxonomy file.

Failures and repeats

No model refused and no message stayed unlabelled: 0 unlabelled and 0 refusals across the main runs. The three same-prompt runs are under the agreement table. All other language-model figures come from one run.

Duplicate answers: a rule added after the results. 33 requests with the definitions deleted were answered twice: 8 for GPT-6 Luna and 25 for GPT-6.1 Sol. Every figure here uses the first answer stored for each request, a rule added after the results. 37 of 780 and 68 of 2,480 labels differ between the two answers. Beside each other, as first answers, frozen rule and repeat answers: GPT-6 Luna's accuracy with the definitions deleted reads 81.9%, 81.9% and 81.8%, its moved messages 12.9%, 12.9% and 12.8%, its false alarms 35, 36 and 33. GPT-6.1 Sol's read 85.1%, 84.8% and 84.6%, then 9.0%, 9.6% and 10.1%, then 32, 31 and 34. No prediction's verdict changes under any of the three. Both sets of answers are in the download.

Intervals and draws

Accuracy: Wilson 95%, covering which messages were sampled and not run-to-run noise. Kappa: bootstrap 95% over messages, 1,000 resamples. Paired differences: bootstrap 95%, 2,000 resamples, language model against the first 800-label draw of bag of words, holding that training sample fixed. Budgets: 200 seeded draws from the pool, the same for every classifier; ranges are the 5th to 95th percentile. Counts of draws and of shuffles: Wilson 95%, which treats them as independent; they share one pool and one stream, so those intervals are rough. Corrected shares: negative estimates set to zero, then rescaled. No driver was missing from any draw. For bag of words at 100 labels, 23 of 200 matrices could not be solved, because a driver was never predicted out of fold; those draws keep raw shares and cannot count as wins, and without them the median reads 21.6 instead of 21.4. Every other matrix solved. Alarm rule: baseline the median of the previous 12 periods, scale the larger of 1.4826 times the median absolute deviation and 2% of the median, spike at z of 4 or more, in period 14 or 15, on any driver series.

The independent grouping

An independent author who never saw my grouping, the models' labels or any result grouped the 77 intent names under the six definitions, once, before the main run. It matched mine on 77 of 77. It graded nothing. Because the definitions were written with the intents in view, this shows they are precise, not that the grouping is the only sensible one.

Runs and reproduction

The design, with its eleven predictions and the taxonomy, was declared before any classifier saw a dataset message; the frozen protocol, before the main run. The stored answers and results came after it, so it does not cover them. The duplicate-answer rule above is the only change to a scored figure. Figures marked as worked out, or tagged, after the results are declared in the follow-up file before their code ran, after the results were seen. They were built for results already read, and none enters the count of predictions that held. python3 -B -m textclass.analysis --verify rebuilds every result with no key and no network. The model calls themselves are not re-run by the download; prompts, batches and answers are all there.