TL;DR
This paper introduces Memory-Augmented Backpressure (MABP), a novel decentralized control framework designed for stateful foundation-model service networks (SFMSNs) handling complex LLM agent workflows. By jointly modeling request queues and the dynamics of contextual memory (like KV caches and tool outputs), MABP prevents unbounded memory growth and significantly expands network capacity.
What Problem Does This Paper Address?
As Large Language Model (LLM) applications evolve from simple single-prompt queries into complex "agentic" workflows—involving retrieval-augmented generation (RAG), Mixture-of-Experts (MoE), multi-step planning, and verification loops—traditional network scheduling algorithms fall short.
In these networks, requests leave behind persistent execution states (e.g., prefix/KV blocks, retrieved contexts, and verified tool outputs). These states are not just passive cache files; they actively alter the compute time required for future tasks and change downstream routing probabilities. For instance, a cached verification result might completely bypass a downstream tool-use step.
Traditional queue-only scheduling algorithms (like classical backpressure or max-weight scheduling) ignore these memory dynamics. This leads to two major issues:
- Suboptimal performance: Routing requests to a lightly loaded worker that lacks the correct contextual memory can drastically increase future downstream workloads.
- Unbounded memory growth: Queue-only stability does not regulate the storage of unmanaged execution states, causing memory usage to grow linearly over time.
Methods
The authors formalize the Stateful Foundation-Model Service Network (SFMSN) model, where nodes maintain both commodity queues and finite contextual memory states. To manage this system, they propose two variants of MABP:
- Exact Frame-MABP: An analytical framework that operates over an $H$-slot time frame. It calculates a memory-dependent "pressure score" that prices a service action based on the queue backlog it consumes, the expected downstream congestion it creates under the current memory state, and a quality-adjusted penalty. It then applies a budget-feasible retention rule to decide which memory objects to keep for future slots.
- Practical One-Slot MABP Surrogate: Because the frame oracle requires lookahead, the authors developed a deployable one-slot surrogate algorithm. This practical version uses frozen-queue local values to approximate delayed memory retention benefits, making it computationally efficient for real-time scheduling.
Datasets
The framework was evaluated using two distinct environments:
- Simulated Workloads: A custom-built discrete-event simulator instantiating finite RAG, MoE, and agentic SFMSN graphs. It models Poisson arrivals, Zipf-distributed request skews, and state-dependent execution behaviors.
- Real-World System Deployment: A routing-only deployment (
MABP-Route) implemented on a physical four-GPU cluster running the vLLM serving engine to host theQwen/Qwen2.5-7B-Instructmodel through an OpenAI-compatible interface.
Key Insights and Ideas
- Memory Enforces Capacity Expansion: Contextual memory doesn't just speed up execution; it strictly expands the network's stability region. It achieves this through two independent mechanisms: work reduction (e.g., prefix/KV cache reuse lowering compute time) and transition shaping (e.g., reusing verified results to eliminate downstream verifier tasks).
- The Danger of Memory-Oblivious Routing: The authors mathematically prove a "minimax decision-state separation" (Proposition 3). Any scheduling rule that ignores internal memory states when routing identical queues faces a severe worst-case penalty gap compared to a memory-aware rule.
- The Penalty-Backlog Tradeoff: By tuning a control parameter ($\nu$), operators can directly navigate the tradeoff between minimizing quality-adjusted service penalties and controlling the average queue backlog size.
Key Results
- Higher Sustainable Throughput: In simulations, MABP achieved a stable throughput load of 0.9, outperforming standard Backpressure (0.6) and advanced GNN-based schedulers (0.8).
- Massive Latency Reductions: At a high offered load ($\rho_0 = 0.85$), MABP reduced P95 tail latency by 90.0% compared to standard Backpressure and by 77.0% compared to the GNN scheduler.
- Real-System Gains: When deployed on the real vLLM multi-GPU system,
MABP-Routeimproved Service Level Objective (SLO) goodput by 6.8%, reduced P95 end-to-end latency by 7.2%, and cut down downstream jobs per request by 11.7% relative to the GNN baseline.
Limitations and Future Work
While highly effective, the practical one-slot surrogate is not automatically guaranteed to be throughput-optimal unless its approximation loss remains uniformly bounded. Additionally, in the real-world evaluation, MABP was restricted to a routing-only deployment because the underlying vLLM engine manages its own low-level KV cache eviction internally.
The authors note that a tighter, full co-design that directly links MABP's high-level network routing with the deep, low-level memory managers of LLM engines represents a promising direction for future research.
Summary updated