betaFeedback

WorksComputer Science

Gossamer: A Utility-Driven Architecture for Constant-Budget KV Cache Compression in Reasoning LLMs

Abstract

Transformer-based large language models (LLMs) are increasingly applied to complex reasoning tasks, yet their inference efficiency is fundamentally constrained by the rapid growth of the KV cache. As reasoning contexts extend to hundreds of thousands of tokens, the key-value (KV) cache becomes the dominant contributor to both memory footprint and bandwidth demand, tightly coupling computation with memory utilization and thereby limiting scalability. Existing compression methods, such as quantization and eviction, alleviate capacity pressure but remain purely algorithmic, often introducing additional passes and compute overhead that reduce system efficiency. This paper presents Gossamer, a KV cache compression architecture for reasoning LLMs that bridges the algorithm–system–hardware gap. Gossamer introduces a unified utility-based action framework that dynamically selects compression operations, quantization, merging, or eviction, under a constant KV cache budget. Through cross-domain co-design, we fuse cosine-similarity estimation directly into the attention computation, exploiting idle compute cycles to perform similarity evaluation without latency or bandwidth cost. We call this mechanism Free-Lunch Utilization. This enables real-time, fine-grained KV management with near-constant memory usage and negligible overhead. Under tight memory constraints, Gossamer sustains reasoning quality comparable to uncompressed inference while improving end-to-end throughput by up to 16.7×\times over uncompressed baselines, 5.5×\times and 4.9×\times over the quantization-based Oaken and Ecco, and 1.8×\times over the eviction-based R-KV.

Introduction

Transformer-based large language models (LLMs) [33], [40], [21], [1] have emerged as powerful reasoning engines, enabling complex decision-making, planning, and multi-step generation across diverse domains. As model size and reasoning context length increase, the computational and memory requirements of inference grow rapidly [42], [28], [34], [17], posing serious challenges for deploying reasoning LLMs efficiently under limited hardware resources. Modern reasoning LLMs employ a key-value (KV) cache [41], [34], [43] to accelerate autoregressive decoding. The KV cache stores attention key and value tensors from previous steps, allowing the model to reuse them for subsequent token generation instead of recomputing all past activations. While this mechanism is essential for long-form reasoning, its linearly growing size creates a substantial memory footprint and introduces severe memory bandwidth bottlenecks.

From the memory perspective, the KV cache expansion directly increases storage demand and bandwidth pressure. The size of the KV cache grows linearly with the reasoning context and model dimension, quickly becoming the dominant contributor to runtime memory consumption [42]. For short contexts (e.g., 512 tokens), the KV cache accounts for less than 2% of total memory usage, but at long contexts (e.g., 128K tokens), it can occupy over 84% of available capacity [18]. This growth stresses on-device memory and amplifies memory traffic, as cached data must be repeatedly accessed during each decoding step. When the KV cache exceeds available capacity, systems often resort to offloading strategies [38], [54], [31] that migrate cache data across the memory hierarchy or to external storage, introducing additional data movement and latency.

From the computation perspective, a larger KV cache directly increases the arithmetic cost of attention, since each decoding step must process more KV entries. At the same time, limited memory reduces batching opportunities [25], leading to low compute utilization and degraded throughput. This tight computation and memory coupling fundamentally limits inference efficiency for reasoning workloads. Consequently, there is a critical need for architectural techniques that reduce the KV cache footprint while maintaining reasoning quality.

A natural response to the growth of the KV cache is compression. Existing works [2], [29], [52], [18], [26], [54], [6], [27], [51], [50], [4], [12], [46], [47], [14], [45], [19] explore several directions, including quantization, pruning, and eviction-based methods. These broadly fall into two categories. The first category is local in-place compression [6], [29], [11], [18], [37]. These methods compress the KV cache by a fixed ratio, such as quantizing from FP16 to 4-bit [29] or pruning a constant fraction of tokens [11]. Such techniques delay memory exhaustion but do not fundamentally solve the problem, as the KV cache still grows linearly with context length. For efficient inference, they rely only on local information and make per-token decisions without global context awareness.

The second category leverages global information from previous reasoning history to guide compression. In reasoning LLMs, many cached tokens are redundant across multi-turn reasoning steps [43]. Recent global-aware methods [27], [3], [2], [43], [44], [53] compare new KV entries with the existing KV cache to decide whether to retain or evict them, effectively bounding the KV cache within a constant budget, such as 512 entries. However, these methods emphasize algorithmic effectiveness and often overlook architectural efficiency.

Global-aware compression requires computing similarities such as cosine distance across the entire cache [2], which is computationally expensive. Our measurements show that a single global compression step on a 512-entry cache can take up to twelve times the latency of one attention computation. To amortize this cost, these methods commonly introduce a secondary buffer and accumulate new tokens, for example, 128 at a time, before performing global updates. While this improves amortized efficiency, it sacrifices responsiveness and does not align with real-time inference pipelines, leading to suboptimal accuracy. As a result, current KV cache compression methods remain algorithmically driven but architecturally inefficient, leaving a clear gap between compression utility and hardware efficiency.

In this study, we propose Gossamer, a utility-driven KV cache architecture for reasoning LLMs that bridges the gap among algorithm, system, and hardware design. The utility formulation builds on comprehensive cross-domain observations, integrating insights from all three domains in a mutually reinforcing way.

From a system perspective, current serving stacks rely on batching to improve inference throughput for reasoning workloads. As shown in Figure 1-a, batching allows multiple requests to share GEMM operations in fully connected layers, yielding high utilization. However, in attention layers, as shown in Figure 1-b, batching is infeasible because each request maintains a private KV cache. The computation thus degenerates into a series of memory-bound GEMV operations, leaving substantial compute units idle. As illustrated by the roofline model in Figure 2-a, this traps the attention operation in the memory-bound region, preventing it from reaching the hardware’s theoretical compute roof.

Figure 1. Overview of Gossamer: (a) batching boosts FC utilization, (b) attention idles enable free-lunch utilization, and (c) utility actions manage KV under a constant budget.

Figure 2. (a) Hardware Roofline model; (b) M vs. Latency

On the algorithmic side, Gossamer’s utility-based action framework unifies advanced KV cache compression techniques, including quantization, eviction, and merging. All these actions depend on cosine similarity between new and historical KV entries to identify redundancy and decide token-level operations. Ideally, each new token would perform such checks for optimal compression, but comparing against all cached entries is computationally expensive, forcing existing systems to group tokens and delay updates.

By combining architectural and algorithmic insights, we make a key observation. Cosine similarity can be decomposed into per-key computations that align naturally with attention operations. As illustrated in Figure 1-c, the similarity between the new key a and historical keys K can be fused into the existing attention matrix multiplication, sharing intermediate products and compute flow. This enables cosine similarity calculation to be executed entirely within the attention kernel without additional latency or bandwidth cost. Crucially, because the baseline attention kernel is severely memory-bound, these fused operations remain well below the hardware’s compute roof, meaning the extra computation comes essentially for free.

We call this integration Free-Lunch Utilization. By exploiting idle compute cycles within the attention pipeline, Gossamer performs similarity computation “for free,” maintaining global context visibility while hiding its cost. The resulting architecture supports dynamic utility-based actions such as quantization and eviction in place, with minimal overhead, and near-constant memory usage. Through this cross-domain co-design, Gossamer achieves global reasoning awareness with the efficiency of local in-place execution, improving utilization across algorithm, system, and architecture levels. We make the following contributions in this paper.

  • We identify a fundamental bottleneck in KV cache compression for reasoning LLMs: existing designs face a dilemma between accurate but computationally expensive global compression and faster but less accurate local compression, leaving a gap between compression quality and system efficiency.

  • We present Gossamer, a utility-driven framework for constant-budget KV cache management that decides how cached states should be maintained and transformed according to their estimated utility during reasoning.

  • We design a hardware-aware implementation of this framework that fuses utility estimation into attention computation

and enables low-overhead, fine-grained KV cache management during streaming decoding.

  • We demonstrate on long-context reasoning benchmarks that Gossamer achieves near-uncompressed accuracy under tight memory budgets while significantly improving inference efficiency, achieving up to 16.7× speedup over FullKV, 5.5× and 4.9× over Oaken and Ecco, and 1.8× over R-KV.

Background and Motivation

Reasoning LLM Inference

LLMs adopt the Transformer architecture [41]. Inference proceeds in two phases: prefill and decode [55]. Prefill processes the input prompt in parallel, while decode generates one token at a time. At decode step TT, the query for the newly generated token is a row vector QT∈R1×dkQ_T \in\mathbb{R}^{1 \times d_k}, and the cached keys and values for that head are KT,VT∈RT×dkK_T, V_T \in\mathbb{R}^{T \times d_k}. Evaluating attention thus reduces to two matrix–vector products. As illustrated in Figure 2-a, in GEMM terms, the left operand has an inherent M=1M=1, which yields low arithmetic intensity and makes decode-time attention memory bound rather than compute bound.

Reasoning-oriented models typically have a considerable generation length TT, which has two critical system-level consequences. (i) HBM capacity and batching: systems must preallocate KV cache space for the target generation length; because the cache grows linearly with TT per layer and head, HBM capacity quickly becomes the limiting resource [42, 18], constraining the maximum concurrent batch size and thus throttling throughput. (ii) Bandwidth at attention: at each decode step, the accelerator must stream the cached K,VK,V tensors for all previous tokens to compute attention for the next token. Hence, the cost of attention grows with the effective KV length [34]. Reducing this length directly lowers the number of bytes moved per generated token and speeds up memory-bound attention. Consequently, KV cache compression addresses both constraints simultaneously: it increases the batch size that fits in HBM and accelerates decode-time attention by shrinking the per-step KV footprint, reducing end-to-end latency with minimal impact on quality.

