Generating from Discrete Distributions Using Diffusions: Insights from Random Constraint Satisfaction Problems
Alankrita Bhatt, Mukur Gupta, Germain Kolossov, Andrea Montanari
NeurIPS 2026
TL;DR. We learn generative models that sample solutions of random satisfiability formulas and compare with theoretically optimal methods.
Abstract. Generating data from discrete distributions is important for a number of application domains including text, tabular data, and genomic data. Several groups have recently used random -satisfiability (-SAT) as a synthetic benchmark for new generative techniques. In this paper, we show that fundamental insights from the theory of random constraint satisfaction problems have observable implications (sometime contradicting intuition) on the behavior of generative techniques on such benchmarks. More precisely, we study the problem of generating a uniformly random solution of a given (random) -SAT or -XORSAT formula. Among other findings, we observe that: Continuous diffusions outperform masked discrete diffusions; Learned diffusions can match the theoretical `ideal' accuracy; Smart ordering of the variables can significantly improve accuracy, although not following popular heuristics.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This is an initial meta-review, prior to rebuttal and discussion and subject to changes, as newly required by the conference.
Even though reviewers' initial ratings were relatively low (3/3/4), the confidences were low (3/2/1) too. A good portion of the criticisms were on clarity instead of identification of technical errors. AC recommends benefit of the doubt instead voting the paper down already, and encourages the authors to actively engage in the rebuttal/discussion. The reviewers did list important and helpful technical questions; for example, all three reviewers independently asked the authors to rule out that "continuous > discrete diffusion" is an implementation artifact, in particular a compute-budget mismatch", and AC agrees.
A paper to watch closely for fair assessment as it evolves.
Final justification
Reviewers were less confident and many insufficiently engaged, so the AC has to also use their own judgement. The authors seem to have addressed many of the concerns, to a reasonable extent. The AC also finds the studied question relevant, the perspective of the contribution interesting, and no obvious technical flaw was identified (the AC did not have sufficient time to go through all details though). Therefore, acceptance is now recommended.
Read meta-review
Meta-review
This is an initial meta-review, prior to rebuttal and discussion and subject to changes, as newly required by the conference.
Even though reviewers' initial ratings were relatively low (3/3/4), the confidences were low (3/2/1) too. A good portion of the criticisms were on clarity instead of identification of technical errors. AC recommends benefit of the doubt instead voting the paper down already, and encourages the authors to actively engage in the rebuttal/discussion. The reviewers did list important and helpful technical questions; for example, all three reviewers independently asked the authors to rule out that "continuous > discrete diffusion" is an implementation artifact, in particular a compute-budget mismatch", and AC agrees.
A paper to watch closely for fair assessment as it evolves.
Final justification
Reviewers were less confident and many insufficiently engaged, so the AC has to also use their own judgement. The authors seem to have addressed many of the concerns, to a reasonable extent. The AC also finds the studied question relevant, the perspective of the contribution interesting, and no obvious technical flaw was identified (the AC did not have sufficient time to go through all details though). Therefore, acceptance is now recommended.
1 comment
- Rating
- 4/6
- Confidence
- 1/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies the usage of diffusion models to uniformly sample from the solutions of constraint satisfaction problems. It considers four different constraint satisfaction problems, K-SAT, K-XORSAT, k-NAESAT and hypergraph bicolorings as the testing set. It designs and runs experiments to compare 1) continuous diffusions v.s. masked discrete diffusions; 2) neural-network based denoiser v.s. belief propagation-based denoiser 3) how different ordering of the variables affect accuracy. It presents 4 findings:
- Continuous diffusion performs better than the masked discrete diffusion on these problems, and both exhibits the phase transition.
- They prove that Belief Propagation with the cavity initialization is optimal among r-local denoisers (Theorem 3.1).
- Learned local NN denoisers almost match Belief Propagation -- the latter is the algorithmic target in this setting.
- Variable ordering matters as expected. Specifically, the "reversed-leaf" ordering greatly helps for XORSAT, a reversed-degree heuristic helps for SAT, and the popular confidence-based ordering is no better than random ordering.
Strengths and weaknesses
Strengths:
- The work shows interesting experimental results.
- It is well-written, succinct and coherent in the main text, and with abundant details supplied in the appendix. Thus I gave 4 for Clarity.
- While I haven't checked the math presented carefully, it looks consistent. Thus I gave 3 for the Quality of the mathematical rigor and appropriateness of the assumptions.
Weakness
- If i'm not misunderstanding, methods used for the experiments (Belief Propagation, cavity method, discrete diffusion, the phase transition) are all existing techniques. The novelty of the methodology is unclear. Thus, I gave 2 for originality.
- The paper doesn't not clear up the plausibility that the experimental findings, e.g. continuous diffusion works better than the discrete one for CSP, originates from certain choices of implementation, instead of being fundamental. Thus, I gave 2 for the significance.
Questions
- What's your intuitions on why the continuous diffusions work better here even though the problem domain is discrete? What measures have you performed to eliminate the possibility that the counter-intuitive finding is an artifact of your implementation? For example, how does the continuous diffusion compare with discrete diffusions with smart ordering?
- Could you give more intuition of why "reversed-leaf ordering" doesn't work for k-SAT? If one variable only occur in one clause, then we can also set it freely and reduce the program by removing that clause.
- In the study of theoretical methods for uniformly sampling solutions of CNF, they proved that efficient sampling is possible if the formula is extreme, i.e., two clauses that share variables cannot both be bad. Any ideas on the potentials of utilizing this idea in diffusion-based sampling, i.e., another way to find the order?
Limitations
- The paper didn't make it super clear which constructions (e.g., the design of the specific masked discrete diffusions, the cavity initialization) are existing results from the literature, v.s., what's newly introduced by the paper.
- Theorem 3.1's optimality seems to be under the r-local assumption. Defining target accuracy as the best local denoiser is convenient but somewhat circular: it's the optimum relative to the very locality restriction the method already imposes, and the gap between the best r-local denoiser and the true (global) optimal denoiser is never quantified.
- While reverse-leaf ordering works great for k-XORSAT, the problem is known to be solvable within poly0times.
- The upperbound (6) is not well-explained, e.g. what are precision that we lose in this upperbound?
Final justification
I appreciate the comprehensive response from the authors and will maintain my positive score.
Formatting concerns
None.
1 comment
Rebuttal
We thank the reviewer for the remarks and respond to their questions below :
Questions
- The rough intuition is that any diffusion method must be able to compute marginals from the posterior distribution given information revealed so-far. If this distribution 'shatters' (decomposes in many lumps) then this computation becomes hard. Discrete diffusions reveal 'hard' information which is equivalent to restricting the measure to a sub-cube; continuous diffusions reveal 'soft' information. Somehow, the high-dimensional 'sub-cube' geometry is more prone to creating multiple lumps.
This finding
- Is very stable to the implementation.
- Persists with dramatically different denoisers, e.g. BP and learned denoiser, with exactly the same gap.
- Persists in the limit where (for BP denoisers) it can be characterized analytically.
This difference does not persist when ordering of variables changes, but any ordering in discrete diffusions can be simulated by a time dependent weight matrix in continuous diffusions.
-
There are several points here. An important one is that the threshold up to which sampling is possible for -SAT () is much larger than the threshold up to which leaf removal succeeds (which is below ). Another one is that the assignment of a leaf variable ( or ) changes the conditional distributions of the others in a non-trivial way.
-
We imagine here the referee has in mind work on sampling via Lovasz local lemma. While in principle these ideas might be useful, the setting is very different since those works guarantee correct sampling on average, while we focus on random formulas. In particular, their regime corresponds to (roughly) , while we are interested in sampling for
Limitations
- For the referees convenience, we list below the contributions which are new methods or proofs:
- BP with cavity initialization and proof of its asymptotic optimality (Section 3.2).
- The reversed-leaf ordering for discrete diffusions and proof of its optimality in XORSAT (Section 3.3).
- Weighted continuous diffusions, with graph-based computation of weights (Section 3.3).
- The precise denoiser architecture (Appendix A).
- There is a huge literature about the gap between the optimal SAT solver and the optimal
'local' SAT solver for random -SAT. Some of it has implications for the optimal SAT denoiser, and the conjectured picture is as follows (we already outline to this picture in Section 2, and obviously we cannot even scratch the surface here):
- There is a gap between the optimal polynomial time denoiser (which succeeds up to the 'shattering' or 'dynamical' threshold ) and the optimal denoiser (which succeeds up to the satisfiability threshold ).
- The optimal local denoiser (for large enough) matches asymptotically (as diverges) the accuracy of the optimal (average case) polynomial-time denoiser.
In Section 2 we point to reference that establish rigorous evidence towards this picture (e.g. [16,30]). If we assume it holds, then there is no loss in restricting to local denoisers instead of polynomial-time denoisers (and there is no point to consider non-polynomial time denoisers).
-
We obviously agree that XORSAT is samplable in polynomial time. However:
- It is not obvious that it is samplable with the restricted algorithmic family considered here (ordering diffusions with local denoisers). In fact even here there is a gap! Sampling is possible in polytime up to the satisfiability threshold , but local algorithms only succeed up to the shattering threshold .
- While there are many works proposing heuristics for variables ordering, we think this is the first one that establishes a fundamental advantage in smart ordering. On top of that, we characterize the optimal ordering in this case.
-
(6) is obtained by applying Jensen's inequality: . An upper bound that is sharp up to corrections can be obtained by the so called 'replica symmetric' formula (which can be proven by subgraph conditioning). However the resulting formula is more complicated, and as demonstrated by Fig 6, it would not produce a significant improvement at the current values of (because the average of the BP histogram is a lower bound on the entropy).
- Rating
- 4/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors observe that previous random constraint satisfaction problems (CSP) benchmarks lacked a target accuracy and a principled problem setting, and addressed this by adopting threshold quantities , and . They study four CSP families: k-SAT, k-XORSAT, k-NAE-SAT and hypergraph bicoloring. Besides this framing, the authors make the following observations: 1) continuous denoising counterintuitively outperforms discrete denoising in these tasks; 2) a learned NN denoiser can match the BP denoiser, which is supposed to be near optimal among local poly-time methods; and 3) a reverse-leaf variable ordering raises the success threshold for discrete diffusion on XORSAT to the near optimal, with formal proof explaining why. The claims are supported with thorough experiments.
Strengths and weaknesses
Strength
-
This specific proposed framing of CSP as benchmarks sets the standard to test generative models. As authors point out, the metric used in prior work (the fraction of satisfied constraints) was weak and there was no sense of how well a model could be expected to do. Tying the evaluation to theoretical thresholds give this benchmark a clear standard.
-
Authors not only point out the counterintuitive finding (continuous diffusion outperforms discrete diffusion in discrete datasets), but also explain it via the threshold ordering.
-
The proof for reverse-leaf variable ordering is rigorous. And experiments supporting the empirical claims are thorough.
Weakness
-
This benchmark does not directly translate it into the applications of text, tabular, and genomic data, which the paper opens with. The observation that continuous diffusion is better at CSPs does not have further demonstrated implications on real discrete modalities yet, since the conclusion is never tested outside the synthetic setting.
-
The strongest theoretical results/empirical implications lie in Theorem 3.3, but this is purely on XORSAT rather than applicable to CSPs in general. XORSAT is known to be poly-time uniformly samplable.
-
Writing needs a thorough pass. There are numerous typos that impede reading (e.g. figure 6 caption, line 195, etc.)
-
The paper does not clearly state if they compare continuous and discrete diffusion under a matched computation budget.
Questions
-
Could you report the success rate under a matched computational budget?
-
Do you have any evidence supporting the claim that continuous diffusion is better than discrete diffusion on discrete data other than CSPs? For example, in text, tabular or genomic generation?
-
Is there any ordering with a provable threshold improvement on SAT, like Theorem 3.3?
Limitations
Yes.
Final justification
The authors' response resolves my main concern. The compute budget clarification is important. I also accept that Theorem 3.3 is non-trivial within the algorithmic family considered. Two points remain. The transfer to real discrete modalities is still untested here, and the authors' own report that tabular data shows essentially no continuous vs. discrete gap suggests the separation may be specific to the CSP regime rather than a general property of discrete generative modeling. The framing in the introduction should be scoped accordingly. Separately, my comment on typos and readability was not addressed and I would ask for a careful pass before the final version. I am raising my score to borderline accept.
Formatting concerns
N/A
1 comment
Rebuttal
We thank the reviewer for the remarks and respond to their questions below :
- We are already reporting experiments at matched computational budget, or even at computational budget that favors discrete diffusions over continuous diffusions. The training budget is the roughly same for continuous and discrete diffusions, since we use the same architecture.The inference budget is essentially proportional to the number of forward passes.
- In Fig. 15 (4-SAT) we do forward passes for discrete diffusions and forward passes for continuous diffusions (equal to number of diffusion steps). The computational budget for discrete diffusions is larger than the one for continuous diffusions.
- In Fig. 16 (4-SAT) we do forward passes for discrete diffusions and forward passes for continuous diffusions. The computational budget for discrete diffusions is larger than the one for continuous diffusions.
(Similar results for XORSAT are shown in Fig. 18.)
In principle with discrete diffusions we could save some computation performing inference only over the depth- neighborhood of node of interest, but for the values of and we use, this would save us at most a small factor. (At , , the average neighborhood is already of order , so the maximum saving would be , i.e. in the first example above and in the second example.)
More generally, we used throughout the paper a variety of computational budgets at inference time. The comparison between discrete and continuous diffusions is extremely stable (as long as computation is above a minimum threshold).
- We obviously agree that XORSAT is samplable in polynomial time. However:
- It is not obvious that it is samplable with the restricted algorithmic family considered here (ordering diffusions with local denoisers). In fact even here there is a gap! Sampling is possible in polytime up to the satisfiability threshold , but local algorithms only succeed up to the shattering threhold .
- While there are many works proposing heuristics for variables ordering, we think this is the first one that establishes a fundamental advantage in smart ordering. On top of that, we characterize the optimal ordering in this case.
-
In parallel work with tabular data, we observe empirically essentially no gap between continuous and discrete diffusions on discrete data. The present work came exactly out of the attempt to understand this phenomenon in a controlled context. It is a proof of concept that reassures us that what we observed in more complex settings was not an accident. We will add that after the present paper was submitted, the same observation was made (in the language space) by other groups, see e.g. Hu, Qiu et al (arxiv: 2605.10938). We believe our work has priority over theirs.
-
Yes, we have a ordering strategy that heuristically should improve the threshold below which discrete diffusions work, but we do not yet have a rigorous proof. In any case, we believe such a proof would require a separate paper.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies the empirical behavior of diffusion methods for generating uniformly random solutions to random 4-SAT and 4-XORSAT problems. The paper presents several interesting findings: (1) somewhat counterintuitively, continuous diffusion methods achieve higher accuracy than discrete diffusion methods on this task; (2) neural-network denoisers exhibit performance comparable to belief-propagation denoisers; and (3) carefully chosen variable orderings can further improve generation accuracy.
Strengths and weaknesses
Overall, this paper has high originality and clarity, with moderate quality and significance.
Originality and Clarity
This paper provides a systematic empirical investigation of diffusion methods for sampling solutions from random CSP problems. It considers various configurations of diffusion models for this task and reports several new insights, including the three main findings summarized above. These questions have not been well studied in prior work, which makes the paper highly original. The paper is also well structured and presents its empirical findings with good clarity.
Quality and Significance
The paper provides interesting insights, including both intuitive and counterintuitive results. For example, the finding that continuous diffusion methods outperform discrete diffusion methods is somewhat counterintuitive. In contrast, the effect of variable ordering is more intuitive and reminds me of a similar phenomenon in SAT solving, where a good variable ordering can substantially improve solver performance.
However, I have several concerns about the experimental setting and interpretation of the results. First, it is not clear why the paper focuses on 4-SAT and 4-XORSAT rather than other k-CSP problems, especially given that 3-SAT is a common benchmark in the SAT community. Second, it is unclear what level of locality (r) should be considered when interpreting the results. In Figure 2, the neural-network denoisers achieve performance comparable to BP denoisers when r <= 3, but their performance diverges substantially from BP when r >=6. I would expect a more detailed discussion on the divergence and the choice of r. Third, I do not fully understand the claim that the “learned diffusion matches the theoretical target.” The paper uses the BP denoiser as a proxy for the ideal target, but the theorem appears to establish only asymptotic optimality of BP. Therefore, it is not fully clear whether BP is technically justified as the ideal target in the finite-size experimental setting considered in the paper.
Questions
The following three questions are related to the concerns I raised in the Weaknesses section. I would be happy to increase my score if the authors can address these concerns adequately.
- What is the rationale for focusing on 4-SAT and 4-XORSAT rather than other k-CSP problems, especially given that 3-SAT is a commonly used benchmark in the SAT community?
- How should we interpret the claim that “NN denoisers match BP denoisers” in Figure 2? From the results, it appears that the NN denoisers match BP when r <= 3, but their performance diverges substantially when r >= 6.
- Why is it technically justified to use BP, which is asymptotically optimal, as a proxy for the ideal target in the finite-size experimental setting considered in the paper?
Limitations
yes
Final justification
The authors’ response has largely addressed my concerns, except for the second point.
Formatting concerns
N.A.
4 comments
Rebuttal
We thank the reviewer for the remarks and respond to their questions below :
-
It is not true that we focus exclusively on -SAT and -XORSAT. We also consider -XORSAT, -XORSAT, -XORSAT, -XORSAT (see Figure 4 and Figure 18) as well as -NAE-SAT (Figure 11 in Appendix), and Hypergraph Bicoloring (Figure 12 in Appendix). We avoided -SAT because it is worst case polynomial. We avoided -SAT because in the average case (which we are studying here), it is significantly easier than -SAT for larger , and different phase transitions are closer to each other and harder to distinguish. There is an extensive literature on these topics; see Mézard, Parisi, and Zecchina (2002) and Achlioptas and Coja-Oghlan (2008) for early contributions. After receiving this report, we carried out experiments with -SAT as well. The results are very similar to the ones for 4-SAT. We will add them to the final version of the paper.
-
We agree that there is a discrepancy for and . However, our experience is that this gap is related to training (since it appears to decrease with the size of the training set, and the optimization effort), and does not appear to be a fundamental approximation issue. Notice, as increases, the complexity of the neural denoiser increases as well, and hence training increases in complexity.
-
It has been repeatedly observed in the literature that BP nearly matches asymptotic predictions already at moderate (say ). Partial justifications for this fact exist in the literature, which predicts the finite- gap to be of order .
To confirm this general observation, we carried numerical experiments with -SAT comparing BP computations of the marginals (both at finite and ) with a 'gold standard' given by rejection sampling (for ) or MCMC (which we tested for mixing).
In these simulations, we measured the mean absolute error .
We measured the following errors in marginals computation:
| 30 | |||
| 50 | |||
| 75 | |||
| 100 | |||
| 150 | |||
| 200 |
A least square fit to the data show that they are consistent with \begin{align*} \mathrm{MAE} (N;r=1)\approx \frac{0.03}{N} \end{align*} for , hence we conclude that the gap with respect to large asymptotics is negligible with respect to the effects we see in our experiments.
I thank the authors for their thoughtful response. I am largely satisfied with the clarification and have therefore raised my score to a positive rating.
Regarding the first point, I believe that Figure 4 (and 18) alone is insufficient to support all conclusions about other k-CSP problems. I suggest adding the statement that “similar results can be achieved for 3-SAT” to the final version. I also recommend including your justification that “BP nearly matches the asymptotic predictions already at moderate (N).”
I remain not fully satisfied with the second point, as I did not observe clear evidence that the gap tends to disappear as the training effort increases. Therefore, I still consider the claim that “NN denoisers match BP denoisers” to be slightly overstated.
3SAT
Just to confirm that indeed the behavior for 3SAT is indeed very similar to the one for 4SAT, here is a table of success probabilities from experiments:
| NN: discrete | NN: continuous | BP: discrete | BP: continuous | |
|---|---|---|---|---|
| 0.5 | ||||
| 1.0 | ||||
| 1.5 | ||||
| 2.0 | ||||
| 2.5 | ||||
| 3.0 | ||||
| 3.5 | ||||
| 4.0 |
Thank you again for sharing the additional results.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Dear AC, we replied to all the points raised by the referees.
Regarding the issue mentioned by you as well (rule out that "continuous > discrete diffusion" is an implementation artifact), we would like to emphasize the following: We are already reporting experiments at a matched computational budget, or even at a computational budget that favors discrete diffusions over continuous diffusions. The training budget is roughly the same for continuous and discrete diffusions, since we use the same architecture. The inference budget is essentially proportional to the number of forward passes. Figures 15 and 16 give examples in which the number of forward passes used in discrete diffusions is larger than in continuous (respectively by a factor of 1.8x and 10x).
We would like to add that the separation between discrete and continuous diffusions in these problems across:
[In fact, we believe that this result is atypically robust]