Why has prefix/prompt tuning largely lost to LoRA in production?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Prefix-tuning and prompt-tuning were once the leading PEFT methods. By 2024-2025, LoRA had largely displaced them in production. Explain the architectural reason LoRA tends to win at similar parameter budgets, and where soft-prompt methods still make sense.
Soft prompts only edit the input; LoRA edits the weight matrices themselves. That extra leverage lets LoRA win at the same parameter budget.
Picture a chef who already knows how to cook. Prompt tuning is like sliding a fixed note onto the order ticket before every dish, the chef reads it but cooks with the same hands and habits. The note can only hint; it cannot rewire how the chef chops or seasons. LoRA is like a quick training session that actually adjusts a few of the chef's techniques. Now the change lives in the hands, not in a sticky note that has to be re-read every time. Because LoRA touches the technique and the note only touches the order, LoRA can change more for the same effort. The sticky note still helps when you run one kitchen for thousands of customers and only want to swap tiny notes.
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.
5 min: where each method injects parameters + the input-only representational ceiling + why weight edits beat input edits + serving and KV-cache asymmetry + the multi-tenant and closed-API niches + P-tuning v2 on classification.
| Aspect | Soft prompts (prefix / prompt / P-tuning) | LoRA |
|---|---|---|
| What it edits | Input or attention prefix vectors | Weight matrices (attention, optional MLP) |
| Model weights | Frozen, untouched | Low-rank delta added, can merge |
| Expressivity | Capped by input-only adaptation | Reshapes transforms, higher ceiling |
| Inference cost | Spends context tokens every call | Zero overhead once merged |
| Best niche | Multi-tenant, closed API, classification | Most behavior and domain fine-tunes |
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.
Treating soft prompts and LoRA as interchangeable PEFT knobs. They edit different parts of the forward pass, so they have different expressivity ceilings and different serving stories.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.