Skip to content

ICML papers

Search ICML papers by title, author, or track. Open a paper’s abstract to read more.

Explore the ICML analysis

Search results

461–480 of 607

  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Block-Level Recursion: Adaptive Test-Time Routing in Large Language Models

    Kristiyan Sakalyan, Sanghwan Kim, Leo Schwinn, Quentin Bouniot, Zeynep Akata

    Abstract

    Test-time routing improves frozen large language models (LLMs) by taking non-linear paths through their layers, without modifying weights or generating extra tokens. Existing approaches define route spaces that grow exponentially with depth, making them costly to search and hard to learn from. We therefore introduce $\textbf{Block-Level Recursion}$ ($\texttt{BLR}$), a restricted route family that repeats a single contiguous block of transformer layers once. This reduces the number of routes from exponential to quadratic in the number of layers, making exhaustive per-instance evaluation tractable and the oracle upper bound directly measurable. Despite this restriction, $\texttt{BLR}$ retains most of the routing potential. Across six model families and ten reasoning benchmarks, the optimal block varies across models, tasks, and individual inputs, with per-instance oracle gains of $+59.1\%$ on average and up to $+75.8\%$ on individual tasks. $\texttt{BLR}$ also supports two practical policies: a single train-selected block ($\texttt{sBLR}$) that requires no router or per-input overhead, and a learned global router ($\texttt{aBLR}$) trained from dense per-instance rewards over all routes. $\texttt{sBLR}$ already recovers a substantial fraction of the available gains, while $\texttt{aBLR}$ improves further by selecting routes per input. With a frozen Qwen2.5-0.5B backbone, $\texttt{aBLR}$ achieves higher accuracy than the unrouted Qwen2.5-7B model at lower FLOPs.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    On State Reduction in Linear Attention

    Philipp Nazari, T. Konstantin Rusch

    Abstract

    Linear attention offers a computationally efficient yet expressive alternative to softmax attention. However, recent empirical results indicate that the hidden state of trained linear attention models often exhibits a low-rank structure, suggesting that these models underexploit their capacity in practice. To illuminate this phenomenon, we provide a theoretical analysis of the role of rank in linear attention, revealing that low effective rank can amplify query noise during readout from the associative memory. In addition to these theoretical insights, we conjecture that the low-rank states can be substantially reduced post-training with only minimal performance degradation, yielding faster and more memory-efficient models. To this end, we propose a novel hardware-aware approach that structurally prunes key and query matrices, reducing the state size while retaining compatibility with existing kernels. We adapt several existing pruning strategies to fit our framework and, building on our theoretical analysis, propose a novel structured pruning method based on a rank-revealing QR decomposition. Our empirical results, evaluated across models of varying sizes and on various downstream tasks, demonstrate the effectiveness of our state reduction framework.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    EfficientRollout: System-Aware Self-Speculative Decoding for RL Rollouts

    Minseo Kim, Minjae Lee, Seunghyuk Oh, Kevin Galim, Donghoon Kim, Coleman Hooper, Harman Singh, Amir Gholaminejad, HYUNG IL KOO, Wonjun Kang

    Abstract

    Reinforcement learning (RL) has become a representative post-training paradigm for large language models (LLMs), enabling strong reasoning and agentic capabilities. However, its rollout generation remains a dominant training bottleneck because it relies on sequential autoregressive (AR) decoding, where a small number of long-tailed responses often determine completion time. Speculative decoding (SD) can reduce inference latency while preserving model quality by drafting tokens and verifying them in parallel. Applying SD to RL rollouts, however, introduces challenges absent from standard LLM inference: (i) algorithmically, the continuously evolving target model makes static drafters stale; (ii) system-wise, rollout decoding moves across regimes, from large active batches where SD can be compute-bound and ineffective to shrinking-batch tails where SD becomes beneficial. We present EfficientRollout, an SD framework designed to accelerate RL rollouts by addressing these RL-specific challenges. EfficientRollout induces a quantized drafter directly from the target model, keeping it coupled to the evolving policy without separate drafter training. It enables SD only in roofline-predicted beneficial regimes and adapts drafting budgets using training-time acceptance signals. Under a realistic RL workload, EfficientRollout reduces rollout and end-to-end latency by up to 19.6% and 12.7% over a standard accelerated AR rollout baseline while preserving training dynamics.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    On the Optimal Reasoning Length for RL-Trained Language Models

    Daisuke Nohara, Taishi Nakamura, Rio Yokota

    Abstract

    Reinforcement learning substantially improves reasoning in large language models, but it also tends to lengthen chain-of-thought outputs and increase computational cost. Although length-control methods have been proposed, the length–accuracy relationship they induce remains unclear. We train policies with several length-control methods on multiple base models in a controlled setup and find that, across both mathematical reasoning and code generation, accuracy is non-monotonic in output length, peaking at an intermediate value. Mode accuracy, however, continues to improve with length even in settings where sample accuracy plateaus or declines, indicating that the non-monotonic length–accuracy relationship is driven by dispersion around an increasingly correct center.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Fully Nested Transformers

    Avi Trost, Alexander Yun, John Cooper, Gabriel Orlanski, Frederic Sala

    Abstract

    Matryoshka Representation Learning produces representations that can be truncated at different granularities to adapt to diverse downstream requirements, but computing them still requires a full forward pass through the model. Elastic architectures enable adaptive inference budgets, but their smaller models do not generally produce representations that are prefixes of those produced by the larger models. To unify these two forms of adaptivity within a single language model, we design StairFormer: a Transformer architecture that nests a hierarchy of prefix submodels by preserving prefix structure at each layer. Running a larger model produces, as prefixes, the same representations that would have been produced by independently running each smaller model. Prefix representations are efficiently computed using the computational paths of smaller submodels, which can then be progressively refined by activating larger portions of the model. This full nesting enables cascading inference and reuse of intermediate computations across model scales because submodels share the same forward pass. Empirically, we show that StairFormer maintains competitive language modeling performance at 1.13B parameters, achieving a CORE metric within an 11.1\% relative gap of a standard Transformer baseline while satisfying these full nesting constraints.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Layout and Fusion Trade-offs for Mixture-of-Experts Inference under Single-Node Tensor Parallelism

    June Yong Yang, Inhyuk Cho, Taehyeon Kim, Yu Jin Kim, Moontae Lee

    Abstract

    Mixture-of-Experts (MoE) LLMs are increasingly deployed on a single multi-GPU node with tensor parallelism, a regime that is common in private and on-premise serving but has received less attention than datacenter-scale expert parallelism. This paper argues that this setting is not simply a smaller version of expert-parallel inference. The expert-major pipeline inherited from expert-parallel backends reshapes the bottlenecks of an MoE feed-forward layer under tensor parallelism: turning the pre-permute to an expert-major layout into a dominant cost at large token counts, making down-projection grouped GEMMs unusually thin, and creating a reduction chain between top-k combine and the tensor-parallel AllReduce. Through controlled kernel-level experiments, we find that the best layout flips with workload shape. Token-major variants win in decode-like regimes, while in-flight-permute variants with persistent down projection win in prefill-like regimes. Across representative MoE shapes, the best variant improves MoE FFN latency by up to nearly \textbf{2×} over the conventional expert-major baseline (pre-permute + expert-major up/down). Recent serving systems separate prefill and decode at the request and batch level. Our findings suggest that this separation should extend down to the MoE kernel layout itself, calling not for a single fused MoE kernel but for a workload-conditioned layout policy.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    FlexRank: Nested Low-Rank Knowledge Decomposition for Adaptive Model Deployment

    Riccardo Zaccone, Stefanos Laskaridis, Marco Ciccone, Samuel Horváth

    Abstract

    The growing scale of deep neural networks, encompassing large language models (LLMs) and vision transformers (ViTs), has made training from scratch prohibitively expensive and deployment increasingly costly. These models are often used as computational monoliths with fixed cost, hindering adaptive deployment across different cost budgets. We argue that nested components, ordered by importance, can be extracted from pretrained models and selectively activated within the available computational budget. To this end, our proposed FlexRank method leverages low-rank weight decomposition with nested, importance-based consolidation to extract submodels of increasing capabilities. Our approach enables a "train-once, deploy-everywhere" paradigm offering a graceful trade-off between cost and performance without training from scratch for each budget --- advancing practical deployment of large models.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Stabilizing Extrapolation in Looped Transformers via Learned Stochastic Stopping

    Hsun-Yu Kuo, El Mahdi Chayti, Patrik Reizinger, Wieland Brendel, Martin Jaggi

    Abstract

    Looped Transformers – which repeatedly apply a shared block – are an architecturally natural fit for variable-length algorithmic tasks. Although they can exhibit strong length generalization beyond the length of training sequences, this behavior is brittle, yielding high out-of-distribution (OOD) variance, even across well-performing in-distribution solutions. We trace this variance to the spurious correlation in simple algorithmic tasks between sequence length and number of loops. Introducing stochasticity into the number of loops during training sharply reduces OOD variance and stabilises predictions across inference-time loop counts. To improve upon heuristic randomisation schemes, we further analyse RL-Halting as a learned stochastic schedule and find it generally improves the accuracy--stability trade-off. We provide comparisons across binary addition, Dyck-1, Unique Set, and Copy, showing that learned stochastic stopping often improves this trade-off but can also stabilise a suboptimal computation. Overall, our results suggest that ``when to stop'' should be treated as a training-time design choice in looped architectures, not merely as an inference-time compute-allocation rule.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Jacobian-guided Noise Injection for Quantization Robustness in Large Language Models

    Deepanshu Pandey, Nahush Lele, Arnav Chavan, Sankalp Dayal, Deepak Gupta

    Abstract

    Quantization of Large Language Models (LLMs) is often hindered by the sensitivity of the self-attention mechanism to discretization errors. We identify the softmax operator as a bottleneck for quantization stability due to its sensitivity to outliers and state-dependent Jacobian. We theoretically establish that suppressing the norm of this Jacobian helps in bounding quantization-induced performance degradation. Based on this, we propose Jacobian-Guided Noise Injection, a training strategy that injects zero-mean Gaussian noise into pre-attention logits, with variance derived directly from the Jacobian Frobenius norm. Unlike prior approaches that rely on heuristic or penalise jacobian directly, our method provides away to identify the optimal noise variance based on the local attention sensitivity. We evaluate the method on SOTA LLM architectures, where it demonstrates improved robustness over popular PTQ methods. Empirical analysis reveals that the proposed method gives up to +37% relative gains on Top-1 accuracy on ImageNet-1K for SigLIP and improves relative perplexity by upto 40% on WikiText for language models in low bit quantisation settings, proving the efficacy of the approach

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Characterizing self-speculative decoding approaches for accelerating LLMs

    Jungmin Ha, Karthik Ganesan, Anh Nguyen, Tanvir Ahmed, Andreas Moshovos

    Abstract

    Large language model (LLM) inference is bottle-necked by autoregressive token generation, leading to poor GPU utilization and high LLM inference latency. Speculative decoding is a promising technique to speed up inference where 'speculative' tokens are generated with a cheaper model, and then validated en masse by the full model. While effective, speculative decoding requires an additional "draft" model. Self-speculative decoding obviates this need by reusing parts of the full model itself to generate candidate tokens. Existing methods implement this approach in different ways: some exit at an early decoder block, while others selectively skip layers within each block. Such a complex design space entails different tradeoffs in draft quality, draft & verification cost, and overall speedup. To better understand these tradeoffs, we characterize five self-speculative decoding techniques across three model sizes and three datasets and provide recommendations for future research in this area.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Dropping the Anchor: Statistical Context Summarization for Distributed Systems via Pulsar Attention

    Aryan Sood, Shantanu Acharya

    Abstract

    Inference with large language models (LLMs) on long sequences is computationally expensive due to the quadratic complexity of self-attention. Distributed blockwise methods such as Star Attention reduce this cost by sharding context across hosts, but rely on prepending a static, content-blind copy of the first block to every host. We propose Pulsar Attention, which replaces the static anchor with two lightweight, content-aware components: a small attention-sink prefix that stabilizes softmax, and compact cross-block summaries built via a Max-IDF heuristic that selects chunks containing globally rare tokens. This reduces the Phase 1 per-GPU FLOPs by up to 3.3$\times$ over Star Attention while retaining an identical KV cache footprint. On RULER and BABILong with Llama-3.1-8B, Pulsar Attention outperforms both Star Attention and dense attention at sequence lengths up to 128K tokens, with absolute gains of up to 4.7\% over the dense baseline.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Fault Robustness of Custom Floating-Point and Integer Formats: Datatype Selection as a Reliability-Aware Compression Decision

    Ramamoorthi Sreenivasan Haripriya, Jaynarayan T Tudu

    Abstract

    Deploying neural networks on resource-constrained edge devices requires both memory-efficient quantization and robustness to hardware-induced faults. We present a unified fault robustness study across fourteen low-precision datatypes spanning custom Float16, Float8, and integer representations under random multi-bit DRAM disturbance faults. Robustness is evaluated through top-1 accuracy degradation on MobileNetV2, EfficientNet-B0, and ResNet-18 across CIFAR-10, CIFAR-100, and Tiny ImageNet. Our results show that floating-point fault sensitivity is dominated by exponent-field width, with wider exponents causing severe error amplification under bit flips. Among all evaluated formats, E4M11 consistently provides the best trade-off between clean accuracy and fault robustness: it incurs only a $0.23\%$ average clean-accuracy drop relative to FP32 — on par with FP16 and BF16 — yet limits worst-case exponent-fault accuracy loss to $6.1\%$ on average, versus $34.6\%$ for FP16 and $36.2\%$ for BF16, a $5.7{\times}$/$6.0{\times}$ robustness gain. Although INT16 is structurally immune to exponent faults, it delivers ${\sim}10.7$\,dB lower Signal-to-Quantisation-Noise Ratio (SQNR) than E4M11 with no compression benefit; INT8 avoids exponent amplification but suffers ${\sim}58.8$\,dB lower SQNR and larger accuracy degradation on harder tasks. E4M11 thus uniquely combines near-FP32 accuracy, the highest SQNR (${\sim}79.5$\,dB) among all formats studied, and superior fault tolerance — establishing datatype selection as a zero-cost reliability lever requiring no retraining or error-correction hardware.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Resource-Adaptive Foundation Model Reasoning via Semantic Coverage

    Max Ruiz Luyten, Thomas Pouplin, Mihaela van der Schaar

    Abstract

    Foundation-model reasoning is often scaled with fixed trace, branch, or token budgets, but fixed budgets waste inference compute when many rollouts collapse to the same answer class, proof route, evidence pattern, or fix strategy. We formulate test-time reasoning as resource-adaptive portfolio construction: under a compute budget, select unfinished rollout actions that are likely to add residual task-relevant support not already present in the current portfolio. We introduce semantic coverage, a portfolio objective over evaluator-induced support targets, and show that fixed semantic coverage is normalized, monotone, and submodular; under batch separability, the expected gain from bounded completion-level rollout actions inherits the same structure. A residual threshold identity shows that additive trace scoring overcounts support exactly by the expected excess multiplicity of duplicate residual hits, motivating Semantic-Coverage Portfolio Search (SCPS), a receding-horizon controller that scores actions by predicted residual support, predicted overlap, and cost. On a 256-question held-out MMLU-Pro set with Qwen3.5-9B, an exact-answer SCPS variant reaches 91.0% portfolio Pass@16, compared with 75.0% for tree-prefix and 74.2% for semantic-pruning baselines, while using 31.6% of their realized tokens. This is a portfolio-acquisition claim, not a terminal-selector claim: SCPS directs inference compute toward support the portfolio lacks.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    ShadowSpec: Towards Zero Speculation Overhead for Substitute Speculative Decoding

    Brian J Chan, Kuan-Cheng Lin, Pei-Shuo Wang, Jian-Jia Chen, Chun-Che Yang, Chi-Chih Chang, Ning-Chi Huang, Kai-Chiang Wu

    Abstract

    Deploying large language models (LLMs) on memory constrained consumer GPUs requires offloading model parameters to CPU memory, where PCIe bandwidth becomes the dominat in- ference bottleneck. While speculative decoding (SD) reduces the number of target model invo- cations, its sequential draft-then-verify pipeline leaves the GPU idle during parameter loading, limiting throughput in offloading environments. We identify that draft model computation and tar- get model parameter loading are heterogeneous, non-contending operations that can be overlapped without resource conflict. Building on this obser- vation, we propose two complementary system- level strategies to overlap draft tree extension with target model parameter loading, converting idle GPU cycles into productive draft computation. Experiments on consumer GPU demonstrate a 17–54% end-to-end speedup over the SubSpec baseline.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    HYBRIDKV: Exploiting Head-Dominant Reconstruction for Efficient Query-Agnostic KV Cache Compression

    Changwoo Baek, Kyeongbo Kong

    Abstract

    Efficient key–value (KV) cache compression is crucial for large language models with long contexts. While context-reconstruction attention enables query-agnostic KV compression, its practical use is limited by large compression overhead, i.e., additional prefill-time computation required for reconstruction-based importance scoring beyond standard prefill. We show that reconstruction-based KV importance consistently concentrates on a subset of attention heads, largely independent of the input context. Based on this observation, we propose a hybrid KV cache compression method that combines context-independent head pre-pruning with token-level reconstruction-based pruning. By restricting expensive reconstruction scoring to selected heads, our method significantly reduces compression overhead. Experiments on long-context benchmarks demonstrate up to a 36\% overhead reduction while largely preserving inference accuracy.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Recovering Selectivity with LTI State Space Operators for Portable Long-Context Inference

    Minseon Gwak, N. Benjamin Erichson, PooGyeon Park

    Abstract

    Mamba has established selective state space models as powerful building blocks for long-context foundation models by replacing linear time-invariant (LTI) recurrences with input-dependent selective recurrences. However, efficient training of such recurrences often relies on specialized fused kernels, limiting portability across diverse hardware. We propose SelectLTI, a simple but effective block that augments an LTI recurrence with input-dependent modulation to recover selective behavior. The proposed block equips any LTI state-space layer with sigmoid-gated modulators, making it trainable and deployable without specialized fused kernels. We evaluate SelectLTI on Selective Copying, a task designed to isolate selective-memory behavior in sequence models. SelectLTI matches or exceeds S6, the selective state-space operator of Mamba, showing that selective behavior can be recovered from an LTI recurrence augmented with lightweight modulation using only standard primitives. We position SelectLTI as a portable building block for efficient long-context foundation models deployed across diverse compute environments.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Weight Concentration Regularization for Improving Pruning Robustness Under High Sparsity

    Vincent-Daniel (Juyoung) Yun, Junhyuk Jo, Sunwoo Lee

    Abstract

    Deep neural networks achieve outstanding performance across vision and language tasks, yet their large parameter counts limit deployment in resource-constrained settings. One-shot pruning reduces model size without retraining, but models trained with standard objectives often suffer substantial accuracy drops under aggressive sparsity. Prior work mitigates this drop along two directions: regularizers such as $\ell_1$ and DeepHoyer that shape the weight distribution during training, and pruning-robust optimizers such as SAM, CrAM, and S$^2$SAM that flatten the loss landscape. Existing regularizers, however, either shrink all weights uniformly ($\ell_1$) or induce scale-invariant sparsity (DeepHoyer), without concentrating weight energy onto a small set of informative parameters. We propose a Weight Concentration Regularizer (WCR), a training-time regularizer that amplifies the magnitude of a small subset of parameters while driving the remainder toward zero, so that magnitude pruning predominantly removes parameters with negligible functional contribution. We provide a convergence analysis and evaluate WCR on LLM fine-tuning, image classification, and medical segmentation, demonstrating consistent improvements in pruning robustness across architectures and compatibility with existing pruning-robust optimizers.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    LongAttnComp: Cross-Family Context Compression for Long-Context Reasoning

    Mengmeng Ji, Ravi S Raju, Jonathan L Li, Chen Wu

    Abstract

    As real-world applications increasingly require processing inputs of 100k+ tokens that approach or exceed standard LLM context windows— retrieved documents, long conversations, or extended codebases—the gap between context length and inference efficiency has become a critical bottleneck. Long-context inference imposes significant memory and compute costs, motivating efficient context compression. We observe that long-context task performance decomposes into retrieval and reasoning, and existing training-free attention-based compression methods leave a substantial gap on the retrieval step in demanding long-context settings such as code understanding. We present LongAttnComp, a long-context adaptation of AttnComp (Luo et al., 2025), fine-tuning a lightweight cross-attention scoring layer and introducing token-level chunking, a token-budget top-p algorithm, and a format-agnostic query parser. Trained solely on NIAH-style data, LongAttnComp matches or exceeds full-context performance and substantially outperforms training-free baselines across multiple target models on InfiniteBench Code-Debug. Per-task analysis on RULER and LongBench v2 confirms LongAttnComp’s strength on long-context code reasoning while indicating that broader long-context applicability is achievable through more diverse training data.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    Understanding Layer Patching in Model Size Interpolation

    Sara Kangaslahti, Jonathan Geuter, Nihal Nayak, Marco Fumero, Francesco Locatello, David Alvarez-Melis

    Abstract

    Zero-shot model size interpolation aims to create new models of intermediate target sizes by combining existing models without additional training. Recent work on boomerang distillation (Kangaslahti et al., 2026) shows that a student language model distilled from a larger teacher can be expanded by iteratively patching its layers, replacing student layers with contiguous blocks of teacher layers to obtain models whose size and performance interpolate between the student and the teacher. In this work, we provide the first systematic study of student-layer selection for model size interpolation. We cast finding the optimal layer subset for each model size as an optimization problem and prove it can be viewed as a shortest-path problem in a certain acyclic graph. In experiments, we show that patching strongly shapes interpolation behavior, with effects that vary substantially across model families. We find that simple sequential strategies---patching either from the first layer to the last or from the last to the first---often achieve surprisingly strong performance in practice. We further introduce KLPatch, a greedy patching algorithm based on KL divergence, which often improves over last-to-first patching and approximately solves the optimization problem. Together, our results provide a principled understanding of how layer patching affects model size interpolation and offer practical guidance for constructing near-optimal interpolated models.

    Abstract source
  • ICML · Workshop · AdaptFM: Resource-Adaptive Foundation Model Inference

    AgentKV: Phase-Aware KV Eviction for Agentic LLMs

    Taowen Liu, Jeffrey T. H. Wong, Can Xiao, Bowen Yang, Hao M Chen, Aaron Zhao

    Abstract

    Long agentic reasoning creates multi-turn contexts that interleave instructions, reasoning, tool calls, and tool observations, making KV cache memory a major bottleneck for inference. Existing eviction methods score cached keys using anchor queries drawn from the recent context, which works when future attention resembles recent attention. We show that agentic generation violates this assumption: its future query distribution is a phase mixture over \texttt{sys}, \texttt{think}, \texttt{act}, and \texttt{tool}, whose components occupy distinct directions in a shared subspace, so recency anchors overrepresent the current phase and under-score keys needed by other phases. We propose \textsc{AgentKV}, a phase-aware eviction method that maintains a small set of queries per phase and scores cached keys against their union. \textsc{AgentKV} matches recency-based methods at half of their KV budget on $\tau^2$-bench \texttt{retail} tasks and recovers about $90\%$ of the baseline score at $\sim 4{\times}$ compression and on all evaluated tasks.

    Abstract source