English

FinStat2SQL: A Text2SQL Pipeline for Financial Statement Analysis

Artificial Intelligence 2025-11-18 v2

Abstract

Despite the advancements of large language models, text2sql still faces many challenges, particularly with complex and domain-specific queries. In finance, database designs and financial reporting layouts vary widely between financial entities and countries, making text2sql even more challenging. We present FinStat2SQL, a lightweight text2sql pipeline enabling natural language queries over financial statements. Tailored to local standards like VAS, it combines large and small language models in a multi-agent setup for entity extraction, SQL generation, and self-correction. We build a domain-specific database and evaluate models on a synthetic QA dataset. A fine-tuned 7B model achieves 61.33\% accuracy with sub-4-second response times on consumer hardware, outperforming GPT-4o-mini. FinStat2SQL offers a scalable, cost-efficient solution for financial analysis, making AI-powered querying accessible to Vietnamese enterprises.

Cite

@article{arxiv.2506.23273,
  title  = {FinStat2SQL: A Text2SQL Pipeline for Financial Statement Analysis},
  author = {Quang Hung Nguyen and Phuong Anh Trinh and Phan Quoc Hung Mai and Tuan Phong Trinh},
  journal= {arXiv preprint arXiv:2506.23273},
  year   = {2025}
}

Comments

Accepted for The 18th International Natural Language Generation Conference (INLG)

R2 v1 2026-07-01T03:38:32.786Z