FormaFin: Verifiable Financial Analysis with Solver-Guided Reinforcement Learning
Bethel Hall, William Eiers
Key points
From the paper's conclusion- We evaluate FormaFin on corporate loan monitoring, in which lenders check borrowers' financial figures against loan agreements.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- VerifiQuant: Governance-by-Execution for Financial LLM WorkflowsarXiv · 2026
- VeriFin: A Neurosymbolic Framework for Verifying LLM-Generated Financial ClaimsarXiv · 2026
- FinVerify: A Verification Framework for Financial AgentsarXiv · 2026
- Filtration-Compiled Autoformalization of Dynamic Financial ModelsJournal of Risk and Financial Management · 2026
- FinExam-10K: When Retrieval Helps Financial Reasoning?arXiv · 2026
- FinVector-Market-4B: A Controlled Study of LoRA Adaptation for Structured Financial TasksarXiv · 2026