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

可串行化堆栈长短期记忆

Parallelizable Stack Long Short-Term Memory

Johns Hopkins University(约翰斯·霍普金斯大学)

Shuoyang Ding, Philipp Koehn

摘要:

堆栈长短期记忆(StackLSTM)对于解析和字符串到树神经机器翻译等各种应用都很有用,但众所周知,由于计算依赖于离散操作,因此GPU训练很难并行化。在本文中,我们通过利用StackLSTM的状态访问模式来解决这个问题,以使不同离散操作的计算均匀化。我们的解析实验表明,该方法几乎随批量大小的增加而线性扩展,与Dynet C++实现相比,我们的并行化PyTorch实现的训练速度明显更快。

英文摘要:

Stack Long Short-Term Memory (StackLSTM) is useful for various applications such as parsing and string-to-tree neural machine translation, but it is also known to be notoriously difficult to parallelize for GPU training due to the fact that the computations are dependent on discrete operations. In this paper, we tackle this problem by utilizing state access patterns of StackLSTM to homogenize computations with regard to different discrete operations. Our parsing experiments show that the method scales up almost linearly with increasing batch size, and our parallelized PyTorch implementation trains significantly faster compared to the Dynet C++ implementation.

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

↑