179 questions
No questions match those filters.
← All questions
LLM FoundationsHard· Loss Functions· Numerical Stability
Z-loss controls the output softmax normalizer. But cros...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansWhile cross-entropy backpropagates through the softmax, it primarily pushes the correct logit up relative to others, without constraining the absolute scale of the logit vector. Z-loss provides additional information by penalizing the scale directly. Because the two losses operate on orthogonal degrees of freedom in logit space—specifically direction versus magnitude—they are complementary rather than redundant, helping to prevent numerical instability even when cross-entropy is minimized.