Fine-Tune an Intent Classifier With LoRA Instead of Full Fine-Tuning
Last updated: November 29, 2026
Quick Overview
You need to adapt a large pretrained language model to classify Alexa shopping utterances into intents across many locales. Explain LoRA, compare it with full fine-tuning, and say when you would choose each.
Amazon
November 29, 20260
0
0 solved
You need to adapt a large pretrained language model to classify Alexa shopping utterances into intents across many locales. Explain LoRA, compare it with full fine-tuning, and say when you would choose each.
Alexa and other Amazon assistants support many intents and locales, so teams often keep one base model and many adapters. The interviewer checks that you know the math of low-rank adaptation, its memory benefits, and its limitations.
What the Interviewer Expects
- Explain the low-rank update to frozen weights
- Compute parameter savings for a concrete layer
- Discuss where adapters are inserted and the rank choice
- Compare quality, memory and serving trade-offs
- Describe multi-adapter serving
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 choose the rank r?
- Can you merge the adapter into the base weights, and what does that cost you?
- When would full fine-tuning clearly win?
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
Confirm label set size, data per locale (some locales may have only a few thousand labeled utterances), latency budget, and whether many variants must be served from one deployment....
Approach
LoRA freezes pretrained weight and learns with , , . The forward pass is $h=Wx+\frac{...