损失函数Loss Function
Loss Function
解决什么问题What problem it solves
把「预测得有多错」变成一个可求导的数值,训练就是把它压小。Turn “how wrong the prediction is” into a differentiable number; training minimises it.
这是什么What it is
不同任务用不同损失:分类常用交叉熵,回归常用均方误差,语言模型用下一 token 的交叉熵。
损失设计会改变模型学到的偏好,不只是优化技巧。
Different tasks use different losses: cross-entropy for classification, mean squared error for regression, next-token cross-entropy for language models.
Loss design changes what the model prefers. It is not merely an optimisation trick.
为什么需要知道Why it matters
指标和损失不是一回事;损失降了但业务指标不升很常见。Metrics and losses are not the same thing. A falling loss with a flat business metric is common.
别名Chinese aliases
loss · 目标函数 · 代价函数
同域词条Terms in the same area
现在能做什么What you can do now
回到名词地图看第4站的其他 46 个词 →Back to the map: the other 46 terms in station 4 →