Cross-Entropy
A quantity in information theory that measures the difference between two probability distributions. In LLM decoding it is used as a constraint to limit the degree to which sampling deviates from the correct answer.
Core Facts
Timeline (last 90 days)
In the full-label setting, none of the four bandit methods surpassed a simple baseline of cross-entropy plus one temperature parameter in average expected calibration error (ECE) across four unseen label patterns.
Standard training objectives such as cross-entropy, KL divergence, and total variation distance focus only on distribution matching or single-step overlap, and do not directly optimize EAL.
Validation loss (such as cross-entropy) measures the difference between the model's predicted probability distribution and the true labels, while validation accuracy (or F1) measures the correctness of hard classification decisions; the two are not always monotonically in sync.
Because the data itself has inherent randomness, cross-entropy has an unbreakable lower bound, so zero perplexity is impossible to achieve.
Cross-entropy can be decomposed into the sum of the entropy of the true data distribution and the KL divergence between the model distribution and the true distribution.
Knowledge distillation usually refers to a student model minimizing KL divergence on the teacher's soft labels (logits), with optional matching of intermediate-layer features.
During fine-tuning, TVP improves acceptance length by 9.8% compared with CE.
Existing draft models are mostly trained with cross-entropy (CE) or KL divergence.
The interaction between the cross-entropy rounding effect and the Adam optimizer is the cause of the "slingshot"-style loss spikes in the grokking process; after fixing the rounding problem, the spikes disappear.
Unlike directly applying cross-entropy (hard labels) to the correction segments, KL supervision uses the teacher's full soft distribution as a soft target, preserving the teacher's relative confidence across candidate tokens, yielding smoother signals and making it less likely for the student to overfit to a single answer.
7 more timeline events
All Facts (20)
The objective function for pre-training is typically the cross-entropy loss in causal language modeling, i.e., maximizing the probability of correctly predicting the next token given all preceding tokens.
65%UnverifiedKnowledge distillation usually refers to a student model minimizing KL divergence on the teacher's soft labels (logits), with optional matching of intermediate-layer features.
70%UnverifiedIn the full-label setting, none of the four bandit methods surpassed a simple baseline of cross-entropy plus one temperature parameter in average expected calibration error (ECE) across four unseen label patterns.
50%UnverifiedStandard training objectives such as cross-entropy, KL divergence, and total variation distance focus only on distribution matching or single-step overlap, and do not directly optimize EAL.
50%UnverifiedValidation loss (such as cross-entropy) measures the difference between the model's predicted probability distribution and the true labels, while validation accuracy (or F1) measures the correctness of hard classification decisions; the two are not always monotonically in sync.
50%UnverifiedBecause the data itself has inherent randomness, cross-entropy has an unbreakable lower bound, so zero perplexity is impossible to achieve.
50%UnverifiedCross-entropy can be decomposed into the sum of the entropy of the true data distribution and the KL divergence between the model distribution and the true distribution.
50%UnverifiedExisting draft models are mostly trained with cross-entropy (CE) or KL divergence.
50%UnverifiedDuring fine-tuning, TVP improves acceptance length by 9.8% compared with CE.
50%UnverifiedThe interaction between the cross-entropy rounding effect and the Adam optimizer is the cause of the "slingshot"-style loss spikes in the grokking process; after fixing the rounding problem, the spikes disappear.
50%UnverifiedUnlike directly applying cross-entropy (hard labels) to the correction segments, KL supervision uses the teacher's full soft distribution as a soft target, preserving the teacher's relative confidence across candidate tokens, yielding smoother signals and making it less likely for the student to overfit to a single answer.
50%UnverifiedThe article recommends replacing standard softmax and cross-entropy implementations in custom training loops to avoid numerical issues.
50%UnverifiedThe authors' fixed implementations of log-softmax, softmax, and cross-entropy add no computational complexity.
50%UnverifiedThe structural root of the LLM calibration problem is that the pretraining objective is to minimize the cross-entropy of the next word rather than to output trustworthy probability estimates, and RLHF alignment further amplifies the tendency to express things as if certain.
50%UnverifiedCross-entropy is a per-token average metric and does not additionally penalize the structural defect that some tokens are never processed at all, so when comparing routing strategies one cannot look only at a single average evaluation loss.
50%UnverifiedThe forward propagation process of logistic regression is: linear combination z = w·x + b, activated through sigmoid as ŷ = 1/(1+e^(-z)), followed by cross-entropy loss calculation.
50%UnverifiedWith sigmoid activation combined with cross-entropy loss, differentiating the loss with respect to the weights simplifies to ∂L/∂w = (ŷ - y) · x.
50%UnverifiedMSE suffers from gradient saturation when Sigmoid outputs are close to 0 or 1, causing training to be extremely slow, whereas cross-entropy has larger gradients when predictions deviate severely
50%UnverifiedThe cross-entropy loss function H(p,q) = -Σp(x)log q(x) reaches its minimum value when q=p, which equals the entropy of the true distribution.
50%Unverified当模型对某个训练样本的预测概率接近1时,该样本对应的交叉熵损失趋近于零,模型几乎无法获得梯度更新信号
50%