Small Models, Big Tasks: An Exploratory Empirical Study on Small Language Models for Function Calling
On the map: LLM agents and tool use → Tool learning and function calling
also in 1 more
Abstract (arXiv)
Function calling is a complex task with widespread applications in domains such as information retrieval, software engineering and automation. For example, a query to book the shortest flight from New York to London on January 15 requires identifying the correct parameters to generate accurate function calls. Large Language Models (LLMs) can automate this process but are computationally expensive and impractical in resource-constrained settings. In contrast, Small Language Models (SLMs) can operate efficiently, offering faster response times, and lower computational demands, making them potential candidates for function calling on edge devices. In this exploratory empirical study, we evaluate the efficacy of SLMs in generating function calls across diverse domains using zero-shot, few-shot, and fine-tuning approaches, both with and without prompt injection, while also providing the finetuned models to facilitate future applications. Furthermore, we analyze the model responses across a range of metrics, capturing various aspects of function call generation. Additionally, we perform experiments on an edge device to evaluate their performance in terms of latency and memory usage, providing useful insights into their practical applicability. Our findings show that while SLMs improve from zero-shot to few-shot and perform best with fine-tuning, they struggle significantly with adhering to the given output format. Prompt injection experiments further indicate that the models are generally robust and exhibit only a slight decline in performance. While SLMs demonstrate potential for the function call generation task, our results also highlight areas that need further refinement for real-time functioning.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 33 of its 56 references that are in the map. First posted on arXiv 27 Apr 2025.
Builds on
33 of 56 references.
Closest ancestors · 6
Same direction, newest first
- 2025ComplexFuncBench: Exploring Multi-Step and Constrained Function Calling under Long-Context Scenario17 Jan
- 2024Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Tasks27 Jun
- 2024APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasets26 Jun
- 2024API-BLEND: A Comprehensive Corpora for Training and Benchmarking API LLMs23 Feb
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
- 2023ToolAlpaca: Generalized Tool Learning for Language Models with 3000 Simulated Cases8 Jun
Other references · 27
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
15 more
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2019Generalizing from a Few Examples: A Survey on Few-Shot Learningcited by 462
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2023A Survey on Model Compression for Large Language Modelscited by 263
- 2022A Comprehensive Survey of Few-shot Learning: Evolution, Applications, Challenges, and Opportunitiescited by 162
- 2024A Comprehensive Survey of Small Language Models in the Era of Large Language Models: Techniques, Enhancements, Applications, Collaboration with LLMs, and Trustworthinesscited by 125
- 2024A Review on Edge Large Language Models: Design, Execution, and Applicationscited by 98
- 2024On Protecting the Data Privacy of Large Language Models (LLMs): A Surveycited by 91
- 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 74
- 2024A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systemscited by 74
- 2022CCTEST: Testing and Repairing Code Completion Systemscited by 35
- 2024DeepEdit: Knowledge Editing as Decoding with Constraintscited by 33
- 2024A Survey of Small Language Modelscited by 31
- 2024An Empirical Study on Challenges for LLM Application Developerscited by 17
- 2023Developer-Intent Driven Code Comment Generationcited by 16
Built on by
Citing papers per year: 2025: 4; 2026: 3.
7 papers.
- 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Surveycited by 195
- 2025FunReason: Enhancing Large Language Models' Function Calling via Self-Refinement Multiscale Loss and Automated Data Refinementcited by 5
- 2025SWEnergy: An Empirical Study on Energy Efficiency in Agentic Issue Resolution Frameworks with SLMscited by 5
- 2026Breaking MCP with Function Hijacking Attacks: Novel Threats for Function Calling and Agentic Modelscited by 2
- 2025DisCEdge: Distributed Context Management for Large Language Models at the Edgecited by 0
- 2026AgentFloor: How Far Up the tool use Ladder Can Small Open-Weight Models Go?cited by 0
- 2026Extending FunctionGemma for Practical On-Device Mobile Function Callingcited by 0
- 2026Extending FunctionGemma for Practical On-Device Mobile Function Calling21 Sep 2026
- 2026AgentFloor: How Far Up the tool use Ladder Can Small Open-Weight Models Go?1 May 2026
- 2026Breaking MCP with Function Hijacking Attacks: Novel Threats for Function Calling and Agentic Models22 Apr 2026
- 2025SWEnergy: An Empirical Study on Energy Efficiency in Agentic Issue Resolution Frameworks with SLMs10 Dec 2025
- 2025DisCEdge: Distributed Context Management for Large Language Models at the Edge27 Nov 2025
- 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Survey2 Sep 2025
- 2025FunReason: Enhancing Large Language Models' Function Calling via Self-Refinement Multiscale Loss and Automated Data Refinement26 May 2025
Similar, not cited
Close in wording, no citation either way
- 2025LongFuncEval: Measuring the effectiveness of long context models for function calling
- 2024Less is More: Optimizing Function Calling for LLM Execution on Edge Devices
- 2024Improving Small-Scale Large Language Models Function Calling for Reasoning Tasks
- 2024TinyAgent: Function Calling at the Edge
- 2024Enhancing Function-Calling Capabilities in LLMs: Strategies for Prompt Formats, Data Integration, and Multilingual Translation
- 2024Hammer: Robust Function-Calling for On-Device Language Models via Function Masking
- 2025Self-Guided Function Calling in Large Language Models via Stepwise Experience Recall
- 2026Small Reasoning Models are Instruction Followers in Function Calling