arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1809.05916cs.LGcs.CLstat.ML
收藏

基于课程的邻近抽样用于序列预测

Curriculum-Based Neighborhood Sampling For Sequence Prediction

University of Liverpool(利物浦大学)

James O' Neill, Danushka Bollegala

摘要:

考虑到训练和测试之间的差异,语言模型中的多步预测任务是具有挑战性的。在测试时,需要语言模型在给定过去的预测作为输入的情况下进行预测,而不是在训练期间提供的过去的目标。这种差异称为暴露偏差,可能导致测试时生成的序列中出现复合错误。为了提高神经语言模型的泛化能力并解决复合错误,我们提出了一种基于课程学习的方法,该方法将最初确定的教师策略逐渐改变为逐渐随机的策略,我们将其称为\textit{Nearest-Neighbor Replacement Sampling}。在给定时间步处选择的输入被替换为过去目标的采样最近邻居,其截尾概率与原始单词及其前$k$最相似单词之间的余弦相似度成比例。这允许教师在教师提供次优策略或初始策略难以为学习者建模时探索替代方案。所提出的策略是直接的,在线的,需要很少的额外的内存要求。我们报告我们的主要研究结果,两个语言建模基准,并发现所提出的方法执行特别好,当与预定的采样,也试图减轻复合错误语言模型。

英文摘要:

The task of multi-step ahead prediction in language models is challenging considering the discrepancy between training and testing. At test time, a language model is required to make predictions given past predictions as input, instead of the past targets that are provided during training. This difference, known as exposure bias, can lead to the compounding of errors along a generated sequence at test time. In order to improve generalization in neural language models and address compounding errors, we propose a curriculum learning based method that gradually changes an initially deterministic teacher policy to a gradually more stochastic policy, which we refer to as \textit{Nearest-Neighbor Replacement Sampling}. A chosen input at a given timestep is replaced with a sampled nearest neighbor of the past target with a truncated probability proportional to the cosine similarity between the original word and its top $k$ most similar words. This allows the teacher to explore alternatives when the teacher provides a sub-optimal policy or when the initial policy is difficult for the learner to model. The proposed strategy is straightforward, online and requires little additional memory requirements. We report our main findings on two language modelling benchmarks and find that the proposed approach performs particularly well when used in conjunction with scheduled sampling, that too attempts to mitigate compounding errors in language models.

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

↑