paper-with-me

Papers

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

2026-01-07 · Linzhang Li, Yixin Dong, Guanjie Wang, Ziyi Xu, Alexander Jiang, Tianqi Chen arxiv

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.

📄 PDF Abstract BibTeX arXiv:2601.04426

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

XGrammar: Flexible and Efficient Structured Generation Engine for Large Language Models

2024-11-22 · Yixin Dong, Charlie F. Ruan, Yaxing Cai, Ruihang Lai 외

The applications of LLM Agents are becoming increasingly complex and diverse, leading to a high demand for structured outputs that can be parsed into code, structured function calls, and embodied agent commands. These de…

GPU

Small Language Models for Agentic Systems: A Survey of Architectures, Capabilities, and Deployment Trade offs

2025-10-04 · Raghav Sharma, Manan Mehta arxiv

Small language models (SLMs; 1-12B params, sometimes up to 20B) are sufficient and often superior for agentic workloads where the objective is schema- and API-constrained accuracy rather than open-ended generation. We sy…

Guided Decoding and Its Critical Role in Retrieval-Augmented Generation

2025-09-08 · Özgür Uğur, Musa Yılmaz, Esra Şavirdi, Özay Ezerceli 외 arxiv

The integration of Large Language Models (LLMs) into various applications has driven the need for structured and reliable responses. A key challenge in Retrieval-Augmented Generation (RAG) systems is ensuring that output…

Agentic Software Engineering: Foundational Pillars and a Research Roadmap

2025-09-07 · Ahmed E. Hassan, Hao Li, Dayi Lin, Bram Adams 외 arxiv

Agentic Software Engineering (SE 3.0) represents a new era where intelligent agents are tasked not with simple code generation, but with achieving complex, goal-oriented SE objectives. To harness these new capabilities w…

Code Generation

Loosely-Structured Software: Engineering Context, Structure, and Evolution Entropy in Runtime-Rewired Multi-Agent Systems

2026-03-16 · Weihao Zhang, Yitong Zhou, Huanyu Qu, Hongyi Li arxiv

As LLM-based multi-agent systems (MAS) become more autonomous, their free-form interactions increasingly dominate system behavior. However, scaling the number of agents often amplifies context pressure, coordination erro…