[论文解读] Green AI in Action: Strategic Model Selection for Ensembles in Production
本文提出了针对AI集成模型的静态与动态模型选择策略,通过在推理过程中仅激活最有效的模型来降低能耗,在保持或提升真实生产系统中F1分数的同时,将能耗降低至完整集成模型的86%以下。
Integrating Artificial Intelligence (AI) into software systems has significantly enhanced their capabilities while escalating energy demands. Ensemble learning, combining predictions from multiple models to form a single prediction, intensifies this problem due to cumulative energy consumption. This paper presents a novel approach to model selection that addresses the challenge of balancing the accuracy of AI models with their energy consumption in a live AI ensemble system. We explore how reducing the number of models or improving the efficiency of model usage within an ensemble during inference can reduce energy demands without substantially sacrificing accuracy. This study introduces and evaluates two model selection strategies, Static and Dynamic, for optimizing ensemble learning systems performance while minimizing energy usage. Our results demonstrate that the Static strategy improves the F1 score beyond the baseline, reducing average energy usage from 100% from the full ensemble to 62%. The Dynamic strategy further enhances F1 scores, using on average 76% compared to 100% of the full ensemble. Moreover, we propose an approach that balances accuracy with resource consumption, significantly reducing energy usage without substantially impacting accuracy. This method decreased the average energy usage of the Static strategy from approximately 62% to 14%, and for the Dynamic strategy, from around 76% to 57%. Our field study of Green AI using an operational AI system developed by a large professional services provider shows the practical applicability of adopting energy-conscious model selection strategies in live production environments.
研究动机与目标
- 解决生产系统中AI推理日益增长的能耗成本,特别是针对集成学习方法中因多模型叠加导致的能耗累积问题。
- 通过在实际运行的工业级AI系统中评估模型选择策略,弥合绿色AI研究与工业实践之间的差距。
- 通过引入并评估两种新型模型选择策略——静态与动态策略,优化集成学习中模型准确率与能效之间的权衡。
- 开发并验证一种能量感知的模型选择方法,明确惩罚高能耗模型,引导选择高效且准确的配置,实现可持续的AI部署。
- 展示在真实AI应用中实施节能型模型选择的实用可行性和可衡量效益,支持AI系统长期可持续发展。
提出的方法
- 实施静态模型选择策略,基于验证集表现识别并永久使用最优模型子集,来自完整集成模型。
- 实施动态模型选择策略,根据每个输入实例的特定特征选择不同的模型子集,提升适应性与准确率。
- 引入一种能量感知方法,将准确率与能耗整合为单一指标,通过惩罚高能耗模型来引导选择高效且准确的配置。
- 使用F1分数和能耗作为关键指标,在两个真实世界数据集——CUAD和Lease Agreement上评估模型性能与能耗表现。
- 在DocQMiner(一个用于文档信息抽取的生产级AI系统)上开展实地研究,评估所提策略在真实场景中的适用性与可扩展性。
- 使用验证集预先计算并存储静态与动态策略的最佳表现模型子集,以实现在生产环境中低延迟推理。
实验结果
研究问题
- RQ1在生产环境中,静态与动态模型选择策略如何影响集成学习系统的准确率与能耗?
- RQ2与基线全集成推理相比,能量感知的模型选择方法是否能显著降低能耗,同时保持或提升模型性能?
- RQ3在真实世界AI系统中,模型选择策略在减少每次推理所用模型数量的同时,能在多大程度上维持高F1分数?
- RQ4所提策略在法律文书和金融合同等多样化真实世界数据分布下表现如何?
- RQ5在实际工业AI系统中实施节能型模型选择在实用性和可扩展性方面如何?
主要发现
- 静态模型选择策略在超越基线F1分数的同时,将平均能耗从完整集成模型的100%降低至62%。
- 动态模型选择策略进一步提升了F1分数,并将能耗降低至完整集成模型能耗的76%。
- 能量感知方法将静态策略的平均能耗从62%降低至完整集成模型能耗的14%,展现出显著的能效提升。
- 对于动态策略,能量感知方法将能耗从76%降低至57%的完整集成模型能耗,同时保持高准确率,显著降低能耗成本。
- 在DocQMiner上的实地研究证实了模型选择策略在生产环境中的实际可行性,显示出能耗显著降低而性能未受损。
- 结果验证了通过战略性模型选择在准确率与能效之间实现平衡不仅可行,而且在工业AI系统中极为有效,切实支持绿色AI原则的实践应用。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。