arXiv(opens in a new tab)cs.OSSep 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2609.06172

AutoUVM: Automated Prefetching Framework for LLMs under UVM Oversubscription

Mao Lin, Hui Feng, Xianzhong Ding, Guilherme Cox, Qian Wang, Hyeran Jeon

Mao Lin ∗^{*} ID^{ID}, Hui Feng ∗^{*}, Xianzhong Ding ∗^{*}, Guilherme Cox †^{\dagger}, Qian Wang ∗^{*}, Hyeran Jeon ∗^{*} ID^{ID}

∗^{*}University of California, Merced †^{\dagger}NVIDIA

Abstract—Large language models (LLMs) increasingly exceed the memory capacity of commodity GPUs, making memory oversubscription common in practical deployments. NVIDIA Unified Virtual Memory (UVM) provides transparent access to host memory, but its page-fault-driven migrations introduce severe performance overhead. While UVM exposes primitives (e.g., prefetching and placement hints) to mitigate these costs, they require low-level CUDA modifications, limiting their applicability for most LLM users. Meanwhile, existing UVM optimizations operate at coarse managed-object granularity and fail to capture deep learning frameworks' internal tensor-level memory behavior, leading to excessive data movement and CPU-GPU interconnect bottlenecks.

We propose AUTOUVM, an automated, framework-aware UVM prefetching system for efficient LLM execution under memory oversubscription. AUTOUVM bridges the semantic gap between deep learning frameworks and UVM by exposing tensor-level access information and enabling policy-driven prefetching at fine granularity. Implemented as a transparent extension, AUTOUVM requires no changes to model code and dynamically adapts to runtime memory pressure. We instantiate AUTOUVM with a roofline-inspired policy to identify performance-critical data transfers. Across ten LLMs, AUTOUVM achieves an average 3.1×3.1\times speedup over baseline UVM and consistently surpasses the best-performing prior UVM prefetcher by 1.9×1.9\times, with improvements of up to 4.7×4.7\times over object-level prefetchers, while significantly reducing page faults.

Index Terms—Memory Oversubscription, Prefetching, UVM, LLMs, GPU Memory

I. INTRODUCTION

Memory demand continues to grow rapidly in modern data-intensive workloads, especially for large language model (LLM) training and serving, making GPU memory capacity a critical bottleneck. To mitigate memory pressure, prior work has explored multi-GPU parallelization [1], host-memory offloading [2], activation recomputation [3], and memory compression or quantization [4]. However, these approaches often require workload-specific tuning, specialized hardware support, or remain fundamentally limited by GPU memory capacity.

To alleviate limited GPU memory capacity, NVIDIA's Unified Virtual Memory (UVM) can be used. UVM unifies CPU and GPU address spaces and enables on-demand data migration between host and device memory. With UVM, applications can allocate memory beyond the GPU's physical capacity, enabling memory oversubscription with minimal programmer intervention. With prefetch APIs, such as cudaMemPrefetchAsync and cudaMemAdvise, developers can explicitly control and optimize the migration and placement of UVM-managed data objects. However, manual UVM management requires substantial engineering effort, including source-code modifications and workload-specific expertise. In contrast, UVM's autonomous memory-management mechanisms, including its tree-based prefetch engine and follow-up variants [5]–[7], exploit coarse-grained locality to prefetch and evict data without programmer intervention.

Existing programmer-agnostic UVM prefetching approaches operate at the granularity of UVM-managed objects by leveraging the UVM driver's object-level access monitoring capability [2], [5]–[7]. However, modern deep learning (DL) frameworks introduce a semantic gap between framework-level tensor management and the UVM driver. Frameworks such as PyTorch and TensorFlow employ internal allocators (e.g., the PyTorch Caching Allocator (PCA)) [8], [9], that reserve large monolithic memory pools and sub-allocate them to many tensors. These sub-allocations are invisible to the UVM driver; from its perspective, tensor accesses appear as reuse within a few large managed objects. Consequently, the UVM driver cannot observe tensor-level memory activities, preventing accurate tensor-level prefetching and limiting the effectiveness of autonomous UVM optimizations. This mismatch fundamentally limits the effectiveness of prior UVM optimizations, not only prefetching, but also page placement, proactive eviction, and offloading.

To address these limitations, a practical UVM solution must (1) recover tensor-level access information hidden by DL frameworks, (2) identify which tensor migrations are performance-critical, and (3) dynamically adapt decisions as memory pressure and eviction behavior evolve during execution.

