CoSTAast: Cost-Sensitive Toolpath Agent for Multi-turn Image Editing
CoSTA∗提出了一种结合大型语言模型和A∗搜索的分层规划策略,以找到成本敏感的工具路径,从而实现多轮图像编辑任务。
更新于 2025-03-14。作者:Advait Gupta、NandaKiran Velaga、Dang Nguyen、Tianyi Zhou。
中文摘要
文本到图像模型如稳定扩散和DALLE-3在多轮图像编辑方面仍然存在困难。我们将此类任务分解为一个由工具使用构成的代理工作流程(路径),通过不同成本的人工智能工具解决一系列子任务。传统的搜索算法需要昂贵的探索来找到工具路径。虽然大型语言模型(LLMs)具备子任务规划的前置知识,但它们可能缺乏对工具能力和成本的准确估计,以确定在每个子任务中应用哪种工具。我们能否结合LLMs和图搜索的优点,找到成本效益高的工具路径?我们提出了一种三阶段方法“CoSTA*”,该方法利用LLMs创建一个子任务树,有助于修剪给定任务的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.
解读
一句话总结
CoSTA∗提出了一种结合大型语言模型和A∗搜索的分层规划策略,以找到成本敏感的工具路径,从而实现多轮图像编辑任务。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:多轮图像编辑任务在文本到图像模型中仍然是一个挑战,因为这些模型在处理复合指令时需要多个精细调整,同时保持其他部分不变。
- 现有方案不足:现有的图像编辑代理通常不是成本敏感的,导致工具路径搜索成本高昂;大型语言模型在子任务规划方面具有先验知识,但可能缺乏对工具能力和成本的准确估计。
- 研究目标:提出一个结合LLM和图搜索优势的分层规划代理CoSTA∗,以找到成本敏感的工具路径,用于多轮图像编辑任务。
问题2:论文的核心创新点是什么?
- 技术创新:CoSTA∗使用LLM创建子任务树,以修剪给定任务的AI工具图,然后在该小子图上进行A∗搜索以找到工具路径。
- 方法改进:CoSTA∗结合了每个工具在每个子任务上的成本和质量指标来指导A∗搜索。
- 优势:CoSTA∗能够自动在子任务之间切换模态,以实现更好的成本-质量权衡。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:CoSTA∗在自定义的多轮图像编辑基准测试中,在成本和质量方面均优于最先进的图像编辑模型或代理。
- 性能提升:CoSTA∗实现了Pareto最优,并在成本和质量权衡方面优于基线方法。
- 对比结果:CoSTA∗在复杂的多模态任务中表现出色,其准确性和效率均优于基线方法。
问题4:这个研究的实际应用价值是什么?
- 应用场景:CoSTA∗可以应用于图像编辑、图像修复、个性化内容创作等领域。
- 实施建议:CoSTA∗可以集成到现有的图像编辑工具中,以提供更高效、更准确的编辑体验。
- 局限与展望:尽管CoSTA∗在多轮图像编辑任务中表现出色,但它仍然依赖于预训练模型和基准数据。未来的研究可以探索更先进的模型和更全面的数据集,以进一步提高其性能和适用性。
来源
机器可读索引:llms.txt