Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Tasks

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Abdelaziz, Ibrahim, Basu, Kinjal, Agarwal, Mayank, Kumaravel, Sadhana, Stallone, Matthew, Panda, Rameswar, Rizk, Yara, Bhargav, GP, Crouse, Maxwell, Gunasekara, Chulaka, Ikbal, Shajith, Joshi, Sachin, Karanam, Hima, Kumar, Vineet, Munawar, Asim, Neelam, Sumit, Raghu, Dinesh, Sharma, Udit, Soria, Adriana Meza, Sreedhar, Dheeraj, Venkateswaran, Praveen, Unuvar, Merve, Cox, David, Roukos, Salim, Lastras, Luis, Kapanipathi, Pavan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929403807662080
author Abdelaziz, Ibrahim
Basu, Kinjal
Agarwal, Mayank
Kumaravel, Sadhana
Stallone, Matthew
Panda, Rameswar
Rizk, Yara
Bhargav, GP
Crouse, Maxwell
Gunasekara, Chulaka
Ikbal, Shajith
Joshi, Sachin
Karanam, Hima
Kumar, Vineet
Munawar, Asim
Neelam, Sumit
Raghu, Dinesh
Sharma, Udit
Soria, Adriana Meza
Sreedhar, Dheeraj
Venkateswaran, Praveen
Unuvar, Merve
Cox, David
Roukos, Salim
Lastras, Luis
Kapanipathi, Pavan
author_facet Abdelaziz, Ibrahim
Basu, Kinjal
Agarwal, Mayank
Kumaravel, Sadhana
Stallone, Matthew
Panda, Rameswar
Rizk, Yara
Bhargav, GP
Crouse, Maxwell
Gunasekara, Chulaka
Ikbal, Shajith
Joshi, Sachin
Karanam, Hima
Kumar, Vineet
Munawar, Asim
Neelam, Sumit
Raghu, Dinesh
Sharma, Udit
Soria, Adriana Meza
Sreedhar, Dheeraj
Venkateswaran, Praveen
Unuvar, Merve
Cox, David
Roukos, Salim
Lastras, Luis
Kapanipathi, Pavan
contents Large language models (LLMs) have recently shown tremendous promise in serving as the backbone to agentic systems, as demonstrated by their performance in multi-faceted, challenging benchmarks like SWE-Bench and Agent-Bench. However, to realize the true potential of LLMs as autonomous agents, they must learn to identify, call, and interact with external tools and application program interfaces (APIs) to complete complex tasks. These tasks together are termed function calling. Endowing LLMs with function calling abilities leads to a myriad of advantages, such as access to current and domain-specific information in databases and knowledge sources, and the ability to outsource tasks that can be reliably performed by tools, e.g., a Python interpreter or calculator. While there has been significant progress in function calling with LLMs, there is still a dearth of open models that perform on par with proprietary LLMs like GPT, Claude, and Gemini. Therefore, in this work, we introduce the GRANITE-20B-FUNCTIONCALLING model under an Apache 2.0 license. The model is trained using a multi-task training approach on seven fundamental tasks encompassed in function calling, those being Nested Function Calling, Function Chaining, Parallel Functions, Function Name Detection, Parameter-Value Pair Detection, Next-Best Function, and Response Generation. We present a comprehensive evaluation on multiple out-of-domain datasets comparing GRANITE-20B-FUNCTIONCALLING to more than 15 other best proprietary and open models. GRANITE-20B-FUNCTIONCALLING provides the best performance among all open models on the Berkeley Function Calling Leaderboard and fourth overall. As a result of the diverse tasks and datasets used for training our model, we show that GRANITE-20B-FUNCTIONCALLING has better generalizability on multiple tasks in seven different evaluation datasets.
format Preprint
id arxiv_https___arxiv_org_abs_2407_00121
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Tasks
Abdelaziz, Ibrahim
Basu, Kinjal
Agarwal, Mayank
Kumaravel, Sadhana
Stallone, Matthew
Panda, Rameswar
Rizk, Yara
Bhargav, GP
Crouse, Maxwell
Gunasekara, Chulaka
Ikbal, Shajith
Joshi, Sachin
Karanam, Hima
Kumar, Vineet
Munawar, Asim
Neelam, Sumit
Raghu, Dinesh
Sharma, Udit
Soria, Adriana Meza
Sreedhar, Dheeraj
Venkateswaran, Praveen
Unuvar, Merve
Cox, David
Roukos, Salim
Lastras, Luis
Kapanipathi, Pavan
Machine Learning
Artificial Intelligence
Computation and Language
Large language models (LLMs) have recently shown tremendous promise in serving as the backbone to agentic systems, as demonstrated by their performance in multi-faceted, challenging benchmarks like SWE-Bench and Agent-Bench. However, to realize the true potential of LLMs as autonomous agents, they must learn to identify, call, and interact with external tools and application program interfaces (APIs) to complete complex tasks. These tasks together are termed function calling. Endowing LLMs with function calling abilities leads to a myriad of advantages, such as access to current and domain-specific information in databases and knowledge sources, and the ability to outsource tasks that can be reliably performed by tools, e.g., a Python interpreter or calculator. While there has been significant progress in function calling with LLMs, there is still a dearth of open models that perform on par with proprietary LLMs like GPT, Claude, and Gemini. Therefore, in this work, we introduce the GRANITE-20B-FUNCTIONCALLING model under an Apache 2.0 license. The model is trained using a multi-task training approach on seven fundamental tasks encompassed in function calling, those being Nested Function Calling, Function Chaining, Parallel Functions, Function Name Detection, Parameter-Value Pair Detection, Next-Best Function, and Response Generation. We present a comprehensive evaluation on multiple out-of-domain datasets comparing GRANITE-20B-FUNCTIONCALLING to more than 15 other best proprietary and open models. GRANITE-20B-FUNCTIONCALLING provides the best performance among all open models on the Berkeley Function Calling Leaderboard and fourth overall. As a result of the diverse tasks and datasets used for training our model, we show that GRANITE-20B-FUNCTIONCALLING has better generalizability on multiple tasks in seven different evaluation datasets.
title Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Tasks
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2407.00121