In LoRA, where in the forward pass does `lora_dropout` apply its mask?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
LoRA dropout masks the input activations to the A matrix, regularizing the trainable low-rank branch while leaving the frozen base weight untouched.
Think of LoRA as a small note-taker sitting next to a big locked encyclopedia. The encyclopedia is the frozen base model, and the note-taker is the tiny pair of matrices that learn the new task. Dropout is a daily exercise where the note-taker randomly covers up some of the words on the page before reading. Today certain words are hidden, tomorrow different ones. Because the note-taker never knows which words will be hidden, they have to learn the general shape of the message rather than rely on any single word. The encyclopedia itself is never touched, only the way the note-taker reads from it. That is why LoRA dropout sits at the start of the note-taker's reading path, not on the encyclopedia and not at the very end where the note-taker finishes writing.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: place dropout on the LoRA forward path, walk the input to A choice, contrast with output of B, list typical values, and link dropout, rank, and dataset size.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Assuming dropout is applied to the base weight or to the output of the low-rank branch. It actually masks the input activations before they reach the A matrix in the trainable branch.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.