Interview practice question
Fine-tuning a transformer for intent classification
Machine Learning · NLP · Intermediate
You have 20,000 labeled customer messages across 40 intents. Walk through fine-tuning a transformer classifier.
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Choose a pretrained encoder suited to language/domain.
- Stratified train/validation/test split.
- Fine-tune with small learning rate, few epochs, early stopping.
- Handle imbalance; evaluate per intent.
- Calibrate confidence for routing thresholds.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.