mlsanityData to 7 Oct 2026

Small Models, Big Tasks: An Exploratory Empirical Study on Small Language Models for Function Calling

arXiv 2504.19277 ↗First posted 27 Apr 2025cs.AI cs.SEcited by 7

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

  1. 2025ComplexFuncBench: Exploring Multi-Step and Constrained Function Calling under Long-Context Scenario17 Jan
  2. 2024Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Tasks27 Jun
  3. 2024APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasets26 Jun
  4. 2024API-BLEND: A Comprehensive Corpora for Training and Benchmarking API LLMs23 Feb
  5. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
  6. 2023ToolAlpaca: Generalized Tool Learning for Language Models with 3000 Simulated Cases8 Jun

Other references · 27

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  4. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  5. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  6. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
  9. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
  10. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  11. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  12. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
15 more
  1. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  2. 2019Generalizing from a Few Examples: A Survey on Few-Shot Learningcited by 462
  3. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  4. 2023A Survey on Model Compression for Large Language Modelscited by 263
  5. 2022A Comprehensive Survey of Few-shot Learning: Evolution, Applications, Challenges, and Opportunitiescited by 162
  6. 2024A Comprehensive Survey of Small Language Models in the Era of Large Language Models: Techniques, Enhancements, Applications, Collaboration with LLMs, and Trustworthinesscited by 125
  7. 2024A Review on Edge Large Language Models: Design, Execution, and Applicationscited by 98
  8. 2024On Protecting the Data Privacy of Large Language Models (LLMs): A Surveycited by 91
  9. 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 74
  10. 2024A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systemscited by 74
  11. 2022CCTEST: Testing and Repairing Code Completion Systemscited by 35
  12. 2024DeepEdit: Knowledge Editing as Decoding with Constraintscited by 33
  13. 2024A Survey of Small Language Modelscited by 31
  14. 2024An Empirical Study on Challenges for LLM Application Developerscited by 17
  15. 2023Developer-Intent Driven Code Comment Generationcited by 16

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 3.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025LongFuncEval: Measuring the effectiveness of long context models for function calling
  2. 2024Less is More: Optimizing Function Calling for LLM Execution on Edge Devices
  3. 2024Improving Small-Scale Large Language Models Function Calling for Reasoning Tasks
  4. 2024TinyAgent: Function Calling at the Edge
  5. 2024Enhancing Function-Calling Capabilities in LLMs: Strategies for Prompt Formats, Data Integration, and Multilingual Translation
  6. 2024Hammer: Robust Function-Calling for On-Device Language Models via Function Masking
  7. 2025Self-Guided Function Calling in Large Language Models via Stepwise Experience Recall
  8. 2026Small Reasoning Models are Instruction Followers in Function Calling