Introduction
Training structured prediction models—essential for tasks like entity-relation extraction or dependency parsing—is notoriously slow. These models require solving complex inference problems (e.g., finding the highest-scoring structure) for every training example in every iteration. Traditionally, inference engines are treated as "black boxes," re-solving similar problems from scratch and creating a significant computational bottleneck.
This paper introduces AI-DCD, a framework for Amortized Inference integrated with Dual Coordinate Descent. By caching previous inference solutions and using a theoretical "closeness" condition to reuse them, AI-DCD slashes training time by up to 100x without sacrificing model accuracy.
The Problem: The Computational Tax of Inference
In structured prediction, output variables are interdependent. To train a Structured SVM, the algorithm must perform "inference" repeatedly to find the most violating constraint. The authors observed that as training progresses, the model often encounters different inference problems that share the same optimal solution. The challenge lies in identifying these redundancies efficiently without actually running the expensive solver to check.
Methods: AI-DCD and Provable Re-use
The proposed framework, AI-DCD, treats inference as an Integer Linear Program (ILP). The core innovation is a theoretical approximation condition based on a tolerance parameter $\epsilon$.
- The Approximation Theorem: Given a new problem $q$ and a cached problem $p$ with solution $z^p$, the authors derive a condition based on the coefficients of the objective functions. If $p$ and $q$ are "close enough," $z^p$ is guaranteed to be a near-optimal solution for $q$.
- Cache Mechanism: During training, the system maintains a cache of (problem, solution) pairs. For each step, it checks the cache for a valid solution before calling the full inference engine.
- Adaptive Strategy: To maintain exactness, an "adaptive $\epsilon$" strategy is used. It starts with a loose tolerance to accelerate early training and tightens to zero (exact inference) as the model nears convergence.
Key Results and Insights
The researchers evaluated AI-DCD on two tasks: Entity-Relation Extraction and Multi-label Classification.
- Massive Speedups: On the multi-label classification task, AI-DCD achieved a 108x speedup in inference time compared to the baseline.
- Efficiency without Accuracy Loss: Using the adaptive strategy, AI-DCD reached the same objective value and test performance (F1/Hamming Loss) as the baseline, but with far fewer solver calls.
- Low Overhead: The cost of checking the "closeness" condition is negligible (0.04 ms) compared to the ILP solver (2 ms).
- Redundancy is Ubiquitous: An "oracle" analysis showed that only ~10% of solver calls are strictly necessary. AI-DCD successfully captures much of this redundancy through provable reuse rather than simple heuristics.
Conclusion
AI-DCD demonstrates that structured learning can be significantly accelerated by amortizing the cost of inference. While highly effective for ILP-based inference, future work could extend these guarantees to non-linear objectives or improve memory management for massive caches. Additionally, applying "violation-fixing" techniques could bring similar convergence guarantees to the Structured Perceptron.
Summary updated