Lune

NeurIPS2023Top-tier venue

Structured Voronoi Sampling

Afra Amini, Li Du, Ryan Cotterell

Abstract

Gradient-based sampling algorithms have demonstrated their effectiveness in text generation, especially in the context of controlled text generation. However, there exists a lack of theoretically grounded and principled approaches for this task. In this paper, we take an important step toward building a principled approach for sampling from language models with gradient-based methods. We use discrete distributions given by language models to define densities and develop an algorithm based on Hamiltonian Monte Carlo to sample from them. We name our gradient-based technique Structured Voronoi Sampling (SVS). In an experimental setup where the reference distribution is known, we show that the empirical distribution of SVS samples is closer to the reference distribution compared to alternative sampling schemes. Furthermore, in a controlled generation task, SVS is able to generate fluent and diverse samples while following the control targets significantly better than other methods.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Controlled Text Generation with Natural Language Instructions cites Diffusion-LM Improves Controllable Text Generation
  • Controlled Text Generation with Natural Language Instructions cites The Curious Case of Neural Text Degeneration
  • Palette: Image-to-Image Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • Palette: Image-to-Image Diffusion Models cites Denoising Diffusion Probabilistic Models
  • Grammar-Aligned Decoding cites Diffusion-LM Improves Controllable Text Generation
  • Diffusion-LM Improves Controllable Text Generation cites Diffusion Models Beat GANs on Image Synthesis
  • Diffusion-LM Improves Controllable Text Generation cites Denoising Diffusion Probabilistic Models
  • Diffusion-LM Improves Controllable Text Generation cites The Curious Case of Neural Text Degeneration
  • Constrained Discrete Diffusion cites Denoising Diffusion Probabilistic Models
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
  • CREPE: Controlling diffusion with REPlica Exchange cites Diffusion Models Beat GANs on Image Synthesis
  • CREPE: Controlling diffusion with REPlica Exchange cites Denoising Diffusion Probabilistic Models
  • Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective cites Grammar-Aligned Decoding
  • Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective cites Diffusion-LM Improves Controllable Text Generation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Controlled Text Generation with Natural Language InstructionsWangchunshu Zhou, Yuchen Eleanor Jiang, Ethan Wilcox, Ryan Cotterell et al.ICML 2023 · 121 citations
  2. Grammar-Aligned DecodingKanghee Park, Jiayu Wang, Taylor Berg-Kirkpatrick, Nadia Polikarpova et al.NeurIPS 2024 · 73 citations
  3. Constrained Discrete DiffusionMichael Cardei, Jacob K. Christopher, Bhavya Kailkhura, Tom Hartvigsen et al.NeurIPS 2025 · 20 citations
  4. Constrained Sampling for Language Models Should Be Easy: An MCMC PerspectiveEmmanuel Anaya Gonzalez, Sairam Vaidya, Kanghee Park, Ruyi Ji et al.NeurIPS 2025 · 15 citations
  5. CREPE: Controlling diffusion with REPlica ExchangeJiajun He, Paul Jeha, Peter Potaptchik, Leo Zhang et al.ICLR 2026 · 11 citations

Builds on17

  1. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  2. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
  3. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
  4. Palette: Image-to-Image Diffusion ModelsChitwan Saharia, William Chan, Huiwen Chang, Chris A. Lee et al.SIGGRAPH 2022 · 1,638 citations
  5. Diffusion-LM Improves Controllable Text GenerationXiang Lisa Li, John Thickstun, Ishaan Gulrajani, Percy Liang et al.NeurIPS 2022 · 1,546 citations

Related papers

  1. Principled Gradient-Based MCMC for Conditional Sampling of TextLi Du, Afra Amini, Lucas Torroba Hennigen, Xinyan Velocity Yu et al.ICML 2024 · 6 citations
  2. Exposing the Implicit Energy Networks behind Masked Language Models via Metropolis--HastingsKartik Goyal, Chris Dyer, Taylor Berg-KirkpatrickICLR 2022 · 53 citations
  3. A Distributional Approach to Controlled Text GenerationMuhammad Khalifa, Hady Elsahar, Marc DymetmanICLR 2021 · 135 citations
  4. Constraint Satisfaction Driven Natural Language Generation: A Tree Search Embedded MCMC ApproachMaosen Zhang, Nan Jiang, Lei Li, Yexiang XueEMNLP Findings 2020 · 14 citations
  5. Entropy-based adaptive Hamiltonian Monte CarloMarcel Hirt, Michalis K. Titsias, Petros DellaportasNeurIPS 2021 · 11 citations
Dusk over the sea between two cliffs drawn in fine vertical lines