Unverified50% confidenceSolutionExact time
Outlines pre-compiles constraints into an FSM before inference and performs an offline mapping between the tokenizer vocabulary and each state of the FSM; during inference, hard constraints are enforced by setting the logits of illegal tokens to negative infinity (logits masking).
1
Sources
50%
Confidence
Long-term
Relevance
7/22/2026
First Seen
Sources
Related Claims
UnverifiedOutlines pre-compiles constraints into an FSM before inference, and offline-maps the tokenizer's complete vocabulary to each FSM state to generate an index table of valid token sets per state.79% similarUnverifiedOutlines constructs a Finite State Machine (FSM) that dynamically masks tokens at each generation step that would render the format invalid, allowing the model to sample only from the subset of legal tokens.74% similarUnverifiedOutlines 通过将正则表达式和 JSON Schema 编译为有限状态机(FSM),再映射到 LLM 分词器的词表空间来实现约束68% similarUnverifiedThe underlying implementation of constrained decoding relies on finite state machines (FSM) or context-free grammars (CFG).68% similarUnverifiedThe core method of grammar-constrained decoding is to use a context-free grammar (CFG) to filter out illegal token options during the model's token-by-token output generation, setting the logits of illegal tokens to negative infinity.66% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/590127API
curl https://kongchang.com/api/v1/knowledge/claims/590127MCP
get_claim(id=590127)