Zero-Shot Conditioning of Score-Based Diffusion Models by Neuro-Symbolic Constraints

Davide Scassola, Sebastiano Saccani, Ginevra Carbone, Luca Bortolussi
8/31/2023
cs.LGcs.AI

No official code found. Best implementation: DavideScassola/score-based-constrained-generation (7 stars, MIT, last commit 2024-09-18).

Abstract

Score-based diffusion models have emerged as effective approaches for both conditional and unconditional generation. Still conditional generation is based on either a specific training of a conditional model or classifier guidance, which requires training a noise-dependent classifier, even when a classifier for uncorrupted data is given. We propose a method that, given a pre-trained unconditional score-based generative model, samples from the conditional distribution under arbitrary logical constraints, without requiring additional training. Differently from other zero-shot techniques, that rather aim at generating valid conditional samples, our method is designed for approximating the true conditional distribution. Firstly, we show how to manipulate the learned score in order to sample from an un-normalized distribution conditional on a user-defined constraint. Then, we define a flexible and numerically stable neuro-symbolic framework for encoding soft logical constraints. Combining these two ingredients we obtain a general, but approximate, conditional sampling algorithm. We further developed effective heuristics aimed at improving the approximation. Finally, we show the effectiveness of our approach in approximating conditional distributions for various types of constraints and data: tabular data, images and time series.

View on arXivView PDF

Code Implementations(1)

MIT

Repository of Conditioning Score-Based Generative Models by Neuro-Symbolic Constraints paper

71Shell, PythonSep 14, 20232 years agoMIT

Similar Papers

Cite this paper

@article{scassola2023zeroshot,
  title  = {Zero-Shot Conditioning of Score-Based Diffusion Models by Neuro-Symbolic Constraints},
  author = {Davide Scassola and Sebastiano Saccani and Ginevra Carbone and Luca Bortolussi},
  year   = {2023},
  eprint = {2308.16534},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.16534v3}
}

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/2308.16534.svg)](https://codeofpaper.com/paper/2308.16534)

Discussion