Skip to main navigation Skip to search Skip to main content

Alopex: a computational framework for enabling on-device function calls with LLMs

  • Yide Ran
  • , Zhaozhuo Xu
  • , Yuhang Yao
  • , Zijian Hu
  • , Shanshan Han
  • , Han Jin
  • , Alay Shah
  • , Jipeng Zhang
  • , Dimitris Stripelis
  • , Tong Zhang
  • , Salman Avestimehr
  • , Chaoyang He

Research output: Contribution to journalJournal Articlepeer-review

Abstract

The rapid advancement of Large Language Models (LLMs) has led to their increased integration into mobile devices for personalized assistance, which enables LLMs to call external API functions to enhance their performance. However, challenges such as data scarcity, ineffective question formatting, and catastrophic forgetting hinder the development of on-device LLM agents. To tackle these issues, we propose Alopex, a framework that enables precise on-device function calls using the Fox LLM. Alopex introduces a logic-based method for generating high-quality training data and a novel “description question-output” format for fine-tuning, reducing risks of function information leakage. Additionally, a data mixing strategy is used to mitigate catastrophic forgetting, combining function call data with textbook datasets to enhance performance in various tasks. Experimental results show that Alopex improves function call accuracy and significantly reduces catastrophic forgetting, providing a robust solution for integrating function call capabilities into LLMs without manual intervention.
Original languageEnglish
Pages (from-to)1-12
JournalarXiv
Volumeabs/2411.05209
DOIs
Publication statusPublished - 7 Nov 2024

Fingerprint

Dive into the research topics of 'Alopex: a computational framework for enabling on-device function calls with LLMs'. Together they form a unique fingerprint.

Cite this