[Paper Review] Approximate Knowledge Compilation by Online Collapsed Importance Sampling
This paper introduces online collapsed importance sampling and collapsed compilation, a novel approximate inference method for discrete probabilistic graphical models that dynamically selects variables to sample based on partial instantiations, using a partially compiled arithmetic circuit as an effective proposal distribution. The approach outperforms state-of-the-art methods on several benchmarks when exact inference resources are limited, particularly in models with context-specific independence.
We introduce collapsed compilation, a novel approximate inference algorithm for discrete probabilistic graphical models. It is a collapsed sampling algorithm that incrementally selects which variable to sample next based on the partial sample obtained so far. This online collapsing, together with knowledge compilation inference on the remaining variables, naturally exploits local structure and context- specific independence in the distribution. These properties are naturally exploited in exact inference, but are difficult to harness for approximate inference. More- over, by having a partially compiled circuit available during sampling, collapsed compilation has access to a highly effective proposal distribution for importance sampling. Our experimental evaluation shows that collapsed compilation performs well on standard benchmarks. In particular, when the amount of exact inference is equally limited, collapsed compilation is competitive with the state of the art, and outperforms it on several benchmarks.
Motivation & Objective
- To address the challenge of efficiently performing approximate inference in discrete probabilistic graphical models with complex structure, such as context-specific independence and local determinism.
- To overcome the limitations of traditional collapsed sampling, which requires a priori selection of variables to sample and relies on manually specified proposal distributions.
- To develop a method that dynamically selects which variables to collapse during sampling, adapting to the context of previously sampled values.
- To integrate knowledge compilation into the sampling process, using the partially compiled circuit as a high-quality proposal distribution to reduce variance.
- To scale knowledge compilation to larger models by limiting circuit size and enabling approximate inference while preserving structural exploitation.
Proposed method
- Online collapsed importance sampling dynamically selects the next variable to sample based on the current partial instantiation, ensuring asymptotic unbiasedness by treating the process as a collapsed sampler on an augmented model.
- The method uses an arithmetic circuit built incrementally from the model's factors, maintaining a partially compiled representation that supports efficient exact inference on the remaining variables.
- The proposal distribution for importance sampling is derived from the current state of the partially compiled circuit, which adapts to the context of sampled variables.
- Variable selection policies—such as MinEnt, RBVar, and SS—guide the online collapsing process, prioritizing variables that reduce the complexity of the remaining inference.
- The algorithm enforces a memory limit on the circuit size, automatically determining how many variables to sample to keep the compilation feasible.
- By combining online collapsing with knowledge compilation, the method naturally exploits local structure and context-specific independence, which are difficult to harness in standard approximate inference.
Experimental results
Research questions
- RQ1Can online variable selection in collapsed sampling improve the efficiency and accuracy of approximate inference in probabilistic graphical models?
- RQ2How can knowledge compilation be integrated into an online sampling framework to create a high-quality, adaptive proposal distribution?
- RQ3To what extent can dynamic collapsing exploit context-specific independence and local structure more effectively than fixed collapsing strategies?
- RQ4How does the performance of collapsed compilation compare to state-of-the-art approximate inference algorithms when exact inference resources are constrained?
- RQ5Does the method show robustness to challenging models, such as those with dense loops or many deterministic factors, where belief propagation fails?
Key findings
- On standard benchmarks, collapsed compilation achieves performance competitive with state-of-the-art methods like EDBP and samplesearch when exact inference is limited to the same computational budget.
- On the DBN benchmark, collapsed compilation with RBVar or MinEnt policies outperforms both EDBP and samplesearch, demonstrating the benefit of adaptive variable selection in densely connected models.
- On the frust16 Ising model, collapsed compilation converges toward the correct solution, while samplesearch produces a biased estimate, highlighting the method's robustness to problematic convergence in belief propagation.
- In the ProbLog benchmark with a 12x12 grid and deterministic factors, collapsed compilation achieves lower Hellinger distance than EDBP, which fails to converge due to the high number of deterministic factors.
- Samplesearch consistently produces the same incorrect marginal on the ProbLog instance, while collapsed compilation shows consistent convergence to the true value across runs, indicating lower bias.
- The method's performance is sensitive to the variable selection policy, with MinEnt and RBVar yielding the best results, particularly in models where a few well-chosen variables can drastically simplify the remaining inference.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.