[Paper Review] TaskMatrix.AI: Completing Tasks by Connecting Foundation Models with Millions of APIs
TaskMatrix.AI proposes an ecosystem that uses a multimodal conversational foundation model as a brain to orchestrate millions of APIs and off-the-shelf models for completing digital and physical tasks, with learnable alignment and API-driven execution.
Artificial Intelligence (AI) has made incredible progress recently. On the one hand, advanced foundation models like ChatGPT can offer powerful conversation, in-context learning and code generation abilities on a broad range of open-domain tasks. They can also generate high-level solution outlines for domain-specific tasks based on the common sense knowledge they have acquired. However, they still face difficulties with some specialized tasks because they lack enough domain-specific data during pre-training or they often have errors in their neural network computations on those tasks that need accurate executions. On the other hand, there are also many existing models and systems (symbolic-based or neural-based) that can do some domain-specific tasks very well. However, due to the different implementation or working mechanisms, they are not easily accessible or compatible with foundation models. Therefore, there is a clear and pressing need for a mechanism that can leverage foundation models to propose task solution outlines and then automatically match some of the sub-tasks in the outlines to the off-the-shelf models and systems with special functionalities to complete them. Inspired by this, we introduce TaskMatrix.AI as a new AI ecosystem that connects foundation models with millions of APIs for task completion. Unlike most previous work that aimed to improve a single AI model, TaskMatrix.AI focuses more on using existing foundation models (as a brain-like central system) and APIs of other AI models and systems (as sub-task solvers) to achieve diversified tasks in both digital and physical domains. As a position paper, we will present our vision of how to build such an ecosystem, explain each key component, and use study cases to illustrate both the feasibility of this vision and the main challenges we need to address next.
Motivation & Objective
- Motivate the need to connect foundation models with diverse APIs to handle domain-specific tasks beyond pre-trained data.
- Propose an architecture that uses a core multimodal foundation model to generate executable API-driven plans.
- Define an API platform with a unified documentation schema to enable scalable API integration.
- Introduce mechanisms for learning from feedback to align the foundation model and API selector with available APIs.
- Demonstrate potential applications across multimodal content creation, office automation, robotics, and cloud services.
Proposed method
- Define a four-component architecture: Multimodal Conversational Foundation Model (MCFM), API Platform, API Selector, and API Executor.
- MCFM generates a solution outline and action codes based on user instructions, context, and API availability.
- API Platform provides a unified schema for API documentation to facilitate API usage and composition.
- API Selector semantically retrieves relevant APIs and supports modular domain-specific packages.
- API Executor runs the generated action codes, with a verification step to ensure task satisfaction.
- Incorporate Reinforcement Learning from Human Feedback (RLHF) to improve API comprehension and task planning, plus Feedback to API Developers to improve API documentation.
Experimental results
Research questions
- RQ1How can a foundation model be used to generate executable task outlines that map onto a large collection of APIs?
- RQ2What architectural mechanisms enable scalable API selection, execution, and verification for multimodal tasks?
- RQ3How can RLHF and developer feedback improve alignment between the core model and API documentation over time?
- RQ4What practical applications demonstrate the feasibility of linking foundation models with millions of APIs across digital and physical domains.
Key findings
- The architecture enables sequential task solving by generating a solution outline, selecting APIs, and executing action codes.
- A unified API documentation schema and API platform facilitate easy integration and reuse of APIs by the foundation model.
- RLHF and feedback to API developers promote faster learning, better API usage, and improved documentation over time.
- The approach supports both digital and physical tasks, including content generation, office automation, robotics, and IoT/computing tasks.
- The system emphasizes interpretability through explicit action codes and API outcomes, enabling traceable task execution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.