arXiv:2505.19804cs.CL2025-05KDD被引 7

首个中文金融合规代码生成数据集,助力自动化合规审计

Compliance-to-Code: Enhancing Financial Compliance Checking via Code Generation

  • 构建包含1159条条款的中文金融合规数据集,结构化四要素
  • 支持生成可执行的Python合规代码,准确映射法规逻辑
  • 适合金融监管、合规系统开发人员使用

当前金融监管已成为企业治理的核心,但复杂的条款结构与大量例外使得人工合规成本高昂。尽管近年来监管科技(RegTech)和大语言模型在将法规文本转化为可执行逻辑方面取得进展,但在处理中文金融法规时仍表现不佳,主要受限于领域知识不完整、层级推理能力弱、时空逻辑不连贯等问题。为此,本文提出Compliance-to-Code,首个大规模中文金融合规数据集,涵盖361项法规中1,159个经标注的条款,覆盖十大类别。每条条款均以主体、条件、约束、上下文四要素模块化组织,并标注法规间关系。配套提供确定性Python代码映射、详细推理过程与代码解释,支持自动化审计。为验证实用性,我们构建了FinCheck管道,实现法规结构化、代码生成与报告输出。

原文摘要 · Abstract (English)

Nowadays, regulatory compliance has become a cornerstone of corporate governance, ensuring adherence to systematic legal frameworks. At its core, financial regulations often comprise highly intricate provisions, layered logical structures, and numerous exceptions, which inevitably result in labor-intensive or comprehension challenges. To mitigate this, recent Regulatory Technology (RegTech) and Large Language Models (LLMs) have gained significant attention in automating the conversion of regulatory text into executable compliance logic. However, their performance remains suboptimal particularly when applied to Chinese-language financial regulations, due to three key limitations: (1) incomplete domain-specific knowledge representation, (2) insufficient hierarchical reasoning capabilities, and (3) failure to maintain temporal and logical coherence. One promising solution is to develop a domain specific and code-oriented datasets for model training. Existing datasets such as LexGLUE, LegalBench, and CODE-ACCORD are often English-focused, domain-mismatched, or lack fine-grained granularity for compliance code generation. To fill these gaps, we present Compliance-to-Code, the first large-scale Chinese dataset dedicated to financial regulatory compliance. Covering 1,159 annotated clauses from 361 regulations across ten categories, each clause is modularly structured with four logical elements-subject, condition, constraint, and contextual information-along with regulation relations. We provide deterministic Python code mappings, detailed code reasoning, and code explanations to facilitate automated auditing. To demonstrate utility, we present FinCheck: a pipeline for regulation structuring, code generation, and report generation.

金融合规代码生成中文数据集

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。