---
title: "What are the common loss functions used in deep learning? How do they impact the training process?"  
description: "What are the common loss functions used in deep learning? How do they impact the training process?"  
author: "Utpal Vishwas"  
published: 2023-04-20  
updated: 2023-04-21  
canonical: https://www.mindstick.com/forum/157942/what-are-the-common-loss-functions-used-in-deep-learning-how-do-they-impact-the-training-process  
category: "artificial intelligence"  
tags: ["artificial intelligence", "ai", "machine learning"]  
reading_time: 2 minutes  

---

# What are the common loss functions used in deep learning? How do they impact the training process?

What are the [common](https://www.mindstick.com/articles/23170/10-most-common-accounting-mistakes-of-small-business) [loss](https://www.mindstick.com/blog/300971/ways-to-cope-with-grief-and-loss) [functions](https://www.mindstick.com/forum/160140/explain-the-role-of-functions-as-a-service-faas-in-serverless-computing) used in [deep learning](https://www.mindstick.com/blog/301936/deep-learning-and-its-working)? How do they [impact](https://yourviews.mindstick.com/audio/1149/the-evolution-and-impact-of-movies-from-invention-to-modern-era) the [training](https://www.mindstick.com/articles/198439/improve-employee-performance-with-training-films) [process](https://yourviews.mindstick.com/story/1525/7-important-factors-that-may-affect-the-learning-process)?

## Replies

### Reply by Krishnapriya Rajeev

In [deep](https://yourviews.mindstick.com/view/87451/a-journey-into-the-deep-dubai-s-underwater-wonderland) [learning](https://www.mindstick.com/articles/126221/instructional-design-for-elearning-why-it-is-so-important), a loss function measures the discrepancy between the predicted output and the true output of a neural network. The goal of training a neural network is to minimize the value of the loss function.

A few loss functions used in deep learning are:

1. **Mean Squared Error (MSE):** This loss function is commonly used for regression problems, where the goal is to predict a continuous variable. MSE measures the average squared difference between the predicted and actual values. The higher the difference, the higher the loss value. Gradient descent methods can be used to optimize MSE because it is differentiable and convex.
2. **Binary Cross-Entropy:** This loss function is used for binary classification problems, where the output is either 0 or 1. Binary cross-entropy measures the distance between the predicted and actual binary values. It is commonly used in logistic regression and sigmoid activation functions.
3. **Categorical Cross-Entropy:** This loss function is used for multi-class classification problems, where the output can take more than two values. It is commonly used in softmax activation functions. The categorical cross-entropy loss function measures the distance between the predicted probability distribution and the true probability distribution.
4. **KL Divergence:** KL divergence is a measure of the difference between two probability distributions. Generative models like Restricted Boltzmann Machines and Variational Autoencoders tend to use KL divergence.


---

Original Source: https://www.mindstick.com/forum/157942/what-are-the-common-loss-functions-used-in-deep-learning-how-do-they-impact-the-training-process

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
