Introduction
Standard Markov Chain Monte Carlo (MCMC) inference algorithms, such as Metropolis-Hastings, face significant scalability challenges as graphical models increase in complexity and data volume. In large-scale Natural Language Processing (NLP) tasks—like joint entity extraction and coreference—models often become "dense," requiring the evaluation of thousands of factors for every proposed state change. This paper introduces Monte Carlo MCMC (MC-MCMC), a technique that accelerates inference by over 10x through the stochastic approximation of model scores.
The Scalability Bottleneck in Graphical Models
Graphical models like Conditional Random Fields (CRFs) are essential for modeling complex dependencies. However, in tasks like author coreference involving millions of records, a single entity might have thousands of mentions. In a standard MCMC framework, proposing a change to such an entity requires scoring every factor connected to it. This makes the inference process computationally intractable for massive datasets. MC-MCMC addresses this by sampling only a representative subset of factors instead of calculating them all for every proposal.
Methodology: Stochastic Proposal Evaluation
The authors propose treating the set of relevant factors as a population and estimating the total log-score through sampling. Two primary strategies are explored:
- Uniform Sampling: A fixed proportion $p$ of factors is selected at random. While simple, it does not account for variance in factor scores.
- Confidence-Based Sampling: An adaptive approach where factors are sampled sequentially. Using Finite Population Control (FPC), the algorithm maintains a running mean and variance, stopping only when it reaches a user-defined confidence threshold $i$.
By using an unbiased estimator, the MCMC chain can move much faster. Although the approximation introduces noise, the reduction in per-step computation leads to a significant net gain in overall speed.
Empirical Evaluation
The approach was evaluated across several benchmarks:
- Synthetic Data: Star-shaped models used to measure marginal inference error.
- Cora Citation Matching: A standard dataset (1,295 citations) for citation matching.
- DBLP Author Coreference: A massive real-world dataset with nearly 5 million author mentions, testing the limits of scalability.
- Rexa Corpus: A labeled dataset used to validate the accuracy of the DBLP results.
Key Results and Insights
The core insight of this work is that factors in large-scale NLP are often highly redundant. For instance, identifying a location doesn't require examining every mention of "USA" if a small sample provides sufficient evidence. By trading variance for throughput, the authors achieved massive performance gains.
On the large-scale DBLP task, the variance-based sampler achieved a 13.16x speedup over baseline MCMC to reach 80% BCubed F1. On the Cora dataset, a 7x speedup was observed to reach 90% F1. Crucially, even with sampling as low as 1-2%, the chains converged to high-quality solutions, proving that stochastic noise does not inherently degrade the final inference quality.
Conclusion and Future Directions
While MC-MCMC offers substantial speedups, extreme approximation (e.g., <1% sampling on small datasets) can lead to a "noise floor" where the chain converges to lower accuracy. Future work includes "dynamic sampling schedules" that increase sample size as the chain approaches high-probability regions. Furthermore, the principle of stochastic factor evaluation could potentially be extended to other inference methods like Loopy Belief Propagation or Variational Inference.
Summary updated