VineLM: 基于Trie的细粒度控制用于智能体工作流
VineLM: Trie-Based Fine-Grained Control for Agentic Workflows
AI总结:
提出VineLM工作流管理器,通过Trie结构动态选择每个阶段调用的模型,在请求级目标下优化成本-延迟-准确率边界,稀疏分析减少离线分析成本98-99.8%。
摘要:
智能体工作流将可配置的LLM阶段与工具阶段交错,通常包括重试或优化循环。现有工作流管理器离线分析完整工作流配置,并为每个请求分配静态工作流级计划,将每个可配置LLM阶段绑定到单个模型,在重复循环迭代中重用该模型,且不在运行时重新审视这些选择。我们提出VineLM,一种工作流管理器,通过在请求级目标(如在成本或延迟预算下最大化准确率)下执行过程中为每个阶段调用选择模型,实现细粒度控制。VineLM将可行执行表示为模型选择前缀的带注释Trie,并使用检查点和级联分析来估计路径准确率、成本和延迟,而无需在每个路径上详尽分析每个请求。运行时,VineLM在每个阶段调用后重新定位Trie根,并使用已实现的执行前缀和剩余延迟预算在剩余子Trie上重新规划。在NL2SQL和数学推理工作流上,VineLM在相同每请求预算下比粗粒度工作流级基线提高了成本-延迟-准确率边界,准确率提升高达18%,其稀疏分析相比详尽分析将离线分析成本降低了98-99.8%。
英文摘要:
Agentic workflows interleave configurable LLM stages with tool stages and often include retries or refinement loops. Existing workflow managers profile full workflow configurations offline and assign each request a static workflow-level plan that binds each configurable LLM stage to a single model, reuses that model across repeated loop iterations, and does not revisit those choices at runtime. We present VineLM, a workflow manager that enables fine-grained control by choosing the model for each stage invocation as execution unfolds under request-level objectives such as maximizing accuracy under cost or latency budgets. VineLM represents feasible executions as an annotated trie of model-choice prefixes and uses checkpointing and cascade profiling to estimate path accuracy, cost, and latency without exhaustively profiling every request on every path. At runtime, VineLM re-roots the trie after each stage invocation and replans over the remaining subtrie using the realized execution prefix and remaining latency budget. On NL2SQL and math reasoning workflows, VineLM improves the cost-latency-accuracy frontier over coarse workflow-level baselines, achieving up to 18% higher accuracy at the same per-request budget with its sparse profiling reducing offline profiling cost by 98-99.8% when compared to exhaustive profiling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。