Compare LoRA and Full Fine-Tuning for Adapting a Model to Workspace Data

Last updated: November 29, 2026

Quick Overview

You need to adapt a large pretrained language model to drafting replies in Workspace style; explain how LoRA works, compute its parameter savings, and decide between LoRA and full fine-tuning.

Google
Machine Learning
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Medium

0

0

0 solved


You need to adapt a large pretrained language model to drafting replies in Workspace style; explain how LoRA works, compute its parameter savings, and decide between LoRA and full fine-tuning.

Google serves one base model to many products and enterprise customers, so parameter-efficient adaptation is a practical serving and cost question, not just a research topic. The interviewer checks the low-rank math, the serving implications of many adapters, and judgment about when full fine-tuning is worth it.

What the Interviewer Expects
  • Explains LoRA as a frozen weight plus a trainable low-rank update BA
  • Computes trainable parameter counts for a given rank
  • Explains initialization (B at zero) and the alpha over r scaling
  • Discusses merging adapters for latency versus keeping them separate for multi-tenant serving
  • Compares quality, memory, and forgetting against full fine-tuning
  • Proposes an evaluation plan
Key Topics to Cover
LoRA
Parameter-efficient fine-tuning
Low-rank adaptation
Multi-tenant serving
Catastrophic forgetting
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
  • Which weight matrices would you attach LoRA to, and why?
  • How does QLoRA reduce memory further, and what does it cost?
  • How would you serve hundreds of customer adapters on one base model?
  • When does LoRA underperform full fine-tuning?
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

Base model: about 7B parameters, d=4096d = 4096, 32 layers. Data: tens of thousands of high-quality reply drafts. Constraints: we may need separate adaptations per enterprise customer, and the base model ...

Approach

LoRA freezes W∈Rd×kW \in \mathbb{R}^{d \times k} and learns ΔW=αrBA\Delta W = \frac{\alpha}{r} BA with B∈Rd×rB \in \mathbb{R}^{d \times r}, A∈Rr×kA \in \mathbb{R}^{r \times k}, r≪dr \ll d. BB starts at zero so trainin...


Submit Your Answer
Markdown supported