让AI工作流自动切换配置,动态平衡速度、精度与成本。
Compass: Optimizing Compound AI Workflows for Dynamic Adaptation
- 通过智能搜索发现多种高效配置组合。
- 实测在严苛精度要求下效率提升95.3%,配置评估减少超一半。
- 适合需应对负载波动的生产级AI系统部署者。
Compound AI是一种将专用AI/ML模型与工程化软件组件协同调度的分布式智能范式。其生产部署需在不同负载下兼顾准确性、延迟与成本。然而多数部署依赖固定基础设施,无法水平扩展。现有方法仅优化准确性,忽略负载变化。我们观察到,Compound AI系统可通过切换配置适应资源容量,根据负载情况以精度换延迟。这需要从组合搜索空间中发现多组帕累托最优配置,并实时决定切换时机。本文提出Compass框架,包含三部分:用于配置发现的COMPASS-V算法、基于排队论推导切换策略的Planner,以及运行时动态调整的Elastico控制器。COMPASS-V采用有限差分引导搜索,结合爬山法与横向扩展,实现100%召回率,平均减少57.5%配置评估量;在严格精度阈值下效率提升达95.3%。Planner在目标硬件上对配置进行性能建模,生成切换策略。Elastico监控队列深度,按预设阈值动态切换。在两个Compound AI工作流上,运行时自适应使SLO合规率达90-98%,较静态高精度基线提升71.6%;同时比静态快速基线精度提高3-5%。
原文摘要 · Abstract (English)
Compound AI is a distributed intelligence approach that represents a unified system orchestrating specialized AI/ML models with engineered software components into AI workflows. Compound AI production deployments must satisfy accuracy, latency, and cost objectives under varying loads. However, many deployments operate on fixed infrastructure where horizontal scaling is not viable. Existing approaches optimize solely for accuracy and do not consider changes in workload conditions. We observe that compound AI systems can switch between configurations to fit infrastructure capacity, trading accuracy for latency based on current load. This requires discovering multiple Pareto-optimal configurations from a combinatorial search space and determining when to switch between them at runtime. We present Compass, a novel framework that enables dynamic configuration switching through offline optimization and online adaptation. Compass consists of three components: COMPASS-V algorithm for configuration discovery, Planner for switching policy derivation, and Elastico Controller for runtime adaptation. COMPASS-V discovers accuracy-feasible configurations using finite-difference guided search and a combination of hill-climbing and lateral expansion. Planner profiles these configurations on target hardware and derives switching policies using a queuing theory based model. Elastico monitors queue depth and switches configurations based on derived thresholds. Across two compound AI workflows, COMPASS-V achieves 100% recall while reducing configuration evaluations by 57.5% on average compared to exhaustive search, with efficiency gains reaching 95.3% at tight accuracy thresholds. Runtime adaptation achieves 90-98% SLO compliance under dynamic load patterns, improving SLO compliance by 71.6% over static high-accuracy baselines, while simultaneously improving accuracy by 3-5% over static fast baselines.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。