cs.AINov 21, 2026

FormaFin: Verifiable Financial Analysis with Solver-Guided Reinforcement Learning

Authors: Bethel Hall, William Eiers

Organizations: Stevens Institute of Technology, Hoboken, NJ, USA

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.

Figures & tables

Explore similar work

CardsList
  1. FinRule-Bench: A Benchmark for Joint Reasoning over Financial Tables and Principles

    Mar 11, 2026Arun Vignesh Malarkkan, Manan Roy Choudhury, Guangwei Zhang +4Financial Reasoning in Language ModelsBenchmark Auditing

  2. FinGuard: Detecting Financial Regulatory Non-Compliance in LLM Interactions

    May 28, 2026Huaixia Dou, Jie Zhu, Minghao Wu +5Language Model Safety EvaluationLLM Guardrails

  3. V-FiLLM: Verified Financial LLM Reasoning Benchmark

    Aug 11, 2026Alicia Larsen, Victoire Laurent, Aulia Kharis Rakhmasari +2Numerical Reasoning in Language ModelsSynthetic Data Generation