Abstract
This paper studies active learning in structured probabilistic models such as Conditional Random Fields (CRFs). This is a challenging problem because unlike unstructured prediction problems such as binary or multi-class classification, structured prediction problems involve a distribution with an exponentially-large support, for instance, over the space of all possible segmentations of an image. Thus, the entropy of such models is typically intractable to compute. We propose a crude yet surprisingly effective histogram approximation to the Gibbs distribution, which replaces the exponentially-large support with a coarsened distribution that may be viewed as a histogram over M bins. We show that our approach outperforms a number of baselines and results in a 90%-reduction in the number of annotations needed to achieve nearly the same accuracy as learning from the entire dataset.
Introduction
In computer vision, tasks like image segmentation require "structured" outputs, where the label for one pixel depends on its neighbors. While models like Conditional Random Fields (CRFs) are powerful for these tasks, they are notoriously data-hungry. Labeling every pixel in thousands of images is an expensive and time-consuming manual process.
Active Learning (AL) seeks to mitigate this by having the model selectively "ask" for labels only on the most informative images. Typically, informativeness is measured by entropy, representing the model's uncertainty. However, for structured models, the number of possible labelings is astronomical (e.g., $2^{pixels}$), making exact entropy calculation NP-hard. Researchers have historically relied on oversimplified approximations that often fail to capture the true joint uncertainty of the model.
Methodology
The core contribution of this work is a Variational Histogram Approximation to estimate the entropy of the Gibbs distribution used by CRFs. The process involves coarsening the massive output space into a manageable number of bins (typically $M \approx 10$).
These bins are defined as "Hamming-ball" rings—concentric regions of varying Hamming distances (the number of differing pixels) around the most likely (MAP) solution. To estimate the probability mass within these bins, the authors utilize a clever upper bound: the maximum probability found in a bin multiplied by the number of possible solutions in that bin. To find these maximum probabilities efficiently, the method employs the Parallel Diverse MAPs (PDivMAP) algorithm, which is significantly faster than traditional random sampling.
By reducing the problem from an exponential summation to a simple sum over a few bins, the entropy calculation becomes computationally trivial while remaining representative of the model's true uncertainty.
Key Results
The approach was evaluated on synthetic data, the iCoseg co-segmentation dataset, and the CMU Geometric Context dataset. The results demonstrate that the histogram approximation provides a superior ranking of informative images compared to standard baselines like Perturb-and-MAP or Gibbs sampling.
Most notably, the proposed method achieved nearly the same accuracy as a model trained on the entire dataset while requiring 90% fewer annotations. In terms of computational efficiency, calculating uncertainty for an image took approximately 1.8 seconds, a massive improvement over the 40 seconds required for Gibbs sampling. For a medium-sized dataset, this translates to saving roughly 45 hours of human labor.
Discussion and Insights
A key insight of this research is the importance of joint uncertainty over marginal uncertainty. Previous methods often summed the uncertainty of individual pixels, but this fails to account for correlations. An image with many slightly uncertain but highly correlated pixels is less informative than one with independent regions of high uncertainty.
Furthermore, the authors found that deterministic sampling (finding the best solutions in specific regions) is more effective for active learning than random sampling. Random samplers often get trapped in a single mode of the distribution, whereas deterministic search ensures that diverse, likely labelings are considered in the entropy estimate. Surprisingly, even a "crude" 10-bin histogram is sufficient to capture the distribution's peakedness effectively.
Conclusion
This work provides a scalable and effective solution for active learning in structured models. By utilizing a histogram approximation of the Gibbs distribution, the authors demonstrate that it is possible to drastically reduce the human effort required for complex computer vision tasks without sacrificing model performance. Future work may explore adaptive bin selection and combining this approach with partial or weak supervision strategies.
Summary updated