Abstract
Dependency parsing models traditionally utilize biaffine attention to score word relationships but often omit the score normalization standard in Transformer architectures. This paper demonstrates that scaling biaffine scores by the square root of the hidden dimension stabilizes the softmax function, enabling models to achieve state-of-the-art performance with significantly fewer parameters. By introducing this simple normalization, we show that deep BiLSTM layers, previously used to implicitly manage variance, can be reduced, leading to up to an 85% reduction in trainable parameters without sacrificing accuracy.
Introduction
Dependency parsing (DP) involves mapping grammatical or semantic relationships between words in a sentence, represented as a graph. A common approach uses a biaffine scorer to calculate scores for word pairs. While mathematically similar to Transformer self-attention, biaffine scorers in DP have historically lacked the $1/\sqrt{d_k}$ scaling factor. This omission leads to high-variance inputs that can cause vanishing gradients in the softmax function.
The authors hypothesize that the deep, parameter-heavy BiLSTM layers typically found in DP models serve as implicit regularizers to manage this variance. By implementing explicit normalization, the need for such depth is minimized, allowing for more efficient architectures.
Architecture and Methodology
The study utilizes a standard DP architecture consisting of a frozen BERT encoder, an optional tagger, stacked BiLSTMs, and MLPs leading to a biaffine scorer. The key modification is the introduction of a Transformer-style scaling factor ($a = 1/\sqrt{d}$) to the biaffine scores.
To validate their hypothesis, the researchers combined theoretical proofs with extensive empirical testing. Theoretically, they applied implicit regularization theory to show that network depth reduces the effective rank of weight matrices, thereby lowering output variance. Empirically, they conducted thousands of experiments across various BiLSTM layer counts ($N \in \{0, 1, 2, 3\}$), hidden dimensions, and MLP sizes.
Experimental Results
The normalization technique was tested across a diverse array of datasets, including semantic (ADE, CoNLL04, SciERC, ERFGC) and syntactic (enEWT, SciDTB) dependency parsing, as well as non-linguistic graph tasks.
Key Findings
- Parameter Efficiency: Models using only one BiLSTM layer with normalization matched or exceeded the performance of unnormalized models with three layers. This, combined with smaller hidden dimensions, allows for an 85% reduction in trainable parameters.
- Performance Gains: On the challenging SciERC dataset, normalization improved performance by 23% in a 0-layer BiLSTM configuration compared to the unnormalized baseline.
- State-of-the-Art: The normalized model achieved a new SOTA F1 score of 0.708 on the ERFGC dataset.
- Stability and Convergence: Normalization leads to faster training and more stable predictions, particularly on complex datasets where unnormalized scores often result in high uncertainty.
Conclusion
Explicit score normalization in biaffine dependency parsers effectively replaces the need for deep, parameter-intensive networks. This simple adjustment not only improves performance across various linguistic and non-linguistic tasks but also significantly enhances parameter efficiency. Future work will explore applying this technique to large-scale discourse parsing and explicit model pruning.
Summary updated