# Poster 31365

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/31365

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello, my name is Yudi. I'm a graduate student at MIT. Today I'm going to talk about how to interpret the outputs of a neural network trained on classification.
We're now trained on classification tasks, one of the most common tasks we see in VR is research. For example, when a network sees an image and generates a class label for that image and we compare the class label to the ground truth class label and we calculate some loss to optimize the network. We usually train classification tasks using this cross -entropy loss.
When we see already trained neural networks in operation, when they receive some image as input, they will generate activations in their last layers corresponding to many classes. For example, in this case, we see activations for the go-kart, the tricycle, and the sunglasses, which all make sense to some extent. They all reflect the uncertainty over...
what the image is actually referring to. Then our question is what is the meaning of these output activations? Why a model trained using input image and class label pairs is able to represent this broad range of uncertainty over many classes?
So in this paper, we try to approach to answer this question by deriving some theoretical proof. We can prove that minimizing the cross-entropy loss that we usually use to train a classification network is equivalent to minimizing the KL divergence of the Bayesian posterior and the model's output distribution.
And we can derive a lower bound on the loss that we use to train the model and we can show that the above loss is minimized when the model's output exactly matches the posterior. So back to the question, how do we interpret the network outputs?
Our answer is training the model using a cross-entropy loss actually pushes the outputs to match the Bayesian posterior of an ideal observer that has access to the generative model that has generated the data. So when the generative model is known, the output should gradually match the Bayesian posterior during training and the Bayesian posterior is calculated by its base rule.
When the generative model is not known, which is most of the real world cases, the outputs should match the Bayesian posterior calculated using a generative model of the data, if someone can find such a model.
We also demonstrate this in some empirical studies. For example, in this simple example, when the classification task is to judge whether X comes from class A or class 1 or class 2, both of which are parameterized by a Gaussian distribution. Because the generative model in this case is known, we can derive the...
posterior using Bayes rule and in practice I'm showing you on the solid line are the theoretically derived posterior how they vary with x input and the dotted lines are the output units of the neural network trained using input and label pairs as we can see when we increase the number of data that we use to train the model the
the better the model become approximating the baseline posterior. However, we can change the generative model to be a little bit so that the posterior become much more complex. As in this case, you would need much more data to fully get a reasonable approximation of the baseline posterior.
So just to summarize, training a neural network using cross-entropy loss pushes the outputs of the network to match the Bayesian posterior calculated using a general model that has generated the data. How well the model outputs actually approximate the posterior could depend on multiple factors, such as the shape of the posterior, the generative distribution, and the model training details.
