~/talk

XGrammar-2: Dynamic and Efficient Structured Generation Engine for Agentic LLMs

links:none on file
links:none on file
links:none on file
name:Ziyi Xu
links:none on file
links:none on file
links:none on file
slides:none on file

XGrammar-2 is a structured-generation engine for agentic LLM workloads that implements TagDispatch for tag-triggered structure switching and a Cross-Grammar Cache to reuse substructures across diverse requests. It uses constraint decoding masks to enforce 100% schema correctness, reports over 6× faster compilation versus prior engines and >80% speedup over XGrammar-1 in grammar compilation, yields near-zero end-to-end latency overhead, and already integrates with SGLN, vRM, and TensorRT-LLM.

AI-written summary · about

  1. 0:00Introduction to XGrammar-2
  2. 0:38Need for structured generation
  3. 2:01Constraint decoding basics
  4. 2:24Agentic LLMs challenges
  5. 3:49Intra-request dynamism solution
  6. 5:15Structure tag protocol
  7. 5:55Inter-request dynamism solution
  8. 7:43Performance evaluation
  9. 8:23Adoption and open source
  10. 8:45Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.