arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.17580cs.CLcs.AIcs.CVcs.LG
收藏

HuggingGPT:利用ChatGPT与Hugging Face中的伙伴模型解决AI任务

HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face

Zhejiang University(浙江大学);Microsoft Research Asia(微软亚洲研究院)

Yongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li, Weiming Lu, Yueting Zhuang

AI总结:

HuggingGPT提出以ChatGPT作为控制器进行任务规划、模型选择、执行与结果汇总,从而协同Hugging Face中的多种AI模型,解决跨模态复杂AI任务,为通向通用人工智能提供新路径。

摘要:

解决跨领域、跨模态的复杂AI任务是通向通用人工智能的关键一步。尽管已有大量适用于不同领域和模态的AI模型,但它们无法自主处理复杂AI任务。考虑到大语言模型(LLMs)在语言理解、生成、交互和推理方面展现出卓越能力,我们主张LLMs可以充当控制器来管理现有AI模型以解决复杂AI任务,并以语言作为通用接口来实现这一目标。基于这一理念,我们提出HuggingGPT,一个由LLM驱动的智能体,它利用LLMs(例如ChatGPT)连接机器学习社区(例如Hugging Face)中的各种AI模型来解决AI任务。具体而言,我们使用ChatGPT在接收用户请求时进行任务规划,根据Hugging Face中可用的模型功能描述选择模型,用所选AI模型执行每个子任务,并根据执行结果汇总响应。通过利用ChatGPT强大的语言能力和Hugging Face中丰富的AI模型,HuggingGPT能够处理跨越不同模态和领域的广泛复杂AI任务,并在语言、视觉、语音及其他具有挑战性的任务上取得令人印象深刻的结果,这为实现通用人工智能开辟了一条新途径。

英文摘要:

Solving complicated AI tasks with different domains and modalities is a key step toward artificial general intelligence. While there are numerous AI models available for various domains and modalities, they cannot handle complicated AI tasks autonomously. Considering large language models (LLMs) have exhibited exceptional abilities in language understanding, generation, interaction, and reasoning, we advocate that LLMs could act as a controller to manage existing AI models to solve complicated AI tasks, with language serving as a generic interface to empower this. Based on this philosophy, we present HuggingGPT, an LLM-powered agent that leverages LLMs (e.g., ChatGPT) to connect various AI models in machine learning communities (e.g., Hugging Face) to solve AI tasks. Specifically, we use ChatGPT to conduct task planning when receiving a user request, select models according to their function descriptions available in Hugging Face, execute each subtask with the selected AI model, and summarize the response according to the execution results. By leveraging the strong language capability of ChatGPT and abundant AI models in Hugging Face, HuggingGPT can tackle a wide range of sophisticated AI tasks spanning different modalities and domains and achieve impressive results in language, vision, speech, and other challenging tasks, which paves a new way towards the realization of artificial general intelligence.

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

↑