Concrete Score Matching: Generalized Score Matching for Discrete Data
Chenlin Meng, Kristy Choi, Jiaming Song, Stefano Ermon
TL;DR
The paper introduces the Concrete score as a discrete analogue of the Stein score by leveraging a neighborhood-based surrogate for gradient information in discrete spaces. It then defines Concrete Score Matching (CSM) to learn these scores from data, with efficient Monte Carlo training and a denoising variant (D-CSM) that mirrors denoising score matching in continuous domains. The approach connects to continuous score methods through a limiting relationship and demonstrates strong performance on synthetic, tabular, and high-dimensional discrete data, including MNIST-style images, using MH-based sampling. Overall, CSM provides a scalable framework for density estimation and sampling in discrete domains, expanding the applicability of score-based modeling to structured discrete data.
Abstract
Representing probability distributions by the gradient of their density functions has proven effective in modeling a wide range of continuous data modalities. However, this representation is not applicable in discrete domains where the gradient is undefined. To this end, we propose an analogous score function called the "Concrete score", a generalization of the (Stein) score for discrete settings. Given a predefined neighborhood structure, the Concrete score of any input is defined by the rate of change of the probabilities with respect to local directional changes of the input. This formulation allows us to recover the (Stein) score in continuous domains when measuring such changes by the Euclidean distance, while using the Manhattan distance leads to our novel score function in discrete domains. Finally, we introduce a new framework to learn such scores from samples called Concrete Score Matching (CSM), and propose an efficient training objective to scale our approach to high dimensions. Empirically, we demonstrate the efficacy of CSM on density estimation tasks on a mixture of synthetic, tabular, and high-dimensional image datasets, and demonstrate that it performs favorably relative to existing baselines for modeling discrete data.
