Outlines / Guided Generation is a constrained decoding engine for open-source LLM inference frameworks (vLLM, SGLang, HuggingFace) that compiles Regular Expressions into Deterministic Finite Automata (DFAs) or leverages Context-Free Grammars (CFG) for real-time Logits Masking; pre-computing state transition tables across the tokenizer vocabulary, it masks invalid next-token logits to
−∞ directly in GPU VRAM during autoregression, mathematically guaranteeing 100% compliance with Regex, JSON, or SQL syntax.