Sampling Permutations Satisfying Constraints within and beyond the Local Lemma Regime

Kun He, Guoliang Qiu, Xiaoming SunarXiv 2024 · DOI

Sampling random permutations under constraints is a fundamental challenge in combinatorics and computer science. Applications range from card shuffling to complex resource allocation problems like teacher-to-classroom assignments. While algorithms for single permutations have existed for decades, they are often computationally prohibitive, and the more complex problem of sampling multiple interacting permutations has remained largely unaddressed.

In this work, authors Kun He, Guoliang Qiu, and Xiaoming Sun present a significant advancement in the field. They provide an optimal $O(n^2)$ algorithm for sampling single permutations in dense matrices and introduce the first efficient framework for sampling multiple constrained permutations by extending the Lovász Local Lemma (LLL) beyond the traditional "independent variable" model.

The Complexity of Constrained Permutations

The core difficulty in sampling from a set of constrained permutations lies in its relationship to the permanent of a 0-1 matrix. Calculating the permanent is a #P-complete problem. While approximation algorithms exist for "dense" matrices (where most entries are 1s), previous methods often required high-degree polynomial runtimes, such as $O(n^7)$ or $O(n^{10})$.

The challenge intensifies when dealing with multiple permutations subject to "disjunctive constraints"—for instance, a scenario where an assignment in one permutation is forbidden only if a specific assignment exists in another. Standard sampling techniques often rely on the Lovász Local Lemma (LLL), which guarantees the existence of a solution under certain conditions. However, LLL-based sampling typically assumes a "variable model" where underlying variables are independent. Permutations violate this assumption because they are inherently correlated; choosing one element restricts the choices for all subsequent elements in the set. This "long-range correlation" historically broke the factorization methods used to simplify these problems.

Methodological Breakthroughs

The authors overcome these correlations through several technical innovations designed to bypass the limitations of the standard variable model:

  1. Lopsided LLL for Permanents: By applying the "lopsided" version of the LLL, the researchers derived a tighter lower bound on the number of valid permutations than previously possible. This allowed for a rejection sampling framework that achieves the theoretical speed limit of $O(n^2)$ for very dense matrices.
  2. Correlated Factorization: This is the paper's most significant technical contribution. Traditional sampling breaks systems into independent components (factorization). Since permutations are coupled, the authors developed a method to factorize them by proving that the size of the solution space for one part of the system concentrates predictably regardless of the state of other parts.
  3. Structure-Preserved State Compression: To manage multiple permutations, the framework groups assignments into "compressed states." This ensures the Markov chain used for sampling remains well-connected and can navigate the search space efficiently without becoming trapped.
  4. Inactive Vertices in Path Coupling: To prove fast convergence (mixing) of their Markov chain, the authors utilized path coupling. They introduced the concept of "inactive vertices"—points where local constraints are already satisfied, preventing discrepancies between different chains from cascading into global failures.

Key Results and Applications

The research yields three primary outcomes that advance the state-of-the-art in combinatorial sampling:

  • Optimal Single Permutation Sampling: The $O(n^2)$ algorithm applies to very dense matrices where the number of zeros in any row or column is less than $\sqrt{(n-2)/20}$. This represents a massive efficiency gain over previous $O(n^4)$ or $O(n^7)$ bounds.
  • Framework for Multiple Permutations: The paper introduces the Permutations with Disjunctive Constraints (PDC) model, providing the first nearly linear-time algorithm for uniform PDC formulas.
  • Practical Applications: The framework demonstrates that complex scheduling problems, such as the Teacher Assignment Problem, can be solved in almost linear time, provided the constraints do not exceed the LLL threshold.

Conclusion and Future Work

This work demonstrates that the Lovász Local Lemma is a more powerful tool for constrained sampling than previously believed, particularly when applied to probability spaces that are not simple product spaces. By moving beyond the independent variable model, the authors have opened a path for sampling other complex structures like spanning trees or specific graph colorings.

While the current mathematical constants required for the LLL conditions are large (e.g., $cpk^{518}\Delta^{786} \le 1$), they serve as a proof-of-concept that efficient sampling in these interdependent spaces is possible. Future research will likely focus on optimizing these constants and extending the "correlated factorization" approach to broader classes of hypergraph matchings.

Summary updated

BibTeX
@misc{he2024sampling,
  author = {Kun He and Guoliang Qiu and Xiaoming Sun},
  title = {{Sampling Permutations Satisfying Constraints within and beyond the Local Lemma Regime}},
  year = {2024},
  eprint = {2411.02750},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.02750},
}
Figure