UC Berkeley Researchers Introduce LLMCompiler: An LLM Compiler that Optimizes the Parallel Function Calling Performance of LLMs

Add as a preferredsource on Google

Multi-function calling tasks can be slow and inaccurate when using LLMs. To address this problem, a team of researchers from UC Berkeley, ICSI, and LBNL have developed LLMCompiler, a framework designed to enhance the efficiency and accuracy of LLMs in such tasks. LLMCompiler enables parallel execution of function calls through its components: LLM Planner, Task Fetching Unit, and Executor. 

LLMCompiler is a framework that enables LLMs to perform parallel function calls, enhancing efficiency and accuracy in multi-function tasks. Comprising an LLM Planner, Task Fetching Unit, and Executor, LLMCompiler outperforms ReAct and OpenAI’s parallel function calling feature in benchmarking, displaying consistent latency speedup and accuracy improvement. Compatible with open-source models like LLaMA-2 and OpenAI’s GPT models, LLMCompiler addresses LLM limitations, such as knowledge cutoffs and arithmetic skills, providing an optimized solution for executing function calls. The framework is open-sourced, facilitating further research and development.

Open Source OmniParseBench ยท by Datalab ยท Apache 2.0 Benchmark any document parser on tables, math, forms and handwriting. Yes/no tests per page across text, table and layout families. Score vendor parsers on the Hugging Face dataset or your own PDFs with score and predict primitives. โ˜… Star on GitHub Multi-column, rotated text, degraded scans ยท tagged by script and language github.com/datalab-to/omni_parse_bench Fork it ยท Add your parser

Recent advancements in LLMs extend their capabilities beyond content generation to executing function calls, overcoming inherent limitations. Comprising an LLM Planner, Task Fetching Unit, and Executor, the LLMCompiler optimizes function call orchestration. Benchmarking results demonstrate consistent latency, cost, and accuracy improvements compared to ReAct and OpenAI’s parallel function calling. 

LLMCompiler, a framework for parallel function calling in LLMs, consists of an LLM Planner, Task Fetching Unit, and Executor. The LLM Planner formulates execution strategies, the Task Fetching Unit dispatches and updates tasks, and the Executor executes them in parallel. Compatible with open-source models like LLaMA-2 and OpenAI’s GPT, LLMCompiler exhibits latency speedup, cost savings, and accuracy improvement over ReAct. Supporting dynamic replanning for adaptive execution, the open-sourced framework offers efficient orchestration of multi-function calling tasks in LLMs.

Benchmarked on various tasks, including complex dependencies and dynamic replanning needs, LLMCompiler consistently outperformed ReAct, achieving up to 3.7x latency speedup, 6.7x cost savings, and 9% accuracy improvement. In the Game of 24 benchmarks, LLMCompiler achieved a 2x speedup compared to Tree-of-Thoughts and outperformed OpenAI’s parallel function calling feature with up to 1.35x latency gain. The open-sourced code facilitates further exploration and development.

In conclusion, the LLMCompiler is a promising framework that significantly improves efficiency, cost, and accuracy for parallel function calling in LLMs. It outperforms existing solutions and has the potential to provide efficient and accurate execution of large-scale tasks in software development using LLMs. Its open-source nature makes it accessible to developers who want to leverage its benefits.

LLMCompiler should be explored further while focusing on an operating systems perspective for LLMs. It could lead to advancements in large-scale LLM-based software development. It is recommended to investigate the achievable speedup with LLMCompiler compared to ReAct while considering both planning and execution latencies. Incorporating parallel function calling in LLMCompiler seems promising for efficiently executing complex tasks using LLMs. Ongoing development and exploration of LLMCompiler can contribute to the progression of LLM-based software.


Check out theย Paper andย Github.ย All credit for this research goes to the researchers of this project. Also,ย donโ€™t forget to joinย our 33k+ ML SubReddit,ย 41k+ Facebook Community,ย Discord Channel,ย andย Email Newsletter, where we share the latest AI research news, cool AI projects, and more.

If you like our work, you will love our newsletter..

+ posts

Hello, My name is Adnan Hassan. I am a consulting intern at Marktechpost and soon to be a management trainee at American Express. I am currently pursuing a dual degree at the Indian Institute of Technology, Kharagpur. I am passionate about technology and want to create new products that make a difference.