Efficient Sequence Learning with Group Recurrent Networks

Fei Gao, Lijun Wu, Li Zhao, Tao Qin, Xueqi Cheng, Tie-Yan Liu

Abstract

Training large-scale Recurrent Neural Networks (RNNs) for sequence learning tasks is notoriously slow and resource-intensive. This paper introduces Group Recurrent Networks (GRNs), which partition hidden states into independent groups to significantly reduce parameter counts and computational costs. To prevent information isolation within these groups, a parameter-free "representation rearrangement" layer is employed to ensure global information flow. Experimental results across language modeling, translation, and summarization demonstrate that GRNs can achieve up to a $K$-fold increase in efficiency with little to no loss in accuracy.

Introduction

State-of-the-art sequence learning relies on "big" RNNs—models with hundreds of millions of parameters that can take weeks to train. Research identifies a significant "parameter redundancy" in these models, particularly in the large weight matrices used for hidden state transitions. While Convolutional Neural Networks (CNNs) have successfully utilized "group convolutions" (e.g., ShuffleNet) to improve efficiency, applying this to RNNs is difficult. RNNs possess a temporal dimension and internal memory; simply sparsifying weights can "silo" information, preventing different parts of the hidden state from communicating and thus destroying the model's ability to learn complex dependencies.

Methods

The authors propose a two-part architecture to solve the efficiency-communication trade-off:

1. Group Recurrent Layer

Instead of a single massive matrix multiplication for the hidden state, the input and hidden states are divided into $K$ disjoint groups. Each group performs its own recurrent computation independently. Mathematically, this converts a dense weight matrix into a block-diagonal sparse matrix, reducing parameters and computational cost by a factor of $K$. To ensure high hardware performance, these operations are implemented using batch matrix multiplication, allowing GPUs to process all groups in parallel.

2. Representation Rearrangement Layer

To break the "silos" created by grouping, a shuffle mechanism is introduced. Between layers (spatial) and between time steps (temporal), the hidden state vector is reshaped and transposed. This ensures that in the next step, each group receives a mix of information from all groups in the previous step. This layer is entirely parameter-free, consisting of tensor operations that add almost zero computational overhead.

Comparison of (a) standard RNN, (b) group RNN, and (c) group RNN with representation rearrangement.
The three-step representation rearrangement process: Reshape, Transpose, and Reshape.

Key Results and Insights

The architecture explicitly factorizes recurrent learning into intra-group temporal learning (local patterns) and inter-group correlation (global dependencies via shuffling). This allows the model to achieve the efficiency of a sparse model while maintaining the representational power of a dense one.

  • Parameter Reduction: On the Penn Treebank (PTB) language modeling task, the Group LSTM achieved comparable perplexity to a standard LSTM with a 27% to 35% reduction in total parameters.
  • Translation Performance: On the IWSLT German-to-English task, an 8-group model matched the baseline BLEU score while using only half the parameters in the recurrent layers. On the large-scale WMT’14 task, GRNs achieved results comparable to Google’s GNMT with significantly fewer parameters.
  • Summarization: On the Gigaword dataset, the 2-group model actually outperformed the standard RNNSearch baseline in ROUGE scores, proving that efficiency does not necessitate a loss in nuance.

Limitations and Future Work

While the theoretical FLOP reduction is linear with the number of groups ($K$), the actual wall-clock speedup on GPUs is sub-linear. As $K$ becomes very large, individual matrix multiplications become too small to fully saturate the GPU's parallel processing power. Additionally, there is a "sweet spot" for $K$; experiments showed that increasing $K$ to 16 sometimes led to slight accuracy degradation, suggesting a limit to how much internal representation can be sparsified before rearrangement can no longer compensate. Future work may combine this strategy with other compression techniques like quantization for mobile and edge deployment.

Summary updated

BibTeX
@inproceedings{gao2018efficient,
  author = {Fei Gao and Lijun Wu and Li Zhao and Tao Qin and Xueqi Cheng and Tie-Yan Liu},
  title = {{Efficient Sequence Learning with Group Recurrent Networks}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-1073},
}
Figure