KV Cache Compression to 1/4: Inside a New Lightweight LLM Architecture
Long-context inference costs—Prefill compute and KV Cache memory—have become the bottleneck for Agent applications. This article breaks down a new ~552B-parameter MoE architecture that tackles both through three structural innovations: a Causal Encoder-Decoder design that nearly halves Prefill compute via asymmetric depth, the CSA2 attention mechanism that shrinks KV Cache to roughly one quarter through cross-layer reuse and FP4 quantization, and an Engram mechanism that decouples knowledge memory from core compute. It also offers practical guidance on how to evaluate such models in production.
Why Inference Cost Is the Core Tension in the Long-Context Era
As Agent capabilities grow, the context length models must handle is expanding rapidly. A single complex software engineering task may involve hundreds of tool calls, hundreds of thousands of tokens of terminal output, or even an entire code repository. Deep Research applications, GUI automation Agents, and enterprise workflows similarly require models to retain and effectively use interaction histories spanning long periods.
In these scenarios, the traditional decoder-only Transformer architecture exposes two unavoidable costs.
The first is the computational overhead of the Prefill stage. With L layers and a prompt of length N, every layer must fully process the entire prompt, giving Prefill a computational complexity of roughly O(NL). When N reaches hundreds of thousands of tokens, Prefill alone becomes the dominant source of response latency and compute cost—before Decode even begins. Worse, in multi-turn Agent interactions, the conversation history is re-prefilled every turn, making much of this computation highly redundant.
The second is the storage and transfer overhead of the KV Cache. Conventional models maintain separate Key and Value caches for every layer. As context grows, the KV Cache continuously occupies GPU high-bandwidth memory (HBM); when memory runs out, it spills to host RAM, SSDs, or even incurs cross-node network transfer. For Agent applications that need session state to persist for long periods, this cost is often harder to optimize than the model weights themselves.
The new architecture is designed to compress all four of the following dimensions simultaneously:
- The storage size of each KV entry (smaller per-entry cache);
- The number of historical positions actually involved in attention computation (fewer effective indexes);
- Duplicate KV caches across Transformer layers (cross-layer reuse);
- The number of network layers that must be fully executed during Prefill (asymmetric computation).
Core Upgrade 1: How Asymmetric Computation Nearly Halves Prefill Compute
The model is an MoE (Mixture-of-Experts) architecture with roughly 552B backbone parameters. Its most distinctive innovation is a Causal Encoder-Decoder (CED) structure that adopts asymmetric computation.
The core idea is that not every token needs to traverse all network layers. For most tokens in the prompt, their primary role is to provide context for subsequent generation rather than to produce output directly. These tokens can therefore pass mainly through the first half of the network during Prefill, while only a small set of critical tokens—such as instruction segments requiring deep understanding or summary anchors—execute the full depth of computation.
In concrete numbers: during Decode, each token activates roughly 16B parameters; during Prefill, because most prompt tokens only pass through the first half of the network, each token activates roughly 8B parameters—nearly halving Prefill compute.
This is especially valuable for Agent workloads, which are typically “long input, short output”: each turn may need to digest hundreds of thousands of tokens of tool results while generating only a few hundred tokens. Cutting the cost of the dominant Prefill side in half means the same hardware can support higher concurrency and lower time-to-first-token.
That said, this asymmetric design raises the bar for engineering implementation: tokens processed only through shallow layers must remain fully accessible in subsequent attention without violating causality. This is exactly why the architecture is called a “Causal Encoder-Decoder”—it preserves the causal constraint of autoregressive generation while trimming computational depth on the encoding side.
Core Upgrade 2: Cross-Layer Reuse and Low-Precision Caching Cut KV Cache to About 1/4
KV Cache optimization generally follows three paths: shrinking each cache entry, reducing the number of positions involved in attention, and eliminating cross-layer redundancy. The new architecture’s attention mechanism (CSA2) pushes on all three.
1. Cross-layer reuse eliminates duplicate caches. In conventional models, each layer independently stores its Main KV and the Indexer K used for sparse attention, leaving large amounts of semantically similar but physically isolated caches across layers. CSA2 reuses the Main KV, Indexer K, and Top-K selection results across layers, so multiple layers share a single copy of the cache and index computation, significantly reducing duplicate caching and repeated indexing overhead.
2. FP4 quantization shrinks each cache entry. On top of reuse, the Main KV Cache is stored in FP4 ultra-low precision, compressing the global KV Cache from about 3,514 Bytes/Token to about 890 Bytes/Token—roughly one quarter of the original. For a 1M-token context, the resident KV Cache drops from around 3.5GB to under 1GB, allowing a single GPU to hold the cache of an ultra-long session and eliminating frequent cache swapping in multi-turn conversations.
3. Sparse attention indexing reduces effective compute positions. Working with a Top-K selection mechanism, the model does not attend over all historical positions; instead, a lightweight indexer picks the most relevant positions for computation. Cache reuse means index results don’t need to be recomputed layer by layer, further reducing Decode latency.
These three optimizations multiply rather than simply add: fewer cache entries (reuse) × smaller entries (FP4) × fewer computed positions (sparse indexing) together produce multiplicative cost reductions.
Core Upgrade 3: Decoupling Knowledge Memory from Backbone Computation
The third upgrade is the Engram mechanism, which decouples knowledge memory from backbone reasoning computation.
In traditional densely parameterized models, factual knowledge is distributed across the full parameter set. To “remember more,” the model must stack more parameters—and more parameters mean higher activation and memory costs. Engram separates scalable knowledge storage from the backbone, retrieving and injecting it into the backbone on demand at low activation cost during inference, thereby expanding knowledge capacity without significantly increasing per-forward computation.
This “external memory + backbone reasoning” decoupling paradigm aligns with widely discussed directions such as retrieval augmentation and parametric memory separation, representing a more sustainable scaling path: inference cost grows with backbone size, while knowledge capacity scales independently.
Summary of Key Technical Points and Evaluation Recommendations
In short, the architecture’s optimization logic condenses into three statements:
- CED reduces Prefill compute: asymmetric depth lets prompt tokens traverse only the necessary layers;
- CSA2 and FP4 compress the KV Cache: cross-layer reuse plus ultra-low-precision storage cuts the cache to about 1/4;
- Engram efficiently expands knowledge capacity: memory and compute are decoupled, so knowledge scales without scaling compute.
For teams evaluating such models in production, we recommend validating along these dimensions:
- Use workloads that mirror real scenarios: run end-to-end stress tests with Agent tasks involving long tool-call chains and large code repositories, rather than relying solely on short-context benchmark scores;
- Focus on cumulative multi-turn costs: the benefits of KV Cache compression are amplified in multi-turn settings and won’t show up in single-turn tests;
- Verify long-context recall quality: low-precision caching and sparse indexing may affect long-range information retrieval accuracy, so run dedicated “needle-in-a-haystack” evaluations;
- Do cost accounting on a managed platform: mainstream cloud platforms typically offer LLM inference services with token-level billing; you can estimate actual bills using pricing models that separate Prefill and Decode, and leverage general cloud capabilities such as object storage and monitoring/alerting to build session-state persistence and observability.
Overall, structural innovations like asymmetric computation, cross-layer cache reuse, and memory decoupling are shifting long-context inference from “brute-force compute” to “architectural precision”—a clearly positive signal for the large-scale deployment of Agent applications.