Takeaway 1: Decode-time attention is memory-bound; since the KV cache grows with sequence length, compressing it increases HBM-fit batch size and accelerates attention.

KV Cache Compression

Existing approaches to compress the KV cache fall into three broad categories. Eviction methods [11, 31, 54] reduce the effective cache length by discarding tokens deemed less informative (e.g., oldest-first, stride-based thinning, entropy- or attention-driven policies, or head-specific retention). Quantization methods [29, 18, 52, 6, 49, 10, 13, 15] shrink per-token storage by representing KK and VV at lower precision (e.g., per-head or group-wise scaling in 8/6/4-bit or FP8 formats, sometimes with outlier handling or error compensation) to cut both capacity and bandwidth. Merging methods [44, 53] aggregate multiple tokens into a single surrogate memory entry (e.g., temporal pooling or

clustering within segments or per head), directly lowering the number of cache entries that attention must read each step.

Each family faces inherent trade-offs. Eviction reduces sequence length but risks dropping long-range dependencies and often requires carefully tuned, context-dependent policies. Quantization preserves length but can introduce accuracy loss from outliers and scale mismatch across layers and heads. Merging improves bandwidth by shortening the cache but may blur token-specific information and accumulate bias over depth. Because we must simultaneously address both axes, bytes per token (capacity) and tokens per step (bandwidth), and because sensitivity varies by layer, head, and input regime, relying on a single technique rarely yields strong compression at fixed quality.

Takeaway 2: Effective KV compression should be hybrid and adaptive, combining eviction, quantization, and merging to reduce capacity and bandwidth while maintaining model quality.

Limits of Scoring-Based KV Compression

State-of-the-art KV compression often relies on per-token importance scoring that ranks cache entries via global similarity or clustering. These schemes are not hardware friendly: score computation typically forms the all-pairs key similarity S=KKTS = K K^{\mathsf{T}} for K∈RT×dkK \in\mathbb{R}^{T \times d_k}, costing O(T2dk)O(T^2d_k) FLOPs plus extra memory traffic for reductions, top-kk selection, and index reshuffling. This overhead can easily exceed the per-step attention cost O(Tdk+Tdv)O(Td_k + Td_v). Figure 3 compares three approaches across decoding steps 0–127 under a 256-entry budget. The left panels show decoding/compression stages, with pie charts indicating PE utilization during attention computation. The right panels track cache usage against the budget.

Figure 3. Limits of Scoring-Based KV Compression.

R-KV [2] compresses lazily every 128 tokens, as shown in Figure 3-a. The cache fills to 256 entries, then compression abruptly drops it to 128 entries in one step. This causes two problems: (i) substantial context is discarded at once, degrading accuracy; (ii) 50% of the budget sits unused afterward, wasting memory capacity. PE utilization during attention is low because compression runs as a separate, expensive phase. Iteration based R-KV (Figure 3-b) addresses the waste by compressing every step using the same global scoring. While cache usage stays near the budget limit, this approach incurs prohibitive overhead: each step requires a full O(T2dk)O(T^2d_k) similarity pass in a separate kernel. PE utilization during attention remains low because compression and attention remain decoupled. The expensive scoring dominates runtime, making per-step compression impractical. Our method achieves the best of both worlds through input fusion in Figure 3-c. By embedding lightweight utility estimation directly into the attention GEMM, it compresses every step with negligible overhead. Cache usage stays near the budget limit (avoiding waste), compression decisions preserve informative tokens (maintaining accuracy), and PE utilization during attention is high because no separate compression phase is needed. Gossamer eliminates the tradeoff between compression frequency and overhead.

Takeaway 3: Lazy, scoring-heavy designs drop too much context when triggered, while per-step global scoring is prohibitively expensive, motivating streaming, hardware-friendly KV compression with negligible per-step cost.

Leveraging Underutilized Compute in Decode-Time Attention

Modern serving stacks lean on batching to raise throughput, yet batching helps the two GEMM types inside a decoder layer in fundamentally different ways. In the projection (fully-connected) layers, the weight matrix is shared across requests, so the activations of BB concurrent requests stack into a single large matmul. As shown in Figure 4-a for the query projection, this drives the operation into the compute-bound regime: achieved throughput climbs steeply with BB and approaches the hardware’s TFLOPS roof. Attention behaves oppositely, because each request owns a private K/VK/V cache and therefore cannot share an operand with any other request. As shown in Figure 4-b, even under a highly optimized FlashAttention kernel, the per-step computation reduces to a batch of independent (1×d)⋅(d×L)(1 \times d) \cdot(d \times L) matrix–vector products, and its achieved TFLOPS saturate at a low value regardless of BB while only latency grows. Attention thus remains pinned in the memory-bound region even with batched-decode kernels, which means the idle compute Gossamer exploits is a structural property of decode-time attention rather than an artifact of single-request inference.

Figure 4. (a) Projection layers scale efficiently with batch size, achieving high TFLOPS utilization. (b) Attention layers cannot be batched across requests and remain memory-bound, with TFLOPS saturating regardless of batch size. (c) Adding auxiliary rows to the attention input incurs negligible latency overhead, validating the free-lunch utilization principle.

During decode, attention reduces to (1×d)⋅(d×L)(1 \times d) \cdot(d \times L) matrix–vector products: with one query per step, the left operand has M=1M=1, so compute units are underutilized while performance is dominated by reading the LL cached keys and values from memory. In this memory-bound regime, modest increases in MM incur negligible latency cost, as demonstrated in Figure 2-b.

We exploit this by padding the attention’s left operand with a few auxiliary vectors along the MM dimension. Let K∈RL×dK \in\mathbb{R}^{L \times d} be the cached keys and qt∈Rdq_t \in\mathbb{R}^{d} the current query. Instead of computing only qtKT/dq_t K^\mathsf{T}/\sqrt{d}, we stack rr lightweight vectors u1,…,ur∈Rdu_1,\ldots,u_r \in\mathbb{R}^{d} (e.g., derived from the new token or simple running summaries) and form

Yt=[qt/du1T⋮urT]⏟Mt∈R(1+r)×dKT∈R(1+r)×L.(1)Y_t = \underbrace{ \begin{bmatrix} q_t / \sqrt{d}\\ u_1^\mathsf{T}\\ \vdots\\ u_r^\mathsf{T} \end{bmatrix} }_{M_t \in\mathbb{R}^{(1+r)\times d}} K^\mathsf{T} \in\mathbb{R}^{(1+r)\times L}. \tag*{(1)}

The first row produces the usual attention pre-logits, while the additional rows yield per-position signals (e.g., similarity or redundancy proxies) that can be turned into streaming scores. Because KTK^\mathsf{T} is read once regardless and rr is small, this fused multiply adds negligible overhead (no extra cache passes and only a small increase in FLOPs) while converting otherwise idle compute into fresh, per-step metrics. In Gossamer this slack is filled with just r=2r=2 auxiliary rows, the new normalized key and a running key accumulator, yielding the compact 3-row fused GEMM detailed in Section IV-D.

Crucially, this argument survives batching. Since attention cannot be batched across requests, each request independently keeps a tiny M=1+rM=1+r no matter how many requests are served concurrently, so the padded rows never push attention out of its memory-bound operating point. Figure 4-c confirms this empirically: across the full batch-size sweep, decode latency with and without the rr auxiliary rows is virtually indistinguishable, demonstrating that the fused similarity computation is obtained essentially for free under realistic serving conditions, not merely for a single request.

Takeaway 4: Decode attention with M=1M=1 leaves compute resources underutilized; adding a few auxiliary rows (M→1+rM \to1+r) utilizes this slack to generate per-step similarity scores, realizing “free-lunch” utilization. Because attention is non-batchable across requests, this slack (and hence the free-lunch opportunity) persists even under high-throughput batched serving.

Gossamer: Compression Methodology

Our KV cache management system is a multi-stage, utility-driven framework designed to maximize memory efficiency while preserving model performance. The framework first identifies a core set of high-value tokens for full-precision retention using the token prioritization algorithm detailed in Section III-A. All other tokens are then processed by a dynamic action utility model (Section III-D) that selects an appropriate compression action under a fixed KV budget. This modular design allows us to apply compression techniques, such as the vector quantization and merging described in Section III-B and Section III-C, only to tokens that are poor candidates for full retention but are still too valuable to evict.

Candidate Selection: Scoring Foundation

We base our candidate selection on prior KV scoring schemes driven by importance and redundancy [2], [27], [3]. Algorithm 1 assigns per-head token priorities by balancing importance against redundancy.

Importance is computed as the mean attention each token receives from a fixed window of the last τ=8\tau= 8 queries, yielding a length-LL vector that summarizes how much recent decoding has relied on each cached token.

Redundancy is estimated using cosine-similarity-based signals over the key vectors: for each token, we measure its similarity to the rest of the cache and aggregate these values into an average redundancy score, which is then normalized via a softmax to make scores comparable across tokens. Higher redundancy indicates greater semantic overlap with other entries.

Priority combines these two signals using a trade-off parameter β∈[0,1]\beta\in[0, 1], increasing with importance and decreasing with redundancy. Tokens are ranked by the resulting priority scores, and the top BmainB_{\mathrm{main}} entries are retained in the main full-precision KV cache CmainC_{\mathrm{main}}, while the remaining tokens become candidates for compressed storage or eviction in the later stages of Gossamer.

Algorithm 1 describes the ideal importance-redundancy scoring we aim to compute. Naively, this requires O(L2dk)O(L^2d_k) similarity computation. In our hardware implementation (Section IV), we avoid materializing Σh\Sigma^h by using normalized keys, a running key accumulator, and per-token top-kk similarity tables. This allows importance and redundancy scores to be maintained from a single fused attention GEMM, eliminating extra passes over the KV cache.

