arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.02248cs.DCcs.LG
收藏

从模型到算子:重新思考大型生成式模型的自动伸缩粒度

From Models to Operators: Rethinking Autoscaling Granularity for Large Generative Models

Rice University(里士大学);Microsoft Research(微软研究院);Microsoft Azure Research(微软Azure研究院)

Xingqi Cui, Chieh-Jan Mike Liang, Jiarong Xing, Haoran Qiu

AI总结:

本文针对大型生成式模型服务中模型级自动伸缩粒度过粗导致资源利用率低的问题,提出算子级自动伸缩框架,基于算子异构性优化资源分配,在保持SLO的同时显著降低GPU和能耗并提升吞吐量。

摘要:

服务大型生成式模型(如LLM和多模态transformers)需要在面向用户的SLO(例如,time-to-first-token、time-between-tokens)与提供商的效率和成本降低目标之间取得平衡。现有解决方案依赖于静态配置或模型级别的自动伸缩,两者都将模型视为单一整体。这种粗粒度的资源管理会导致性能下降或严重的资源利用率不足,因为对在线常见的动态推理流量适应性差。这种低效的根本原因在于生成式模型的内部结构:它们作为相互连接的算子图执行。通过详细的表征和系统分析,我们发现算子在计算和内存占用方面是异构的,并且对批大小、序列长度和流量速率等工作负载和资源因素表现出不同的敏感性。这种异构性表明,算子而不是整个模型,是伸缩决策的正确粒度。我们提出了一个算子级别的自动伸缩框架,该框架在更细的(算子)粒度上分配资源,基于单个算子配置文件优化伸缩、批处理和放置。在生产规模的轨迹上评估,我们的方法在GPU减少高达40%和能耗减少35%的情况下保持SLO,或者在固定资源下实现1.6倍的更高吞吐量和5%的能耗减少。这些结果表明,算子而不是模型,从根本上说是伸缩大型生成式工作负载的更有效单位。

英文摘要:

Serving large generative models such as LLMs and multi- modal transformers requires balancing user-facing SLOs (e.g., time-to-first-token, time-between-tokens) with provider goals of efficiency and cost reduction. Existing solutions rely on static provisioning or model-level autoscaling, both of which treat the model as a monolith. This coarse-grained resource management leads to degraded performance or significant resource underutilization due to poor adaptability to dynamic inference traffic that is common online. The root cause of this inefficiency lies in the internal structure of generative models: they are executed as graphs of interconnected operators. Through detailed characterization and systematic analysis, we find that operators are heterogeneous in their compute and memory footprints and exhibit diverse sensitivity to workload and resource factors such as batch size, sequence length, and traffic rate. This heterogeneity suggests that the operator, rather than the entire model, is the right granularity for scaling decisions. We propose an operator-level autoscaling framework, which allocates resources at finer (operator)-granularity, optimizing the scaling, batching, and placement based on individual operator profiles. Evaluated on production-scale traces, our approach preserves SLOs with up to 40% fewer GPUs and 35% less energy, or under fixed resources achieves 1.6x higher throughput with 5% less energy. These results show that the operator, rather than the model, is fundamentally a more effective unit for scaling large generative workloads.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