Learning Markov Random Fields for Combinatorial Structures via Sampling through Lovász Local Lemma

Nan Jiang, Yi Gu, Yexiang Xue
12/1/2022
cs.LGcs.AI

Official code: jiangnanhugo/nelson-cd (6 stars, Jupyter Notebook, last commit 2024-05-08).

Abstract

Learning to generate complex combinatorial structures satisfying constraints will have transformative impacts in many application domains. However, it is beyond the capabilities of existing approaches due to the highly intractable nature of the embedded probabilistic inference.

Show full abstract

Prior works spend most of the training time learning to separate valid from invalid structures but do not learn the inductive biases of valid structures. We develop NEural Lovász Sampler (Nelson), which embeds the sampler through Lovász Local Lemma (LLL) as a fully differentiable neural network layer. Our Nelson-CD embeds this sampler into the contrastive divergence learning process of Markov random fields. Nelson allows us to obtain valid samples from the current model distribution. Contrastive divergence is then applied to separate these samples from those in the training set. Nelson is implemented as a fully differentiable neural net, taking advantage of the parallelism of GPUs. Experimental results on several real-world domains reveal that Nelson learns to generate 100\% valid structures, while baselines either time out or cannot ensure validity. Nelson also outperforms other approaches in running time, log-likelihood, and MAP scores.

View on arXivView PDF

Code Implementations(1)

Learning Markov Random Fields for Combinatorial Structures via Sampling through Lovász Local Lemma. AAAI 2023

60Jupyter Notebook, C++Apr 9, 20212 years ago

Similar Papers

Cite this paper

@article{jiang2022learning,
  title  = {Learning Markov Random Fields for Combinatorial Structures via Sampling through Lovász Local Lemma},
  author = {Nan Jiang and Yi Gu and Yexiang Xue},
  year   = {2022},
  eprint = {2212.00296},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.00296}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.00296.svg)](https://codeofpaper.com/paper/2212.00296)

Discussion