Skip to main navigation Skip to search Skip to main content

ZhugeSQL: Multi-LLM Collaborative Inference Framework for Fintech Text-to-SQL Queries

  • Shijing Hu
  • , Xuancheng Ren
  • , Yi Yuan
  • , Xiaozheng Du
  • , Zhihui Lu
  • , Qiang Duan

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

In the digital age, data has emerged as a pivotal driver in the fintech domain, underpinning critical applications such as risk assessment, investment decision-making, and market trend forecasting. However, existing data querying approaches face significant challenges, with traditional Text-to-SQL methods and underlying technologies, such as LSTM and Transformer models, exhibiting notable limitations. These models often rely heavily on extensive training data and struggle to achieve a balance between accuracy and inference speed. To address these issues, this paper introduces ZhugeSQL, an innovative multi-LLM collaborative Inference framework designed to enhance the performance of Text-to-SQL tasks. ZhugeSQL leverages a simulated database to meticulously evaluate model performance and employs a cosine similarity algorithm to identify semantically similar questions. Based on rigorous scoring criteria, it dynamically selects the most suitable language model for each query. Additionally, ZhugeSQL incorporates prompt learning techniques to further improve query accuracy. Experimental results validate the efficacy of ZhugeSQL, demonstrating superior SQL generation accuracy compared to mainstream models such as SQLCoder and DeepSeek-22B. In terms of inference speed, ZhugeSQL achieves significant improvements over DeepSeek-22B, while maintaining a high level of accuracy. Furthermore, ZhugeSQL eliminates the need for complex model fine-tuning or retraining, substantially reducing computational resource requirements. These findings highlight ZhugeSQL as a practical and efficient solution for addressing data querying challenges in the fintech sector.

Original languageEnglish (US)
Title of host publicationService Science - 18th International Conference, ICSS 2025, Revised Selected Papers
EditorsXuanzhe Liu, Pengcheng Zhang, Yutao Ma
PublisherSpringer Science and Business Media Deutschland GmbH
Pages436-446
Number of pages11
ISBN (Print)9789819515806
DOIs
StatePublished - 2026
EventCCF 18th International Conference on Service Science, CCF ICSS 2025 - Nanjing, China
Duration: May 9 2025May 11 2025

Publication series

NameCommunications in Computer and Information Science
Volume2626 CCIS
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

ConferenceCCF 18th International Conference on Service Science, CCF ICSS 2025
Country/TerritoryChina
CityNanjing
Period5/9/255/11/25

All Science Journal Classification (ASJC) codes

  • General Computer Science
  • General Mathematics

Fingerprint

Dive into the research topics of 'ZhugeSQL: Multi-LLM Collaborative Inference Framework for Fintech Text-to-SQL Queries'. Together they form a unique fingerprint.

Cite this