Compression Action 1: Vector Quantization

To reduce the significant memory footprint of the KV cache, we employ a novel vector quantization (VQ) strategy that combines correlation-based channel reordering with gain-shape quantization. Our objective is to compress the per-head DD-dimensional KV vectors with high fidelity while preserving simple, regular access patterns for hardware.

Sub-vector Quantization

1) Sub-vector Quantization: Directly applying VQ to a high-dimensional vector x∈RDx \in\mathbb{R}^{D} (e.g., D=128D = 128) is statistically and computationally infeasible due to the curse of dimensionality. We adopt sub-vector quantization, partitioning xx into MM non-overlapping sub-vectors of dimension GG:

x=[x(1),x(2),…,x(M)],where x(i)∈RG and D=M×Gx = [x^{(1)}, x^{(2)}, \ldots, x^{(M)}], \quad\text{where } x^{(i)} \in\mathbb{R}^{G} \text{ and } D = M \times G

We use G=8, a D=128 vector splits into M=16 sub-vectors, each with a separate codebook Ci\mathcal{C}_i.

Correlation-Based Reordering

2) Correlation-Based Reordering: Naive sub-vector quantization suffers from arbitrary partitioning: consecutive channels (e.g., dimensions 0-7, 8-15) are not necessarily correlated, leading to suboptimal partitioning. Figure 5-b (left) shows VQ on adjacent channels 49 and 50, yielding an average error of 0.118. Figure 5-b (right) shows VQ on correlated channels 46 and 50, reducing error to 0.035, which is a 3.4×\times improvement. Grouping correlated dimensions creates tighter clusters and significantly improves quantization quality.

Figure 5. Gain-shape vector quantization and correlation-based channel reordering.

We address this through offline correlation-based reordering. For each attention head, we compute the D×DD \times D channel correlation matrix RR from profiled KV cache data, then apply greedy clustering to find a permutation π\pi grouping the GG most correlated channels. The algorithm iteratively builds size-GG groups by selecting the most correlated unassigned pair, then greedily adding dimensions with the highest average correlation to existing members.

Permutations are applied offline to eliminate runtime overhead. We derive πK\pi_K from K-cache correlations and πV\pi_V from V-cache correlations, then pre-emptively reorder the columns of projection matrices WQW_Q, WKW_K, and WVW_V accordingly. At inference, produced vectors qπKq_{\pi_K}, kπKk_{\pi_K}, and vπVv_{\pi_V} are already optimally ordered and directly partitioned into sequential sub-vectors for quantization. This ensures each sub-vector contains highly correlated dimensions by construction, reducing quantization error as shown in Figure 5.

Gain-Shape Codebook Generation

  1. Gain-Shape Codebook Generation: We further improve quantization accuracy by using a gain-shape formulation, as illustrated in Figure 5-a. Instead of quantizing the (permuted) sub-vector xπ(i)x_{\pi}^{(i)} directly, we decouple its magnitude (gain) from its direction (shape). The gain g(i)g^{(i)} is defined as the L2L_2 norm of the sub-vector, and the shape x^π(i)\hat{x}_{\pi}^{(i)} is the corresponding unit-norm vector:

g(i)=∥xπ(i)∥2x^π(i)=xπ(i)g(i)+ϵg^{(i)} = \lVert x_{\pi}^{(i)} \rVert_2 \qquad\hat{x}_{\pi}^{(i)} = \frac{x_{\pi}^{(i)}}{g^{(i)} + \epsilon}

where ϵ\epsilon is a small constant (e.g., 10−1210^{-12}) for numerical stability. Our offline codebook generation process operates on these shape vectors. For each sub-vector position i∈[1,M]i \in[1,M], we train a dedicated codebook Ci∈RK×GC_i \in\mathbb{R}^{K \times G} by applying the kk-means algorithm to the set of all shape vectors {x^π(i)}\{\hat{x}_{\pi}^{(i)}\} from the profiled KV cache. We use K=256K = 256 clusters, allowing each shape vector to be represented by an 8-bit index.

Online Encoding and Storage

  1. Online Encoding and Storage: During inference, when the dynamic action–utility (DAU) framework selects a candidate token tct_c for quantization, its key vector kck_c (and similarly its value vector vcv_c) undergoes an encoding process. Because of the offline matrix reordering (Section III-B2), kck_c is already the permuted vector kπKk_{\pi_K}. We first partition kck_c into M=16M = 16 sub-vectors {kc,1,…,kc,16}\{k_{c,1}, \ldots, k_{c,16}\}, each of dimension G=8G = 8. For each sub-vector kc,ik_{c,i}, we compute its gain gi=∥kc,i∥2g_i = \lVert k_{c,i} \rVert_2. Since codebook entries ci,j∈Cic_{i,j} \in C_i are unit-norm, selecting the best codeword by cosine similarity reduces to maximizing the dot product:

si=max⁡jkc,iTci,js_i = \max_j k_{c,i}^{\mathsf{T}} c_{i,j}

We store the corresponding index j∗j^* as the 8-bit code for that sub-vector, and store it together with the gain gig_i.

To inform the DAU framework, we derive a quantization fidelity score:

ϕquant(kc)=1M∥kc∥2∑i=1Msi\phi_{\mathrm{quant}}(k_c) = \frac{1}{\sqrt{M}\lVert k_c\rVert_2} \sum_{i=1}^{M} s_i

which aggregates the best dot products across sub-vectors, normalized by the full vector norm and M\sqrt{M} for consistent scaling across sub-vectors.

The quantized representation consists of M=16M = 16 FP16 gains (32 bytes) and M=16M = 16 8-bit indices (16 bytes), totaling 48 bytes versus 256 bytes for the original FP16 vector, achieving 5.3× compression. The compressed token moves from main cache CmainC_{\mathrm{main}} to quantized cache CquantC_{\mathrm{quant}}; the same procedure applies to vcv_c.

Compression Action 2: Merging

This action aims to preserve the information of the candidate token by consolidating it with a semantically similar token that is being retained in the cache. The operational details of this process are as follows:

  1. Target Search: When a candidate token tct_c (with key vector kck_c and value vector vcv_c) is considered for merging, the system first identifies the most suitable merge target, ttt_t, from the set of tokens currently in the main retained cache, CmainC_{\mathrm{main}}. The target is found by performing a nearest-neighbor search in the key-vector space using cosine similarity as the metric:

tt=arg⁡max⁡ti∈Cmainsim⁡(kc,ki)t_t = \arg\max_{t_i \in C_{\mathrm{main}}} \operatorname{sim}(k_c,k_i)

Similarity Score Calculation

  1. Similarity Score Calculation: The maximum similarity value found in the search is recorded as the merge similarity score for this action, which is used by the DAU framework to evaluate this choice:

ϕmerge(kc,kt)=sim⁡(kc,kt)=kc⋅kt∥kc∥⋅∥kt∥\phi_{\mathrm{merge}}(k_c,k_t) = \operatorname{sim}(k_c,k_t) = \frac{k_c \cdot k_t}{\lVert k_c\rVert\cdot\lVert k_t\rVert}

State Update

  1. State Update: If the merge action is selected, the state of the target token ttt_t is updated to incorporate the information from the candidate tct_c. Consistent with the goal of preserving the target’s semantic anchor in the cache, the key vector ktk_t remains unchanged.

The value vector vtv_t, however, is updated to a new representation, vtnewv_t^{\mathrm{new}}. This process merges the two vectors while preserving the L2L_2 norm of the original target token. First, an intermediate vector is computed by summing the source and target value vectors vcv_c and vtv_t. This vector is then normalized and rescaled to match the original magnitude of vtv_t:

vtnew=∥vt∥2⋅vt+vc∥vt+vc∥2+ϵv_t^{\mathrm{new}} = \lVert v_t\rVert_2 \cdot\frac{v_t + v_c}{\lVert v_t + v_c\rVert_2 + \epsilon}

where ϵ\epsilon is a small constant for numerical stability. This operation consolidates the information from tct_c into ttt_t while maintaining the original target’s norm, after which the candidate token tct_c is evicted from the cache.

The Dynamic Action-Utility Framework

Tokens that are not selected for retention by Algorithm 1 (i.e., those with the lowest priority scores Ψh\Psi^h) are not immediately discarded. Instead, they become candidates for a set of memory-saving actions. The central innovation of this work is the DAU decision framework, which provides a principled logic for selecting the most appropriate action by transforming the choice into a formal cost-benefit analysis. Since no evicted or compressed token can later be recovered, the DAU is designed to minimize the information loss from each irreversible choice.

Cost-Benefit Utility Formulation

The DAU framework models KV cache management as a resource allocation problem. When the main cache CmainC_{main} exceeds its budget, the candidate token tct_c (identified as the one with the lowest priority score Ψ(tc)\Psi(t_c)) must be acted upon. The framework formalizes the decision as choosing an action aa from the set A={Evict,Merge,Quantize}A = \{\mathrm{Evict}, \mathrm{Merge}, \mathrm{Quantize}\} that maximizes a utility function U(a,tc)U(a,t_c).

a∗=arg⁡max⁡a∈A U(a,tc)(2)a^* = \underset{a \in A}{\arg\max}\, U(a,t_c) \tag*{(2)}

The utility function reflects the net benefit of an action. An ideal, lossless action (e.g., retaining tct_c in full precision) would have a utility of zero. All our defined actions incur some information loss and thus have a non-positive utility (i.e., U≤0U \le0). The magnitude of the utility corresponds to the severity of the loss. This allows us to frame the decision as choosing the “least bad” action, the one that minimizes the damage to the model’s future predictive capabilities.

Action Utility Definitions

