PaperLens
紙
Home
Close reading
Textbook
Learn
More
My Page
All-access
Sign in with Google
Mode
Students
Professional
Language
JA
EN
Theme
◐
Sign out
New
Lab
Landscape
Contributors
Glossary
Home
Close reading
Textbook
Learn
More
#constrained-decoding
1 articles
01
2026-08-27
·
Inference & Serving
·
FREE
·
PAPER
·
11 min read
Structured Output and Constrained Decoding — How to Stop an LLM from Breaking Your JSON
Instead of asking a model nicely to return JSON, you can drive the probability of every grammatically illegal token to exactly zero before it is ever sampled. A from-scratch walkthrough of constrained decoding — logit masks, vocabulary indexing, what function calling really does, and why syntax guarantees are not content guarantees.