In this work, we propose AUTOUVM, an automated, framework-semantic-aware UVM prefetching framework for oversubscribed LLM workloads. Because tensor-level memory activities are hidden behind framework-managed memory pools, the UVM driver cannot observe which tensors are accessed by individual kernels at runtime. To recover this missing information without modifying model code, AUTOUVM performs a single offline profiling pass to recover kernel–tensor access relationships. While profile-guided prefetching with runtime monitoring has been extensively explored [10]–[13], AUTOUVM is the first to bring it to the UVM path and enable automated tensor-level prefetching.

without modifying model code. During execution, AUTOUVM automatically issues policy-driven, fine-grained tensor-level prefetches. Since LLM kernels exhibit heterogeneous sensitivity to CPU-GPU migration latency, blindly prefetching all tensors can waste CPU-GPU interconnect (CGI) bandwidth and increase GPU-memory pressure. To selectively target migrations that are likely to improve performance, AUTOUVM decouples framework-semantic extraction from prefetch-policy design, enabling different policies to be deployed across workloads and hardware platforms. In this paper, we instantiate AUTOUVM with a roofline-inspired policy that distinguishes CGI-bound, GPU-memory-bound, and compute-bound kernels. Furthermore, because oversubscription-induced evictions can alter runtime behavior, AUTOUVM combines offline profiles with a lightweight online executor that continuously adapts prefetching decisions as execution conditions evolve.

The key insight behind AUTOUVM is that effective UVM management requires both tensor-level visibility and selective prefetching. Prior approaches operate without tensor semantics, which is fundamentally misaligned with tensor-level memory management in DL frameworks and often results in excessive data migration. By combining tensor-aware profiling with roofline-inspired analysis, AUTOUVM reduces unnecessary migrations, mitigates CGI bottlenecks, reduces page faults, and enables predictable, performance-aware UVM behavior for memory-intensive workloads.

Our contributions are as follows:

• We reveal the limitations of monolithic object-level UVM prefetching in modern DL frameworks and introduce AUTOUVM, the first automated, policy-driven UVM prefetching system with tensor-level visibility.

• We develop a profile-driven analysis framework that performs a single offline pass to trace kernel–tensor accesses, generate stable tensor identifiers, and infer tensor affinity, enabling framework-aware prefetch planning without modifying model code. We also design a lightweight Online Executor that autonomously issues and adapts tensor-level prefetching decisions using a lightweight runtime monitor.

• We instantiate AUTOUVM with a roofline-inspired policy to identify performance-critical data transfers. Across ten LLMs, AUTOUVM achieves an average 3.1×3.1\times speedup over baseline UVM, outperforms the best-performing prior prefetcher (DeepUM) by 1.9×1.9\times, and improves over object-level prefetchers by up to 4.7×4.7\times, while significantly reducing page faults.

References (34)

  • Pytorch fsd: experiences on scaling fully sharded data parallel (opens arXiv in a new tab)
  • Drgpum: Guiding memory optimization for gpu-accelerated applications
  • Poet: Training neural networks on tiny devices with integrated rematerialization and paging
  • Enabling transparent memory-compression for commodity memory systems
  • Forest: Access-aware gpu uvm management
  • Suv: Static analysis guided unified virtual memory
  • Interplay between hardware prefetcher and page eviction policy in cpu-gpu unified virtual memory
  • Pytorch cuda caching memory allocator
  • Understanding oversubscribed memory management for deep learning training
  • Capuchin: Tensor-based gpu memory management for deep learning
  • Cost-efficient llm training with lifetime-aware tensor offloading via gpdirect storage
  • Pasta: A modular program analysis tool framework for accelerators
  • Hybridgen: Efficient llm generative inference via cpu-gpu hybrid computing (opens arXiv in a new tab)
  • Unified memory in cuda 6
  • Nvidia tesla p100 whitepaper
  • Improving gpu memory oversubscription performance
  • Pytorch: An imperative style, high-performance deep learning library
  • Heterogeneous memory management (hmm)
  • Nvidia grace hopper superchip architecture whitepaper
  • Deepum: Tensor migration and prefetching in unified memory
  • Pytorch tensor creation hook
  • Nvbit: A dynamic binary instrumentation framework for nvidia gpus
  • Compute sanitizer api reference manual
  • Smollm2: When smol goes big-data-centric training of a small language model
  • Qwen2.5: A party of foundation models
  • Qwen Technical Report
  • Deepseek-coder-1.3b model
  • Amd-llama-135m model
  • Specinfer: Accelerating generative lm serving with speculative inference and token tree verification
  • Helium-1-2b model
  • Eurollm: Multilingual language models for europe
  • Adaptive page migration for irregular data-intensive applications under gpu memory oversubscription
  • Nvidia linux open gpu kernel module source
  • Early-adaptor: An adaptive framework for proactive uvm memory management