Structured Voronoi Sampling
Amini, Afra, Du, Li, Cotterell, Ryan
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Dec-13-2023
- Country:
- Europe
- Denmark > Capital Region
- Copenhagen (0.04)
- Germany > Saarland
- Saarbrücken (0.04)
- Switzerland > Zürich
- Zürich (0.04)
- Denmark > Capital Region
- North America
- Canada
- British Columbia > Metro Vancouver Regional District
- Vancouver (0.04)
- Ontario > Toronto (0.14)
- British Columbia > Metro Vancouver Regional District
- Dominican Republic (0.04)
- United States
- Massachusetts > Middlesex County
- Sudbury (0.04)
- New York > New York County
- New York City (0.04)
- Texas > Schleicher County (0.04)
- Wisconsin > Dane County
- Madison (0.04)
- Massachusetts > Middlesex County
- Canada
- Oceania > Australia
- Europe
- Genre:
- Research Report (0.82)
- Industry:
- Consumer Products & Services > Restaurants (1.00)
- Energy (0.68)