Pick the three first things to check when LoRA training loss sits flat from step 0
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Flat loss from step 0 is a structural break, not a tuning problem. Check the LR schedule, the target_modules wiring, and whether assistant tokens survive label masking.
Imagine trying to drive a car that will not move. Three things to check first: is there fuel reaching the engine (the labels you are training on), is the engine connected to the wheels (the adapter actually wrapping a layer), and is the gas pedal pressed (the step-size knob the trainer uses not stuck at zero)? Only after confirming all three are working do you start asking whether the engine is too small or the wheels are the wrong size. People who jump straight to swapping engines waste hours when the real fix is plugging in a cable or pressing the pedal. Flat loss is the same: check the structural breaks before changing capacity or precision.
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: why flat loss from step 0 is structural, the three independent failure modes (LR, wrapping, labels), the diagnostic one-liners for each, why capacity and precision fixes do not apply, and the general diagnostic path order.
| Symptom | Likely cause | First check |
|---|---|---|
| Flat loss from step 0 (this case) | Structural break in optimization path | LR, wrapping, label masking |
| Loss drops then spikes to NaN | Numerical overflow or schedule discontinuity | Mixed precision, gradient clipping, beta |
| Loss drops then plateaus | Model is converged or undercapacity | Eval loss trend; capacity if eval flat |
| Loss drops then eval rises | Overfitting | Early stopping; reduce capacity next run |
| Loss oscillates wildly | LR too high or batch size too small | Lower LR, larger batch, more warmup |
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.
Bumping rank or switching models when loss is flat from step 0. Capacity changes do not help when no gradient is flowing; the fix is upstream in the data, the wiring, or the optimizer.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.