How does cost function scaling affect numerical stability in deep learning?

Updated May 15, 2026

Short answer

Improper scaling can cause gradient explosion or vanishing issues.

Deep explanation

Cost functions with large magnitude outputs can lead to unstable gradients during backpropagation. Similarly, very small values can cause underflow and slow learning. Proper normalization, loss scaling, and mixed precision training are used to stabilize computation.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Cost Function interview questions

View all →