TL;DR
Researchers from NVIDIA have introduced two structural "tricks"—matrix factorization and group partitioning—to drastically reduce the parameter count and training time of large Long Short-Term Memory (LSTM) networks. These modifications allow models to train roughly twice as fast, ultimately achieving a new state-of-the-art perplexity of 24.29 on the One Billion Word Benchmark.
The Problem: The "Heavy" LSTM
While LSTM networks are the traditional workhorses of sequence modeling tasks like language modeling, speech recognition, and translation, they are notoriously "heavy." A standard LSTM with a projection layer (LSTMP) contains millions of parameters, primarily concentrated in a single large weight matrix ($W$) used to compute the four internal gates.
This massive parameter count leads to two main bottlenecks:
- Slow Training: Training these models on massive datasets can take weeks, even on high-end multi-GPU systems.
- Memory Limits: Large matrices are difficult to synchronize across distributed systems and can easily exceed GPU memory limits.
The authors sought to find structural ways to "slim down" the LSTM cell without losing its ability to capture complex dependencies.
Methods: Slimming Down the Architecture
The paper proposes two distinct architectural modifications to the standard LSTMP cell to reduce complexity and improve parallelization.
1. Factorized LSTM (F-LSTM)
This method applies "factorization by design." Instead of using one giant weight matrix $W$, the authors approximate it as the product of two smaller matrices ($W \approx W_2 \times W_1$).
- The Logic: By choosing an intermediate rank $r$ that is smaller than the hidden state size, the total number of parameters drops significantly.
- The Benefit: It acts as an architectural bottleneck, forcing the network to learn a more compressed, efficient representation of the gate logic.
2. Group LSTM (G-LSTM)
Inspired by grouped convolutions in computer vision (such as those used in AlexNet), this method partitions the input and the hidden states into $k$ independent groups.
- The Logic: In a 2-group setup, the first half of the input and hidden state only interacts with the first half of the gates, and the second half only interacts with the second.
- The Benefit: This drastically reduces the number of parameters (by a factor of $k$) and is perfectly suited for model parallelism, as each group can be computed independently on different hardware units.
Key Insights and Ideas
Evaluating their models on the One Billion Word Benchmark against a standard "BIGLSTM" baseline, the authors uncovered several important insights:
- Wall-Clock Time is the Real Metric: The authors observed that while a larger, uncompressed model might learn more "per step," factorized models are so much faster to compute that they can complete many more training steps in the same amount of time. In a fixed one-week training window, the faster, leaner models reached much better performance levels.
- Independence Doesn't Hurt: The G-LSTM assumes that certain features in the hidden state can be processed independently. Surprisingly, this structural constraint doesn't seem to hinder the model's expressive power. The efficiency gains more than compensate for any theoretical loss in representational capacity.
- Communication Efficiency: By reducing the number of parameters, these methods reduce the amount of data that needs to be synchronized between GPUs during distributed training, further accelerating the process.
Key Results
The experiments were conducted on an NVIDIA DGX-1 system with 8 Tesla P100 GPUs. The results highlight massive gains in both speed and predictive performance.
| Model | Perplexity (Lower is better) | RNN Parameters | Training Speed (Words/sec) |
|---|---|---|---|
| BIGLSTM Baseline | 31.00 | 84.0M | 20.3K |
| F-LSTM (Rank 512) | 28.11 | 51.4M | 42.9K |
| G-LSTM (4 Groups) | 28.17 | 33.6M | 41.1K |
- Speedup: Both F-LSTM and G-LSTM were ~2x faster than the baseline.
- Performance: After one week, both new methods outperformed the baseline perplexity.
- New SOTA: By letting the G-LSTM (4 groups) train for an additional week, they achieved a single-model state-of-the-art perplexity of 24.29.
Limitations and Future Work
While highly successful, the authors noted a few limitations and avenues for future exploration:
- Non-linear Approximations: Briefly replacing the linear transform with a deeper feed-forward neural network did not yield immediate benefits.
- Hierarchical Grouping: A small experiment showed that "stacking" layers with different group counts (e.g., 4 groups in the first layer, 8 in the second) showed promise for learning different levels of abstraction, remaining an open topic for future research.
- Hardware Specifics: The impressive speedups are somewhat dependent on the specific hardware (DGX-1) and the efficiency of the underlying matrix multiplication kernels.
Summary updated