Reject Out-of-Scope Utterances in an Alexa Intent Classifier
Last updated: November 29, 2026
Quick Overview
Your intent classifier for Alexa shopping requests always picks one of its known intents, even for utterances it was never trained on. Explain how you would detect out-of-scope requests and decide when to abstain.
Amazon
November 29, 20260
0
0 solved
Your intent classifier for Alexa shopping requests always picks one of its known intents, even for utterances it was never trained on. Explain how you would detect out-of-scope requests and decide when to abstain.
Voice assistants receive many requests outside any skill's scope, and confidently acting on the wrong intent (adding an item to the cart) is worse than asking again. The interviewer checks understanding of softmax overconfidence, out-of-distribution detection, and threshold setting under asymmetric costs.
What the Interviewer Expects
- Explain why softmax confidence is unreliable for unseen inputs
- Propose methods: explicit out-of-scope class, energy or distance scores, calibration
- Set thresholds based on the cost of false accepts versus false rejects
- Evaluate with held-out out-of-scope data
- Plan for data collection from production
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How would you get realistic out-of-scope training examples?
- Would you use one threshold for all intents?
- How does ASR error interact with this problem?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Ask which intents exist (add to cart, reorder, track package), the cost of a wrong action per intent (ordering is costly, tracking is cheap), and whether there is a fallback like a clarifying question...
Approach
Softmax normalizes over known classes, so an unrelated utterance can still get 0.9 on one intent. Options: (1) add an explicit out-of-scope class trained on diverse unrelated utterances; (2) score inp...