Unverified50% confidenceFactExact time
约束解码的底层实现依赖有限状态机(FSM)或上下文无关文法(CFG)
1
Sources
50%
Confidence
Long-term
Relevance
7/15/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.72% similarUnverifiedCFG 约束可以描述括号匹配、嵌套结构等编程语言语法,但相比正则约束其编译和推理成本会有所上升70% similarUnverifiedOutlines 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).68% similarUnverified规则层通过关键词、正则表达式、状态机处理表意固定无歧义的高频指令,可实现毫秒级路由且零算力消耗67% similarUnverifiedOutlines 通过将正则表达式和 JSON Schema 编译为有限状态机(FSM),再映射到 LLM 分词器的词表空间来实现约束67% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/520744API
curl https://kongchang.com/api/v1/knowledge/claims/520744MCP
get_claim(id=520744)