cs.IRApr 7, 2026

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

Authors: Xing Tang, Hao Chen, Shiwei Li, Fuyuan Lyu, Weijie Shi, Lingjie Li, Dugang Liu, Weihong Luo, 

Organizations: Shenzhen Technology University Shenzhen, China · FiT, Tencent Shenzhen, China · Huazhong University of Science and Technology Wuhan, China · McGill University Montreal, Canada · 

Abstract

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 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.

Figures & tables

Explore similar work

CardsList
  1. BizFinBench.v2: Towards Reliable LLMs in Finance via Real-User Data and Offline/Online Bilingual Evaluation

    Jan 10, 2026Xin Guo, Rongjunchen Zhang, Guilong Lu +4Financial ServicesMultilingual Language Model Evaluation

  2. Unlocking Data Value in Finance: A Study on Distillation and Difficulty-Aware Training

    Mar 7, 2026Chuxue Cao, Honglin Lin, Zhanping Zhong +5Financial Language Model EvaluationLLM Training

  3. Fighting Numerical Hallucinations via Data-centric Compilation for Online Financial QA

    May 29, 2026Hao Chen, Xing Tang, Qirui Liu +6Retrieval-Augmented GenerationHallucination in Language Models