English

Recurrent Neural Network from Adder's Perspective: Carry-lookahead RNN

Machine Learning 2021-08-25 v2 Neural and Evolutionary Computing

Abstract

The recurrent network architecture is a widely used model in sequence modeling, but its serial dependency hinders the computation parallelization, which makes the operation inefficient. The same problem was encountered in serial adder at the early stage of digital electronics. In this paper, we discuss the similarities between recurrent neural network (RNN) and serial adder. Inspired by carry-lookahead adder, we introduce carry-lookahead module to RNN, which makes it possible for RNN to run in parallel. Then, we design the method of parallel RNN computation, and finally Carry-lookahead RNN (CL-RNN) is proposed. CL-RNN takes advantages in parallelism and flexible receptive field. Through a comprehensive set of tests, we verify that CL-RNN can perform better than existing typical RNNs in sequence modeling tasks which are specially designed for RNNs.

Keywords

Cite

@article{arxiv.2106.12901,
  title  = {Recurrent Neural Network from Adder's Perspective: Carry-lookahead RNN},
  author = {Haowei Jiang and Feiwei Qin and Jin Cao and Yong Peng and Yanli Shao},
  journal= {arXiv preprint arXiv:2106.12901},
  year   = {2021}
}
R2 v1 2026-06-24T03:33:00.860Z