LIVE · Thursday 3 December

Best Models for Intent Classification: ModernBERT With Labels, SetFit With Few, DeBERTa-v3 With None

The right intent classifier depends on how many labeled examples you have. Here is how ModernBERT, SetFit, DeBERTa-v3 zero-shot, open LLMs and Parsec's TOD compare on BANKING77 and CLINC150, and how to test them yourself.

By Nick9 min read

For intent classification with a stable intent list and labeled data, fine-tune answerdotai/ModernBERT-base and compare it with the large version. With only a few labeled examples per intent, train SetFit on sentence-transformers/all-mpnet-base-v2. With no labels at all, start with MoritzLaurer/deberta-v3-large-zeroshot-v2.0 or a prompted open model such as Mistral-7B-Instruct-v0.3. No public intent classification benchmark ranks all of these on BANKING77 and CLINC150 under one protocol, so the final choice has to come from a test on your own messages.

The amount of labeled data decides which model family fits

Intent classification assigns a message such as "my card hasn't arrived" to one label from a fixed list. The models that do this well fall into three groups. The group that suits you depends mainly on how many labeled examples you can supply for each intent.

The following table gives a starting shortlist for each situation.

Your situation Model to try first Licence
Stable intents, many labels each ModernBERT-base or -large, fine-tuned Apache 2.0
A few labels per intent SetFit with all-mpnet-base-v2 Apache 2.0
No labels, English deberta-v3-large-zeroshot-v2.0 MIT base, mixed data
A few labels, many languages SetFit with paraphrase-multilingual-MiniLM-L12-v2 Apache 2.0
No labels, prompt-based Mistral-7B-Instruct-v0.3 or Qwen2.5-3B-Instruct Apache 2.0 or qwen-research
Scoring options in front of an existing assistant Parsec TOD, release of 29 September 2026 Apache 2.0 adapters, Gemma 4 base

Rules are enough when you have a handful of intents that are separated by fixed words, such as "cancel" or "refund", and a wrong guess is cheap. An unmodified zero-shot model is enough when the intent list changes every week and nobody can label data. Fine-tuning deserves an experiment once you can collect labeled examples and a misrouted message costs real money or time.

ModernBERT needs fine-tuning before it can classify intents

ModernBERT is an encoder model that Answer.AI and LightOn released on December 19, 2024. The base model has 149 million parameters and the large model has 395 million. Both accept inputs of up to 8,192 tokens, which helps when the conversation history matters for the intent.

The release blog says that, out of the box, ModernBERT only predicts masked words. To classify, you "fine-tune it following standard BERT fine-tuning recipes." That makes it the right family when you already hold a labeled set and the intent list does not change often.

The model card reports a GLUE score of 88.4 for ModernBERT-base, against 88.1 for DeBERTaV3-base. At the large size the order reverses, with 90.4 for ModernBERT against 91.4 for DeBERTaV3. The blog says that ModernBERT is about twice as fast as DeBERTa and uses less than one-fifth of its memory. GLUE is a general language benchmark rather than an intent benchmark, so these figures support a place on the shortlist and not a win on your data. The card also says that you need transformers 4.48.0 or later.

SetFit learns intents from a few examples by training on pairs

SetFit is a training method rather than a model. The 2022 paper by Tunstall and colleagues describes two steps. First, a sentence-transformer model is fine-tuned on pairs of examples, so that messages with the same intent move closer together. Then a small classification head is trained on the resulting embeddings. The method needs no prompts.

The SetFit documentation gives one comparison. With 8 labeled examples per class on a sentiment dataset, SetFit was competitive with RoBERTa Large trained on the full 3,000 examples. That is a sentiment result, not an intent result. The paper says that SetFit trains an order of magnitude faster than the prompt-based methods that it was compared against.

The underlying model matters, because SetFit inherits its limits. The all-mpnet-base-v2 card says that the model was trained on over 1 billion sentence pairs and that it truncates inputs longer than 384 word pieces. For other languages, the SetFit docs say that you can swap in any multilingual sentence transformer. The paraphrase-multilingual-MiniLM-L12-v2 card lists 50 languages and a maximum sequence length of 128 tokens. Its card gives no quality metrics, so each language needs its own test.

DeBERTa-v3 zero-shot scores every intent as a separate hypothesis

A zero-shot NLI model turns each intent into a sentence, such as "This text is about a refund request." It then judges whether the message supports that sentence. The Transformers documentation says that each pair of message and label "will be posed as a premise/hypothesis pair and passed to the pretrained model." A list of 77 intents therefore means 77 pairs for every message.

The card for deberta-v3-large-zeroshot-v2.0 reports results on 28 classification tasks with macro-F1. Across those tasks, the model averages 0.673, against 0.497 for facebook/bart-large-mnli. On BANKING77 the zero-shot score is 0.567. The card also prints 0.766 for BANKING77, but that figure comes from training on up to 500 examples per class from the evaluation data, so it is not a zero-shot result.

