FormaFin:用求解器引导强化学习实现可验证的财务分析
FormaFin: Verifiable Financial Analysis with Solver-Guided Reinforcement Learning
FormaFin 框架训练小型开源语言模型将财务规则翻译为可复用的 SMT 公式,结合教师蒸馏与以 SMT 求解器计算奖励的强化学习。在包含 143 份贷款协议、2,527 个问题的基准上,7B 形式化模型准确率达 94.8%,超过参数量至多十倍的开源 LLM,三个模型系列准确率为 92.6% 至 96.8%。该框架还能检出其他 LLM 财务分析中 95.6% 至 99.7% 的错误。
arXiv:2611.28881v1 Announce Type: new Abstract: Formally verifying financial analyses generated by large language models (LLMs) remains challenging as financial rules are largely expressed in natural language and rarely have corresponding formal specifications. Training language models to formalize these rules is hindered by the scarcity of labeled data and reliable training signals, while confidential financial data favor small models that run locally. We introduce FormaFin, a framework that trains small open language models to translate financial rules into reusable SMT formulas. FormaFin integrates teacher distillation with reinforcement learning using an SMT solver to compute rewards from numerical thresholds stated in financial rules. We evaluate FormaFin on corporate loan monitoring, in which lenders check borrowers' financial figures against loan agreements. To evaluate our framework, we curate \bench{}, a benchmark containing 143 loan agreements and 2,527 questions covering compliance, earnings cushion, and debt capacity. Our results show that a 7B formalizer achieves 94.8\% accuracy, outperforming open LLMs up to ten times larger. Across three model families, accuracy ranges from 92.6 to 96.8\%. Our framework also detects 95.6 to 99.7\% of errors in other LLMs' financial analyses. We make FormaFin and \bench{} publicly available.
来源:arXiv (AI + Vision + Imaging) · arxiv.org