Abstract
Traditional Reading Comprehension (RC) models rely heavily on recurrent neural networks (RNNs), which are inherently sequential and slow. This paper introduces the Gated Linear Dilated Residual Network (GLDR), a convolutional alternative that leverages parallelism for significant inference speedups. By replacing BiLSTM layers in established models like BiDAF and DrQA with GLDR blocks, the authors achieve competitive accuracy on SQuAD and TriviaQA benchmarks while realizing up to a 100x increase in inference speed.
1. Introduction
In the landscape of 2017-2018 natural language processing, Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) networks were the standard for machine reading tasks. Despite their effectiveness in capturing long-range dependencies, their sequential nature poses a significant bottleneck for real-time applications. While self-attention mechanisms offer parallelism, their quadratic memory complexity ($O(n^2)$) makes them impractical for long documents. This work proposes a middle ground: a dilated convolutional architecture that is both parallelizable and memory-efficient ($O(n)$).
2. Methodology: The GLDR Architecture
The core contribution is the Gated Linear Dilated Residual Network (GLDR). The architecture is designed to replace recurrent layers in existing RC models without requiring a total redesign.
2.1 Dilated Convolutions
Standard convolutions are limited by a small, local receptive field. Dilated convolutions address this by skipping input values at fixed intervals, effectively expanding the receptive field without increasing the number of parameters.
By doubling the dilation factor in each subsequent layer, the model's receptive field grows exponentially with depth, allowing it to capture broad context necessary for complex question answering.
2.2 Gated Linear Units and Residual Connections
To mimic the effective gating mechanisms of LSTMs, the authors employ Gated Linear Units (GLU) instead of standard ReLU activations. This allows the network to control information flow dynamically. Furthermore, residual connections are utilized to facilitate the training of deep convolutional stacks by mitigating vanishing gradient issues.
3. Experimental Evaluation
The GLDR-based models were evaluated against their recurrent counterparts on several major benchmarks, including SQuAD and TriviaQA.
3.1 Performance and Accuracy
On the SQuAD dataset, the convolutional variant of BiDAF achieved an F1 score of 77.27, nearly identical to the original LSTM-based BiDAF's 77.29. Similar parity was observed on TriviaQA and various open-domain sets, proving that the "infinite" memory of RNNs is often unnecessary for these tasks; a sufficiently large convolutional receptive field suffices.
3.2 Computational Efficiency
The primary advantage of the GLDR architecture is its speed. On SQuAD, the Conv-BiDAF model demonstrated a 21x speedup at a batch size of 60. Most impressively, for single-instance inference—a common scenario in production environments—the model was 98x faster than the LSTM version. Training times were also reduced by approximately 6.3x.
4. Discussion and Conclusion
This research demonstrates that sequential processing is not a prerequisite for high-performance reading comprehension. Parallelizable dilated convolutions offer a viable path toward low-latency, high-accuracy NLP systems. While ConvNets have a fixed receptive field determined by their depth, the exponential growth provided by dilation makes this limitation negligible for most practical document lengths. Future work may involve hybrid architectures that combine the local efficiency of convolutions with the global context capabilities of lightweight attention mechanisms.
Summary updated