Searcharxiv⌕ Search

arXiv · 2611.26840

Contention-Aware Flexible Execution for Machine Learning Workloads

Abstract

Concurrent kernel execution is a ubiquitous paradigm in artificial intelligence (AI) and machine learning (ML) across both training and inference. That said, concurrency causes potential slowdown as concurrent kernels contend for limited GPU resources (cores, caches, memory bandwidth), which are shared between these kernels rather than exclusively available to one, as in isolated execution. This raises an important research question: to what extent does concurrency slow down kernel execution and how can it be mitigated. To answer this question, our work presents two studies. First, we characterize concurrent kernel execution extensively for the first time, to our knowledge. We conduct not just performance analysis of concurrent kernels but also memory behavior under concurrency on state-of-the-art AMD Instinct MI300X GPUs designed for datacenter AI, using the AMD-internal millisecond sampler. Based on the observations, we share insights on the slowdown along two dimensions (memory vs. compute bound, large vs. small kernels) to inform future optimizations. Second, we put the derived insights to use, aiming to deliver higher performance via targeted, flexible overlap of ML operators. Frameworks today make the simple decision of early-first for concurrent kernels, which is suboptimal. Noticing the opportunity that ML dataflow has inherent flexibility in which operators can be overlapped and how hardware resources can be allocated, we deduce simple heuristics to tune both overlap anchors and resource allocation for concurrent kernels to improve performance. We evaluate our proposed contention-aware flexible execution (termed CAFEML) across a variety of ML scenarios (inference decode, inference prefill, training) and demonstrate a speedup of up to 13% end-to-end with simple scheduling changes and no kernel rewrites.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Marco Kurzynski, Shaizeen Aga, Di Wu. 2026-11-19. Contention-Aware Flexible Execution for Machine Learning Workloads. https://searcharxiv.com/abs/2611.26840

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↗

Contexture: Runtime Context Eviction for High-Throughput Agent Serving

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.

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↗