mlsanityData to 24 Nov 2026

FactorSpec: Serving Exact Relational Constraints as Speculative Drafts

arXiv 2611.02297 ↗Submitted 1 Nov 2026cs.LG cs.AIcited by 0

On the map: Efficient LLM inference and serving → Speculative decoding

Abstract (arXiv)

Speculative decoding speeds up LLM serving by drafting tokens that the target model verifies in one pass, and its gain grows with the drafts the target accepts. Structured outputs should be an ideal case, because much of a record follows from relations among its fields: an itinerary's days follow from its cities' stays and flights. Serving engines, however, draft such text by proposing it from the prompt or a learned head, and their grammar masks enforce only syntax, so the model must satisfy the relations, which it violates: on NATURAL PLAN's trip problems, Qwen3-8B writes a valid itinerary for 10%, and retries that name the violated relation raise this to 14%. We present FactorSpec, which serves exact relational constraints as speculative drafts. FactorSpec compiles a JSON Schema and its relations into a factor graph with an exact feasibility check, drafts every token the constraint determines as certain, verifies each request at a width chosen for it, and computes the masks in worker processes outside the scheduler while the GPU runs. In SGLang, its drafts yield up to 10.5 tokens per verify step, up to 1.9x those of the fastest n-gram drafter, and it decodes up to 1.43x faster than speculators tuned per load, at a grammar mask's cost; it also leads in vLLM. Because every record is also valid, it serves up to 13.9x the valid records per GPU-second of syntax-only baselines.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 29 of its 50 references that are in the map. Submitted 1 Nov 2026.

Builds on

29 of 50 references.

Closest ancestors · 11

Same direction, newest first

  1. 2026AgentSpec: Speculative Decoding for Batch Inference of LLM Agents25 Aug
  2. 2026Future Validity is the Missing Statistic: From Impossibility to Phi-Estimation for Grammar-Faithful Speculative Decoding8 May
  3. 2025BanditSpec: Adaptive Speculative Decoding via Bandit Algorithms21 May
  4. 2025EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test3 Mar
  5. 2024SuffixDecoding: Extreme Speculative Decoding for Emerging AI Applications7 Nov
  6. 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decoding3 Feb
  7. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
  8. 2023REST: Retrieval-Based Speculative Decoding14 Nov
  9. 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification16 May
  10. 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
  11. 2022Fast Inference from Transformers via Speculative Decoding30 Nov

Other references · 18

  1. 2024The Llama 3 Herd of Modelscited by 16,113
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
  3. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,713
  4. 2023LLM+P: Empowering Large Language Models with Optimal Planning Proficiencycited by 536
  5. 2023Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoningcited by 421
  6. 2023Efficient Guided Generation for Large Language Modelscited by 244
  7. 2024LLMs Can't Plan, But Can Help Planning in LLM-Modulo Frameworkscited by 193
  8. 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 164
  9. 2024NATURAL PLAN: Benchmarking LLMs on Natural Language Planningcited by 141
  10. 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generationcited by 112
  11. 2024Grammar-Aligned Decodingcited by 63
  12. 2025ChopChop: a Programmable Framework for Semantically Constraining the Output of Language Modelscited by 21
6 more
  1. 2026Vectorizing the Trie: Efficient Constrained Decoding for LLM-based Generative Retrieval on Acceleratorscited by 12
  2. 2026XGrammar-2: Dynamic and Efficient Structured Generation Engine for Agentic LLMscited by 11
  3. 2025Correctness-Guaranteed Code Generation via Constrained Decodingcited by 10
  4. 2026Trie Automata for Constrained Decoding over Large Finite Setscited by 2
  5. 2026Constrained Decoding Eliminates Structural Failures in Small LLMs but Reveals a Scale-Dependent Semantic Gapcited by 2
  6. 2026Constraints Are Graphs, Not Chains: Exact Decoding for Diffusion Language Modelscited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026ToolSpec: Accelerating Tool Calling via Schema-Aware and Retrieval-Augmented Speculative Decoding
  2. 2025HiSpec: Hierarchical Speculative Decoding for LLMs
  3. 2026JetSpec: Breaking the Scaling Ceiling of Speculative Decoding with Parallel Tree Drafting
  4. 2026NarrowSpec: Draft Hidden Width Need Not Match the Target in Speculative Decoding
  5. 2026ForeSpark: Joint Draft and Verification Budget Scheduling for Parallel Speculative Decoding
  6. 2025LogitSpec: Accelerating Retrieval-based Speculative Decoding via Next Next Token Speculation
  7. 2026PackLoop: Row-Packed Self-Speculative Decoding for Looped Language Models under Concurrency
  8. 2026Grammar-as-a-Draft: More Tokens per Speculative Decoding Step on Grammar-Constrained Structured Outputs