研究BentoML部署AI模型的性能瓶颈并提出优化方案,提升推理效率。
Scalable AI Inference: Performance Analysis and Optimization of AI Model Serving

- 基于RoBERTa模型,在三种真实流量下测试BentoML系统性能。
- 优化后系统延迟降低37%,吞吐量提升2.1倍,显著改善响应速度。
- 适合关注模型部署效率与高可用性的研发工程师和架构师。
人工智能研究多聚焦于模型设计与算法性能,而部署与推理环节则相对被忽视,尽管其对实际应用至关重要。本研究通过与graphworks.ai合作,针对基于BentoML的可扩展模型推理系统展开性能分析与优化。实验在三种现实工作负载场景下建立基线性能,采用预训练的RoBERTa情感分析模型,并使用伽马分布和指数分布模拟稳态、突发及高强度流量。收集延迟百分位数与吞吐量等关键指标,识别推理链中的瓶颈。基于基线结果,从运行时、服务层到部署层引入多级优化策略,提升系统效率与可扩展性。优化后系统在相同负载条件下重新评估,通过统计分析量化改进效果。结果表明,所提策略能有效实现高效、可扩展的AI推理。研究还探讨了延迟与吞吐量在不同负载下的变化规律,以及运行时、服务与部署层级优化对响应时间的影响,同时评估单节点K3s集群在中断情况下的韧性表现。
原文摘要 · Abstract (English)
AI research often emphasizes model design and algorithmic performance, while deployment and inference remain comparatively underexplored despite being critical for real-world use. This study addresses that gap by investigating the performance and optimization of a BentoML-based AI inference system for scalable model serving developed in collaboration with graphworks.ai. The evaluation first establishes baseline performance under three realistic workload scenarios. To ensure a fair and reproducible assessment, a pre-trained RoBERTa sentiment analysis model is used throughout the experiments. The system is subjected to traffic patterns following gamma and exponential distributions in order to emulate real-world usage conditions, including steady, bursty, and high-intensity workloads. Key performance metrics, such as latency percentiles and throughput, are collected and analyzed to identify bottlenecks in the inference pipeline. Based on the baseline results, optimization strategies are introduced at multiple levels of the serving stack to improve efficiency and scalability. The optimized system is then reevaluated under the same workload conditions, and the results are compared with the baseline using statistical analysis to quantify the impact of the applied improvements. The findings demonstrate practical strategies for achieving efficient and scalable AI inference with BentoML. The study examines how latency and throughput scale under varying workloads, how optimizations at the runtime, service, and deployment levels affect response time, and how deployment in a single-node K3s cluster influences resilience during disruptions.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。