Licensing affects the choice of checkpoint. The card says that the "-c" variants use only commercially friendly training data, while the version without "-c" adds datasets under mixed licences. The model accepts up to 512 tokens. For non-English text, the card recommends a bge-m3 model or machine translation into English.

Prompted open models lead a 41-model zero-shot intent classification benchmark

A preprint submitted on July 29, 2026 tested 41 open-weight models, from 135 million to 9 billion parameters, on eight English intent datasets that include BANKING77 and CLINC150. Mistral-7B-Instruct-v0.3 ranked first, with an aggregate accuracy of 0.660. Qwen2.5-3B-Instruct scored 0.632 and was the most accurate model under 4 billion parameters.

The authors state the limits of the study plainly. The leading models on MASSIVE were statistically indistinguishable under pairwise tests, and SNIPS was saturated, with 32 of 41 models above 80%. The evaluation did not handle out-of-scope messages. Its prompts listed every valid label, and outputs were matched as exact text without constrained decoding.

The study reports 48.5 ms per message for Mistral and 20.8 ms for Qwen, on V100 GPUs in float16 with vLLM. Peak memory was 13.51 GB and 5.79 GB. Licences differ in a way that matters for production. Mistral-7B-Instruct-v0.3 is Apache 2.0, while Qwen2.5-3B-Instruct carries the qwen-research licence.

Parsec's TOD scores a supplied list of options instead of generating a label

Parsec describes TOD as a decision model that ranks options from a list that the caller supplies, and it generates no free text. Its predict(state, options, question, images) call returns one probability per option, and the probabilities sum to 1. An intent list can be passed as the options. Parsec's page says that a confidence gate sends unconfident turns unchanged to the existing LLM. Parsec prices TOD at $0.30 per 1,000 decisions and reports a p95 forward pass of 121 ms on one H100 in bf16. Those are Parsec's own figures, and the cost of turns that go to the parent LLM is extra.

The release on Hugging Face consists of LoRA adapters on google/gemma-4-12B-it plus a ModernBERT-base retriever. The base weights are not included, and users must accept the Gemma 4 licence. The repo advises against sdpa attention and bitsandbytes int8 when serving it. Parsec has not published TOD results on the full BANKING77 or CLINC150 test sets under a protocol that is shared with other models. Scoring an intent also does not fill in the details of an action or authorize the system to carry it out.

Published scores cannot be compared directly across these models

The numbers above come from different setups. The DeBERTa card reports macro-F1, the 41-model study reports accuracy, and ModernBERT has no published intent score at all. None of these sources reports out-of-scope rejection, calibration on your intents, p95 latency on the same hardware, or total cost. Nobody has measured all of these models side by side on BANKING77 and CLINC150 under one protocol.

BANKING77 and CLINC150 test different things, so a fair test uses both. BANKING77 has 13,083 banking queries across 77 fine-grained intents, with 10,003 for training and 3,080 for testing. It has no out-of-scope class. CLINC150 has 150 intents across 10 domains plus out-of-scope queries. Its authors found that classifiers handle in-scope queries well but struggle to reject out-of-scope ones.

A reproducible test needs fixed splits, three supervision levels and five measurements

A comparison that you can trust follows the same rules for every model. The following steps make the results reproducible.

  1. Use the official splits of both datasets: 10,003 training and 3,080 test queries for BANKING77, and 100 training, 20 validation and 30 test queries per intent for CLINC150.
  2. Run three supervision levels for each model: zero-shot, a fixed few-shot sample such as 8 or 10 examples per intent, and full training.
  3. Publish the label descriptions, prompts, seeds and tuning budget that each model used, with the code.
  4. Tune every rejection threshold on validation data, such as the 100 out-of-scope validation queries in CLINC150, and never on the test set.
  5. Report macro-F1, recall on critical intents, out-of-scope rejection, calibration error and coverage at a fixed error rate, each with confidence intervals.
  6. Record p95 latency and throughput with the hardware, precision, batch size, input length and number of candidate intents.
  7. Add ambiguous messages and messages from your own traffic, and test each language separately.

Coverage at a fixed error rate is the measure that matters for a system that sends uncertain messages to a human or a larger model. A classifier that handles more traffic at your accepted error rate can be worth more than one that is slightly more accurate overall. Those numbers describe the classifier only. Whether the whole workflow succeeds also depends on what happens after the intent is chosen.

The cost of each option depends on hardware hours and candidate counts

Cost behaves differently for each model family. A fine-tuned ModernBERT or SetFit model runs one pass per message on a small GPU. On Hugging Face Inference Endpoints, a T4 costs $0.50 an hour, which is about $365 a month for one replica that is always on. A zero-shot NLI model runs one pass per candidate intent, so its cost grows with the length of the intent list. At 3 million messages a month and 77 intents, that is 231 million pairs of message and label. A prompted LLM needs a larger GPU. An A10G costs $1.00 an hour, or about $730 a month. Training adds a one-time cost for encoders, and labeling the data adds its own cost. Fallback calls to a larger model or to a person also add to the bill, so fewer LLM calls are not the same as lower total cost.

Sources

More in Models

All Models →