跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 人工智能

arXiv:2601.04426 (cs)
[提交于 2026年1月7日 (v1),最后修订于 2026年8月5日 (此版本, v4)]

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

作者:Linzhang Li, Yixin Dong, Guanjie Wang, Ziyi Xu, Alexander Jiang, Tianqi Chen
查看论文《XGrammar-2: Dynamic and Efficient Structured Generation Engine for Agentic LLMs》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:Modern LLM agents increasingly rely on dynamic structured generation, such as tool calling and response protocols. Unlike traditional structured generation with static structures, these workloads vary both across requests and within a request, posing new challenges to existing engines. We present XGrammar-2, a structured generation engine for dynamic agentic workloads. Our design is based on two key ideas: first-class support for tag-triggered structure switching, and fine-grained reuse across requests with different output structures. Concretely, XGrammar-2 introduces TagDispatch for dynamic structural dispatching and Cross-Grammar Cache for substructure-level cache reuse across grammars. It further improves efficiency with an Earley-based adaptive token mask cache, just-in-time compilation, and repetition state compression. Experiments show that XGrammar-2 achieves over 6x faster compilation than prior structured generation engines, and incurs near-zero end-to-end overhead in modern LLM serving systems.
评论: 9 pages, ACM CAIS 26
主题: 人工智能 (cs.AI)
引用方式: arXiv:2601.04426 [cs.AI]
  (或者 arXiv:2601.04426v4 [cs.AI] 对于此版本)
  https://doi.org/10.48550/arXiv.2601.04426
相关 DOI: https://doi.org/10.1145/3786335.3813124

提交历史

来自:Linzhang Li
[v1] 2026年1月7日 星期三 22:18:51 UTC (397 KB)
[v2] 2026年3月26日 星期四 02:27:05 UTC (480 KB)
[v3] 2026年5月25日 星期一 20:48:59 UTC (853 KB)
[v4] 2026年8月5日 星期三 15:35:29 UTC (851 KB)
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-08
切换浏览方式为:
cs.AI

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站