arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.05387cs.IRcs.CL
收藏

大型语言模型在在线金融问答中的数据驱动函数调用改进

Data-Driven Function Calling Improvements in Large Language Model for Online Financial QA

Shenzhen Technology University(深圳技术大学);FiT, Tencent(腾讯FiT);Huazhong University of Science and Technology(华中科技大学);McGill University(麦吉尔大学);The Hong Kong University of Science and Technology(香港科技大学);Shenzhen University(深圳大学)

Xing Tang, Hao Chen, Shiwei Li, Fuyuan Lyu, Weijie Shi, Lingjie Li, Dugang Liu, Weihong Luo, Xiku Du, Xiuqiang He

AI总结:

本文提出数据驱动管道提升LLM在金融场景中的函数调用能力,通过构建数据集、数据增强和模型训练,解决通用LLM在金融领域适应性差的问题。

摘要:

大型语言模型(LLMs)已被广泛应用于工业应用。同时,金融领域内大量API资产分散在各种功能中。一个在线金融问答系统可以利用LLMs和私有API提供及时的财务分析和信息。关键在于为LLM配备针对金融场景的函数调用能力。然而,通用LLM需要定制化的金融API来调用,并且难以适应金融领域。此外,在线用户查询多样且包含分布外参数,相较于所需函数输入参数,这使通用LLM更难服务在线用户。本文提出一个数据驱动的管道来增强LLM在在线部署金融问答中的函数调用能力,包括数据集构建、数据增强和模型训练。具体而言,我们基于先前研究构建数据集并定期更新,结合查询和一种名为AugFC的数据增强方法。添加与用户查询相关的样本将以数据驱动的方式利用我们的金融工具集,AugFC探索可能的参数值以增强更新后的数据集的多样性。然后,我们采用两步方法训练LLM,使其能够使用我们的金融功能。在现有离线数据集上的广泛实验以及在线场景的部署,展示了我们管道的优越性。相关管道已应用于YuanBao(https://yuanbao.tencent.com/chat/)的金融问答中,该平台是中国最大的聊天平台之一。

英文摘要:

Large language models (LLMs) have been incorporated into numerous industrial applications. Meanwhile, a vast array of API assets is scattered across various functions in the financial domain. An online financial question-answering system can leverage both LLMs and private APIs to provide timely financial analysis and information. The key is equipping the LLM model with function calling capability tailored to a financial scenario. However, a generic LLM requires customized financial APIs to call and struggles to adapt to the financial domain. Additionally, online user queries are diverse and contain out-of-distribution parameters compared with the required function input parameters, which makes it more difficult for a generic LLM to serve online users. In this paper, we propose a data-driven pipeline to enhance function calling in LLM for our online, deployed financial QA, comprising dataset construction, data augmentation, and model training. Specifically, we construct a dataset based on a previous study and update it periodically, incorporating queries and an augmentation method named AugFC. The addition of user query-related samples will \textit{exploit} our financial toolset in a data-driven manner, and AugFC explores the possible parameter values to enhance the diversity of our updated dataset. Then, we train an LLM with a two-step method, which enables the use of our financial functions. Extensive experiments on existing offline datasets, as well as the deployment of an online scenario, illustrate the superiority of our pipeline. The related pipeline has been adopted in the financial QA of YuanBao\footnote{https://yuanbao.tencent.com/chat/}, one of the largest chat platforms in China.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