arXiv:2610.38196cs.DCOct 2026

Manuscript Offprint

arXiv:2610.38196

GearUp: DAG-aware Acceleration for Serverless Inference Serving via Slack-guided Pre-loading

Qi Qi, Yifan Sui, Hanfei Yu, Hong Zhang, Hao Wang

Qi Qi

University of Massachusetts Amherst Amherst, Massachusetts, USA qqi@umass.edu

Yifan Sui

Hong Kong University of Science and Technology Hong Kong, China suiyifan.sjtu@gmail.com

Hanfei Yu

Stevens Institute of Technology Hoboken, New Jersey, USA hyu42@stevens.edu

Hong Zhang

University of Waterloo Waterloo, Ontario, Canada hongzhangblaze@gmail.com

Hao Wang

Stevens Institute of Technology Hoboken, New Jersey, USA hwang9@stevens.edu

Abstract

Serverless platforms increasingly host machine learning (ML) inference workflows, modeled as directed acyclic graphs (DAGs) of interdependent functions. Beyond container startup, each ML node must load libraries, model weights, and CUDA kernels before it can run. These costs accumulate along dependent DAG paths and place initialization on the end-to-end critical path. Existing systems optimize one half of this problem. DAG-agnostic pre-loading prepares nodes the request may never reach, wasting host and GPU memory. DAG-aware serving routes and scales whole functions, leaving the loading stages inside a node untouched.

This paper presents GearUp, a serverless DAG inference serving system that removes ML-node loading from the end-to-end critical path at low resource cost. GearUp profiles the loading stages of each node and schedules them inside the slack time the DAG exposes, hiding initialization behind upstream execution. It reuses initialized instances within and across requests to avoid redundant cold starts. A probabilistic, traffic-adaptive keep-alive policy sets how long idle instances are retained, balancing memory cost against cold-start risk under bursty load. On the AMBER Alert and FINRA-ML workflows with NVIDIA L40S GPUs, GearUp reduces median end-to-end latency by 64.5% and 75.9% against SMIless, for median speedups of 3.1× and 10.0× over cold execution. Integrated GPU and host memory allocation fall by up to 83.9% and 94.6% against eager pre-loading in InstaInfer. GearUp achieves 4.2× strong scaling on four workers.

1 Introduction

Serverless computing offers fine-grained scaling and pay-as-you-go billing, and is increasingly used for Machine Learning (ML) inference, where workflows are modeled as Directed Acyclic Graphs (DAGs) of interdependent functions. Platforms such as Kubeflow [24], MLRun [25], and Airflow [1] express inference pipelines in this form. The same structure underlies video analytics [16, 18], scientific workflows [19], market surveillance [7], and agentic applications [9, 15].

Figure

Figure 1. Per-node execution timelines of AMBER Alert request #317 under different serving approaches.

While attractive, serverless DAG-based inference faces a critical bottleneck from initialization overhead. Beyond container startup, each ML node often requires expensive initialization steps, including loading libraries, model weights, and CUDA kernels. Since these costs occur across dependent DAG stages, they accumulate along execution paths and significantly increase end-to-end latency, directly degrading user experience.

Figure

Figure 2. DAG of AMBER Alert [16, 18], a typical DAG-based ML inference workload for image-based emergency alerts. Each vertex denotes an ML function instance.

The cost of ignoring this structure is large. Figure 1 traces one representative AMBER Alert request across four serving strategies on identical hardware, and Figure 3 reports the GPU memory each strategy holds. SMIless [13], a DAG-aware serving system, starts each function only after its dependencies finish, so ML loading stays on the request path and the request takes 34.97 s, most of it spent loading rather than performing inference. InstaInfer [23] instead pre-loads libraries and weights proactively; applied to the DAG as a single unit it reaches 13.02 s, but readies downstream nodes long before their dependencies finish and holds 1046 GB·s of GPU memory largely idle. InstaInfer Chain predicts each node's request arrival independently without DAG dependency information, causing late pre-loads and cascading stalls that leave GPUs idle while waiting for downstream initialization, giving 17.19 s at only 40% GPU utilization. GearUp completes the same request in 12.15 s using 281 GB·s. Roughly two thirds of the reactive end-to-end latency is therefore initialization that a DAG-aware system can hide, and hiding it well costs a quarter of the memory eager pre-loading spends.

No existing system closes this gap. Prior work does not jointly exploit DAG dependencies and fine-grained ML loading stages for pre-loading. Single-function pre-loaders [17, 23] optimize ML loading without knowing which nodes a request will reach. DAG serving systems [3, 10, 14] schedule and size workflows without treating ML loading as a schedulable stage. Table 1 and §2 compare these systems in detail.

Our key insight is that DAG dependencies expose opportunities to overlap downstream ML pre-loading with upstream execution, hiding initialization from the end-to-end critical path. However, realizing this opportunity raises three challenges. C1. Pre-loading must be timely and non-intrusive. ML nodes have different initialization costs. Starting too late delays execution, while starting too early can interfere with active inference. C2. Pre-loading is costly within a request and redundant across requests. Eager preparation can leave substantial memory idle, while initializing the same models separately for each request repeats work. C3. Traffic and topology interact. Changing traffic and upstream progress make it difficult to decide which instances to retain and for how long.

To bridge this gap, we propose GearUp, a DAG-aware framework for serverless ML inference serving. Only the critical path of a DAG determines its end-to-end latency, so

Figure

Figure 3. GPU memory allocation and utilization for AMBER Alert request #317.

every off-path node carries slack—time it spends waiting for its dependencies—and that slack is initialization time the request has already paid for. GearUp turns this observation into three mechanisms answering C1–C3, applied both within and across requests.

Our key contributions can be summarized as follows:

  • Slack-guided intra-request pre-loading (C1). We traverse the DAG in reversed topological order to find the critical path and each node's slack TslackT_{slack}, then schedule its loading stages inside that window, hiding initialization behind upstream execution without extending the critical path.
  • Execution-level instance reuse across requests (C2). We decouple instance-level execution from the request-level DAG configuration, so warmed instances serve later requests that share the same model nodes.
  • DAG-aware traffic-adaptive keep-alive (C3). A probabilistic cost model sets node lifetimes from DAG topology and observed arrivals, retaining reused nodes through bursts and propagating release decisions to dependents.
  • Implementation and evaluation. We implement GearUp across the controller, workers, function handlers, and DAG orchestrator, and evaluate it on the AMBER Alert and FINRA-ML workflows using NVIDIA L40S GPUs. GearUp reduces median end-to-end latency by 64.5% and 75.9% against SMIless, cuts integrated GPU and host memory allocation by up to 83.9% and 94.6% against eager pre-loading, and achieves 4.2× strong scaling on four workers.