Parser Transitions Already Reveal Structural Responsibility: KV Persistence for Structured Generation

Linze Wu, Xinrui Chen
8/28/2026
cs.LG

No confident code implementation found for this paper.

Abstract

LLM agents use structured generation for JSON, SQL, and function calls. Constrained decoding ensures valid formats, but KV compression can discard history needed for correct function and argument selection. Structural responsibility can diverge from model saliency: importance scores can overlook generated tokens' structural roles. Parser transitions already computed for legality encode these roles, including required arguments and structural boundaries, providing a free retention signal. We introduce PASK (Parser-Aware Structural KV Persistence), which reuses this signal for KV persistence by layer group without online importance estimation. Task-error sensitivity sets protection floors, while attention-output distortion ranks upgrades under the remaining budget. Offline calibration produces a frozen table for structural lookup and budget accounting. PASK outperforms budget-controlled baselines on function calling and text-to-SQL, improving BFCL accuracy by up to 8.67 pp over the strongest comparator. Against Full KV, it cuts peak GPU memory by 47.5 percent and achieves up to 3.3 times TPOT speedup.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wu2026parser,
  title  = {Parser Transitions Already Reveal Structural Responsibility: KV Persistence for Structured Generation},
  author = {Linze Wu and Xinrui Chen},
  year   = {2026},
  eprint = {2608.28276},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.28276v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.28276.svg)](https://codeofpaper.com/paper/2608.28276)

Discussion