atlas

Research map / Large language models / Agents, code and math

An LLM Compiler for Parallel Function Calling

ICML 2024 · Large language models › Agents, code and math · approach: Reasoning benchmarks and platforms · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces LLMCompiler, a compiler-inspired framework (planner, task fetching unit, executor) that plans DAGs of function calls and runs independent ones in parallel, reducing latency and cost versus ReAct.

Problem

Sequential reason-act loops such as ReAct make multi-function LLM calling slow, costly, and sometimes inaccurate due to repeated calls and premature stopping.

Approach

A Planner LLM emits a task DAG with placeholder variables for dependencies; a Task Fetching Unit substitutes outputs and dispatches ready tasks to an Executor that runs them concurrently, with optional replanning from executor feedback and streamed planning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Execute independent function calls in parallel with LLMCompiler rather than sequentially with ReActHotpotQA comparison dev, GPT · HotpotQA comparison devlatency: 7.12 -> 3.95; 1.80×Helped
Execute independent function calls in parallel with LLMCompiler rather than sequentially with ReActMovie Recommendation, GPT · Movie Recommendationcost reduction: 3.37×Helped
Use LLMCompiler instead of ReAct†ParallelQA, LLaMA-2 70B · ParallelQAaccuracy: 59.59 -> 68.14Helped
Use LLMCompiler replanning and parallel execution instead of Tree-of-ThoughtsGame of 24, GPT-4 · Game of 24latency: 241.2 -> 83.6; 2.89×Helped
Explore all ten search results using parallel function callsWebShop, gpt-3.5-turbo · WebShopsuccess rate: 19.8 -> 48.2Helped
Add ReAct-specific prompting to reduce early stopping (ablation)ReAct on Movie Recommendation, GPT · Movie Recommendationaccuracy: 68.60 -> 72.47Helped
Add planner streaming so tasks execute as soon as produced (ablation)LLMCompiler on ParallelQA · ParallelQAlatency: 21.72 -> 16.69; 1.30×Helped
Add planner streaming so tasks execute as soon as produced (ablation)LLMCompiler on HotpotQA · HotpotQAlatency: 4.00 -> 3.95; 1.01×Helped
Add planner streaming so tasks execute as soon as produced (ablation)LLMCompiler on Movie Recommendation · Movie Recommendationlatency: 5.64 -> 5.47; 1.03×Helped
Avoid repetitive function calls with LLMCompiler instead of ReActHotpotQA examples with more than four ReAct calls, LLaMA-2 70B · HotpotQAaccuracy: less than 10% -> around 50%Helped
Replace ReAct with LLMCompiler on HotpotQA comparison devHotpotQA comparison dev, LLaMA-2 70B · HotpotQA comparison devaccuracy: 54.40 -> 57.83Helped
Use LLMCompiler instead of ReAct† on WebShopWebShop, gpt-3.5-turbo · WebShoplatency: 5.98 -> 10.48Hurt

Surprising findings

Limitations

Experimental setup

Datasets: HotpotQA Movie Recommendation ParallelQA Game of 24 WebShop

Benchmarks: HotpotQA Movie Recommendation ParallelQA Game of 24 WebShop

Metrics: accuracy end-to-end latency speedup token cost success rate score

Baselines: ReAct OpenAI parallel function calling Tree-of-Thoughts LATS LASER ReWOO TPTU HuggingGPT ViperGPT

Builds on: ReAct Tree-of-Thoughts OpenAI parallel function calling Skeleton-of-Thought

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy