Term
cross-entropy loss
Meaning
The average negative log-likelihood that a model assigns to the true next token in a sequence, computed as the training and evaluation objective for autoregressive language models.
How papers use it 23 papers
Scaling Laws for Neural Language Models
Use Optimized during training and averaged over a 1024-token context, which also serves as the principal performance metric for the Transformer and LSTM models in the study.
Multi-Temporal Land Cover Classification with Sequential Recurrent Encoders
Use Computed at each training step between the predicted activations of the classification layer and the one-hot ground truth labels, to evaluate the quality of the predictions during training of the encoder network.
Meaning A loss that compares predicted class activations with a one-hot ground truth label by summing the negative log of the predicted value for the true class, \(H(\hat y,y)=-\sum_i y_i\log(\hat y_i)\).
Emerging Properties in Self-Supervised Vision Transformers
Use In DINO, the cross-entropy compares the softmax distribution produced by the teacher on one view with the student's distribution on another view, each over K output dimensions. The teacher side is treated as a fixed target, so gradients flow only through the student, and the student is trained to match it.
Meaning A loss that scores how far a predicted probability distribution is from a target distribution by averaging the negative log-probabilities the prediction assigns, weighted by the target probabilities. It is minimized when the prediction matches the target.
Segment Anything in Medical Images
Use Combined with the Dice loss as an unweighted sum, giving a total loss of \( \mathcal{L}=\mathcal{L}_{BCE}+\mathcal{L}_{Dice} \), which is used to train MedSAM. The paper cites the robustness of this combination across segmentation tasks as its reason for choosing it.
Meaning A pixel-wise loss for binary segmentation that scores each predicted probability against its ground-truth label, averaging the negative log-likelihood over all pixels or voxels. Lower values mean the predicted foreground probabilities agree more closely with the reference mask.
Markerless tracking of user-defined features with deep learning
Use Serves as the training objective for the DeepLabCut feature detectors, computed between the predicted score-map for each body part and the ground-truth score-map, and minimized with stochastic gradient descent. Training curves of this loss are shown across three 80% training splits.
Meaning A loss function that measures the mismatch between a predicted probability distribution and a target distribution, and that is minimized by gradient-based optimization during training.
Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semantics
Use Used as the classification loss for the semantic segmentation branch, applied to pixels that have semantic labels and averaged over those labelled pixels in each mini-batch.
Meaning A classification loss that penalises the negative log probability assigned to the correct class, computed from the predicted class scores of a network and averaged over the labelled samples.
Efficient Genotype Classification from 3D MRI in ADPKD via Density-Aware Point Sampling and E(3)-invariance
Use Serves as the training loss for E3PN. The classifier output is passed through a softmax to give class probabilities for each image after point sampling and coordinate canonicalization, and the loss averages the log-probability of the true class over the training set, with the sum running over the C genotype classes and an indicator selecting the true label.
Meaning A classification training objective that, for each labelled sample, takes the negative log of the predicted probability assigned to its true class and averages these values over the training set. It penalizes low probability on the correct class.
Towards Deep Learning Models Resistant to Adversarial Attacks
Use Used as the loss L(θ, x, y) for training the networks and as the objective that attacks maximize when perturbing inputs. The paper also plots this loss over PGD iterations and over training steps to show how the adversarial loss evolves.
Meaning A loss that compares a model's predicted class probabilities with the true label and penalizes low probability on the correct class.
PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization
Use Serves as the fine-tuning objective for PandaLM, which is trained on next-token prediction in a sequence-to-sequence format without a separate classification head, so the judgment is generated as text.
Meaning A training loss that measures the negative log-likelihood of the correct target, here applied to predicting the next token in a text sequence.
UNETR: Transformers for 3D Medical Image Segmentation
Use Added to the soft Dice loss to form the UNETR training objective. In the paper's equation 7 it appears as the negative average over voxels of the sum over classes of the one-hot ground truth times the log of the predicted probability. The paper gives the two components in one combined loss without stating separate weights.
Meaning A loss that measures the negative log-likelihood of the true class at each sample, averaged over samples. For segmentation it is computed per voxel and summed over classes, so it penalizes low predicted probability on the correct label.
OpenVLA: An Open-Source Vision-Language-Action Model
Use Used as the training loss for OpenVLA, but computed only on the predicted action tokens and not on the rest of the output sequence.
Meaning A loss function for classification over discrete outputs that penalizes low predicted probability on the correct token. In language model training it is averaged over the target tokens and used to update model weights.
Modeling Relational Data with Graph Convolutional Networks
Use Serves as the training objective of the R-GCN entity classifier. The softmax output of the final R-GCN layer gives a class distribution for each node, and the loss compares these distributions with the one-hot ground-truth labels. It is summed only over nodes that carry labels, so unlabeled nodes contribute nothing, and the whole model, including the R-GCN parameters, is optimized against it.
Meaning A loss function that scores a probabilistic classifier by taking the negative logarithm of the probability it assigns to each example's correct class, summed over the examples. It is small when the predicted distribution puts high mass on the true labels and grows large when the model assigns low probability to them.
Perceiver-Actor: A Multi-Task Transformer for Robotic Manipulation
Use The agent is trained with cross-entropy over softmax-normalized Q-values for translation, rotation, gripper open state and collision, with one-hot targets for each. The authors describe this as training the agent like a classifier, and the summed terms form the total training loss. Training uses random sampling of input-action tuples with translation and rotation perturbations for robustness.
Meaning Cross-entropy loss is a classification loss that measures the mismatch between a predicted probability distribution and a target distribution, typically a one-hot label. It is minimized by training a classifier to assign high probability to the correct class.
Deep reinforcement learning from human preferences
Use The reward predictor is fit by minimizing this loss over the database of human comparisons, comparing predicted preference probabilities with the recorded label distributions. Tied comparisons contribute with uniform label weights.
Meaning A loss that sums, over labeled examples, the negative log of the probability a model assigns to each outcome, weighted by the label distribution. It measures how well predicted probabilities match observed choices.
Learning to Prompt for Vision-Language Models
Use Used to train CoOp by minimizing prediction errors on the few-shot labeled data, with gradients taken with respect to the learnable context vectors while the pre-trained parameters remain fixed.
Meaning A classification loss that penalizes the negative log of the predicted probability assigned to the correct class, computed over the classes.
Beyond Part Models: Person Retrieval with Refined Part Pooling (and a Strong Convolutional Baseline)
Use In PCB, each part-level column vector is passed to its own identity classifier, and each classifier is supervised with this loss during training. The training objective is the sum of these losses over the p parts, so every stripe receives its own identity supervision.
Meaning A classification loss that measures how far a predicted probability distribution over classes is from the true class, computed as the negative log of the probability given to the correct class after a softmax. It is minimized to train a classifier to output high probability for the correct label.
Deep Learning for Sentiment Analysis : A Survey
Use Used as the training objective for the feedforward network in the paper: stochastic gradient descent with backpropagation is said to minimise the cross-entropy loss for softmax outputs.
Meaning A loss function that measures the mismatch between a predicted probability distribution and the target label, computed from the log of the predicted probability of the correct class. It is used when the output layer produces a softmax distribution.
Exact Combinatorial Optimization with Graph Convolutional Neural Networks
Use Used as the training objective for the GCNN branching policy. Given expert state-action pairs recorded from strong branching, the loss is the average of \(-\log \pi_\theta(a^\star \mid s)\) over the dataset, where \(a^\star\) is the variable chosen by the expert. The authors pick this classification loss over learning strong branching scores or rankings, because it only needs the expert's chosen variable.
Meaning A classification loss that measures the negative log-likelihood a model assigns to the correct class label. Minimizing it pushes the predicted probability of the target choice upward.
Kangaroo: Lossless Self-Speculative Decoding for Accelerating LLMs via Double Early Exiting
Use Used to train the adapter so that the self-drafting model's distribution matches the target LLM's conditional distribution, which serves as a soft target. The loss is summed over vocabulary tokens and averaged over token positions in the training set, and the adapter parameters are chosen to minimize it.
Meaning A training loss that scores a predicted probability distribution against a target distribution by summing, over the vocabulary, the negative target probability times the log of the predicted probability. It is minimized when the prediction matches the target distribution.
Universal and Transferable Adversarial Attacks on Aligned Language Models
Use A secondary metric alongside ASR for the harmful strings setting, used to gauge attack strength when the exact-match criterion is not met. Table 1 reports it for GBDA, PEZ, AutoPrompt and GCG on Vicuna-7B and LLaMA-2-7B-Chat, with GCG giving the lowest values (0.1 and 0.3).
Meaning A loss computed as the cross-entropy between a model's output logits and a target string. Lower values indicate that the target is more likely under the model, which signals a stronger attack.
Segmenter: Transformer for Semantic Segmentation
Use Trains Segmenter end to end on per-pixel class predictions. The paper uses the standard form of this loss without weight rebalancing when fine-tuning the pre-trained models.
Meaning A per-pixel loss that compares the predicted class scores at each pixel with that pixel's ground-truth label and penalizes the negative log-probability given to the correct class. Averaged over pixels, it is the standard training objective for semantic segmentation models.
Deep Learning Face Representation by Joint Identification-Verification
Use Serves as the identification loss. The DeepID2 layer is followed by an n-way softmax with n = 8192 identities in the main setting, and the loss pushes DeepID2 features of different identities apart. It is weighted against the verification loss by the hyperparameter \(\lambda\) during training.
Meaning A loss for an n-way softmax classifier that equals the negative log of the predicted probability assigned to the target class, computed over all classes.
Bits That Count: Quantifying and Predicting Capabilities of Language Models
Use Used as the per-example loss inside the prequential MDL and as the test loss inside EDL. Token masking must match between training and test sets.
Meaning The negative log-probability a model assigns to the correct label tokens given the input, used as a codelength per example. It is computed only on designated label tokens and is measured in nats, which can be converted to bits by dividing by ln 2.