Contention-Aware Flexible Execution for Machine Learning Workloads
Marco Kurzynski, Shaizeen Aga, Di Wu
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Mosaic: GPU Sharing with Latency Guarantees through Kernel-Level Interference PredictionarXiv · 2026
- MegaOps: A Kernel Overlapping Framework with PyTorch-like Modularity and Megakernel PerformancearXiv · 2026
- How Much of a Real Workload Can LLM-Generated GPU Kernels Actually Reach?arXiv · 2026
- ModelBlaster: Closing the Performance Gap through Learning-Augmented Agents Across Models, Kernels and Hardware BackendsarXiv · 2026
- Network Contention State Aware Dynamic Optimizer for Accelerator Collective Communication LibrariesarXiv · 2026
- PairSight: Characterizing and Predicting Operator-Level Interference in GPU Sharing for DNN InferencearXiv · 2026