Why do we average the cost across a mini-batch instead of summing it?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks why training losses are averaged over a mini-batch instead of summed. Tests how the reduction affects gradient scale, learning rate behavior, regularization balance, and edge cases like gradient accumulation and padded sequences.