TL;DR
This paper introduces a "lower the simpler" strategy to make complex hierarchical recurrent neural networks more efficient for training. By replacing lower layers with simpler, less computationally intensive units (Scalar Gated Units and Fixed-size Ordinally-Forgetting Encoding), they achieve significant reductions in training time and parameters for models like HRED and R-NET, without sacrificing performance.
What Problem Does This Paper Address?
Modern natural language understanding (NLU) models, particularly those dealing with sequential data like dialogues or text comprehension, often employ deep, hierarchical recurrent neural networks. While these architectures achieve impressive performance, their complexity leads to computationally expensive training, requiring substantial time and memory. This is especially true for the backward propagation phase, where gradient calculations become exponentially more complex in deeper layers. The paper aims to tackle this efficiency bottleneck by simplifying the model architecture without compromising its predictive power.
Methods
The core contribution is the "lower the simpler" strategy. This involves systematically replacing the recurrent units in the lower layers of hierarchical models with simpler alternatives.
- Scalar Gated Unit (SGU): A simplified variant of the Gated Recurrent Unit (GRU). Unlike GRU, which uses vector-valued gates, SGU uses scalar gates. This reduces the number of trainable parameters and computational operations.
- Fixed-size Ordinally-Forgetting Encoding (FOFE): An encoding method that maps variable-length word sequences to a fixed-size representation. Crucially, FOFE has no trainable parameters, making it extremely efficient.
These new units are then used to replace GRUs in specific layers of two established NLU models:
- HRED (Hierarchical Recurrent Encoder-Decoder): The sentence-level encoder (bottom layer) is replaced with FOFE, and the dialogue-level encoder (middle layer) is replaced with SGU.
- R-NET: The character-level embedding layer (bottom layer) is replaced with a bidirectional FOFE (BiFOFE), and the encoding layer (middle layer) is replaced with a bidirectional SGU (BiSGU).
Datasets
The paper evaluates its proposed models on the following datasets:
- Dialogue Datasets:
- MovieTriples: A dataset of over 240,000 dialogues from movie scripts.
- Ubuntu: A dataset of over 490,000 dialogues from Ubuntu chat logs.
- Machine Reading Comprehension (MRC) Dataset:
- SQuAD (Stanford Question Answering Dataset): A dataset of over 100,000 passage-question pairs with human-generated answer spans, sourced from Wikipedia.
All datasets were partitioned into training (80%), development (10%), and test (10%) sets.
Key Insights and Ideas
- Gradient Complexity is Key: The paper correctly identifies that backward propagation is the computational bottleneck in RNN training. The exponential increase in gradient complexity from top to bottom layers is a fundamental reason why simplifying lower layers is effective.
- Simplicity Doesn't Necessarily Mean Performance Loss: The core hypothesis is that simpler units in lower layers can still effectively capture essential information, and that the more complex units in upper layers can compensate for any potential information loss. The results strongly support this.
- Parameter Reduction is Significant: The simplified models achieve substantial reductions in trainable parameters, directly impacting memory usage and potentially enabling larger batch sizes or models on resource-constrained hardware.
- FOFE's Parameter-Free Advantage: Using FOFE, which has no trainable parameters, in the bottom layers offers a significant efficiency boost, as it completely removes a portion of the model's trainable weights and associated gradient computations.
Key Results
The experimental results demonstrate the effectiveness of the "lower the simpler" strategy:
- HRED:
- Parameter Reduction: 25%-35% fewer trainable parameters.
- Training Time: Over 50% less training time.
- Performance: Slightly better performance (lower perplexity and error rate) compared to the baseline HRED across different model sizes and datasets (MovieTriples and Ubuntu).
- R-NET:
- Parameter Reduction: 13% fewer trainable parameters.
- Training Time: 21% less training time.
- Performance: Slightly better performance (higher EM/F1 scores) compared to the baseline R-NET on the SQuAD dataset.
Limitations and Future Work
- Limitations: The paper focuses on GRU-based models (HRED and R-NET). While the strategy is presented as generally applicable, its effectiveness on other recurrent architectures like LSTMs or different hierarchical structures is not explicitly tested. The performance gains are described as "slightly better," implying that the simplification does not lead to dramatic improvements but rather a more efficient path to similar or marginally better results.
- Future Work: The authors believe their methodology is applicable to "many other hierarchical recurrent models." Future work could involve applying this strategy to a wider range of NLU tasks and model architectures, exploring different combinations of simplified units, and potentially investigating the theoretical underpinnings of why this simplification works so well across different tasks.
Summary updated