CoSTA*:用于多轮图像编辑的成本敏感型工具路径智能体
CoSTA$\ast$: Cost-Sensitive Toolpath Agent for Multi-turn Image Editing
AI总结:
本文提出 CoSTA*,通过 LLM 构建子任务树并剪枝工具图,再以成本与质量引导 A* 搜索,实现多轮图像编辑中低成本、高质量且可按偏好权衡的工具路径规划。
摘要:
诸如 stable diffusion 和 DALLE-3 之类的文本到图像模型在多轮图像编辑方面仍然存在困难。我们将此类任务分解为一种工具使用的智能体工作流(路径),通过成本各异的 AI 工具处理一系列子任务。传统搜索算法需要昂贵的探索才能找到工具路径。尽管大型语言模型(LLM)具备子任务规划的先验知识,但它们可能无法准确估计工具的能力和成本,从而难以决定在每个子任务中应应用哪种工具。我们能否结合 LLM 与图搜索的优势,找到具有成本效益的工具路径?我们提出了一种名为“CoSTA*”的三阶段方法:利用 LLM 创建子任务树,该树有助于针对给定任务剪枝 AI 工具图,随后在较小的子图上执行 A* 搜索以找到工具路径。为了更好地平衡总成本与质量,CoSTA* 结合每种工具在每个子任务上的两项指标来引导 A* 搜索。每个子任务的输出随后由视觉语言模型(VLM)评估;若失败,则会触发该工具在该子任务上成本和质量的更新。因此,A* 搜索能够从失败中快速恢复,以探索其他路径。此外,CoSTA* 可以在各子任务之间自动切换模态,以实现更好的成本—质量权衡。我们构建了一个包含具有挑战性的多轮图像编辑任务的新颖基准;在该基准上,CoSTA* 在成本和质量两方面均优于最先进的图像编辑模型或智能体,并能够根据用户偏好执行灵活的权衡。
英文摘要:
Text-to-image models like stable diffusion and DALLE-3 still struggle with multi-turn image editing. We decompose such a task as an agentic workflow (path) of tool use that addresses a sequence of subtasks by AI tools of varying costs. Conventional search algorithms require expensive exploration to find tool paths. While large language models (LLMs) possess prior knowledge of subtask planning, they may lack accurate estimations of capabilities and costs of tools to determine which to apply in each subtask. Can we combine the strengths of both LLMs and graph search to find cost-efficient tool paths? We propose a three-stage approach "CoSTA*" that leverages LLMs to create a subtask tree, which helps prune a graph of AI tools for the given task, and then conducts A* search on the small subgraph to find a tool path. To better balance the total cost and quality, CoSTA* combines both metrics of each tool on every subtask to guide the A* search. Each subtask's output is then evaluated by a vision-language model (VLM), where a failure will trigger an update of the tool's cost and quality on the subtask. Hence, the A* search can recover from failures quickly to explore other paths. Moreover, CoSTA* can automatically switch between modalities across subtasks for a better cost-quality trade-off. We build a novel benchmark of challenging multi-turn image editing, on which CoSTA* outperforms state-of-the-art image-editing models or agents in terms of both cost and quality, and performs versatile trade-offs upon user preference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。