Margin-based Decomposed Amortized Inference

Gourab Kundu, Vivek Srikumar, Dan RothACL 2013

Abstract

Structured output prediction is a cornerstone of modern Natural Language Processing (NLP), yet its computational cost often scales poorly with dataset size. This paper introduces Margin-based Decomposed Amortized Inference, a framework designed to accelerate inference by reusing computations from previously solved instances. We first present a margin-based algorithm that leverages the structured margin to provably identify when a cached solution remains optimal for a new problem. To handle large-scale structures where full-sentence repetition is rare, we propose a decomposed variant that applies amortization piece-wise via Lagrangian relaxation. Our experiments on semantic role labeling and entity-relation extraction demonstrate that this approach can reduce the number of calls to expensive ILP solvers by up to 84% while maintaining exactness.

Introduction: The Bottleneck of Structured Prediction

Many core NLP tasks, such as Semantic Role Labeling (SRL) and Entity-Relation Extraction, are modeled as structured prediction problems. To ensure global consistency—for instance, ensuring a word isn't assigned conflicting roles—researchers frequently employ Integer Linear Programming (ILP). While powerful, ILP solvers are NP-hard and become a significant bottleneck when processing massive corpora like Gigaword.

Amortized inference aims to "recycle" previous work. However, traditional caching is often too rigid, requiring exact matches between problems. This paper addresses these limitations by introducing a more flexible, provably exact caching mechanism and a decomposition strategy to maximize reuse.

Proposed Methods

1. Margin-based Amortization

The core innovation is a "smart" cache check based on the structured margin ($\delta$). Instead of requiring a new problem to be identical to a cached one, we calculate the gap between the best and second-best solutions of the original problem. If the difference in the new problem's coefficients is smaller than this margin, the cached solution is mathematically guaranteed to remain optimal. This significantly increases the "hit rate" of the cache while maintaining a provably exact solution.

2. Decomposed Amortized Inference

A major challenge in amortization is that large structures (e.g., 30-word sentences) rarely repeat in their entirety. However, smaller sub-structures (e.g., 5-word phrases) recur frequently.

Redundancy in POS tag sequences as a function of sentence length.

As shown in the figure above, the number of unique sequences grows rapidly with sentence length, making full-sentence amortization less effective for longer inputs. To counter this, the authors use Lagrangian Relaxation to decompose a global problem into independent sub-problems. Amortization is applied to these smaller parts, which are then reconciled into a coherent global solution using subgradient descent.

Experimental Evaluation

The authors evaluated their methods on two benchmarks:

  • Semantic Role Labeling (SRL): Using the PropBank dataset.
  • Entity-Relation Extraction: Following the setup of Roth and Yih (2007).
  • Large-scale Simulation: The Gigaword corpus was used to populate the cache before testing on the Penn Treebank (Section 23).

Key Results

The combination of margin-based checks and decomposition yielded substantial efficiency gains.

Reduction in ILP solver calls using margin-based and decomposed amortized inference.

As detailed in the table, the margin-based approach alone significantly reduces solver calls. When combined with decomposition ("+ Decomp."), the number of calls to the ILP solver for SRL dropped to just 16.6% of the baseline. For Entity-Relation extraction, calls were reduced to 25.4%. Crucially, because the method is provably exact, task accuracy remained identical to the baseline.

Discussion and Insights

The primary insight of this work is that redundancy in structured prediction is most prevalent at the sub-structure level. By decomposing problems, the "equivalence classes" of problems that share solutions become much larger. Furthermore, the margin-based check provides a robust mathematical generalization of earlier amortization theorems.

While the reduction in solver calls is dramatic, the "wall-clock" speedup is slightly tempered by the overhead of decomposition and the iterative "gluing" phase. For SRL, total inference time was reduced to 38.1% of the original. In simpler tasks, the overhead of Lagrangian iterations suggests that the decomposition strategy is most beneficial for highly complex, large-scale problems.

Conclusion

Margin-based Decomposed Amortized Inference offers a powerful way to scale structured prediction. By moving beyond exact-match caching and leveraging the inherent redundancy of sub-structures, it provides significant speedups with formal guarantees of optimality. Future work may explore automated decomposition strategies to further generalize the approach across diverse NLP tasks.

Summary updated

BibTeX
@inproceedings{kundu2013margin,
  author = {Gourab Kundu and Vivek Srikumar and Dan Roth},
  title = {{Margin-based Decomposed Amortized Inference}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2013},
  url = {https://openreview.net/forum?id=HkWXsig_ZB},
}

Loading related content...

Figure