In natural language processing, parsing—the task of determining the syntactic or semantic structure of a sentence—presents a fundamental conflict between search efficiency and model complexity. To find the "best" parse, a system must navigate a massive space of possible trees.
Simple models, like Probabilistic Context-Free Grammars (PCFGs), can search this space efficiently using dynamic programming because they assume that different parts of the tree are independent. However, language is full of global dependencies and subtle context that these local models miss. Discriminative reranking solves this by splitting the problem into two stages: a fast, "coarse" search followed by a slow, "fine-grained" evaluation.
The Two-Stage Architecture
The core intuition behind reranking, as described by Matthew Lease, Eugene Charniak, and Mark Johnson 0001 in A Look at Parsing and Its Applications, is a division of labor:
- Candidate Generation: A generative model (the "base parser") performs the heavy lifting of searching the entire space of possible structures. Instead of returning just one answer, it produces an $N$-best list or a dense "forest" of the most likely candidates.
- Discriminative Selection: A second model (the "reranker") examines only these few candidates. Because it doesn't have to search the whole space, it can afford to use "global" features—complex linguistic constraints that look at the entire tree at once.
This approach is powerful because the reranker can use features that are mathematically impossible to integrate into the initial search. For example, Keith B. Hall showed in K-best Spanning Tree Parsing that even when a simple model fails to rank the correct parse first, the "gold" structure is almost always present within the top 50 candidates, waiting to be "rescued" by a smarter reranker.
Capturing Global and Extra-Sentential Context
The primary advantage of the reranking stage is its ability to incorporate arbitrary, overlapping features. In The Effect of Higher-Order Dependency Features in Discriminative Phrase-Structure Parsing, Gregory F. Coppola and Mark Steedman demonstrate that "higher-order" features—which look at multiple levels of the tree simultaneously—significantly boost accuracy, especially when the parser encounters text outside its training domain.
This flexibility extends beyond the sentence itself. Jackie CK Cheung and Gerald Penn utilized reranking to model "syntactic priming"—the tendency for humans to repeat grammatical structures within a document. By using the structure of the previous sentence as a feature in the reranker for the current sentence, they broke the traditional "sentence-as-an-island" constraint of modern parsers (Utilizing Extra-Sentential Context for Parsing).
Robustness and Data Scarcity
Reranking also serves as a bridge between different types of linguistic data and tasks. Weiwei Sun and colleagues demonstrated that a reranker can effectively combine "homogeneous" data (the primary treebank) with "heterogeneous" data (differently annotated sources) to improve Chinese parsing (Discriminative Parse Reranking for Chinese with Homogeneous and Heterogeneous Annotations).
In domains where data is scarce, such as Spoken Language Understanding (SLU), the two-stage approach provides a "data bottleneck" workaround. Marco Dinarelli, Alessandro Moschitti, and Giuseppe Riccardi found that combining a robust generative model with a high-dimensional discriminative reranker allows systems to perform well even with very small training sets (Re-Ranking Models Based-on Small Training Data for Spoken Language Understanding).
Generalizing the Pattern
While initially popularized for syntactic parsing, this "generate-then-refine" pattern has become a standard template for complex structured prediction:
- Semantic Parsing: Kyle Richardson and Jonas Kuhn applied it to map technical documentation to code, using a reranker to incorporate multi-word phrase mappings and document-level context (Learning Semantic Correspondences in Technical Documentation).
- Slot Filling: Kei Wakabayashi et al. reversed the typical order, using a discriminative model to generate candidates and a generative Bayesian model to rerank them, proving that the hybrid approach is more about the complementarity of the two models than a specific fixed sequence (Nonparametric Bayesian Models for Spoken Language Understanding).
By decoupling the search for structure from the evaluation of that structure, discriminative reranking allows researchers to build models that are both computationally tractable and linguistically sophisticated.