Outlines (Efficient Guided Generation)
First page

Paper summary
A library for guided LLM text generation that enforces structural constraints with minimal overhead.
Ask this paper
01
Regex guarantees: Guarantees that generated output matches a specified regular expression, supporting grammar-constrained generation at the token level.
02
JSON schema enforcement: Produces output that follows a JSON schema, unlocking reliable structured-output generation without post-hoc parsing retries.
03
Fast implementation: Achieves low overhead via efficient state-machine construction and token-mask caching, making constrained decoding practical in production.
04
Broad adoption: Became widely used in LLM pipelines where structured output is non-negotiable - function calling, tool use, API output, and data extraction.