Notes

Intent Classification

When someone types "where's my order" into a support box, the exact words matter less than the request behind them. Intent classification is the step that reads a single utterance and decides which request it is.

How the decision is made
It is text classification over a closed label set defined by the product rather than by language: track_order, cancel_subscription, reset_password, plus an out-of-scope bucket for everything the assistant cannot handle. A sentence encoder — a fine-tuned BERT, or a small linear model over TF-IDF features when latency and training data are tight — maps the utterance to one label with a confidence score, and the assistant routes on it. Because the labels are a design decision, each one needs its own examples: typically a few dozen paraphrases written or harvested per intent.

What goes wrong

  • Overlapping intents: "change my address" could be edit_profile or update_delivery, and the annotators will disagree before the model does.
  • Out-of-scope input: a model forced to pick among known labels answers confidently about something it has never seen, which is exactly what benchmarks like CLINC150 were built to measure.
  • Drift: real users write with typos, slang and half-sentences that the curated training set never contained.

Why it matters
Intent is the hinge between free text and a program: the label selects the code path, and slot filling then collects the arguments that path needs. A mislabelled intent cannot be repaired downstream — the assistant answers the wrong question fluently, which a user reads as the system not listening.

Intent classification assigns a user utterance to one label from a fixed set of actions a system supports — track_order, cancel_subscription, and an out-of-scope bucket for the rest. It is single-label text classification over a product-defined label set, usually a fine-tuned sentence encoder returning a confidence score. The chosen label selects the code path a dialogue system runs, so an error here routes the entire conversation wrongly, however good the later steps are.

A receptionist does not need to repeat your sentence back to you — they need to work out what you want and send you to the right desk. Intent classification is software doing that first part. It reads one message, like "my parcel never turned up", and decides which of a short list of requests it belongs to: tracking an order, asking for a refund, changing an address.

Chatbots and voice assistants lean on it heavily, because the label it picks decides what happens next. Get it wrong and the reply comes back perfectly polite and completely beside the point.