What's the difference between "pain" and "loss"?
Loss is a training tool, not a feature of inference. Pain as I think of it would happen at inference time.