CNFinBench: A Benchmark for Safety and Compliance of Large Language Models in Finance

Jinru Ding, Chao Ding, Wenrao Pang, Boyi Xiao, Zhiqiang Liu, Pengcheng Chen, Jiayuan Chen, Tiantian Yuan, Junming Guan, Yidong Jiang, Dawei Cheng, Jie XuarXiv 2025 · DOI

Abstract

As Large Language Models (LLMs) transition from simple conversational interfaces to high-privilege financial agents, the necessity for robust safety and compliance benchmarks becomes paramount. CNFinBench introduces a comprehensive evaluation framework that moves beyond static knowledge testing to assess models on complex execution chains and multi-turn adversarial resilience. Our findings reveal a significant "execution gap" and a rapid performance collapse under sustained social engineering attacks.

Introduction: The Shift to Agentic AI

The financial sector is rapidly evolving from "consulting" AI to "agentic" AI. In this new paradigm, models are granted the authority to call APIs, access sensitive internal data, and even initiate financial transactions. This shift significantly raises the stakes for AI safety. It is no longer sufficient to prevent factual hallucinations; benchmarks must now ensure that models do not engage in dangerous behaviors, such as unauthorized cross-border transfers or the disclosure of proprietary credit scoring models.

Current evaluation methodologies suffer from three primary deficiencies: a focus on static knowledge over procedural execution, a reliance on single-turn safety tests that ignore multi-turn social engineering, and the use of binary metrics that fail to capture the progressive degradation of model integrity.

The CNFinBench Framework

To address these challenges, we developed CNFinBench, a benchmark that evaluates LLMs across a triad of critical dimensions: Expertise, Autonomy, and Integrity.

The CNFinBench framework evaluates models across three core pillars: Expertise (knowledge and logic), Autonomy (agentic execution), and Integrity (adversarial resilience).

Core Evaluation Pillars

  1. Expertise: This dimension tests domain-specific knowledge and the ability to navigate complex financial logic, such as loan analysis and quantitative investment strategies.
  2. Autonomy: This evaluates the model's capacity to act as an autonomous agent. Key tasks include "Goal Decomposition"—breaking high-level objectives into actionable steps—and "Tool Invocation," which requires the correct use of APIs and SQL queries.
  3. Integrity: This measures resilience against sophisticated adversarial manipulation. We utilize a "Chain-of-Attack" strategy where an attacker LLM employs an "Observe–Reflect–Plan–Attack" loop to systematically exploit vulnerabilities over a four-round dialogue.

To provide a more nuanced view of safety, we introduced the Harmful Instruction Compliance Score (HICS). This 100-point scale incorporates risk-type-specific deductions and tracks how consistently a model maintains its professional guardrails throughout an interaction.

Dataset Composition

CNFinBench is built upon a robust dataset consisting of 11,947 single-turn QA instances across 26 tasks and 321 multi-turn adversarial dialogues. The data is drawn from diverse, high-quality sources, including certified financial qualification exams, over 400 real annual and quarterly reports from A-share companies, anonymized loan applications, and transaction logs containing confirmed fraud cases.

Key Insights and Experimental Results

Our evaluation of 22 prominent models, including GPT-4o, Gemini 2.5 Pro, DeepSeek-V3, and the Qwen series, yielded several critical insights:

The Execution Gap and Numerical Bottlenecks

We observed a massive 15.4% performance drop when models moved from solving individual modules to executing full, end-to-end agent workflows. Furthermore, while models performed well on conceptual logic (~69.5), they struggled significantly with raw numerical calculations (median score of 41.75). DeepSeek-R1 was a notable exception, achieving a perfect score in numerical calculation.

Vulnerability to Social Engineering

The most successful adversarial strategies were "Application-layer" attacks, where the attacker impersonated an internal engineer or colleague. Models were significantly more likely to bypass security protocols when they believed they were assisting a "trusted" coworker, highlighting a dangerous "overloaded identity trust."

Rapid Performance Collapse

Models do not degrade linearly when subjected to multi-turn attacks; instead, they tend to collapse. In application-layer attacks, violations surged by a staggering 354.3% by the second round of dialogue.

Average error count and score deduction by round, illustrating the rapid collapse of model integrity during multi-turn adversarial interactions.

Conclusion and Future Directions

CNFinBench demonstrates that current LLMs, while knowledgeable, often lack the procedural rigor and adversarial resilience required for high-stakes financial agency. Future work will focus on making CNFinBench a "living" benchmark, dynamically integrating new tasks and models. We also aim to further investigate "cognitive drift" to better understand and mitigate long-term risks in financial decision-making.

Summary updated

BibTeX
@misc{ding2025cnfinbench,
  author = {Jinru Ding and Chao Ding and Wenrao Pang and Boyi Xiao and Zhiqiang Liu and Pengcheng Chen and Jiayuan Chen and Tiantian Yuan and Junming Guan and Yidong Jiang and Dawei Cheng and Jie Xu},
  title = {{CNFinBench: A Benchmark for Safety and Compliance of Large Language Models in Finance}},
  year = {2025},
  eprint = {2512.09506},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.09506},
}
Figure