Matroids Hitting Sets and Unsupervised Dependency Grammar Induction

Nicholas J. A. Harvey, David R. Karger, Virginia Savova, Leonid PeshkinarXiv 2017

Introduction

Unsupervised grammar induction—the task of learning syntactic structure from raw text without pre-existing rules—is a fundamental challenge in computational linguistics. This paper approaches the problem by modeling dependency grammars through the lens of combinatorial optimization, specifically the "Min Spanning-Tree Hitting Set" problem. By applying Occam’s razor, the authors suggest that the most likely grammar is the smallest set of dependency rules capable of parsing an entire corpus.

Dependency Grammars as Spanning Trees

In a dependency grammar, the syntactic structure of a sentence is represented as a tree where nodes are words and edges represent dependencies between a "head" and its "dependent."

Dependency trees illustrating the hierarchical relationships between words in a sentence.

The authors formalize this by imagining a lexicon-wide graph where every possible word-to-word dependency is a potential edge. Each sentence in a corpus defines a specific subgraph of these nodes. The goal is to select a minimum global set of edges (the grammar) such that every sentence's subgraph contains at least one valid spanning tree ( a valid parse).

The Min Spanning-Tree Hitting Set Problem

The problem is formally defined as follows: Given a graph $G = (V, E)$ and a collection of node subsets $V_1, \dots, V_m \subseteq V$, find a minimum size subset of edges $E' \subseteq E$ such that for every $i$, the subgraph $(V_i, E' \cap E(V_i))$ is connected.

A graph representation G used to model the space of possible linguistic dependencies.

The authors further generalize this to matroids, defining the "Minimum Basis Hitting Set" problem. This abstraction allows the framework to apply to any structure governed by independence axioms, linking grammar induction to the rich mathematical field of matroid intersection.

Complexity and Approximation

The paper establishes that the weighted version of this problem is NP-hard to approximate within a factor of $O(\log n)$, while the unweighted version is APX-hard. To address this intractability, the authors introduce a greedy approximation algorithm.

The algorithm works by iteratively selecting edges that provide the greatest reduction in "residual rank" across all sentences—essentially picking the dependency rule that contributes to the most unfinished spanning trees. By leveraging the submodularity of the matroid rank function, the authors prove that this greedy approach achieves an $O(\log n)$ approximation ratio, which is theoretically optimal for this problem class.

Empirical Insights

Preliminary experiments on the CHILDES corpus (adult child-directed speech) demonstrate the algorithm's ability to recover meaningful linguistic structures. Notably, the graph-theoretic approach naturally handles "non-projective" dependencies (where dependency lines cross), which often baffle traditional parsers. For instance, in the sentence "Is that a woof?", the algorithm correctly identifies the non-adjacent dependency between "is" and "woof," whereas simple adjacency-based heuristics fail.

Conclusion and Future Work

By bridging the gap between matroid theory and linguistics, this work provides a robust mathematical foundation for grammar induction. While the current model assumes perfect grammar and undirected edges, future research aims to extend the framework to directed graphs (arborescences) and to accommodate noisy corpora where full spanning trees may not exist for every sentence.

Summary updated

Abstract

This paper formulates a novel problem on graphs: find the minimal subset of edges in a fully connected graph, such that the resulting graph contains all spanning trees for a set of specifed sub-graphs. This formulation is motivated by an un-supervised grammar induction problem from computational linguistics. We present a reduction to some known problems and algorithms from graph theory, provide computational complexity results, and describe an approximation algorithm.
BibTeX
@misc{harvey2017matroids,
  author = {Nicholas J. A. Harvey and David R. Karger and Virginia Savova and Leonid Peshkin},
  title = {{Matroids Hitting Sets and Unsupervised Dependency Grammar Induction}},
  year = {2017},
  eprint = {1705.08992},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.08992},
}
Figure