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

神经网络时代下 n-gram 平滑的作用

The Role of $n$-gram Smoothing in the Age of Neural Networks

Luca Malagutti, Andrius Buinovskij, Anej Svete, Clara Meister, Afra Amini, Ryan Cotterell

AI总结:

本文重新探讨经典 n-gram 平滑技术在神经语言模型时代的作用,证明标签平滑与 add-λ 平滑形式等价,并提出将任意 n-gram 平滑技术转换为神经正则化器的通用框架,实验显示其效果可比甚至优于标签平滑。

摘要:

近三十年来,基于 n-gram 假设的语言模型在该任务上一直保持着最先进的水平。它们成功的关键在于应用了各种平滑技术,这些技术用于对抗过拟合。然而,当神经语言模型取代 n-gram 模型成为最佳表现者后,n-gram 平滑技术变得不那么重要了。事实上,如果说关于 n-gram 平滑技术的研究方向已陷入沉寂,这几乎不算夸张。本文重新审视经典 n-gram 平滑技术在神经语言模型时代可能发挥的作用。首先,我们在标签平滑(一种用于神经语言模型的流行正则化技术)与 add-λ 平滑之间建立了形式上的等价关系。其次,我们推导出一个通用框架,可将任意 n-gram 平滑技术转换为与神经语言模型兼容的正则化器。我们的实证结果表明,我们提出的新型正则化器在语言建模和机器翻译任务上与标签平滑相当,并且有时甚至优于标签平滑。

英文摘要:

For nearly three decades, language models derived from the $n$-gram assumption held the state of the art on the task. The key to their success lay in the application of various smoothing techniques that served to combat overfitting. However, when neural language models toppled $n$-gram models as the best performers, $n$-gram smoothing techniques became less relevant. Indeed, it would hardly be an understatement to suggest that the line of inquiry into $n$-gram smoothing techniques became dormant. This paper re-opens the role classical $n$-gram smoothing techniques may play in the age of neural language models. First, we draw a formal equivalence between label smoothing, a popular regularization technique for neural language models, and add-$λ$ smoothing. Second, we derive a generalized framework for converting any $n$-gram smoothing technique into a regularizer compatible with neural language models. Our empirical results find that our novel regularizers are comparable to and, indeed, sometimes outperform label smoothing on language modeling and machine translation.

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

↑