Spa: On the Sparsity of Virtual Adversarial Training for Dependency Parsing

Chao Lou, Wenjuan Han, Kewei Tu

Introduction

Dependency parsing—identifying the grammatical relationships between words in a sentence—is a "structured prediction" task. Unlike simple classification, a parser must choose one tree out of an exponentially large number of possible structures. While Virtual Adversarial Training (VAT) is a powerful semi-supervised technique, applying it to parsing faces two critical challenges: exponential complexity in calculating similarity between distributions and the "non-sparse problem," where millions of unlikely parse trees create noise that can drown out linguistically sensible parses.

The Spa Algorithm

Presented at AACL-IJCNLP 2022, Spa (Sparse Parse Adjustment) introduces a novel approach to bring VAT to structured prediction. The method relies on two key innovations:

  1. Exact Computation via Semirings: Instead of lossy "Top-K" approximations, Spa uses a CrossEntropy Semiring framework. This allows dynamic programming to compute the exact KL divergence between two Tree Conditional Random Field (TreeCRF) distributions in polynomial time.
  2. Controllable Sparsity: To address the non-sparse problem, the authors introduce temperature scaling ($T_{orig}$ and $T_{adv}$). Lowering the temperature "sharpening" the distribution, forcing the model to focus its learning energy on a few plausible trees.
The Spa architecture integrates VAT into a TreeCRF parser, updating perturbations iteratively to improve robustness.

The system is built on a state-of-the-art TreeCRF parser using Biaffine scorers and a BiLSTM encoder, as shown in the architecture above. By adding a tiny "adversarial" perturbation ($d$) to word embeddings, the model is trained to produce consistent outputs for both original and perturbed versions.

Experimental Setup

The researchers evaluated Spa using the Penn Treebank (WSJ) for English dependency parsing and the BLLIP Corpus as a source of unlabeled data (up to 650,000 sentences). They specifically focused on "low-resource" scenarios with labeled data ratios of 10%, 30%, and 50% to test the algorithm's effectiveness when data is scarce.

Key Results and Insights

The experiments revealed that sparsity acts as a crucial inductive bias. Since natural language is inherently sparse—most sentences have only one or two valid parses—mathematically enforcing this sparsity makes the model more robust to noise.

Performance comparison showing that exact computation with sparsity adjustment (W) consistently achieves the highest UAS across different data splits.

As shown in the results table, the ExactComp-(0.3,2) variant (using sparsity adjustment) consistently outperformed both the supervised baselines and versions without sparsity control. In the 10% labeled data setting, Spa achieved a 92.82 UAS (Unlabeled Attachment Score), significantly higher than the 92.11 supervised baseline.

Furthermore, the "exact" dynamic programming approach proved to be more efficient than approximations. Training with Spa's exact computation took 1 minute 41 seconds per epoch, compared to 2 minutes 36 seconds for the Top-3 approximation method, which suffers from the overhead of sorting and maintaining candidate lists.

Conclusion

Spa demonstrates that exact computation of VAT is not only mathematically sound but also computationally superior to common approximations. By tuning sparsity through temperature control, researchers can significantly improve the performance of structured models in semi-supervised settings. The authors conclude that sparsity is a vital tool for training better structured models, providing a more flexible version of the intuition behind Viterbi EM.

Summary updated

BibTeX
@inproceedings{lou2022spa,
  author = {Chao Lou and Wenjuan Han and Kewei Tu},
  title = {{Spa: On the Sparsity of Virtual Adversarial Training for Dependency Parsing}},
  booktitle = {AACL/IJCNLP (Findings)},
  year = {2022},
  doi = {10.18653/v1/2022.findings-aacl.2},
}
Figure