Ryan Cotterell, Afra Amini, Li Du
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
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.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2306.03061")
get_code_for_paper("2306.03061")
have("2306.03061")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2306.03061.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2306.03061)
Connect an agent — have() is free.