When predicting complex, structured outputs—such as syntactic parse trees, semantic roles, or compressed sentences—machine learning models face a fundamental conflict between computational tractability and expressive power.
To efficiently search through the astronomical number of possible structures for a given sentence, traditional algorithms rely on strict locality assumptions. For example, a standard context-free grammar parser assumes that the probability of expanding a phrase depends only on its immediate local node, completely ignoring the broader sentence context. This independence assumption allows efficient exact search via dynamic programming, but it prevents the model from using global, non-local features that are essential for resolving real-world ambiguities.
Two-stage discriminative reranking elegantly bypasses this limitation by decoupling the structured prediction problem into two distinct phases: candidate generation and global selection. Instead of evaluating every possible structure with a complex model, a fast base model prunes the search space down to a small set of high-quality candidates. A secondary, high-capacity critic then evaluates only these few candidates, free to use arbitrary, global features without breaking the underlying search mathematics.
The Architecture of a Reranking Pipeline
A reranking system splits the heavy lifting of structured prediction into a sequential pipeline, balancing the strengths of different modeling paradigms.
[Input Sentence]
│
▼
┌────────────────────────────────────────────────────────┐
│ Stage 1: Candidate Generation (Local/Generative Model) │
└────────────────────────────────────────────────────────┘
│
▼ [Top-K Candidates / Dense Forest]
┌────────────────────────────────────────────────────────┐
│ Stage 2: Discriminative Selection (Global Critic) │
└────────────────────────────────────────────────────────┘
│
▼
[Optimal Structured Output]
Stage 1: Candidate Generation and Pruning
The first stage acts as a high-recall filter. Its goal is not necessarily to find the absolute perfect structure, but to ensure that the correct structure is included within a manageable subset of options (such as a $k$-best list or a dense forest of charts).
Because this stage must scan the entire combinatorial space of possible outputs, it typically employs computationally efficient models. Historically, generative models or edge-factored parsers have filled this role. For instance, Le Roux et al. and Cowan et al. utilized the raw speed of generative grammars to propose initial candidate trees. To demonstrate the viability of this pruning step, Hall implemented an efficient edge-factored maximum spanning tree algorithm to generate the top 50 candidate parses for dependency parsing, proving that the true parse is almost always trapped within this small pool.
Stage 2: Discriminative Selection
Once the search space is reduced to a fixed number of candidates, the secondary model acts as a global critic. Because it only scores a handful of fully formed structures, it does not need to support dynamic programming or step-by-step decoding.
This stage typically uses a discriminative framework, such as a log-linear model or a Conditional Random Field (CRF), which can ingest arbitrary, overlapping, and non-local features. As Lease et al. note, this separation allows the system to enforce complex linguistic constraints that would otherwise make the initial bottom-up search computationally impossible.
Why It Works: Unlocking Global Features
The true power of the two-stage approach lies in the nature of the features it unlocks. Because the reranker evaluates a complete candidate structure at once, it can look across the entire sentence—or even across multiple sentences—to determine plausibility.
Cross-Sentential and Contextual Features
Standard parsers treat sentences as isolated islands. However, humans exhibit "syntactic priming," frequently repeating structural patterns within a single document. By using a two-stage pipeline, Cheung et al. built a CRF-based reranker that evaluated candidate trees using extra-sentential context from preceding sentences, capturing document-level consistency that local parsers miss entirely.
Cross-Paradigm Stacking
Reranking allows developers to combine entirely different structural philosophies. For example, phrase-structure parsing (identifying nested constituents) and dependency parsing (identifying word-to-word relations) are traditionally separate tasks. Farkas and Schmid et al. demonstrated that phrase-structure parsing can be significantly improved by extracting features from automatic dependency parses to rerank candidate constituent trees, effectively merging the strengths of both paradigms.
Semantic and Lexical Constraints
Ambiguities in syntax are often resolved by semantic plausibility. Boxwell et al. designed a system where candidate parse trees generated by a syntactic model were re-ordered based on the likelihood of the semantic roles they implied, allowing a semantic model to correct attachment errors. Similarly, Constant et al. used a reranker to simultaneously resolve lexical ambiguities (like identifying multiword expressions) and syntactic structures, rather than forcing a fragile pipeline decision early on.
Flipping the Hybrid: Discriminative-to-Generative Reranking
While the classic setup uses a generative model to propose candidates and a discriminative model to refine them (Sun et al., Foster et al.), the inverse architecture is also highly effective. In this flipped paradigm, a fast discriminative model handles the initial sequence labeling or parsing, and a generative model acts as the global critic.
For example, Matthews et al. explored generative reranking via importance sampling. They used a simple discriminative parser to propose a wide distribution of candidate trees, and then used a high-capacity generative model of syntax to evaluate them, capturing global structural information that greedy discriminative parsers fail to track.
This flipped approach is also prominent in Spoken Language Understanding (SLU). Wakabayashi et al. deployed a discriminative sequential labeler to generate top-$N$ candidate slot-fillings, which were then reranked by a generative Bayesian model. The generative model evaluated the deep semantic likelihood of specific phrase values, combining the raw tagging efficiency of discriminative models with the semantic depth of generative distribution modeling.
Applications Beyond Syntactic Parsing
The utility of two-stage refinement extends far beyond traditional syntax trees, serving as a robust framework across diverse language processing tasks:
- Spoken Language Understanding: In dialogue systems where annotated data is scarce, Dinarelli et al. showed that a generative-discriminative reranking pipeline provides a highly data-efficient way to refine semantic interpretations.
- Semantic Parsing and Code Generation: Richardson et al. applied the framework to map natural language technical documentation to formal code signatures, using a log-linear reranker to inject document-level context and phrase mappings onto candidates generated by simpler translation models.
- Sentence Compression: Nomoto combined a rule-based candidate generation stage with a CRF statistical reranking phase, evaluating candidate summaries based on global lexical context and TF-IDF features.
Additionally, this architecture creates a powerful engine for semi-supervised learning. The high-quality outputs selected by the discriminative reranker can be treated as gold-standard data to retrain the base model. As demonstrated by Foster et al. and the authors of a study on the Paris 7 Treebank, this self-training loop allows a parser to adapt to entirely new or noisy domains by iteratively improving both candidate generation and selection.
Key Foundational Work
Morphology and Reranking for the Statistical Parsing of Spanish (2005) — contributed 1 concept elements to this direction.
Effective Self-Training for Parsing (2006) — contributed 1 concept elements to this direction.
A Look at Parsing and Its Applications (2006) — contributed 1 concept elements to this direction.