[Paper Review] Sliced Recurrent Neural Networks
This paper introduces Sliced Recurrent Neural Networks (SRNNs), a parallelizable RNN variant that splits sequences into subsequences to enable efficient training. By using a slicing mechanism and residual connections across slices, SRNNs achieve 136x faster training than standard RNNs while matching or exceeding performance on six large-scale sentiment analysis datasets, with minimal parameter increase and theoretical equivalence to standard RNNs under linear activation.
Recurrent neural networks have achieved great success in many NLP tasks. However, they have difficulty in parallelization because of the recurrent structure, so it takes much time to train RNNs. In this paper, we introduce sliced recurrent neural networks (SRNNs), which could be parallelized by slicing the sequences into many subsequences. SRNNs have the ability to obtain high-level information through multiple layers with few extra parameters. We prove that the standard RNN is a special case of the SRNN when we use linear activation functions. Without changing the recurrent units, SRNNs are 136 times as fast as standard RNNs and could be even faster when we train longer sequences. Experiments on six largescale sentiment analysis datasets show that SRNNs achieve better performance than standard RNNs.
Motivation & Objective
- To address the slow training speed of standard RNNs due to their sequential recurrence structure.
- To enable parallelization of RNN training without modifying the underlying recurrent units.
- To maintain or improve model performance on sequence modeling tasks while reducing training time.
- To provide a theoretically grounded alternative to standard RNNs that generalizes them under specific conditions.
- To demonstrate the effectiveness of the slicing mechanism on large-scale NLP benchmarks.
Proposed method
- The model divides input sequences into non-overlapping subsequences, which are processed independently in parallel.
- Each subsequence is processed by a standard RNN unit, with hidden states initialized using information from preceding slices.
- Residual connections are applied across slices to preserve long-range dependencies and improve gradient flow.
- The method uses a shared recurrent unit across all slices, maintaining parameter efficiency.
- The architecture is proven to reduce to a standard RNN when linear activation functions are used.
- Training proceeds by backpropagation through time across slices, with gradients flowing between them.
Experimental results
Research questions
- RQ1Can RNNs be effectively parallelized without sacrificing performance or architectural integrity?
- RQ2How does the slicing mechanism affect the model's ability to capture long-range dependencies?
- RQ3To what extent can training speed be improved while maintaining or improving accuracy?
- RQ4What is the theoretical relationship between SRNNs and standard RNNs?
- RQ5How do SRNNs perform on large-scale, real-world NLP tasks like sentiment analysis?
Key findings
- SRNNs achieve 136 times faster training than standard RNNs on the same hardware and setup.
- SRNNs outperform standard RNNs on six large-scale sentiment analysis datasets, demonstrating superior generalization.
- The model maintains high performance with only a small increase in parameters compared to standard RNNs.
- Theoretical analysis confirms that standard RNNs are a special case of SRNNs when using linear activations.
- The method scales effectively with longer sequences, offering even greater speedups for longer sequences.
- The residual connection mechanism across slices significantly improves performance and training stability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.