LearnQuestion bank

During a pre-training run on thousands of accelerators you see occasional loss spikes with no NaNs and no hardware errors reported. How do you decide whether silent data corruption is the cause, and what would you build to detect and contain it?

ResearchTechnicalHard

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Define silent data corruption and separate it from bad batches, optimiser instability, and LR schedule.
  • Replay suspect steps deterministically on clean nodes and compare submodule outputs/gradients to localise the fault.
  • Use loss spikes only as a trigger, not proof, because small per-step corruption can shift training to different optima.
  • Contain by quarantining the node, rolling back to the last clean checkpoint, and adding fleet screening.
  • Balance checkpoint frequency against storage/I/O cost and expected lost work.

In full

I would treat the loss spike as a trigger, not a diagnosis: silent data corruption means a device returns wrong results without raising an error, while rival causes include a bad data batch, optimiser instability, or a learning-rate schedule issue. I would first freeze the exact suspect window—seeds, data order, RNG, kernels, and config—then replay those steps on different nodes and compare submodule outputs and gradients, not just the final loss; if the same step is clean on other nodes but wrong on the suspect node, that points to hardware/node corruption, while if it reproduces elsewhere it points to data or training dynamics. Published large-scale training evidence is consistent with corruption being small per computation yet enough to change the trajectory and land in a different optimum, so the loss curve alone cannot prove the cause. If corruption is confirmed, I would quarantine the node, mark its outputs suspect, roll back to the checkpoint before the first divergence, and resume from there rather than trying to patch the spike. I would also add fleet screening—canary kernels, checksums, redundant or replayed computations, and periodic clean-node replays—and tune checkpoint frequency against storage/I/O cost: more frequent checkpoints reduce lost work but cost more, so I would set the interval from observed failure rates and the cost of retraining rather than by habit.

Corrected by an independent AI reviewer.

What a strong answer covers

  • Defines silent data corruption (hardware returns wrong results without signalling an error) and lists rival causes: bad data batches, optimiser instability, learning-rate schedule.
  • Uses deterministic execution to replay the suspect steps on different nodes and compare submodule outputs and gradients, localising the faulty node.
  • Notes published evidence that corruption is often small per computation yet can shift training to different optima and cause loss spikes, so the loss curve alone is not a reliable detector.
  • Containment: quarantine the node, roll back to a checkpoint before the first divergence, add fleet screening tests, and weigh checkpoint frequency against cost.

Common mistakes

  • Assuming hardware faults always crash or produce NaNs.

Follow-ups

  • How often would you checkpoint a run of this size, and why?