Unverified50% confidenceSolutionExact time
Setting ignore_index in the loss function to point to the padding index can mask the contribution of padding positions to the loss; PyTorch's CrossEntropyLoss supports this parameter.
1
Sources
50%
Confidence
Long-term
Relevance
10/4/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedCross-entropy loss is the most commonly used loss function for classification tasks; rooted in information theory, it has gradient properties better suited to classification problems than MSE.63% similarUnverifiedThe most common root cause of a seq2seq model predicting only padding tokens is failing to ignore padding tokens when computing the loss, causing the model to learn the shortcut of outputting padding to reduce the loss.60% similarUnverified计费类Bug应遵循宁可少算不可多算原则,在模糊地带永远向有利于用户的方向倾斜,因取消而废弃的查询不应计入额度59% similarUnverifiedThe loss function of PINNs typically consists of two components: data error and a residual term, where the residual term represents the degree to which substituting the network output into the PDE deviates from zero.58% similarUnverifiedCommonly used loss functions for contrastive learning include InfoNCE Loss and Triplet Loss.56% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/971206API
curl https://kongchang.com/api/v1/knowledge/claims/971206MCP
get_claim(id=971206)