Intent classification: identify user goals and handle unknown requests
Define intent labels, test out-of-scope requests, and clarify ambiguous input.
Intent classification: identify user goals and handle unsupported requests
Intent classification maps a user’s utterance to a predefined category describing what they want to do. A support message might be routed to “cancel an order,” “track a delivery,” or “ask about a refund.” A useful classifier must do more than choose among known labels: when a request is unclear or outside the system’s scope, it should be able to ask for clarification or hand the request to a person.
Intents, slots, and out-of-scope input
“I want to cancel my order” may express a cancel-order intent. In “Please cancel the order that arrives tomorrow,” a system may also extract a slot: a specific value, such as a date or order number, needed to complete the intent. Intent classification identifies the user’s goal; slot filling extracts details for that goal. They can be implemented together, but they are different outputs.
The system must also recognize out-of-scope (OOS) input. If it handles only delivery and refunds but a user asks for a recipe, the utterance should not be forced into a known intent. Close categories such as “cancel an order” and “end a subscription” can also be confused if their definitions are vague. Some utterances, such as “I’m hungry,” may be conversational or a request for action. Define how to label ambiguous cases and when to ask a clarifying question.
Design the label set and data
**Start from user tasks.** Create separate intents only when they lead to different handling. Explain similar labels briefly and include examples of what belongs and does not belong.
**Define OOS, ambiguity, and multiple intents.** Decide whether an utterance can contain several requests, how to distinguish conversation from task intent, and when missing details require clarification.
**Collect representative utterances and align annotators.** Include natural phrasing, typos, informal language, and language or regional variation. Use the same guidance across reviewers and record disagreements and difficult examples to improve the definitions.
**Prevent leakage in data splits.** Keep the same conversation, source, or template variants from crossing training and test sets. Add tests by time, channel, or domain; a random split alone does not establish generalization to new settings.
**Compare baselines fairly.** Evaluate rules, supervised classifiers, and description-based zero-shot or few-shot methods with the same labels and test data. Record prompts, model version, thresholds, and rejection policy.
Evaluate with unknown requests included
Closed-set classification assumes every input belongs to a known category. Real systems also receive new intents and unsupported requests, so measure known-intent classification and OOS detection separately. For known classes, report macro-F1 and per-class recall. For unsupported requests, measure OOS detection and the rate at which valid known requests are incorrectly rejected. Check that improving one number does not lead to rejecting every ambiguous input or forcing every request into a known class.
| Test case | What to inspect |
|---|---|
| Variations of known intents | Per-class precision/recall and confusion matrix |
| Two similar intents | Label consistency on boundary cases and need for clarification |
| New domain or phrasing | Performance change by domain and retest trigger |
| Unsupported request | OOS detection and false assignment to a known class |
| Several intents in one utterance | Output matches single-label or multi-label policy |
Large language models do not automatically reject unsupported requests safely. A 2024 study reported zero-shot and few-shot OOD capabilities for LLMs but also found them at a disadvantage to models fine-tuned with full resources. A 2025 study tested LLM detection methods in near-OOD settings, where unseen intents appear within the same domain. These findings are limited to their respective data and experiments. A 2026 study reports that fine-grained detection can become brittle as semantically adjacent labels multiply, and that synthetic utterances may be ambiguous across labels or repetitive.
Set any confidence threshold on validation data before using it to trigger clarification or action. When intent is unclear, offer a short clarification choice; for unsupported requests, explain available capabilities or route to a person. After release, review new phrasing and failures and update the intent list and test data. A useful classifier not only recognizes known requests but notices when it does not know what the user means.
References
Wang et al., [Beyond the Known: Investigating LLMs Performance on Out-of-Domain Intent Detection](https://aclanthology.org/2024.lrec-main.210/), LREC-COLING 2024.
Akasaki & Sassano, [Detecting Ambiguous Utterances in an Intelligent Assistant](https://aclanthology.org/2024.emnlp-industry.28/), EMNLP Industry 2024.
Sali & Toraman, [Navigating the Unknown: Intent Classification and Out-of-Distribution Detection Using Large Language Models](https://aclanthology.org/2025.findings-emnlp.791/), Findings of EMNLP 2025.
Shen & Zhang, [Preference-Aligned Data Synthesis for Fine-Grained Intent Detection](https://aclanthology.org/2026.emnlp-main.163/), EMNLP 2026.