Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Less is More: Optimizing Function Calling for LLM Execution on Edge Devices

About

The advanced function-calling capabilities of foundation models open up new possibilities for deploying agents to perform complex API tasks. However, managing large amounts of data and interacting with numerous APIs makes function calling hardware-intensive and costly, especially on edge devices. Current Large Language Models (LLMs) struggle with function calling at the edge because they cannot handle complex inputs or manage multiple tools effectively. This results in low task-completion accuracy, increased delays, and higher power consumption. In this work, we introduce Less-is-More, a novel fine-tuning-free function-calling scheme for dynamic tool selection. Our approach is based on the key insight that selectively reducing the number of tools available to LLMs significantly improves their function-calling performance, execution time, and power efficiency on edge devices. Experimental results with state-of-the-art LLMs on edge hardware show agentic success rate improvements, with execution time reduced by up to 70% and power consumption by up to 40%.

Varatheepan Paramanayakam, Andreas Karatzas, Iraklis Anagnostopoulos, Dimitrios Stamoulis• 2024

Related benchmarks

TaskDatasetResultRank
Function SelectionTinyAgent
Function Selection Accuracy23.7
50
Function SelectionTaskBench HuggingFace
Function Selection Accuracy12.9
45
Tool Retrieval and Function SelectionTaskbench-HF
MRR0.3
18
Tool Retrieval and Function SelectionTaskbench DL
Function Selection Accuracy18.9
9
Tool RetrievalTinyAgent
MRR36
9
Tool Retrieval and Function SelectionTinyAgent
Function Selection Accuracy0.237
9
Tool Retrieval and Function SelectionTaskbench-MM
Function Selection Accuracy7.6
9
Showing 7 of 7 rows

Other info

Follow for update