arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.17190cs.CE
收藏

融合 LLMs 与 KGs 用于金融风险传染背后的形式化因果推理

Fusing LLMs and KGs for Formal Causal Reasoning behind Financial Risk Contagion

Guanyuan Yu, Xv Wang, Qing Li, Yu Zhao

AI总结:

本文提出风险传染因果推理模型 RC2R,融合大型语言模型与金融知识图谱,通过多尺度对比学习和交叉多头注意力机制对齐文本与图结构数据,有效量化并可视化风险传染路径,在预测性能和分布外泛化能力上优于现有模型。

摘要:

金融风险往往从一个实体蔓延至另一个实体,最终导致系统性风险。防范此类风险的关键在于理解风险传染背后的因果链条。尽管如此,当前的主流方法主要强调风险识别,忽视了对风险潜在的因果分析。为解决这一问题,我们提出了一种名为 RC2R 的风险传染因果推理模型,该模型利用大型语言模型(LLMs)的逻辑推理能力,以嵌入在金融知识图谱(KGs)中的事实和专家知识为基础,剖析风险传染的因果机制。在数据层面,我们利用金融 KGs 构建因果指令,使 LLMs 能够对风险传播执行形式化因果推理,并解决 LLMs 的“因果鹦鹉”问题。在模型架构方面,我们集成了一个融合模块,通过多尺度对比学习对齐不同粒度的词元与节点,随后通过带有交叉多头注意力机制的软提示将文本与图结构数据进行融合。为了量化风险传染,我们引入了风险路径推断模块,用于计算图中每个节点的风险分数。最后,我们使用 Sankey 图可视化风险传染路径及其强度,提供了详细的因果解释。在金融 KGs 和供应链数据集上的综合实验表明,我们的模型在预测性能和分布外(OOD)泛化能力上均优于几种最先进的模型。我们将公开数据集和代码,以鼓励该领域的进一步研究与开发。

英文摘要:

Financial risks trend to spread from one entity to another, ultimately leading to systemic risks. The key to preventing such risks lies in understanding the causal chains behind risk contagion. Despite this, prevailing approaches primarily emphasize identifying risks, overlooking the underlying causal analysis of risk. To address such an issue, we propose a Risk Contagion Causal Reasoning model called RC2R, which uses the logical reasoning capabilities of large language models (LLMs) to dissect the causal mechanisms of risk contagion grounded in the factual and expert knowledge embedded within financial knowledge graphs (KGs). At the data level, we utilize financial KGs to construct causal instructions, empowering LLMs to perform formal causal reasoning on risk propagation and tackle the "causal parrot" problem of LLMs. In terms of model architecture, we integrate a fusion module that aligns tokens and nodes across various granularities via multi-scale contrastive learning, followed by the amalgamation of textual and graph-structured data through soft prompt with cross multi-head attention mechanisms. To quantify risk contagion, we introduce a risk pathway inference module for calculating risk scores for each node in the graph. Finally, we visualize the risk contagion pathways and their intensities using Sankey diagrams, providing detailed causal explanations. Comprehensive experiments on financial KGs and supply chain datasets demonstrate that our model outperforms several state-of-the-art models in prediction performance and out-of-distribution (OOD) generalization capabilities. We will make our dataset and code publicly accessible to encourage further research and development in this field.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