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