paper-with-me

Papers

Hammer: Robust Function-Calling for On-Device Language Models via Function Masking

2024-10-06 · Qiqiang Lin, Muning Wen, Qiuying Peng, Guanyu Nie, Junwei Liao, Xiaoyun Mo, Jiamu Zhou, Cheng Cheng, Yin Zhao, Jun Wang, Weinan Zhang

Large language models have demonstrated impressive value in performing as autonomous agents when equipped with external tools and API calls. Nonetheless, effectively harnessing their potential for executing complex tasks crucially relies on enhancements in their function calling capabilities. This paper identifies a critical gap in existing function calling models, where performance varies significantly across benchmarks, often due to being misled by specific naming conventions. To address such an issue, we introduce Hammer, a novel family of foundation models specifically engineered for on-device function calling. Hammer employs an augmented dataset that enhances models' sensitivity to irrelevant functions and incorporates function masking techniques to minimize misleading. Our empirical evaluations reveal that Hammer not only outperforms larger models but also demonstrates robust generalization across diverse benchmarks, achieving sota results. Our open source contributions include a specialized dataset for irrelevance detection, a tuning framework for enhanced generalization, and the Hammer models, establishing a new standard for function calling performance.

📄 PDF Abstract BibTeX arXiv:2410.04587

Code (1)

MadeAgents/Hammer 공식 구현 pytorch

Similar Papers 제목 키워드 기반

HammerBench: Fine-Grained Function-Calling Evaluation in Real Mobile Device Scenarios

2024-12-21 · Jiamu Zhou, Muning Wen, Xiaoyun Mo, Haoyu Zhang 외

Evaluating the performance of LLMs in multi-turn human-agent interactions presents significant challenges, particularly due to the complexity and variability of user behavior. In this paper, we introduce HammerBench, a n…

Benchmarking

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

2024-11-23 · Varatheepan Paramanayakam, Andreas Karatzas, Iraklis Anagnostopoulos, Dimitrios Stamoulis

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 make…

AgentWeave: Routing Before Reasoning for Efficient Function Calling in Tool-Rich Language Models

2026-08-24 · Saurav Singla, Aarav Singla, Advik Gupta, Parnika Gupta arxiv

Large language models increasingly operate over large collections of tools, functions, APIs, and specialized agents. As the candidate action space grows, a function-calling model must process more schemas, consume more p…

Octopus v2: On-device language model for super agent

2024-04-02 · Wei Chen, Zhiyuan Li

Language models have shown effectiveness in a variety of software applications, particularly in tasks related to automatic workflow. These models possess the crucial ability to call functions, which is essential in creat…

Language ModelingLanguage ModellingRAG

CarbonCall: Sustainability-Aware Function Calling for Large Language Models on Edge Devices

2025-04-29 · Varatheepan Paramanayakam, Andreas Karatzas, Iraklis Anagnostopoulos, Dimitrios Stamoulis

Large Language Models (LLMs) enable real-time function calling in edge AI systems but introduce significant computational overhead, leading to high power consumption and carbon emissions. Existing methods optimize for pe…