--- title: ControlLLM emoji: 🚀 colorFrom: purple colorTo: blue sdk: gradio sdk_version: 4.9.1 app_file: app.py pinned: false license: apache-2.0 --- # ControlLLM ControlLLM: Augmenting Large Language Models with Tools by Searching on Graphs [[Paper](https://arxiv.org/abs/2310.17796)] We present ControlLLM, a novel framework that enables large language models (LLMs) to utilize multi-modal tools for solving complex real-world tasks. Despite the remarkable performance of LLMs, they still struggle with tool invocation due to ambiguous user prompts, inaccurate tool selection and parameterization, and inefficient tool scheduling. To overcome these challenges, our framework comprises three key components: (1) a $\textit{task decomposer}$ that breaks down a complex task into clear subtasks with well-defined inputs and outputs; (2) a $\textit{Thoughts-on-Graph (ToG) paradigm}$ that searches the optimal solution path on a pre-built tool graph, which specifies the parameter and dependency relations among different tools; and (3) an $\textit{execution engine with a rich toolbox}$ that interprets the solution path and runs the tools efficiently on different computational devices. We evaluate our framework on diverse tasks involving image, audio, and video processing, demonstrating its superior accuracy, efficiency, and versatility compared to existing methods. ## 🤖 Video Demo ## 🏠 System Overview ![image/png](https://cdn-uploads.huggingface.co/production/uploads/64564b0e4a7ffb7d5a47f412/0LB4HVZlt02Qhg5xXLCop.png) ## 🎁 Major Features - Image Perception - Image Editing - Image Generation - Video Perception - Video Editing - Video Generation - Audio Perception - Audio Generation - Multi-Solution - Pointing Inputs - Resource Type Awareness ## 🖊️ Citation If you find this project useful in your research, please cite our paper: ```BibTeX @article{2023controlllm, title={ControlLLM: Augment Language Models with Tools by Searching on Graphs}, author={Liu, Zhaoyang and Lai, Zeqiang and Gao Zhangwei and Cui, Erfei and Li, Zhiheng and Zhu, Xizhou and Lu, Lewei and Chen, Qifeng and Qiao, Yu and Dai, Jifeng and Wang Wenhai}, journal={arXiv preprint arXiv:2305.10601}, year={2023} } ``` ## 🤝 Acknowledgement - Thanks to the open source of the following projects: [Hugging Face](https://github.com/huggingface)   [LangChain](https://github.com/hwchase17/langchain)   [SAM](https://github.com/facebookresearch/segment-anything)   [Stable Diffusion](https://github.com/CompVis/stable-diffusion)   [ControlNet](https://github.com/lllyasviel/ControlNet)   [InstructPix2Pix](https://github.com/timothybrooks/instruct-pix2pix)   [EasyOCR](https://github.com/JaidedAI/EasyOCR)  [ImageBind](https://github.com/facebookresearch/ImageBind)   [PixArt-alpha](https://github.com/PixArt-alpha/PixArt-alpha)   [LLaVA](https://github.com/haotian-liu/LLaVA?tab=readme-ov-file)   [Modelscope](https://modelscope.cn/my/overview)   [AudioCraft](https://github.com/facebookresearch/audiocraft)   [Whisper](https://github.com/openai/whisper)   [Llama 2](https://github.com/facebookresearch/llama)   [LLaMA](https://github.com/facebookresearch/llama/tree/llama_v1)  --- If you want to join our WeChat group, please scan the following QR Code to add our assistant as a Wechat friend:

image