The utilities for Evict and Merge are straightforward. The Quantize utility is more complex as it must account for a secondary, constrained budget.

a) Evict Utility (UevictU_{\mathrm{evict}}): Eviction results in the complete and irreversible loss of tct_c. The cost of this action is therefore directly proportional to the importance of the token. The utility is defined as the negative of its importance score, ω(tc)\omega(t_c), which was computed in Algorithm 1:

Uevict(tc)=−wimp⋅ω(tc)(3)U_{\mathrm{evict}}(t_c) = -w_{\mathrm{imp}} \cdot\omega(t_c) \tag*{(3)}

Here, wimpw_{\mathrm{imp}} is a positive hyperparameter that scales the importance score into the utility space.

b) Merge Utility (UmergeU_{\mathrm{merge}}): Merging consolidates tct_c into a semantically similar target token ttt_t (which is already in CmainC_{main}). We define ϕmerge(tc,tt)\phi_{\mathrm{merge}}(t_c,t_t) as their cosine similarity. The information loss is related to the dissimilarity, so the utility is defined by the deviation from a perfect merge:

Umerge(tc)=wmerge⋅(ϕmerge(tc,tt)−1)(4)U_{\mathrm{merge}}(t_c) = w_{\mathrm{merge}} \cdot\left(\phi_{\mathrm{merge}}(t_c,t_t) - 1\right) \tag*{(4)}

The term (ϕmerge−1)(\phi_{\mathrm{merge}} - 1) is always non-positive, yielding U=0U = 0 for a perfect merge.

