arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1708.05997cs.CLcs.AI
收藏

一种训练大词汇量语言模型的批噪声对比估计方法

A Batch Noise Contrastive Estimation Approach for Training Large Vocabulary Language Models

Saarland University(萨尔大学)

Youssef Oualil, Dietrich Klakow

摘要:

训练大词汇量神经网络语言模型(NNLM)是一项艰巨的任务,因为输出层归一化的明确要求,通常涉及在完整词汇表上评估完整的softmax函数。本文提出了一种批噪声对比估计(B-NCE)的方法来缓解这个问题。这是通过在每个时间步将词汇减少到批处理中的目标词,然后用噪声对比估计方法替换softmax来实现的,其中这些词同时扮演目标和噪声样本的角色。在这样做时,所提出的方法可以充分制定和实施使用最佳的密集矩阵运算。应用B-NCE在大文本压缩基准测试(LTCB)和十亿字基准测试(OBWB)上对不同的NNLM进行训练,显示出训练时间的显著减少,而模型性能没有明显下降。本文还提出了一个新的基线比较研究不同的标准NNLM上的大型OBWB在一个泰坦-X GPU。

英文摘要:

Training large vocabulary Neural Network Language Models (NNLMs) is a difficult task due to the explicit requirement of the output layer normalization, which typically involves the evaluation of the full softmax function over the complete vocabulary. This paper proposes a Batch Noise Contrastive Estimation (B-NCE) approach to alleviate this problem. This is achieved by reducing the vocabulary, at each time step, to the target words in the batch and then replacing the softmax by the noise contrastive estimation approach, where these words play the role of targets and noise samples at the same time. In doing so, the proposed approach can be fully formulated and implemented using optimal dense matrix operations. Applying B-NCE to train different NNLMs on the Large Text Compression Benchmark (LTCB) and the One Billion Word Benchmark (OBWB) shows a significant reduction of the training time with no noticeable degradation of the models performance. This paper also presents a new baseline comparative study of different standard NNLMs on the large OBWB on a single Titan-X GPU.

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

↑