Ensemble learning achieves superior performance and generalization capabilities by leveraging multiple base models to collaboratively obtain prediction results, while the concurrent execution of multiple models also introduces significant latency and resource overhead challenges. Serverless computing frameworks have emerged as a popular choice for supporting ensemble inference services due to their on-demand dynamic allocation of computational resources. However, existing serverless scheduling methods suffer from prominent issues such as static request scheduling leading to high response latency and independent function scaling causing frequent bottlenecks. To address these challenges, this paper proposes a multi-agent-driven serverless dual-mode adaptive ensemble inference method to achieve end-to-end joint optimization of request distribution, model composition, and instance scaling. Specifically, 1) Heterogeneous feature-enhanced ensemble service dynamic route method, which realizes heuristic combination of user group portrait and base model through offline unsupervised log clustering, and considers the real-time resource status online to achieve rapid request distribution with O(1) time complexity; 2) Master-slave instance autoscaling algorithm based on multi-agent reinforcement learning, which realizes dynamic balance between local resource awareness and global bottleneck optimization through modeling collaboration and competition relationship between master-slave inference nodes. Finally, experimental validation on real-world clusters using public datasets has demonstrated the performance and overhead advantages of the proposed method. Our approach reduces latency by 13.4%, improves accuracy by 9.1%, and lowers CPU and memory occupancy by 19.4% and 3.9% compared to state-of-the-art inference serving systems.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Multi-agent-Driven Dual-Layer Serverless Adaptive Ensemble Inference Method

  • Yingxin Wang,
  • Binbin Feng,
  • Zhijun Ding

摘要

Ensemble learning achieves superior performance and generalization capabilities by leveraging multiple base models to collaboratively obtain prediction results, while the concurrent execution of multiple models also introduces significant latency and resource overhead challenges. Serverless computing frameworks have emerged as a popular choice for supporting ensemble inference services due to their on-demand dynamic allocation of computational resources. However, existing serverless scheduling methods suffer from prominent issues such as static request scheduling leading to high response latency and independent function scaling causing frequent bottlenecks. To address these challenges, this paper proposes a multi-agent-driven serverless dual-mode adaptive ensemble inference method to achieve end-to-end joint optimization of request distribution, model composition, and instance scaling. Specifically, 1) Heterogeneous feature-enhanced ensemble service dynamic route method, which realizes heuristic combination of user group portrait and base model through offline unsupervised log clustering, and considers the real-time resource status online to achieve rapid request distribution with O(1) time complexity; 2) Master-slave instance autoscaling algorithm based on multi-agent reinforcement learning, which realizes dynamic balance between local resource awareness and global bottleneck optimization through modeling collaboration and competition relationship between master-slave inference nodes. Finally, experimental validation on real-world clusters using public datasets has demonstrated the performance and overhead advantages of the proposed method. Our approach reduces latency by 13.4%, improves accuracy by 9.1%, and lowers CPU and memory occupancy by 19.4% and 3.9% compared to state-of-the-art inference serving systems.