c) Adjusted Quantize Utility (Uquantize′U'_{\mathrm{quantize}}): The Quantize action is unique in that it interacts with two separate budgets: it resolves the CmainC_{main} budget overflow but, in turn, adds an entry to the quantized cache, CquantC_{quant}. If CquantC_{quant} is also full, a token must be displaced from it.

We term the cost of this forced eviction the Displacement Cost (DcostD_{\mathrm{cost}}). This is the opportunity cost of quantizing tct_c, equal to the value of the token that must be removed from CquantC_{quant} to make room. We evict the least valuable token, tlqt_{lq}, currently in the quantized cache, where tlq=arg⁡min⁡ti∈Cquantω(ti)t_{lq} = \arg\min_{t_i \in C_{quant}} \omega(t_i). The cost is simply this token’s eviction utility:

Dcost=Uevict(tlq)=−wimp⋅ω(tlq)(5)D_{\mathrm{cost}} = U_{\mathrm{evict}}(t_{lq}) = -w_{\mathrm{imp}} \cdot\omega(t_{lq}) \tag*{(5)}

This cost, which is always negative, is added to the base quantization utility, Uquantize(tc)U_{\mathrm{quantize}}(t_c). The base utility is calculated similarly to the merge utility, based on the fidelity ϕquant(tc)\phi_{\mathrm{quant}}(t_c) (e.g., cosine similarity) between the original vector and its quantized reconstruction:

Uquantize(tc)=wquant⋅(ϕquant(tc)−1)(6)U_{\mathrm{quantize}}(t_c) = w_{\mathrm{quant}} \cdot\left(\phi_{\mathrm{quant}}(t_c) - 1\right) \tag*{(6)}

The final, adjusted quantization utility Uquantize′U'_{\mathrm{quantize}} incorporates the DcostD_{\mathrm{cost}} only if CquantC_{quant} is at its budget limit:

Uquantize′(tc)={Uquantize(tc)+Dcostif ∣Cquant∣≥BquantUquantize(tc)if ∣Cquant∣<Bquant(7)U'_{\mathrm{quantize}}(t_c) = \begin{cases} U_{\mathrm{quantize}}(t_c) + D_{\mathrm{cost}} & \text{if } |C_{quant}| \ge B_{quant} \\ U_{\mathrm{quantize}}(t_c) & \text{if } |C_{quant}| < B_{quant} \end{cases} \tag*{(7)}

This mechanism creates a dynamic, self-regulating system. As CquantC_{quant} fills with more important tokens, DcostD_{\mathrm{cost}} becomes a larger penalty, making quantization a less attractive option.

Final DAU Decision Rule

By combining the action-specific utilities with the budget-aware displacement cost, we arrive at the final, comprehensive decision rule. When the main cache ∣Cmain∣|C_{main}| exceeds its budget BmainB_{main}, the candidate token tc=arg⁡min⁡ti∈CmainΨ(ti)t_c = \arg\min_{t_i \in C_{main}} \Psi(t_i) is identified. The framework then evaluates the final utility for all three actions and selects the one with the highest (least negative) utility:

a∗=arg⁡max⁡a∈A{Uevict(tc),Umerge(tc),Uquantize′(tc)}(8)a^* = \underset{a \in A}{\arg\max}\left\{U_{\mathrm{evict}}(t_c), U_{\mathrm{merge}}(t_c), U'_{\mathrm{quantize}}(t_c)\right\} \tag*{(8)}

This rule transforms compression into a clear optimization problem that manages contention across both cache budgets. Critically, every action that resolves a ∣Cmain∣>Bmain|C_{main}| > B_{main} overflow either deletes tct_c from CmainC_{main} or migrates it to CquantC_{quant}. Because CquantC_{quant} is itself capped at BquantB_{quant} with displacement enforced through the utility framework, the total number of KV entries stored across both caches is bounded by Bmain+BquantB_{main} + B_{quant} for all decode steps. This ensures constant memory usage regardless of sequence length T, fulfilling our design goal of a predictable, bounded memory footprint for long-form reasoning workloads.

Gossamer: Architecture Design

To support the dynamic, utility-driven KV cache management framework described in Section III, we co-design a specialized hardware accelerator. This accelerator integrates cache management logic directly into the attention datapath, minimizing latency and compute overhead. The design centers on three key ideas:

  1. Decoupled key storage: Storing L2L_2-normalized keys (k~\tilde{k}) and their norms (κ\kappa) separately, which allows dot-products to serve as cosine similarities.

  2. Lightweight metadata: Maintaining lightweight metadata (e.g., a key accumulator shs^h and a tiny similarity table) that enables computation of importance and redundancy scores without re-reading the full key cache.

  3. Fused computation: Fusing the computations for attention, redundancy, and neighbor search into a single, efficient matrix multiplication.

Gossamer Overview

The Gossamer architecture is wrapped around a conventional TPU-like systolic array 1. This core features a standard matrix-multiply unit, complete with input, weight, and output buffers, which computes query-key products and value-weighted outputs. Gossamer augments this baseline design with three specialized components.

First, an input prepare engine normalizes new keys, updates an accumulated key register, concatenates them with the new query, and writes the result into the input buffer; this engine also dequantizes tokens and feeds them into the weight buffer. Second, a scoring and select engine receives redundancy and importance scores from the output buffer, updates the system metadata, and uses these scores to select low-priority tokens. Finally, a DAU engine consumes this metadata, performing simple calculations to decide whether to evict, merge, or quantize each low-priority token.

Hardware-Managed Metadata

To manage the cache efficiently, the hardware maintains several key metadata structures for each attention head. First is the decoupled key cache. Instead of storing the full-dimensional key, the hardware splits it into its L2L_2 norm and its normalized shape vector. The main key cache buffer, therefore, stores only these unit-norm shape vectors. The hardware also maintains a top-kk similarity cache. This is a small, fast buffer that stores the identifying indices and similarity scores for the ksimk_{\mathrm{sim}} most similar tokens of each entry (e.g., ksim=3k_{\mathrm{sim}} = 3).

Additionally, a single, full-precision register, called the accumulated key register, keeps a running vector sum of all the normalized key vectors currently in the main cache. This accumulator is what allows for the efficient redundancy calculation later. Finally, an attention history buffer, operating as a circular buffer, stores the most recent attention probability vectors, which are used to calculate the rolling average for the token importance score.

Pre-Attention Token Processing

When a new token arrives, it is first passed through the key projection matrix to generate a new key vector. As shown in Figure 7, the hardware datapath intercepts this vector and immediately calculates its L2L_2 norm and its normalized shape vector. This maintains the gain-shape decoupled representation. The gain is appended to the metadata, and the shape vector is appended to the main key cache buffer. At the same time, the accumulated key register is updated by adding this new normalized shape vector to its existing sum. These steps prepare the three critical inputs for the next stage: the new query, the new normalized key, and the updated accumulated key vector.

Detailed Architecture and Datapath of the Gossamer Framework

Figure 7. Detailed Architecture and Datapath of the Gossamer Framework.

These three vectors are then passed together into the input buffer for the fused computation. During this process, the datapath also handles dequantization, loading tokens from the quantized cache and converting them back to full precision before they are used. It is important to note that no runtime permutation overhead is required. The correlation-based reordering of vector sub-parts is applied offline by pre-permuting the columns of the main query, key, and value projection matrices. This means the query, key, and value vectors arrive from the projection layers already in their optimally permuted order, ready for direct use.

Fused Attention and Score Computation

As shown in Figure 7, our fused computation takes three inputs: the current query, the new key token, and the accumulated key vector (which represents the sum of all keys currently in the cache). These three vectors are bundled into a small 3-row matrix and then multiplied against the entire matrix of normalized keys from the KV cache. This single, efficient matrix multiplication simultaneously produces three distinct and vital results in its three output rows, all in one pass.

The first output row is used for the standard attention calculation. It contains the initial query-key products. Because the keys were normalized, we recover the true attention logits by scaling them with their corresponding L2L_2 norm values, which are stored separately. These true logits are then passed to a softmax function to produce the final attention scores. In parallel, these scores are also used to update the importance score for each token, which is maintained as a streaming average of its recent attention values.

The second output row contains the cosine similarities between the new key and all other keys already in the cache. This row is used for similarity tracking. A top-kk unit processes this data to find the most similar neighbors for the new token, populating its neighbor table. Concurrently, this new similarity value is compared against the tables of all existing tokens, allowing their neighbor summaries to be kept fresh without requiring a full, costly rescan of the cache.

The third output row provides a highly efficient way to calculate redundancy by computing the dot product of the accumulated key vector with every key in the cache. This serves as a streaming proxy for the row-sum of Σh\Sigma^h in Algorithm 1: a token’s total redundancy (its similarity to all other tokens) can be computed by taking this dot product and subtracting 1, completely avoiding the O(L2dk)O(L^2d_k) cost of building a full token-to-token similarity matrix. The hardware processes these values into an average redundancy, then applies softmax to generate the final redundancy score.

Finally, the importance and redundancy scores are weighted and added together to obtain a final priority score for each token. A comparator unit identifies the token with the lowest priority, which is then fed to the DAU engine for a final decision on whether to evict, merge, or quantize it.

DAU-Driven Cache Management

When the main cache budget is exceeded, the DAU engine activates. As shown in Figure 7-Figure 4, following candidate identification, the hardware concurrently evaluates the utility of all three potential actions, evict, merge, and quantize, in parallel. The evict utility is the most direct, computed from the candidate token’s importance score. The merge utility is determined by first retrieving the required merge similarity. This value is obtained instantaneously by reading the maximum similarity score from the candidate token’s pre-computed top-kk similarity metadata table, which is then used to calculate the final utility of a merge operation.

Finally, the quantization utility (Figure 7-Figure 3) is assessed by the quantization engine, which computes a quantization fidelity score for the candidate token. This fidelity score is obtained efficiently with no extra cost as a natural byproduct of the codebook lookup process itself, which inherently maximizes cosine similarity. The resulting utility score is then adjusted to account for a potential displacement cost, which is only incurred if the dedicated quantization cache is already full and an existing quantized token must be evicted to make space.

A comparator unit then selects the single action that yields the highest utility, as illustrated in Figure 7-Figure 5. If the selected action is to merge, the hardware reads the corresponding target token, executes the norm-preserving value vector update, and writes the updated value back to the main cache. If the selected action is to quantize, the candidate token is encoded and moved to the quantization cache.

Post-Action Maintenance

As demonstrated in Figure 7-Figure 6, regardless of the action taken (evict, merge, or quantize), the hardware performs a consistent set of metadata updates. First, the accumulated key vector is corrected by subtracting the normalized key of the candidate token that was just processed. This step is critical as it ensures that all subsequent redundancy calculations, which rely on this accumulator, remain exact.

Figure 6. Overview of the Gossamer Architecture.

Second, the system updates the neighbor tables. Any table entries that referenced the processed token are invalidated by zeroing their scores and setting an invalid bit. Refreshing these entries immediately would be costly; instead, they are updated opportunistically later in a later iteration. The attention buffer also slides forward automatically as part of this standard update.

Evaluation

Accuracy Evaluation

Models and Datasets. We evaluate using two distilled reasoning language models, DeepSeek-R1-Distill-Llama-8B [16] and DeepSeek-R1-Distill-Qwen-14B [8], on the MATH-500 [20] and AIME 2024 [32] benchmarks. All checkpoints are obtained via HuggingFace Transformers [48]. We further profile each model’s KV cache on the GSM8K [7] dataset and use the resulting statistics to build the quantization codebook. For decoding, we cap the maximum generation length at 8,192 tokens for MATH-500 and 16,384 tokens for AIME 2024; increases beyond these limits did not improve accuracy in our preliminary sweeps. Because greedy decoding can yield high variance for long-form reasoning models, and following prior work [9, 2], we adopt a pass@kk protocol [5] and report pass@1 under stochastic sampling. For the DeepSeek-R1 distilled checkpoints, we use the recommended hyperparameters: temperature = 0.6 and top-pp = 0.95. We sample kk = 16 completions per problem and compute pass@1, which provides more reliable performance estimates.

Baseline Methods. We compare Gossamer against state-of-the-art KV-cache compression methods. We adapt SnapKV [27] to operate in both the prefill and decoding phases. We also evaluate R-KV [2], a leading KV compression method for reasoning models, using its recommended configuration. For all baselines, we apply a fixed compression schedule that recompresses the KV cache every 128 decoding steps. The memory budget is defined over the entire KV cache, including segments from generated tokens that are subsequently compressed. We also report FullKV, which keeps the KV cache uncompressed and serves as the gold-standard upper bound on decoding quality. The budget for SnapKV and R-KV represents the number of KV cache entries, while for Gossamer, we adopt 75% entries in full precision and 25% entries quantized. When plotting, we normalize Gossamer’s budget to its memory-equivalent logical budget, allowing for a direct comparison against the full-precision baselines under the same actual memory consumption.

Accuracy Analysis. Across models and benchmarks, Gossamer consistently stays closest to the FullKV upper bound while outperforming existing compression baselines (Figure 8). This trend is especially clear on AIME 2024, where accuracy is highly sensitive to KV budget. For both DeepSeek-R1-Distill-Llama-8B and DeepSeek-R1-Distill-Qwen-14B, Gossamer achieves higher accuracy than R-KV and SnapKV throughout the low- and mid-budget regimes, and closes the gap to FullKV at substantially smaller budgets. In other words, Gossamer recovers the uncompressed accuracy frontier more quickly as KV capacity increases, indicating that it allocates limited cache budget more effectively than prior methods.

Accuracy on AIME and MATH for Llama-8B and Qwen-14B

Figure 8. (a) Accuracy on AIME (left) / MATH (right) for Llama-8b.

(b) Accuracy on AIME (left) / MATH (right) for Qwen-14b.

Fig. 8: Accuracy vs. KV Budget Across Models and Datasets.

On MATH-500, the accuracy curves are smoother and the absolute gaps are smaller, but the relative ordering remains consistent. For Llama-8B, Gossamer matches or slightly exceeds R-KV across all budgets while maintaining a clear advantage over SnapKV under tight memory (256–768). This suggests that Gossamer makes more efficient use of constrained KV capacity, whereas less frequent compression updates can lead to wasted budget and slower accuracy recovery. As the budget increases, all compressed methods gradually approach the FullKV limit, but Gossamer reaches this regime

sooner, showing that its gains are not limited to aggressive compression alone. For Qwen-14B, the same pattern holds: Gossamer remains closest to FullKV, consistently outperforms R-KV in the low- and mid-budget range, and avoids the severe degradation exhibited by SnapKV at small budgets.

Taken together, these results show that Gossamer is not only stronger at a fixed KV budget, but also more budget-efficient: it delivers larger accuracy gains as KV capacity increases and reaches the FullKV regime at smaller budgets than prior compression methods.

Performance Evaluation

Simulation Setup. To evaluate architectural performance, we developed a cycle-accurate simulation framework based on SCALESim-v2 [36]. The simulator accepts layer-wise traces generated from specific models and datasets, enabling precise modeling of runtime behavior. We model the Gossamer architecture, which features a 128×128128 \times128 PE array. The PEs utilize an output stationary dataflow and perform FP16 multiplication with FP32 accumulation. The architecture includes a total of 64 MB of on-chip buffer, partitioned into 16 MB for inputs, 16 MB for weights, and 32 MB for outputs. For off-chip memory, we model HBM2 providing a total bandwidth of 512 GB/s. We implement the Gossamer architecture in SystemVerilog and synthesize it using Synopsys Design Compiler under a commercial 28nm technology node with 500 MHz clock frequency for area and energy analysis.

Models and Baselines. We evaluate architectural performance using DeepSeek-R1-Distill-Llama-8B, DeepSeek-R1-Distill-Qwen-14B, and QwQ-32B. We compare our Gossamer approach against four baseline methods. First, we simulate FullKV, where the entire KV cache is stored uncompressed. Second, we include Ecco [6] and Oaken [23], two state-of-the-art quantization-based frameworks that compress the KV cache to near-4-bit precision with on-the-fly encoding and decoding. Third, we select R-KV as it is a representative state-of-the-art compression method for reasoning models. For our own Gossamer architecture, we incorporate two configurations: one where 50% of the KV cache is allocated to FP16 and another with 75%. All baselines (FullKV, Ecco, and R-KV) are simulated using the identical SCALESim-v2 setup to ensure a fair and direct comparison.

Memory Saving and Max Batch Size. To measure the throughput benefit, we compute the maximum batch size that fits in device memory for each method and KV budget when generating up to 8,192 tokens per sequence. In this regime, KV cache is the dominant memory cost, so reducing its footprint directly increases the number of sequences that can be served concurrently. Figure 9 reports the resulting batch-size curves for both DeepSeek-R1-Distill-Llama-8B and DeepSeek-R1-Distill-Qwen-14B.

Max Batch Size vs. KV Cache Budget Across Models

Figure 9. Max Batch Size vs. KV Cache Budget Across Models.

Across both models and all budgets, Gossamer achieves the highest batch size among the compressed methods and substantially outperforms FullKV. The gain is largest in the low-budget regime, where memory is most constrained: the 50%-FP variant supports more than an order-of-magnitude larger batch than FullKV at a budget of 256, and consistently exceeds R-KV by roughly 20–40%. The 75%-FP variant follows the same trend, offering a slightly smaller concurrency gain in exchange for better accuracy. As the budget increases, all methods gradually converge, but Gossamer remains above R-KV and Ecco throughout, showing that its compression translates into systematically better memory efficiency rather than a benefit limited to only the most aggressive settings.

Overall, these results show that Gossamer improves not only accuracy under tight KV budgets, but also effective hardware utilization by enabling substantially larger long-context batches on a fixed device.

Decoding Throughput. Figure 10-a and Figure 10-b report normalized decoding throughput over generation steps at budgets of 1024 and 2048, across all three models. All compressed methods eventually outperform FP16 FullKV as sequence length grows, since smaller KV footprints reduce memory traffic and attention cost. The key distinction is between the short-generation regime and the long-output regime typical

Normalized throughput across varying generation steps and KV cache budgets

Figure 10. Normalized throughput across varying generation steps and KV cache budgets.

of reasoning workloads. In early steps (KV length within budget), Ecco and Oaken lead due to immediate bandwidth savings from 4-bit quantization, while R-KV and Gossamer show smaller initial gains as budget-based compression has not yet activated. Once KV length exceeds the budget and compression becomes active, Gossamer becomes increasingly advantageous, ultimately delivering the highest throughput across all models and budgets.

The source of Gossamer’s speedup is threefold: increased batch size from reduced KV memory footprint, lower per-step attention cost from mixed-precision KV storage, and negligible compression overhead from fused similarity estimation. The relative contribution of each factor varies with model size. For smaller models (DS-Llama-8B, DS-Qwen-14B), GEMM operations saturate quickly at modest batch sizes, so attention becomes the dominant cost as sequence length grows — making KV compression increasingly impactful. For QwQ-32B, large weight matrices consume most of the device memory, leaving room for only small batches; in this regime, attention contributes a smaller fraction of total latency, so Gossamer’s throughput gain is primarily driven by the increased batch size that reduced KV footprint enables. This explains why QwQ-32B achieves the highest absolute normalized throughput among the three models, with Gossamer (50% FP) reaching over 10×10 \times FP16 throughput at 8192 tokens.

At budget = 2048, the crossover between Gossamer and quantization-only baselines occurs later since the larger budget delays compression pressure, but the final advantage at 8,192 tokens remains consistent. The gap between Gossamer and R-KV widens with sequence length across all models, confirming that the benefit of fused compression compounds as generation progresses.

End-to-end Analysis. Figure 10-c reports normalized endto-end throughput over full 8192-token generation. Gossamer consistently delivers the best performance across all three models and all budgets, achieving up to 16.7× over FullKV, 5.5× over Oaken, 4.9× over Ecco, and 1.8× over R-KV. Throughput decreases as budget grows for all methods, since a larger retained cache increases memory and attention cost; however, Gossamer maintains a consistent lead over all baselines throughout the accuracy-relevant regime (1024–2048), where both the 75%-FP and 50%-FP variants sustain strong throughput while preserving reasoning quality. These results demonstrate that Gossamer’s advantages: increased batch capacity, mixed-precision attention, and fused compression, compound across model scales and translate into the highest end-to-end throughput under practical long-context serving conditions.

Power and Area Analysis. The area and power consumption of our proposed architecture Gossamer are summarized in Figure 11. By employing a highly streamlined microarchitecture and leveraging idle compute cycles, Gossamer requires minimal additional logic for token selection and quantization. Consequently, the hardware implementation is exceptionally lightweight. Synthesis results demonstrate that our custom module occupies just 1.46 mm² of on-chip area and consumes 811 mW of power. This translates to a negligible overhead of only 0.68% in total area and 0.65% in total power consumption relative to the baseline system.

Figure 11. Area and Power Breakdown.

Ablation Study

Redundancy-Importance Trade-off. To determine token retention, we introduce a hybrid criterion that jointly evaluates token redundancy and importance, regulated by a weighting parameter, β\beta. We evaluate the sensitivity of this trade-off by sweeping β\beta under different token budgets using the Llama-8B model on the MATH-500 dataset. As illustrated in Figure 12, β=0\beta= 0 represents a purely redundancy-based policy, while β=1\beta= 1 relies strictly on token importance. As β\beta scales from 0 to 1, accuracy consistently exhibits an inverted-U trend across all budgets. Peak performance is universally achieved at β=0.1\beta= 0.1, demonstrating that strategically combining both metrics yields significantly higher accuracy than relying on either isolated extreme.

Redundancy-Importance trade-off parameter $\beta$

Figure 12. Redundancy-Importance trade-off parameter β\beta.

Merge-Quantization Sensitivity. Figure 13 sweeps the ratio between wmergew_{\mathrm{merge}} and wquantw_{\mathrm{quant}}, where values left of center bias decisions toward quantization and values right toward merging. For larger budgets, 768 and 1024, accuracy peaks precisely at a ratio of 1.0. This indicates that when the budget is sufficiently large, the system is best served by an unbiased decision that

Figure 13. Accuracy vs. merge-quant decision threshold.

simply selects the method yielding the minimum information loss. Conversely, under a highly constrained budget 512, the peak shifts leftward to a wquant/wmerge=1.1w_{\mathrm{quant}}/w_{\mathrm{merge}} = 1.1. At this aggressive compression level, the available FP capacity is scarce, meaning almost all retained tokens are highly critical. Forcing a merge operation on these critical tokens risks severe context distortion. Thus, an explicit bias toward quantization is required to maintain accuracy under strict budget constraints.

Budget Partitioning Analysis. Figure 14 sweeps the FP16 allocation under different total budgets. Accuracy generally improves with more FP entries, with peak performance consistently achieved at 50%–75% FP allocation.

Figure 14. Accuracy vs. the number of FP16 KV cache entries.

Two non-obvious effects emerge. First, at a severely constrained FP allocation of 128 entries, the smallest budget (512) outperforms larger ones (768, 1024): with more total tokens but the same FP capacity, larger budgets force more tokens into aggressive quantization, distorting the contextual representation. This suggests quantization should be applied selectively rather than indiscriminately. Second, allocating nearly the entire budget to FP does not always help: under budget = 1024, accuracy slightly drops when increasing FP from 768 to 896 entries, indicating that moderate quantization can act as a regularizer by filtering contextual noise.

Execution Time Breakdown. Figure 15 breaks down Llama-8B end-to-end execution latency into three components, projection (Proj), attention (Attn), and compression (Comp), normalized to R-KV at each budget. Projection latency remains roughly constant in absolute time across both methods. Attention latency is shorter in absolute terms under Gossamer because mixed-precision KV storage reduces the amount of data streamed from memory per decoding step, directly lowering the memory-bound attention cost.

Figure 15. Normalized execution latency breakdown.

The most significant difference lies in compression overhead. In R-KV, compression requires a dedicated global similarity pass whose cost scales with sequence length; at budget = 2048, this accounts for 23% of total runtime. By fusing cosine similarity estimation into the attention GEMM, Gossamer reduces compression overhead to under 2% across all budgets, effectively hiding it within the attention kernel. This is the core benefit of Free-Lunch Utilization: compression that would otherwise dominate at large budgets is absorbed into otherwise idle compute cycles. The combined effect yields a 1.25× speedup over R-KV at budget = 512 and a 1.79× speedup at budget = 2048, with the advantage growing as budget increases, since R-KV’s compression cost scales while Gossamer’s remains negligible.

Long-Context Capability. Table I evaluates Gossamer on LongBench v1 and v2 under a strict KV cache budget of 1024 and 2048 tokens, respectively. On LongBench v1 (Llama-3.1-8B-Instruct), Gossamer matches or exceeds FullKV on MF-en and Qasp while remaining competitive on Musiq, consistently surpassing KIVI, Quest and Cake by a significant margin. On LongBench v2 (DS-Llama-8B), Gossamer achieves 30.4% overall accuracy across short and medium length categories, within 0.4% of FullKV and outperforming all compressed baselines. These results demonstrate that Gossamer’s hybrid compression strategy generalizes effectively beyond reasoning workloads to diverse long-context tasks.

MethodAcc.ShortMediumQaspMF-enMusiq
FullKV30.8%36.1%26.3%45.3154.9731.68
KIVI [30]---36.5042.5125.52
Quest [39]27.3%30.2%24.9%40.2248.6226.78
Cake [35]29.2%33.6%25.6%44.9552.4830.82
Ours30.4%35.8%25.9%45.1955.2430.21

Table I. LB: DS-Llama-8B and Llama-3.1-8B-Instruct.

Cross-Domain Codebook Adaptivity. Notably, all LongBench evaluations reuse the quantization codebook profiled exclusively on GSM8K — a mathematical reasoning dataset with a very different token distribution. Despite this domain shift, Gossamer maintains high accuracy across varied long-context tasks, demonstrating zero-shot codebook transferability. This eliminates the need for task-specific KV cache reprofiling and significantly simplifies deployment.

Accuracy Scalability. Figure 16 evaluates Gossamer on QwQ-32B, a larger and stronger reasoning model, across two benchmarks: GPQA Diamond and MATH-500. Gossamer consistently outperforms both baselines across nearly all budgets

Figure 16. GPQA/MATH acc. vs. KV cache budget (QwQ-32B).

on both tasks. The advantage is most pronounced at tight budgets: on MATH-500 at budget = 256, Gossamer achieves 55.0% accuracy, nearly doubling R-KV and far exceeding SnapKV; a similar gap appears on GPQA Diamond, where Gossamer leads both baselines at low budgets while SnapKV trails substantially throughout. As the budget increases, all methods converge toward FullKV, with Gossamer remaining at or above R-KV on both benchmarks and consistently ahead of SnapKV. These results confirm that Gossamer’s accuracy gains scale to larger models and generalize across reasoning task types, rather than being limited to the smaller distilled checkpoints and single benchmark used in the main evaluation.

Action Distribution Analysis. To verify that Gossamer’s gains stem from genuinely leveraging all three actions rather than degenerating into one dominant policy, we record the fraction of candidate tokens assigned to each action by the DAU framework. Under budget = 1024 on MATH-500 with DS-Llama-8B, the distribution is: Evict 87.6%, Quantize 10.1%, and Merge 2.3%.

This distribution confirms that no single action subsumes the others — removing quantization or merging would force their respective tokens into eviction, discarding information the DAU framework otherwise preserves at low cost. This supports our central claim that a hybrid, utility-driven action space, rather than any single compression technique, is necessary to make effective use of a constrained KV budget.

Conclusion

This paper presented Gossamer, a utility-driven KV cache compression architecture that addresses memory and bandwidth bottlenecks in long-form reasoning LLMs. By unifying quantization, merging, and eviction under a constant-budget framework and fusing utility estimation into attention computation, Gossamer achieves predictable memory usage with negligible overhead. Evaluations demonstrate that Gossamer sustains reasoning quality comparable to uncompressed inference while delivering up to 16.7× throughput improvement over FP16 baselines and significant gains over state-of-the-art compression methods.

Acknowledgment

The work was funded in part by National Science Foundation NSF-2112562 and ARO W911NF-23-2-0224. The authors sincerely thank the anonymous reviewers for their constructive feedback and valuable suggestions that greatly improved the quality of this work.

References

  1. [1]J. Bai, S. Bai, Y. Chu, Z. Cui, K. Dang, X. Deng, Y. Fan, W. Ge, Y. Han, F. Huang et al., “Qwen technical report,” arXiv preprint arXiv:2309.16609, 2023.
  2. [2]Z. Cai, W. Xiao, H. Sun, C. Luo, Y. Zhang, K. Wan, Y. Li, Y. Zhou, L.-W. Chang, J. Gu et al., “R-kv: Redundancy-aware kv cache compression for reasoning models,” in The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.arxiv.org/abs/2505.24133
  3. [3]Z. Cai, Y. Zhang, B. Gao, Y. Liu, Y. Li, T. Liu, K. Lu, W. Xiong, Y. Dong, J. Hu et al., “Pyramidkv: Dynamic kv cache compression based on pyramidal information funneling,” arXiv preprint arXiv:2406.02069, 2024.arxiv.org/abs/2406.02069
  4. [4]C.-C. Chang, W.-C. Lin, C.-Y. Lin, C.-Y. Chen, Y.-F. Hu, P.-S. Wang, N.-C. Huang, L. Ceze, M. S. Abdelfattah, and K.-C. Wu, “Palu: KV-cache compression with low-rank projection,” in The Thirteenth International Conference on Learning Representations, 2025. [Online]. Available: https://openreview.net/forum?id=LWMS4pk2vKarxiv.org/abs/2407.21118
  5. [5]M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. D. Pinto, J. Kaplan, H. Edwards, Y. Burda, N. Joseph, G. Brockman et al., “Evaluating large language models trained on code,” arXiv preprint arXiv:2107.03374, 2021.arxiv.org/abs/2107.03374
  6. [6]F. Cheng, C. Guo, C. Wei, J. Zhang, C. Zhou, E. Hanson, J. Zhang, X. Liu, H. Li, and Y. Chen, “Ecco: Improving memory bandwidth and capacity for llms via entropy-aware cache compression,” in Proceedings of the 52nd Annual International Symposium on Computer Architecture, 2025, pp. 793–807.arxiv.org/abs/2505.06901
  7. [7]K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano et al., “Training verifiers to solve math word problems,” arXiv preprint arXiv:2110.14168, 2021.arxiv.org/abs/2110.14168
  8. [8]DeepSeek-AI, “Deepseek-r1-distill-qwen-14b,” Model card, Hugging Face, May 2025, distilled model (14 B parameters) based on Qwen 2.5 14B, tuned from DeepSeek-R1. Available at https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-14B. [Online]. Available: https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-14BDOI
  9. [9]DeepSeek-AI, “Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning,” CoRR, vol. abs/2501.12948, 2025. [Online]. Available: https://doi.org/10.48550/arXiv.2501.12948
  10. [10]B. Duan, C. Guo, C. Wei, H. Shan, Y. Fu, X. Chen, Y. Xu, Z. Zhang, C. Zhou, H. Li et al., “Eva: Accelerating llm decoding via an efficient vector quantization architecture,” arXiv preprint arXiv:2605.24144, 2026.arxiv.org/abs/2605.24144
  11. [11]Q. Fu, M. Cho, T. Merth, S. Mehta, M. Rastegari, and M. Najibi, “Lazyllm: Dynamic token pruning for efficient long context llm inference,” arXiv preprint arXiv:2407.14057, 2024.arxiv.org/abs/2407.14057
  12. [12]C. Guo, F. Cheng, Z. Du, J. Kiessling, J. Ku, S. Li, Z. Li, M. Ma, T. Molom-Ochir, B. Morris, H. Shan, J. Sun, Y. Wang, C. Wei, X. Wu, Y. Wu, H. F. Yang, J. Zhang, J. Zhang, Q. Zheng, G. Zhou, H. Li, and Y. Chen, “A survey: Collaborative hardware and software design in the era of large language models,” IEEE Circuits and Systems Magazine, vol. 25, no. 1, pp. 35–57, 2025.arxiv.org/abs/2410.07265
  13. [13]C. Guo, J. Tang, W. Hu, J. Leng, C. Zhang, F. Yang, Y. Liu, M. Guo, and Y. Zhu, “Olive: Accelerating large language models via hardware-friendly outlier-victim pair quantization,” in Proceedings of the 50th Annual International Symposium on Computer Architecture, ser. ISCA ’23. New York, NY, USA: Association for Computing Machinery, 2023. [Online]. Available: https://doi.org/10.1145/3579371.3589038
  14. [14]C. Guo, C. Wei, J. Tang, B. Duan, S. Han, H. Li, and Y. Chen, “Transitive array: An efficient gemm accelerator with result reuse,” in Proceedings of the 52nd Annual International Symposium on Computer Architecture, ser. ISCA ’25. New York, NY, USA: Association for Computing Machinery, 2025, pp. 990–1004. [Online]. Available: https://doi.org/10.1145/3695053.3731043
  15. [15]C. Guo, C. Zhang, J. Leng, Z. Liu, F. Yang, Y. Liu, M. Guo, and Y. Zhu, “Exploiting adaptive numerical data type for low-bit deep neural network quantization,” in Proceedings of the 55th Annual IEEE/ACM International Symposium on Microarchitecture, ser. MICRO ’22. IEEE Press, 2023, pp. 1414–1433. [Online]. Available: https://doi.org/10.1109/MICRO56248.2022.00095
  16. [16]D. Guo, Q. Zhu, D. Yang, Z. Xie, K. G. Dong et al., “Deepseek-r1-distill-llama-8b,” Model card / technical report, DeepSeek AI, 2025, distilled 8 B-parameter variant of DeepSeek-R1 Series built on Llama 3.1-8B-Instruct, open-sourced on Hugging Face. [Online]. Available: https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Llama-8B
  17. [17]E. Hanson, S. Li, G. Zhou, F. Cheng, Y. Wang, R. Bose, H. Li, Y. Chen, “Si-kintsugi: Towards recovering golden-like performance of defective many-core spatial architectures for ai,” in Proceedings of the 56th Annual IEEE/ACM International Symposium on Microarchitecture, 2023, pp. 972–985.DOI
  18. [18]C. Hooper, S. Kim, H. Mohammadzaheh, M. W. Mahoney, Y. S. Shao, K. Keutzer, and A. Gholami, “Kvquant: Towards 10 million context length llm inference with kv cache quantization,” Advances in Neural Information Processing Systems, vol. 37, pp. 1270–1303, 2024.arxiv.org/abs/2401.18079
  19. [19]W. Hu, Z. Zhang, H. Zhang, C. Zhang, C. Guo, Y. Feng, T. Hu, G. Li, G. Hu, J. Wang, and J. Leng, “Mx2fp: A metadata-augmented microscaling data format for efficient low-bit quantization,” in Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, ser. ASPLOS ’26. New York, NY, USA: Association for Computing Machinery, 2026, pp. 1151–1167. [Online]. Available: https://doi.org/10.1145/3779212.3790185
  20. [20]HuggingFace4H, “Math-500: a 500-problem subset the math benchmark,” Dataset on HuggingFace, 2025, https://huggingface.co/datasets/HuggingFaceH4/MATH-500.
  21. [21]A. Q. Jiang, A. Sablayrolles, A. Mensch, C. Bamford, D. S. Chaplot, D. de Las Casas, F. Bressand, G. Lengyel, G. Lample, L. Saulnier, L. R. Lavaud, L. Lachaux, P. Stock, T. L. Scao, T. Lavril, T. Wang, T. Lacroix, and W. E. Sayed, “Mistral 7b,” CoRR, vol. abs/2310.06825, 2023. [Online]. Available: https://doi.org/10.48550/arXiv.2310.06825
  22. [23]M. Kim, S. Hong, R. Ko, S. Choi, H. Lee, J. Kim, J.-Y. Kim, and J. Park, “Oaken: Fast and efficient llm serving with online-offline hybrid kv cache quantization,” in Proceedings of the 52nd Annual International Symposium on Computer Architecture, ser. ISCA ’25. New York, NY, USA: Association for Computing Machinery, 2025, p. 482–497. [Online]. Available: https://doi.org/10.1145/3695053.3731019
  23. [25]W. Kwon, Z. Li, S. Zhuang, Y. Sheng, L. Zheng, C. H. Yu, J. E. Gonzalez, H. Zhang, and I. Stoica, “Efficient memory management for large language model serving with pagedattention,” in Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles, 2023.arxiv.org/abs/2309.06180
  24. [26]J. Li, Y. Zhang, M. Y. Hassan, T. Chafekar, T. Cai, Z. Ren, P. Guo, F. Karimzadeh, C. Wang, and C. Gan, “Commvqc: Communicative vector quantization for kv cache compression,” arXiv preprint arXiv:2506.18879, 2025.arxiv.org/abs/2506.18879
  25. [27]Y. Li, Y. Huang, B. Yang, B. Venkitesh, A. Locatelli, H. Ye, T. Cai, P. Lewis, and Q. Chen, “Snappy: Llm knows what you are looking for before generation,” Advances in Neural Information Processing Systems, vol. 37, pp. 22947–22970, 2024.arxiv.org/abs/2404.14469
  26. [28]B. Lin, C. Zhang, T. Peng, H. Zhao, W. Xiao, M. Sun, A. Liu, Z. Zhang, L. Li, X. Qiu et al., “Infinite-llm: Efficient llm service for long context with distillation and distributed kv cache,” arXiv preprint arXiv:2401.02669, 2024.arxiv.org/abs/2401.02669
  27. [29]Y. Lin, H. Tang, S. Yang, Z. Zhang, G. Xiao, C. Gan, and S. Han, “Qserve: W4a8kv quantization and system co-design for efficient llm serving,” arXiv preprint arXiv:2405.04532, 2024.arxiv.org/abs/2405.04532
  28. [30]Z. Liu, J. Yuan, H. Jin, S. Zhong, Z. Xu, V. Braverman, B. Chen, and X. Hu, “Kivi: A tuning-free asymmetric 2bit quantization for kv cache,” arXiv preprint arXiv:2402.02750, 2024.DOI
  29. [31]L. Long, R. Yang, Y. Huang, D. Hui, A. Zhou, and J. Yang, “Sliminfer: Accelerating long-context llm inference via dynamic token pruning,” arXiv preprint arXiv:2508.06447, 2025.arxiv.org/abs/2508.06447
  30. [32]Mathematical Association of America (MAA), “2024 american invitational mathematics examination (aime i and ii),” AIME 2024 Problem Sets, 2024, official contest problems, https://maa.org.
  31. [33]OpenAI, “Chatgpt,” 2022, conversational large-language model. [Online]. Available: https://chat.openai.com/
  32. [34]R. Pope, S. Douglas, A. Chowdhery, J. Devlin, J. Bradbury, J. Heek, K. Xiao, S. Agrawal, and J. Dean, “Efficiently scaling transformer inference,” Proceedings of machine learning and systems, vol. 5, pp. 606–624, 2023.arxiv.org/abs/2211.05102
  33. [35]J. Qin, Y. Cao, M. Lin, W. Hu, S. Fan, K. Cheng, W. Lin, and J. Li, “Cake: Cascading and adaptive kv cache eviction with layer preferences,” arXiv preprint arXiv:2503.12491, 2025.arxiv.org/abs/2503.12491
  34. [36]A. Samajdar, Y. Zhu, P. Whatmough, M. Mattina, and T. Krishna, “Scale-sim: Systolic cnn accelerator simulator,” arXiv preprint arXiv:1811.02883, 2018.arxiv.org/abs/1811.02883
  35. [37]H. Shan, C. Guo, C. Wei, F. Cheng, J. Zhang, H. H. Li, and Y. Chen, “Platinum: Path-adaptable lut-based accelerator tailored for low-bit weight matrix multiplication,” in 2026 31st Asia and South Pacific Design Automation Conference (ASP-DAC), 2026, pp. 1449–1455.
  36. [38]Y. Sheng, L. Zheng, B. Yuan, Y. Li, M. Ravinsh, B. Chen, P. Liang, C. Ré, I. Stoica, and C. Zhang, “Flexgen: High-throughput generative inference of large language models with a single gpu,” in International Conference on Machine Learning. PMLR, 2023, pp. 31 094–31 116.
  37. [39]J. Tang, Y. Zhao, K. Zhu, G. Xiao, B. Kasikci, and S. Han, “Quest: Query-aware sparsity for efficient long-context llm inference,” arXiv preprint arXiv:2406.10774, 2024.arxiv.org/abs/2406.10774
  38. [40]H. Touvron, T. Lavril, G. Izacard, X. Martinet, M.-A. Lachaux, T. Lacroix, B. Rozière, N. Goyal, E. Hambro, F. Azhar et al., “Llama: Open and efficient foundation language models,” arXiv preprint arXiv:2302.13971, 2023.arxiv.org/abs/2302.13971
  39. [41]A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin, “Attention is all you need,” in Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, I. Guyon, U. von Luxburg, S. Bengio, H. M. Wallach, R. Fergus, S. V. N. Vishwanathan, and R. Garnett, Eds., 2017, pp. 5998–6008. [Online]. Available: https://proceedings.neurips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html
  40. [42]H. Wang, J. Fang, X. Tang, Z. Yue, J. Li, Y. Qin, S. Guan, Q. Yang, Y. Wang, C. Li et al., “Sofa: A compute-memory optimized sparsity accelerator via cross-stage coordinated tiling,” in 2024 57th IEEE/ACM International Symposium on Microarchitecture (MICRO). IEEE, 2024, pp. 1247–1263.arxiv.org/abs/2407.10416
  41. [43]J. Wang, J. Han, X. Wei, S. Shen, D. Zhang, C. Fang, R. Chen, W. Yu, and H. Chen, “Kvcache cache in the wild: Characterizing and optimizing kvcache cache at a large cloud provider,” arXiv preprint arXiv:2506.02634, 2025.arxiv.org/abs/2506.02634
  42. [44]Z. Wang, B. Jin, Z. Yu, and M. Zhang, “Model tells you where to merge: Adaptive kv cache merging for llms on long-context tasks,” arXiv preprint arXiv:2407.08454, 2024.arxiv.org/abs/2407.08454
  43. [45]C. Wei, B. Duan, C. Guo, J. Zhang, Q. Song, H. Li, and Y. Chen, “Pli: Leveraging pattern-based hierarchical sparsity for high-efficiency spiking neural networks,” in Proceedings of the 52nd Annual International Symposium on Computer Architecture, ser. ISCA ’25. New York, NY, USA: Association for Computing Machinery, 2025, p. 930–943. [Online]. Available: https://doi.org/10.1145/3695053.3731035
  44. [46]C. Wei, C. Guo, F. Cheng, S. Li, H. F. Yang, H. H. Li, and Y. Chen, “Prosperity: Accelerating spiking neural networks via product sparsity,” in 2025 IEEE International Symposium on High Performance Computer Architecture (HPCA), 2025, pp. 806–820.arxiv.org/abs/2503.03379
  45. [47]C. Wei, C. Guo, J. Zhang, H. Shan, Y. Xu, Z. Zhang, Y. Liu, Q. Wang, C. Zhou, H. H. Li et al., “Focus: A streaming concentration architecture for efficient vision-language models,” in 2026 IEEE International Symposium on High Performance Computer Architecture (HPCA). IEEE, 2026, pp. 1–18.arxiv.org/abs/2512.14661
  46. [48]T. Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf, M. Funtowicz, and J. Brew, “Transformers: State-of-the-art natural language processing,” in Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations. Association for Computational Linguistics, 2020, pp. 38–45. [Online]. Available: https://www.aclweb.org/anthology/2020.emnlp-demos.6DOI
  47. [49]X. Wu, E. Hanson, N. Wang, Q. Zheng, X. Yang, H. Yang, S. Li, F. Cheng, P. P. Pande, J. R. Doppa, K. Chakrabarty, and H. Li, “Block-wise mixed-precision quantization: Enabling high efficiency for practical reram-based dnn accelerators,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 43, no. 12, pp. 4558–4571, 2024.arxiv.org/abs/2310.12182
  48. [50]T. Xia and S. Q. Zhang, “Kelle: Co-design kv caching and edram for efficient llm serving in edge computing,” in Proceedings of the 58th IEEE/ACM International Symposium on Microarchitecture, ser. MICRO ’25. New York, NY, USA: Association for Computing Machinery, 2025, p. 18–33. [Online]. Available: https://doi.org/10.1145/3725843.3756071
  49. [51]J. Yuan, H. Lu, L. S. Zhong, Y.-N. Chuang, S. Li, C. Wang, D. Le, H. Jin, V. Chaudhary, Z. Xu et al., “Kv cache compression, but what must we give in return? a comprehensive benchmark of long context capable approaches,” arXiv preprint arXiv:2407.01527, 2024.arxiv.org/abs/2407.01527
  50. [52]T. Zhang, J. Yi, Z. Xu, and A. Shrivastava, “Kv cache is 1 bit per channel: Efficient large language model inference with coupled quantization, 2024b,” URL https://arxiv.org/abs/2405.03917, 2024.
  51. [53]Y. Zhang, Y. Du, G. Luo, Y. Zhong, Z. Zhang, S. Liu, and R. Ji, “Cam: Cache merging for memory-efficient llms inference,” in Forty-first international conference on machine learning, 2024.
  52. [54]Z. Zhang, Y. Sheng, T. Zhou, T. Chen, L. Zheng, R. Cai, Z. Song, Y. Tian, C. Ré, C. Barrett et al., “H2o: Heavy-hitter oracle for efficient generative inference of large language models,” Advances in Neural Information Processing Systems, vol. 36, pp. 34 661–34 710, 2023.arxiv.org/abs/2306.14048
  53. [55]Y. Zhong, S. Liu, J. Chen, J. Hu, Y. Zhu, X. Liu, X. Jin, and H. Zhang, “Distserve: Disaggregating prefill and decoding for goodput-optimized large language model serving,” in 18th USENIX Symposium on Operating Systems Design and Implementation, OSDI 2024, Santa Clara, CA, USA, July 10-12, 2024, A. Gavrilovska and D. B. Terry, Eds. USENIX Association, 2024, pp. 193–210. [Online]. Available: https://www.usenix.org/conference/osdi24/presentation/zhong-yinminarxiv.org/abs/2401.09670

Paper details

vlnc:W_j5r2gvgn
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents