potentialpaper

Is Exact Constrained Sampling Right for You?

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:24 UTC · f2537b91cce0 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "CHXn6ljCHV"
- }
- ],
- "title": "Is Exact Constrained Sampling Right for You?",
- "authors": [],
- "abstract": "Constrained sampling lets a language model (LM) produce outputs that satisfy a grammar or another hard constraint, and how it is done matters: masking invalid tokens one step at a time distorts the LM's distribution over valid outputs, which harms applications that need that distribution, such as program fuzzing and molecule generation.\nRecent work samples from the correct constrained distribution either approximately or exactly, and the exact methods---adaptive rejection sampling (ARS) and the recent Constrained Adaptive Rejection Sampling (CARS)---are preferable when their cost is affordable.\nBut nothing tells a practitioner in advance whether it is, or which exact method to use.\nWe analyze the cost of these methods exactly.\nOver a run, ARS pays one rejected LM call for every possible first mistake of the LM, while CARS pays at most one per prefix, and CARS is optimal among all strategies that learn only from their own draws.\nThe speedup of CARS over ARS is bounded below by two masses read off the trie CARS builds: the \\emph{light} invalid mass, too unlikely for ARS to have drawn, and the \\emph{unreachable} mass, at prefixes too rare for CARS to have reached.\nOur analysis is practical: the measured costs fall inside the predicted range on every task, tight when the run has seen most of the ways the LM violates the constraint.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "0b656681-4237-406e-a735-a90df7c1811d"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Is Exact Constrained Sampling Right for You?",
+ "authors": [],
+ "abstract": "Constrained sampling lets a language model (LM) produce outputs that satisfy a grammar or another hard constraint, and how it is done matters: masking invalid tokens one step at a time distorts the LM's distribution over valid outputs, which harms applications that need that distribution, such as program fuzzing and molecule generation.\nRecent work samples from the correct constrained distribution either approximately or exactly, and the exact methods---adaptive rejection sampling (ARS) and the recent Constrained Adaptive Rejection Sampling (CARS)---are preferable when their cost is affordable.\nBut nothing tells a practitioner in advance whether it is, or which exact method to use.\nWe analyze the cost of these methods exactly.\nOver a run, ARS pays one rejected LM call for every possible first mistake of the LM, while CARS pays at most one per prefix, and CARS is optimal among all strategies that learn only from their own draws.\nThe speedup of CARS over ARS is bounded below by two masses read off the trie CARS builds: the \\emph{light} invalid mass, too unlikely for ARS to have drawn, and the \\emph{unreachable} mass, at prefixes too rare for CARS to have reached.\nOur analysis is practical: the measured costs fall inside the predicted range on every task, tight when the run has seen most of the ways the LM violates the constraint.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}