A Lightweight Recurrent Network for Sequence Modeling

Biao Zhang, Rico Sennrich
5/30/2019
cs.CL

Official code: bzhangGo/lrn (26 stars, Python, BSD-3-Clause, last commit 2022-12-07).

Abstract

Recurrent networks have achieved great success on various sequential tasks with the assistance of complex recurrent units, but suffer from severe computational inefficiency due to weak parallelization. One direction to alleviate this issue is to shift heavy computations outside the recurrence.

Show full abstract

In this paper, we propose a lightweight recurrent network, or LRN. LRN uses input and forget gates to handle long-range dependencies as well as gradient vanishing and explosion, with all parameter related calculations factored outside the recurrence. The recurrence in LRN only manipulates the weight assigned to each token, tightly connecting LRN with self-attention networks. We apply LRN as a drop-in replacement of existing recurrent units in several neural sequential models. Extensive experiments on six NLP tasks show that LRN yields the best running efficiency with little or no loss in model performance.

View on arXivView PDF

Code Implementations(1)

bzhangGo/lrnOfficial100%
BSD-3-Clause

Source code for "A Lightweight Recurrent Network for Sequence Modeling"

261Python, ShellMay 21, 20193 years agoBSD-3-Clause
lightweight-recurrentrecurrent-neural-networksequence-modeling

Similar Papers

Cite this paper

@article{zhang2019lightweight,
  title  = {A Lightweight Recurrent Network for Sequence Modeling},
  author = {Biao Zhang and Rico Sennrich},
  year   = {2019},
  eprint = {1905.13324},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.13324}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1905.13324.svg)](https://codeofpaper.com/paper/1905.13324)

Discussion