Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between energy function and loss function? [closed]

In the paper A Tutorial on Energy Based Learning I have seen two definitions:

  • Energy function E(X, Y) is minimized by inference process: the goal is to find such value of Y, such that E(X, Y) takes is minimal value.
  • Loss function is a measure of a quality of an energy function using training set.

I understand the meaning of loss function (good example is the mean squared error). But can you explain me what is the difference between energy function and loss function? Can you give me an example of energy function in ML or DL?

like image 839
DY92 Avatar asked May 15 '18 04:05

DY92


1 Answers

In short, the energy function describes your problem. In contrast the loss function is just something that is used by an ML algorithm as input. This might be the same function but is not necessarily the case.

The energy of a system in physics might be the movement inside this system. In a ML context, you might want to minimize the movement by adjusting the parameters. Then one way to achieve this is to use the energy function as a loss function and minimize this function directly. In other cases this function might not be easy to evaluate or to differentiate and then other functions might be used as a loss for your ML algorithm. Similarly as in classification, where you care for the accuracy of the classifier, but you still use cross entropy on the softmax as a loss function and not accuracy.

like image 134
Thomas Pinetz Avatar answered Nov 01 '22 17:11

Thomas Pinetz