Score Mismatch and Set-Constrained Sampling in Zero-Shot Conditional Discrete Diffusion
Organizations: Department of Electrical and Computer Engineering, University of California, Davis, Davis, CA, 95616, USA · Luddy School of Informatics, Computing, and Engineering, Indiana University Indianapolis, Indianapolis, IN, 46202, USA · Department of Electrical and Computer Engineering, The Ohio State University, Columbus, OH, 43210, USA
Abstract
Discrete diffusion models have become a powerful framework for modeling complex discrete distributions across a range of applications. While theoretical convergence guarantees depend on consistency between the target and training distributions, such a case rarely holds in practice, making score mismatch a central challenge in discrete diffusion sampling. This is particularly relevant to zero-shot conditional generation, where a model trained on the unconditional distribution is directly reused at inference time to sample from a conditional target distribution. In this paper, we provide the first theoretical analysis for score-mismatched discrete diffusion models and derive a general KL divergence upper bound that clearly identifies the additional bias caused by such a mismatch. Our analysis covers partial-observation constraints, including text infilling, sentence completion, and more general coordinatewise set constraints. Specifically, we analyze the classical Conditional SEDD sampler and show that it can incur a bias term that scales with the dimension, vocabulary size, and compatibility. Based on this analysis, we propose a Randomized Hard Clamping (RHC) sampler for coordinatewise set constraints. We show that the assignment probabilities can be expressed exactly by the unconditional scores with absorbing rate. Finally, numerical and real-data experiments demonstrate the effectiveness of the proposed RHC sampler.
Figures & tables
| Sampler | Transportation | Study | Game |
|---|---|---|---|
| Uniform Assignment | 100.61 1.72 (1610 s) | 99.54 1.44 (1611 s) | 103.35 1.52 (1605 s) |
| RHC | 61.01 1.53 (1660 s) | 62.82 1.08 (1664 s) | 69.57 0.75 (1659 s) |
| Sampler | Cooking | Project | Weather |
| Uniform Assignment | 135.37 0.76 (1601 s) | 98.26 2.66 (1606 s) | 91.22 1.31 (1600 s) |
| RHC | 116.82 2.06 (1655 s) | 77.48 1.35 (1660 s) | 65.20 1.27 (1650 s) |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Scenario | Position | Candidate Tokens |
|---|---|---|
| Transportation | 7 | plane, bus, taxi, bike, train, car |
| 15 | fast, quick, rapid, swift, speedy, brisk | |
| 22 | anxious, nervous, worried, tense, uneasy, afraid | |
| 27 | but, however, yet, while | |
| 36 | safe, secure, protected, reliable, stable, harmless | |
| 44 | calm, relaxed, peaceful, relieved, quiet, comfortable |
| Scenario | Generated Sentences |
|---|---|
| Transportation | We started driving together in a single car and quickly became hooked on sharing this fast driving fantasy. We were both nervous at this point, yet aware it’s important to be safe in driver jobs. We got more comfortable working on this scenario. |
| We’re looking for a car . We’ll make it quick . I’m not worried about driver hours, but confident we’ll be comfortable and safe . I’m relieved to make it in. | |
| We’re waiting for the train , and it’ll be fast . It’s a tense , terrifying experience, but almost everyone is enjoying it and everything is safe . Our focus right now is staying calm and enjoy the train. | |
| Game | The team then had a very difficult match . Our team manager made the fans nervous . The team reminded us of losing a great game, but this is it. The team rallied and scored our first goals. The team still advanced to the seventh round. |
| The team took the field in the match . They played in a group with weak European play. They ended their losing streak in the match but they went through a difficult patch. They fought a very good campaign and the team won their four home matches. | |
| The team had competed in their early race . The team had suffered to a slow start, suffering the misfortune of losing in first race, but a few hours later, the team had improved to a higher level. They had qualified for their second race. |
| Scenario | Generated Sentences |
|---|---|
| Cooking | We had tossed green wasabi salad at sea. The combination of roasted pork and cilantro was very spicy and fragrant, but it varied a little bit in this salty -and-cheese dish. I enjoyed roasted pork and wasabi salad. |
| We also share the grilled cheese pizza . This improved version of the grilled cheese pizza is fortified with the sweet and savory flavours while marinated with the plum and the salty onion, balanced by the juicy cheese and served with the tart and grape sticks. | |
| Weiner’s sandwich is a salad . It tastes like a ’ smoked ’ flavor of avocado, almost spicy , and sweet, but it does not have a ’ spicy salty ’ flavor of onions. It is also served with hot and fried meat rolls. | |
| Project | The team first introduces a new system . The design is far more complex . The same system types are broken into primary domains, while differences in each case have to be tested separately. Once the system is ready , new features can be tested. |
| The team managed to rebuild the platform and then solve a few more complex problems. The platform was very unstable from the beginning, but soon, its stability was increased and improved . The platform was once again in a stable condition and also with new challenges. | |
| The team working on the main project had sat for long periods with difficult problems. Work there had been delayed for several months, but after several months, the problems were fixed . The project was almost complete and was ready to be done before the holidays. |
Diffusion Models
Diffusion models learn to reverse gradual data corruption, enabling flexible generation, editing, forecasting, and inference.
See all 1,163 papers