Runtime Observability for Diverse Attention Memory in LLMs.

Fanzhe Wei, Li Liu, Ziyang Wang, Chenyu Wang· August 7, 2026 View original

Key takeaways

  • Modern LLMs use heterogeneous attention memory, each failing differently under compression.
  • A new runtime observability contract covers all memory classes with three operators.
  • This system enables request-level risk quantification and localization of silent corruptions.
  • The framework is open-source, providing verifiable and auditable memory management.

Who benefits

AI/ML OperationsCloud ComputingSoftware DevelopmentData Centers

Summary

This paper introduces a runtime observability contract for heterogeneous attention memory in modern LLMs, covering various memory classes with three operators, enabling precise risk quantification and localization of silent corruptions.

Modern large language models (LLMs) no longer rely solely on simple KV caches; they employ diverse forms of attention memory, including latent caches, learned sparse selectors, and recurrent states. Each of these memory types behaves differently under compression and can fail in unique ways. This research proposes a novel runtime observability contract designed to cover all four memory classes using just three operators. The contract allows for the composition of per-stage bounds into an executable, request-level risk ledger. This system quantifies the trade-offs in memory usage and holds risk budgets with zero violations, even under high concurrency. A key feature is its ability to precisely localize silent corruptions within a served model stack, as demonstrated with a DeepSeek-V4 prototype. The entire system, including artifacts and formal proofs, is open-sourced, allowing for verifiable and auditable memory management.

Why it matters

For professionals managing and optimizing large language models in production, this observability framework provides critical tools to understand, monitor, and debug complex attention memory systems, ensuring reliability, cost efficiency, and performance.

How to implement this in your domain

  1. 1Adopt runtime observability contracts for managing heterogeneous attention memory in deployed LLMs.
  2. 2Utilize risk ledgers to quantify and manage memory-related risks at a per-request level.
  3. 3Implement continuous monitoring to detect and localize silent corruptions in LLM memory systems.
  4. 4Explore the open-source artifacts to integrate advanced memory observability into your AI infrastructure.

Original post by Fanzhe Wei, Li Liu, Ziyang Wang, Chenyu Wang

"arXiv:2608.05863v1 Announce Type: new Abstract: Modern models no longer keep a plain KV cache: latent caches, learned sparse selectors and recurrent states each carry the model's memory in a different form, and each fails differently under compression. We give a runtime observabi…"

View on X

Originally posted by Fanzhe Wei, Li Liu, Ziyang Wang, Chenyu Wang on X · view source

Want to go deeper?

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

Explore courses