Alopex: A Computational Framework for Enabling On-Device Function Calls with LLMs

Yide Ran, Zhaozhuo Xu, Yuhang Yao, Zijian Hu, Shanshan Han +7 more
11/7/2024
cs.AIcs.CL

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ran2024alopex,
  title  = {Alopex: A Computational Framework for Enabling On-Device Function Calls with LLMs},
  author = {Yide Ran and Zhaozhuo Xu and Yuhang Yao and Zijian Hu and Shanshan Han and Han Jin and Alay Dilipbhai Shah and Jipeng Zhang and Dimitris Stripelis and Tong Zhang and Salman Avestimehr and Chaoyang He},
  year   = {2024},
  eprint = {2411.05209},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.05209v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.05209.svg)](https://codeofpaper.com/paper/2411.05209)

Discussion