Optimizing Spectral Learning for Parsing

Shashi Narayan, Shay B. Cohen

Introduction

Latent-variable Probabilistic Context-Free Grammars (L-PCFGs) have long been a cornerstone of syntactic parsing. Traditionally, these models are trained using the Expectation-Maximization (EM) algorithm. However, EM is notoriously sensitive to initialization, often converging to local maxima. Furthermore, determining the optimal number of hidden states for each grammatical category (e.g., NP, VP) remains a significant challenge, typically requiring manual tuning or heuristics.

Spectral learning algorithms have emerged as a theoretically robust alternative, offering global convergence guarantees. Despite their mathematical advantages, they have historically struggled to match the empirical performance of EM-based parsers. This paper identifies a primary cause: the reliance on local, rank-based heuristics for state selection. The authors propose a global optimization strategy that allows spectral methods to reach and exceed state-of-the-art performance.

Methodology: Global Search for Latent States

The core contribution of this work is a global search algorithm designed to find the optimal number of latent states for each nonterminal symbol in a grammar.

  1. Spectral Foundation: The approach builds on spectral algorithms that utilize the cross-covariance of "inside" and "outside" trees to identify latent state distributions.
  2. Iterative Search: Rather than relying solely on Singular Value Decomposition (SVD) ranks, the algorithm employs a two-step search process:
  3. Coarse Search: Evaluates a broad range of state counts to identify promising regions.
  4. Refinement: Conducts a local search around the best coarse values to fine-tune the model size.
  5. Optimization Objective: The search directly optimizes for the PARSEVAL $F_1$ score on a development set. This ensures that the model complexity is tuned for downstream parsing accuracy rather than internal mathematical metrics.

Experimental Framework

The proposed method was evaluated on eight morphologically rich languages (MRLs) using treebanks from the SPMRL 2013 shared task. These datasets vary significantly in size and linguistic characteristics, providing a rigorous testbed for the algorithm's robustness.

Table 1: Statistics of the treebanks used in the experiments, including sentence counts and lexical sizes across eight languages.

Key Results and Analysis

The optimized spectral parser demonstrated substantial improvements over "vanilla" spectral baselines and established parsers.

  • Superiority over Berkeley Parser: In six of the eight languages—Basque, Hebrew, Hungarian, Korean, Polish, and Swedish—the optimized spectral parser outperformed the Berkeley parser, which has been the gold standard for EM-based L-PCFG parsing for years.
  • Performance in MRLs: The method proved exceptionally effective for morphologically rich languages. For instance, in Basque, the $F_1$ score improved from 74.7 (Berkeley) to 81.4 (Optimized Spectral).
  • Data Efficiency: Contrary to the belief that spectral methods require massive datasets, the results show strong performance even on smaller treebanks, such as the Hebrew and Swedish sets (approx. 5,000 sentences).
Table 3: Final parsing results (F1 scores) comparing the optimized spectral parser (Cl opt) against the Berkeley parser (Bk) and other state-of-the-art systems.

Conclusion

This research demonstrates that the performance gap between spectral and EM-based parsing is not inherent to the spectral approach itself, but rather a consequence of sub-optimal state selection. By employing a global search strategy to tune latent states, spectral parsers can achieve state-of-the-art results across a diverse range of languages while maintaining their theoretical and computational advantages. Future work may involve integrating head features and exploring more complex search strategies to further enhance accuracy.

Summary updated

BibTeX
@inproceedings{narayan2016optimizing,
  author = {Shashi Narayan and Shay B. Cohen},
  title = {{Optimizing Spectral Learning for Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2016},
  doi = {10.18653/v1/p16-1146},
}
Figure