Abstract: LLM pre-training commonly treats every token in a training sequence as an independent sample of the gradient. Under this assumption, gradient noise scales as 1/(BS) for batch size B and sequence length S, so B is halved whenever S is doubled. We show that this rule breaks down beyond a certain length, and that the point where it breaks down can
[…]
Content was trimmed to protect the source. Please visit the original article for the full text.
Read the original article:
Critical Sequence Length: A Note on How Document Structure Bounds Gradient-Noise Reduction
