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
Machine Learning
Machine Learning Engineer
Amazon
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Medium

0

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
LoRA
Parameter-efficient fine-tuning
Low-rank matrices
Adapters
Multi-tenant serving
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. 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 Prep
Sample 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 W∈Rd×kW\in\mathbb{R}^{d\times k} and learns ΔW=BA\Delta W=BA with B∈Rd×rB\in\mathbb{R}^{d\times r}, A∈Rr×kA\in\mathbb{R}^{r\times k}, r≪min⁡(d,k)r\ll\min(d,k). The forward pass is $h=Wx+\frac{...


Submit Your Answer
Markdown supported