Solving complicated AI tasks with different domains and modalities is a key step toward advanced artificial intelligence. 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 framework 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 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 advanced artificial intelligence.
翻译:解决跨不同领域和模态的复杂人工智能任务,是迈向高级人工智能的关键一步。尽管针对不同领域和模态已有大量人工智能模型可用,但它们仍无法处理复杂的AI任务。考虑到大语言模型(LLMs)在语言理解、生成、交互和推理方面展现出非凡能力,我们主张LLMs可作为控制器来管理现有AI模型以解决复杂AI任务,而语言可作为实现这一目标的通用接口。基于这一理念,我们提出HuggingGPT框架,该框架利用LLMs(如ChatGPT)连接机器学习社区(如Hugging Face)中的各类AI模型来解决AI任务。具体而言,当收到用户请求时,我们使用ChatGPT进行任务规划,依据Hugging Face中可用的功能描述选择模型,用所选AI模型执行每个子任务,并根据执行结果汇总响应。通过结合ChatGPT强大的语言能力与Hugging Face丰富的AI模型,HuggingGPT能够覆盖不同模态和领域的众多复杂AI任务,并在语言、视觉、语音及其他具有挑战性的任务中取得显著成果,这为迈向高级人工智能开辟了新路径。