arXiv:2511.02248cs.DCcs.LG2025-11

按算子粒度动态调优,让大模型推理更省资源、更快

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

  • 把模型拆成算子,按每个算子的负载特性独立分配资源
  • 实测节省40%显卡、35%能耗,或同等资源下吞吐提升1.6倍
  • 适合部署大模型的服务平台,尤其关注成本与性能的团队

服务大型生成模型(如LLMs和多模态Transformer)需在用户侧的SLO(如首字延迟、字间间隔)与服务商的效率、成本目标间取得平衡。现有方案依赖静态资源配置或模型级自动扩缩容,将模型视为整体,导致对动态推理流量适应性差,引发性能下降或资源闲置。根本原因在于生成模型内部由多个相互连接的算子构成:这些算子在计算与内存开销上差异显著,且对批大小、序列长度、流量速率等因子的敏感度各不相同。这种异质性表明,算子而非整个模型,才是更合适的扩缩粒度。本文提出算子级自动扩缩框架,基于各算子特征进行细粒度资源分配,优化扩缩、批处理与部署策略。在生产规模流量数据上评估,该方法可减少最多40%的GPU用量和35%的能耗,或在固定资源下实现1.6倍吞吐提升,同时能耗仅增加5%。结果表明,算子是更有效的大型生成工作负载扩缩单位。

原文摘要 · Abstract (English)

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.

大模型部署自动扩缩算子级优化能效提升

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。