arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.13459cs.LGcs.AIcs.CL
收藏

自然语言生成中的自适应标签平滑

Adaptive Label Smoothing with Self-Knowledge in Natural Language Generation

HKUST(香港科技大学);NVIDIA(英伟达)

Dongkyu Lee, Ka Chun Cheung, Nevin L. Zhang

摘要:

过度自信已被证明会损害神经网络的泛化和校准。以前的研究通过向损失函数添加正则化项来解决这个问题,防止模型产生峰值分布。标签平滑使用预定义的先验标签分布来平滑目标标签;因此,学习模型以最大化预测软标签的可能性。尽管如此,平滑的量在所有样本中是相同的,并且在训练中保持固定。换句话说,标签平滑并不反映模型在训练过程中映射的概率分布的变化。为了解决这个问题,我们提出了一种正则化方案,通过考虑模型概率分布,将动态性质引入平滑参数,从而改变每个实例的参数。训练中的模型在向前传播期间自动调节平滑的程度。此外,受最近桥接标签平滑和知识蒸馏研究的启发,我们利用自我知识作为先验标签分布来软化目标标签,并为知识蒸馏和动态平滑参数的正则化效果提供了理论支持.我们的正则化器进行了全面的验证,结果表明,在模型的泛化和校准,增强模型的鲁棒性和可信度显着改善。

英文摘要:

Overconfidence has been shown to impair generalization and calibration of a neural network. Previous studies remedy this issue by adding a regularization term to a loss function, preventing a model from making a peaked distribution. Label smoothing smoothes target labels with a pre-defined prior label distribution; as a result, a model is learned to maximize the likelihood of predicting the soft label. Nonetheless, the amount of smoothing is the same in all samples and remains fixed in training. In other words, label smoothing does not reflect the change in probability distribution mapped by a model over the course of training. To address this issue, we propose a regularization scheme that brings dynamic nature into the smoothing parameter by taking model probability distribution into account, thereby varying the parameter per instance. A model in training self-regulates the extent of smoothing on the fly during forward propagation. Furthermore, inspired by recent work in bridging label smoothing and knowledge distillation, our work utilizes self-knowledge as a prior label distribution in softening target labels, and presents theoretical support for the regularization effect by knowledge distillation and the dynamic smoothing parameter. Our regularizer is validated comprehensively, and the result illustrates marked improvements in model generalization and calibration, enhancing robustness and trustworthiness of a model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