PASK Boosts LLM Structured Generation Throughput and Memory

Linze Wu, Xinrui Chen· August 31, 2026 View original

Key takeaways

  • Structured generation with LLMs is critical but prone to errors and resource-intensive.
  • PASK uses parser-derived structural signals to optimize KV persistence.
  • It significantly improves LLM throughput and reduces GPU memory usage.
  • PASK outperforms compressed baselines and full KV in efficiency and accuracy.

Who benefits

TechSoftware DevelopmentAI/ML PlatformsCloud ComputingData Science

Summary

Researchers introduce PASK (Parser-Aware Structural KV Persistence), a method that uses parser-derived structural signals to make layer-group-specific KV persistence decisions for large language models. PASK significantly improves throughput and reduces GPU memory usage for structured generation tasks like JSON or SQL output.

Large Language Models (LLMs) are increasingly used for structured generation tasks, such as producing JSON, SQL queries, or function calls. In these applications, even a single incorrect field can lead to downstream failures. While constrained decoding helps enforce formal validity by tracking parser transitions, the structural information embedded in these transitions, which indicates how tokens contribute to schema-critical decisions, has largely been underutilized in KV (Key-Value) compression strategies. A new technique called PASK (Parser-Aware Structural KV Persistence) addresses this by leveraging parser-derived structural signals to inform layer-group-specific KV persistence decisions. PASK aligns the model's KV sensitivity with the task's structured risk, using task-error sensitivity to set minimum protection floors and attention-output distortion to allocate residual KV capacity. An offline calibration stage compiles these signals into a persistence policy, which then enables lightweight, structure-conditioned lookups during online inference. Evaluations show that PASK, at a target total KV budget of 0.33, outperforms the strongest compressed baseline by 17.39 percentage points on average across various BFCL non-live and Live subcategories using Qwen3-4B models. In end-to-end serving, PASK achieves up to 2.2x higher throughput and 3.3x lower TPOT (Time Per Output Token), while using only 0.53x the peak GPU memory compared to full KV.

Why it matters

For AI engineers and product developers building LLM-powered agents or applications that require reliable structured output, PASK offers a significant improvement in efficiency, enabling higher throughput and lower memory consumption without sacrificing accuracy.

How to implement this in your domain

  1. 1Investigate integrating PASK or similar parser-aware KV persistence techniques into LLM serving infrastructure.
  2. 2Benchmark PASK's performance for specific structured generation tasks (e.g., JSON, SQL, function calls) in production environments.
  3. 3Optimize LLM deployment strategies to leverage reduced GPU memory and increased throughput from PASK.
  4. 4Develop an offline calibration stage for existing LLMs to create custom persistence policies.
  5. 5Explore how parser-derived structural signals can be further utilized for other LLM optimization challenges.

Original post by Linze Wu, Xinrui Chen

"arXiv:2608.28276v1 Announce Type: new Abstract: Structured generation underpins large language model (LLM) agents that produce JSON, SQL, and function calls, where a single wrong field can cause the downstream action to fail. Constrained decoding already tracks parser transitions…"

View on X

Originally posted by Linze Wu, Xinrui Chen on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses