Deploying Foundation Model Powered Agent Services: A Survey

Wenchao Xu, Jinyu Chen, Peirong Zheng, Xiaoquan Yi, Tianyi Tian, Wenhui Zhu, Quan Wan, Haozhao Wang, Yunfeng Fan, Qinliang Su, Xuemin Shen · OpenReview

TL;DR

This survey paper provides a comprehensive, unified framework for deploying foundation model (FM)-powered agent services across heterogeneous cloud-edge environments. It bridges the gap between low-level hardware/resource optimizations and high-level agent architectures (planning, memory, tool use) to enable real-time, scalable, and reliable AI services.

What Problem Does This Paper Address?

Foundation models (FMs) like GPT, Llama, and vision-language models have revolutionized artificial intelligence, but transitioning them into interactive, autonomous agents introduces massive deployment challenges. Unlike traditional static Q&A models, AI agents require dynamic memory management, long-term task planning, and the ability to execute external tools and APIs.

These capabilities add immense computational and communication overhead. Deploying such services across heterogeneous environments—where consumer-grade edge devices must collaborate with powerful cloud clusters—presents severe bottlenecks: limited edge storage, fluctuating user query loads, and strict real-time latency requirements. This paper systematically surveys the optimization strategies required across both hardware and software layers to build a robust infrastructure for agent services.

Methods

The authors propose a unified five-layer framework to categorize and analyze deployment optimization strategies:

Fig. 1. The framework of FM-powered agent services. The execution layer runs model inference with low-level optimizations. The resource layer focuses on designing strategies for parallelism and resource scaling. The model and agent layers work on optimizing FMs and various agent components. The application layer constructs different intelligent applications.
  1. Execution Layer: Focuses on low-level hardware acceleration (utilizing FPGAs, ASICs, In-Memory Computing, and CPUs/GPUs) alongside memory and I/O optimizations (such as FlashAttention and PagedAttention) to mitigate the "memory wall" during model decoding.
  2. Resource Layer: Addresses distributed scaling and parallelism strategies (data, model, pipeline, and tensor parallelism) to strategically split and place models across heterogeneous devices.
  3. Model Layer: Explores model compression (pruning, quantization, knowledge distillation) and token reduction techniques (pruning, merging, or summarizing tokens) to make FMs lightweight enough for edge deployment.
  4. Agent Layer: Optimizes the core components that give agents autonomy, including multi-agent collaboration frameworks, planning capabilities, long-term memory storage (like Vector Databases and Retrieval-Augmented Generation), and tool utilization.
  5. Application Layer: Implements smart batching strategies (such as iteration-level scheduling) and coordinates application-specific demands to maximize throughput.

Datasets

As a survey paper, it does not introduce a new dataset. Instead, it reviews existing benchmarks used across the literature to evaluate these systems, including:

  • ToolQA: A dataset spanning 8 domains and 13 tool types designed to evaluate how effectively LLMs use external tools rather than relying on internal knowledge.
  • ChapterBreak: A benchmark used for evaluating long-context memory modeling capabilities.

Key Insights and Ideas

  • The Agent Elasticity Gap: While substantial progress has been made to introduce elasticity at the resource and token layers, current serving systems lack dynamic adaptability at the agent layer itself. An adaptive agent should dynamically decide when to rely on internal reasoning versus when to query external APIs or search evolving knowledge bases.
  • Prefill vs. Decode Disaggregation: LLM inference suffers from an imbalance between the compute-bound prefill phase (processing the prompt) and the memory-bound decode phase (generating tokens autoregressively). Modern architectures are shifting toward disaggregating these phases onto separate, specialized hardware to eliminate interference.
  • Token Reduction as a Priority: Compressing the input sequence via token pruning or merging is just as vital as compressing model weights. Because self-attention complexity scales quadratically with sequence length, reducing tokens directly mitigates the computational bottleneck of long-context agent interactions.
  • Heterogeneous Hardware Synergy: No single hardware architecture fits all needs. ASICs provide unmatched efficiency for fixed model architectures, FPGAs offer programmability for rapidly evolving agent algorithms, and CPUs provide the large memory capacity needed to offload model caches.

Key Results

The paper synthesizes several notable quantitative breakthroughs from the surveyed literature:

  • Cache & Token Management: The Heavy Hitter Oracle (H2O) KV cache eviction policy improves throughput by up to 29× on OPT models. Meanwhile, StreamingLLM leverages "attention sinks" to accelerate Llama-2 inference by up to 22.2× in streaming applications.
  • Quantization Speedups: SmoothQuant successfully implements 8-bit weight and activation (W8A8) quantization, delivering up to a 1.56× speedup and a 2× memory reduction without sacrificing accuracy.
  • Pruning Efficiency: Diff-Pruning achieves a 50% reduction in FLOPs for diffusion models while requiring only 10% to 20% of the original training resources.

Limitations and Future Work

  • Unresolved Edge-Cloud Orchestration: Effectively deploying massive hundred-billion-parameter models across weak edge devices remains an open problem due to limited edge bandwidth and the high communication overhead of distributed parallelism.
  • Dynamic Scheduling for MoE and Multimodal Models: Mixture-of-Experts (MoE) and multimodal models activate different modules dynamically based on the input format (text, image, audio). Existing serving systems are poorly optimized for this input-dependent variability and require smarter online resource scheduling.
  • Agent-Specific Serving Infrastructure: Current infrastructure is optimized for raw FM inference rather than agent behaviors. Future work must design serving systems tailored to agent characteristics, such as strategically routing simple planning tasks to edge devices while offloading complex multi-agent collaboration to the cloud.

Summary updated

BibTeX
@article{xu2024deploying,
  author = {Wenchao Xu and Jinyu Chen and Peirong Zheng and Xiaoquan Yi and Tianyi Tian and Wenhui Zhu and Quan Wan and Haozhao Wang and Yunfeng Fan and Qinliang Su and Xuemin Shen},
  title = {{Deploying Foundation Model Powered Agent Services: A Survey}},
  journal = {IEEE Commun. Surv. Tutorials},
  year = {2024},
  url = {https://openreview.net/forum?id=j4IzivVYz1},
}
Figure