Searcharxiv⌕ Search

arXiv · 2611.26980

Contexture: Runtime Context Eviction for High-Throughput Agent Serving

Abstract

LLM agents such as Hermes, OpenClaw, and Codex repeatedly resend growing execution histories, increasing shared GPU key-value (KV) cache demand in high-bandwidth memory (HBM). We show that shared KV capacity limits agent-serving throughput. Existing context-reduction methods lack global cache-state visibility, while runtime KV managers lack tool-execution information. Tracing tokens to their originating tool operations reveals that later operations supersede earlier outputs and associated turns, identifying 64% of recorded final-history tokens as removal candidates. We present Contexture, a harness- and model-agnostic architecture for runtime context eviction. Contexture separates the harness's full conversation history from the model's execution context, reducing subsequent requests' KV demand without modifying harness logic or model execution. It combines tool-execution information with global visibility into shared KV pressure and prefix residency: supersession identifies removal candidates, while runtime state determines when removal justifies sacrificing cached computation. This coordination reduces memory demand and decode KV traffic while limiting re-prefill interference with concurrent decoding, without additional model calls or training. Across two models, two harnesses, and two benchmarks, Contexture improves throughput under SLO by 20-73% over the best of no eviction, harness compaction, AgentDiet, and Continuum, and by 7-63% over observation masking in five of eight configurations, and reduces GPU energy per completed session by up to 11%. It also raises throughput under SLO by 23% over LMCache alone on H100. Live-agent experiments show a mean accuracy improvement of 1.4 percentage points over unloaded no eviction, with a worst-case loss of 3.7 points, while observation masking loses 3-28 points.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Colin Hong, Bryan Shan, Wei Siong Pang, Chengzhi Lu, Xu Guo, Nitin Shivaraman, Tao Luo, Esha Choukse, Kisson Lin, Dmitrii Ustiugov. 2026-11-20. Contexture: Runtime Context Eviction for High-Throughput Agent Serving. https://searcharxiv.com/abs/2611.26980

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Searcharxiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Joint SLA Admission and Risk Allocation for Cloud Resource Provisioning

Cloud controllers must reserve enough CPU and memory to meet demand without leaving too much capacity idle. Under a shared service-level agreement (SLA), a shortage of CPU or memory (considered as resource) counts toward the same limit. Dividing the allowed shortage risk between them changes how much extra capacity each need. We study this choice when forecast-error histories are short or correlated over time. Our controller compares different approaches to split the allowed shortage risk between resources. For each split, the controller uses historical forecast errors to determine how much extra capacity to reserve. It checks whether the history is enough to support that split and its consistency across different parts of the history. Among the splits that pass, it chooses the one with the lowest combined cost of shortages and idle capacity. Otherwise, the controller continues serving the workload with a calibrated fallback. In our simulation, we set a joint SLA target of sufficient CPU and memory in at least 95% of time slots and used 192 hours of historical forecast errors to structure the controller. Compared with always using fallback, the controller reduced the time slots allocation with either of the resource shortage by 1.04 percentage points on average. This reduction came with a 0.0091 increase in normalized cost from shortages and idle capacity. In the Bitbrains trace, five nonoverlapping test windows did not provide clear evidence of whether shortages increased or decreased. We also examine how execution delays and adjustment limits affect this trade off.

cs.DC↗

CTRL: Concurrent Training and Rollout for LLM Reinforcement Learning via GPU Co-Residency

Reinforcement learning (RL) post-training of large language models runs two GPU workloads with different hardware demands: rollout decoding, which is dominated by memory access and whose batch shrinks as responses finish, and a dense learner. Current systems either time-share every GPU between them, paying serial phases and switches, or split GPUs into pools whose sizes change only in whole devices. We present CTRL, which makes co-residency a third RL execution layout: every GPU runs a learner rank beside a persistent rollout engine, sharing the device under CUDA MPS. A host-owned learner makes the layout fit: optimizer state stays in host memory, and policy weights stream layer by layer through a bounded GPU window. A publication gate trains each ready batch first and waits only before releasing the next policy, keeping a dropless staleness bound. A step-time bound guides compute-share selection, and a GPU-time ledger explains overlap and sharing costs. On H100, A800, and RTX 4090 GPUs with Qwen3 models, CTRL achieves 1.11-2.24$\times$ the throughput of the stronger of verl's asynchronous baselines across 24 workload settings with the staleness limit set to two, and 1.23$\times$ verl's colocate_async on eight H100 GPUs. With the same learner, co-residency is 1.10-1.26$\times$ faster than time-sharing on all three platforms and 1.10-1.30$\times$ faster than the best measured whole-GPU split on H100 DAPO-Math workloads at 256-528 trajectories per step, on four and eight GPUs.

cs.DC↗

Improved (Minimum) Spanning Tree Construction in the HYBRID Model

In the HYBRID$_0$ model, vertices exchange $O(\log n)$-bit messages in synchronous rounds, both along input edges (local communication) and directly to vertices whose IDs they know (global communication). The local capacity is the maximum number of messages a vertex may send per round to each input neighbor, and the global capacity is the maximum number of global messages it may send, and also receive, per round. The standard capacity is local capacity $O(1)$ and global capacity $O(\log n)$. A well-formed tree (WFT) is a virtual tree of maximum degree $O(1)$ and diameter $O(\log n)$. Known algorithms construct a spanning tree (ST) and a WFT either in $O(\log n)$ rounds with global capacity $O(\log^2 n)$ or with standard capacity in $O(\log^2 n)$ rounds. We give a randomized algorithm that constructs an ST and a WFT in every connected component of any graph in $O(\log n)$ rounds with high probability under standard capacity. Our approach is based on a $Δ$-pseudo-spanning representation ($Δ$-PSR): a virtual network of maximum degree $Δ$ with restoration information, such that any spanning tree of this network can be restored to a spanning tree of the input graph in $O(\log n)$ rounds. The algorithm of Götte et al. can be viewed as constructing an $O(\log n)$-PSR, which accounts for its global capacity $O(\log^2 n)$. Our main contribution is to construct an $O(1)$-PSR in $O(\log n)$ rounds with standard capacity. As applications, for $k$ distinct edge weights and any integer $1\le p\le k$, we construct an exact minimum spanning tree in $O((k/p)\log n)$ rounds with local capacity $O(p)$ and global capacity $O(p\log n)$, and the same tradeoff applies to $(1+ε)$-approximate minimum spanning trees. We also compute biconnected components, articulation points, and bridges in $O(\log n)$ rounds with standard capacity, down from the previous global capacity $O(\log^5 n)$.

cs.DC↗