A solution and practice for combining multi-source heterogeneous data to construct enterprise knowledge graph

Chenwei Yan, Xinyue Fang, Xiaotong Huang, Chenyi Guo, Ji Wu

Abstract

This paper proposes an end-to-end framework for constructing large-scale enterprise knowledge graphs (KGs) by integrating structured, semi-structured, and unstructured financial data. The authors enhance the CasRel relation extraction model using domain-specific FinBERT and position embeddings, achieving a 72.77% F1-score on financial text. The resulting system, containing over 1.4 million nodes and 3.1 million edges, is currently deployed to support real-world corporate due diligence and risk assessment.

Introduction

Constructing a high-quality domain knowledge graph for the financial sector is significantly more challenging than building general-purpose graphs like DBpedia. The authors identify three primary hurdles in this domain:

  1. Data Heterogeneity: Financial data is fragmented across structured registries, semi-structured legal verdicts, and unstructured corporate announcements, requiring distinct extraction pipelines.
  2. Extraction Accuracy: Standard NLP models often struggle with the complex, jargon-heavy, and overlapping relations found in financial reports.
  3. Lifecycle Management: In the fast-moving corporate world, a static KG becomes obsolete quickly. Efficient, continuous updates are mandatory for practical utility.

System Architecture

The authors adopt a top-down construction approach, defining a strict ontology before populating it with data. The framework is organized into four distinct layers: the Data Layer, Information Extraction Layer, Data Storage and Update Layer, and the Business Layer.

The whole enterprise knowledge graph construction framework, illustrating the flow from raw data sources to business applications.

Data Sources and Processing

The KG integrates three primary data sources:

  • Enterprise Register Information (ERI): Structured data from industrial and commercial bureaus (e.g., capital, business scope).
  • Litigation-Related Information (LRI): Semi-structured court verdicts.
  • Enterprise Announcement Information (EAI): Unstructured public announcements from the Shanghai Stock Exchange.

Enhanced Triple Extraction

To handle unstructured text, the researchers improved the CasRel (Cascade Binary Tagging Framework) model. Their technical contributions include replacing the standard BERT encoder with FinBERT, which is pre-trained on a massive corpus of financial news and reports. Additionally, they integrated a position embedding layer to better capture the spatial relationships of entities within long, complex financial sentences.

The structure of the enhanced triple extraction model, utilizing FinBERT and position embeddings to generate (subject, predicate, object) triples.

This architecture specifically addresses the "overlapping" challenge in financial text, where a single entity may participate in multiple relations (e.g., a company acting as both an investor and a guarantor).

Hybrid Storage and Update Strategy

Recognizing that no single database is optimal for all tasks, the system employs a hybrid architecture:

  • MySQL: Used for structured data and high-efficiency "one-step" queries for basic company information.
  • Graph Databases (TigerGraph/Neo4j): Utilized for complex multi-hop relationship mining, such as finding hidden paths between entities.
  • Elasticsearch: Employed for full-text fuzzy searching within legal documents.

To keep the data fresh, the system implements a Dual-Update Strategy. This includes Active Updates triggered by user requests and Passive Updates consisting of periodic automated checks against external APIs, all managed via a Redis queue.

Results and Real-World Impact

The improved CasRel model (FinBERT + Position Embedding) achieved an F1-score of 72.77%, significantly outperforming baseline models like PRGC (63.31%) and TPLinker (71.18%).

The resulting enterprise KG contains approximately 1,430,000 nodes and 3,170,000 edges. It is currently deployed at HuaRong RongTong (Beijing) Technology Co., Ltd., where it is used to perform corporate due diligence, specifically identifying "guarantee circles" and hidden investment loops that signal financial risk.

Conclusion and Future Work

The study demonstrates that domain-specific pre-training is essential for financial NLP tasks. Furthermore, a hybrid storage approach provides a pragmatic balance between the flexibility of graph databases and the efficiency of relational systems.

A current limitation is the FIFO (first-in, first-out) nature of the Redis update queue, which can delay urgent user requests. Future work will focus on a priority-based update structure that considers waiting time and the frequency of user applications for specific entities to ensure critical data is refreshed first.

Summary updated

BibTeX
@article{yan2024solution,
  author = {Chenwei Yan and Xinyue Fang and Xiaotong Huang and Chenyi Guo and Ji Wu},
  title = {{A solution and practice for combining multi-source heterogeneous data to construct enterprise knowledge graph}},
  journal = {Frontiers Big Data},
  year = {2024},
  doi = {10.3389/fdata.2023.1278153},
}
Figure