Solving complicated AI tasks with different domains and modalities is a key step toward artificial general intelligence (AGI). While there are abundant AI models available for different domains and modalities, they cannot handle complicated AI tasks. Considering large language models (LLMs) have exhibited exceptional ability 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 and language could be a generic interface to empower this. Based on this philosophy, we present HuggingGPT, a system that leverages LLMs (e.g., ChatGPT) to connect various AI models in machine learning communities (e.g., HuggingFace) 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 HuggingFace, 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 HuggingFace, HuggingGPT is able to cover numerous sophisticated AI tasks in different modalities and domains and achieve impressive results in language, vision, speech, and other challenging tasks, which paves a new way towards AGI.
翻译:解决不同领域和模态下的复杂AI任务是实现人工通用智能(AGI)的关键步骤。尽管有大量的AI模型可用于不同的领域和模态,但它们无法处理复杂的AI任务。考虑到大型语言模型(LLMs)在语言理解、生成、交互和推理方面表现出了卓越的能力,我们认为LLMs可以作为控制器来管理现有的AI模型以解决复杂的AI任务,而语言可以成为通用接口来实现这一点。基于这种哲学,我们提出了HuggingGPT,它是一种利用LLMs(例如ChatGPT)将机器学习社区中的各种AI模型(例如HuggingFace)连接起来以解决AI任务的系统。具体而言,我们使用ChatGPT在收到用户请求时进行任务规划,根据HuggingFace中的功能描述选择模型,使用选定的AI模型执行每个子任务,并根据执行结果总结响应。借助ChatGPT的强大语言能力和HuggingFace中丰富的AI模型,HuggingGPT能够涵盖不同模态和领域中的许多复杂的AI任务,并在语言、视觉、语音和其他具有挑战性的任务中取得了惊人的成果,为实现AGI开辟了新的道路。