Effective Batching for Recurrent Neural Network Grammars

被引:0
|
作者
Noji, Hiroshi [1 ]
Oseki, Yohei [2 ]
机构
[1] AIST, Artificial Intelligence Res Ctr, Tokyo, Japan
[2] Univ Tokyo, Grad Sch Arts & Sci, Tokyo, Japan
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
As a language model that integrates traditional symbolic operations and flexible neural representations, recurrent neural network grammars (RNNGs) have attracted great attention from both scientific and engineering perspectives. However, RNNGs are known to be harder to scale due to the difficulty of batched training. In this paper, we propose effective batching for RNNGs, where every operation is computed in parallel with tensors across multiple sentences. Our PyTorch implementation effectively employs a GPU and achieves x6 speedup compared to the existing C++ DyNet implementation with model-independent auto-batching. Moreover, our batched RNNG also accelerates inference and achieves x20-150 speedup for beam search depending on beam sizes. Finally, we evaluate syntactic generalization performance of the scaled RNNG against the LSTM baseline, based on the large training data of 100M tokens from English Wikipedia and the broad-coverage targeted syntactic evaluation benchmark.(1)
引用
收藏
页码:4340 / 4352
页数:13
相关论文
共 50 条
  • [21] Memristive recurrent neural network
    Tornez Xavier, Gerardo Marcos
    Gomez Castaneda, Felipe
    Flores Nava, Luis Martin
    Moreno Cadenas, Jose Antonio
    NEUROCOMPUTING, 2018, 273 : 281 - 295
  • [22] Selective Recurrent Neural Network
    Ster, Branko
    NEURAL PROCESSING LETTERS, 2013, 38 (01) : 1 - 15
  • [23] Latched recurrent neural network
    Šter, Branko
    Elektrotehniski Vestnik/Electrotechnical Review, 2003, 70 (1-2): : 46 - 51
  • [24] Multiscale computation on feedforward neural network and recurrent neural network
    Bin Li
    Xiaoying Zhuang
    Frontiers of Structural and Civil Engineering, 2020, 14 : 1285 - 1298
  • [25] Multiscale computation on feedforward neural network and recurrent neural network
    Li, Bin
    Zhuang, Xiaoying
    FRONTIERS OF STRUCTURAL AND CIVIL ENGINEERING, 2020, 14 (06) : 1285 - 1298
  • [26] Effective integration of morphological analysis and named entity recognition based on a recurrent neural network
    Lee, Hyeon-gu
    Park, Geonwoo
    Kim, Harksoo
    PATTERN RECOGNITION LETTERS, 2018, 112 : 361 - 365
  • [27] A recurrent neural network for airlines network design
    Domínguez-Merino, E
    Muñoz-Pérez, J
    CCCT 2003, VOL 5, PROCEEDINGS: COMPUTER, COMMUNICATION AND CONTROL TECHNOLOGIES: II, 2003, : 121 - 125
  • [28] Binary second-order recurrent neural networks for inferring regular grammars
    Jung, SH
    Yoon, H
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2000, E83D (11) : 1996 - 2007
  • [29] Binary second-order recurrent neural networks for inferring regular grammars
    Jung, Soon-Ho
    Yoon, Hyunsoo
    IEICE Transactions on Information and Systems, 2000, 383 -D (11) : 1996 - 2007
  • [30] Simple recurrent neural network:: A neural network structure for control systems
    Hernández, RP
    Gallegos, JA
    Reyes, JAH
    NEUROCOMPUTING, 1998, 23 (1-3) : 277 - 289