arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.01342cs.CLcs.AI
收藏

DiffAgent:基于大语言模型的快速准确文生图API选择

DiffAgent: Fast and Accurate Text-to-Image API Selection with Large Language Model

Xiamen University(厦门大学);Shanghai Jiao Tong University(上海交通大学);OpenGVLab, Shanghai AI Laboratory(上海人工智能实验室OpenGVLab);The University of Hong Kong(香港大学);Institute of Artificial Intelligence, Xiamen University(厦门大学人工智能研究院)

Lirui Zhao, Yue Yang, Kaipeng Zhang, Wenqi Shao, Yuxin Zhang, Yu Qiao, Ping Luo, Rongrong Ji

AI总结:

本文提出DiffAgent,一个基于大语言模型的智能体,通过SFTA两阶段训练框架和DABench数据集,实现快速准确的文生图API自动选择。

摘要:

文生图(T2I)生成模型已引起广泛关注,并在学术研究内外得到大量应用。例如,Civitai社区作为T2I创新平台,目前托管着多达74,492个不同的模型。然而,这种多样性给选择最合适的模型和参数带来了巨大挑战,这一过程通常需要大量试错。受大语言模型(LLMs)工具使用研究的启发,我们提出了DiffAgent,这是一个LLM智能体,旨在通过API调用在数秒内筛选出准确的选择。DiffAgent采用新颖的两阶段训练框架SFTA,使其能够根据人类偏好将T2I API响应与用户输入准确对齐。为了训练和评估DiffAgent的能力,我们提出了DABench,这是一个涵盖社区中广泛T2I API的综合数据集。我们的评估表明,DiffAgent不仅在识别合适的T2I API方面表现出色,而且验证了SFTA训练框架的有效性。代码可在https://github.com/OpenGVLab/DiffAgent获取。

英文摘要:

Text-to-image (T2I) generative models have attracted significant attention and found extensive applications within and beyond academic research. For example, the Civitai community, a platform for T2I innovation, currently hosts an impressive array of 74,492 distinct models. However, this diversity presents a formidable challenge in selecting the most appropriate model and parameters, a process that typically requires numerous trials. Drawing inspiration from the tool usage research of large language models (LLMs), we introduce DiffAgent, an LLM agent designed to screen the accurate selection in seconds via API calls. DiffAgent leverages a novel two-stage training framework, SFTA, enabling it to accurately align T2I API responses with user input in accordance with human preferences. To train and evaluate DiffAgent's capabilities, we present DABench, a comprehensive dataset encompassing an extensive range of T2I APIs from the community. Our evaluations reveal that DiffAgent not only excels in identifying the appropriate T2I API but also underscores the effectiveness of the SFTA training framework. Codes are available at https://github.com/OpenGVLab/DiffAgent.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