研究实时生成AI在异构芯片上的调度策略,提升低延迟应用性能。
Exploring the Dynamic Scheduling Space of Real-Time Generative AI Applications on Emerging Heterogeneous Systems
- 构建多模型场景,分析生成式AI在异构芯片上的动态执行特征
- 不同调度策略导致任务延期率差异达41.7%,影响推理效率
- 适合关注边缘端实时AI部署与调度优化的研究者
将生成式AI模型(尤其是大语言模型)集成到视频会议、游戏等实时多模态应用中,催生了一类新型工作负载:实时生成AI(RTGen)。这类负载兼具生成模型的计算密集性与动态执行特性,同时面临严格的延迟和并发约束。为满足RTGen的需求,现代边缘平台越来越多采用集成CPU、GPU与NPU的异构系统级芯片(SoC)架构。尽管异构SoC潜力巨大,但其上RTGen工作负载的调度空间复杂度与性能影响仍不明确。本文针对AMD最新异构SoC Ryzen AI,对RTGen工作负载进行了全面表征,构建了基于行业用例的真实多模型场景,并在所有可用后端上进行模型性能测试。基于此数据,评估五种调度策略对实时指标(如任务截止期违反率)和LLM性能(如首次词元时间、每秒生成词元数)的影响。结果表明,调度决策显著影响整体性能(平均导致截止期违反率相差41.7%),凸显出需设计兼顾工作负载动态性与硬件异构性的调度策略。研究强调,实现高性能本地化实时生成应用,依赖于工作负载感知的动态异构调度。
原文摘要 · Abstract (English)
The integration of generative AI models, particularly large language models (LLMs), into real-time multi-model AI applications such as video conferencing and gaming is giving rise to a new class of workloads: real-time generative AI (RTGen). These workloads combine the compute intensity and dynamic execution patterns of generative models with the stringent latency and concurrency constraints of real-time inference. To meet the diverse demands of RTGen workloads, modern edge platforms increasingly adopt heterogeneous system-on-chip (SoC) architectures that integrate CPUs, GPUs, and NPUs. Despite the potential of heterogeneous SoC, the scheduling space complexity and performance implications of RTGen workloads on such platforms remain underexplored. In this work, we perform a comprehensive characterization of RTGen workloads on AMD's latest heterogeneous SoC, Ryzen AI. We construct realistic multi-model scenarios inspired by industry use cases and profile model performance across all available backends. Using this data, we evaluate five scheduling policies and their impact on both real-time metrics (e.g., deadline violation rate) and LLM performance (e.g., time-to-first-token and tokens-per-second). Our results show that scheduling decisions significantly affect workload performance (e.g., leading to a 41.7% difference in deadline violation rates on average), and highlight the need for scheduling strategies that are aware of workload dynamics and hardware heterogeneity. Our findings underscore the importance of workload-aware, dynamic heterogeneous scheduling in enabling high-performance, on-device RTGen applications.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。