Introduction
In natural language processing (NLP), many tasks are inherently interdependent. For instance, syntactic parsing and part-of-speech (POS) tagging provide mutual constraints that, if modeled jointly, can significantly improve accuracy. However, joint inference often faces a significant complexity bottleneck. While individual tasks can be solved efficiently using dynamic programming (e.g., CKY for parsing or Viterbi for tagging), combining them into a single integrated model typically leads to a "state-space explosion," making exact inference computationally prohibitive. Consequently, researchers often settle for "pipeline" approaches that propagate errors from one stage to the next.
This paper presents a framework based on dual decomposition (specifically Lagrangian relaxation) to address this challenge. By decomposing a complex joint problem into simpler sub-problems and iteratively enforcing agreement between them, the authors provide a method that is both computationally efficient and mathematically rigorous.
The Dual Decomposition Framework
The core idea of dual decomposition is to keep existing, highly optimized models separate rather than building a monolithic joint solver. These models are treated as "black-box" oracles, allowing researchers to leverage state-of-the-art tools without rewriting their internal logic.
Decomposition and Constraints
The joint objective is decomposed into components handled by individual solvers. To ensure the solvers work toward a single coherent output, the framework introduces agreement constraints. For example, if a phrase-structure parser and a POS tagger are used together, they must agree on the tag assigned to each word $i$.
Lagrangian Relaxation and Subgradient Descent
These agreement constraints are incorporated into the objective function using Lagrange multipliers. These multipliers act as penalties or rewards that adjust the local objectives of the sub-models. The optimization follows a simple iterative loop:
- Independent Inference: Each model is solved independently using its current parameters and the current Lagrange multipliers.
- Agreement Check: The algorithm checks for disagreements between the models' outputs (e.g., where the parser and tagger chose different POS tags).
- Multiplier Update: If the models disagree, the Lagrange multipliers are updated via subgradient descent. This increases the "cost" of the disagreement, nudging the models toward a consensus in the next iteration.
- Termination: The process repeats until the models reach full agreement or a maximum number of iterations is reached.
Theoretical Advantages
A significant benefit of this approach is its relationship to Linear Programming (LP) relaxation. Dual decomposition effectively solves an LP relaxation of the original joint inference problem. If the sub-models reach an agreement, the resulting solution is guaranteed to be the globally optimal solution for the original joint problem. This provides a "certificate of optimality" that heuristic methods, such as beam search, lack.
Furthermore, while LP relaxations can theoretically yield fractional (non-integral) solutions, the authors find that for common NLP structures, the relaxation is remarkably "tight," meaning it almost always yields valid, integral structures rather than nonsensical averages.
Experimental Evaluation
The authors evaluated the framework on the Penn Wall Street Journal (WSJ) Treebank, testing two primary joint tasks:
- Parsing + Dependency: Combining a lexicalized phrase-structure parser with a second-order discriminative dependency parser.
- Parsing + Tagging: Combining a lexicalized phrase-structure parser with a trigram POS tagger.
Performance and Convergence
The results demonstrate both the effectiveness and efficiency of the method:
- Accuracy Gains: In the Parsing + Dependency task, the dual decomposition (DD) approach achieved an F1 score of 90.7%, significantly outperforming the standalone phrase-structure parser (88.1%) and a hard-constraint baseline (89.7%). In the Parsing + Tagging task, POS accuracy reached 97.1%.
- Empirical Exactness: The LP relaxation proved to be tight in the vast majority of cases. For dependency parsing, 99.6% of sentences reached an exact, optimal solution within 50 iterations.
- Efficiency: Convergence was rapid; over 80% of sentences reached agreement in 5 iterations or fewer, making the overhead of joint inference manageable for real-world applications.
Conclusion
Dual decomposition provides a powerful, modular strategy for joint inference in NLP. By leveraging existing solvers and enforcing agreement through a simple iterative update rule, researchers can solve complex joint problems with guarantees of optimality. While the method may fail to converge in a tiny fraction of cases (approximately 0.4% to 1.1% in these experiments), its ability to recover exact solutions in nearly all cases suggests it is a robust alternative to both error-prone pipelines and computationally expensive integrated models.
Summary updated