Introduction
The "text-to-table" task is a cornerstone of information extraction, yet traditional research has largely focused on "toy" datasets characterized by short texts and simplistic schemas. In professional domains such as law, social sciences, and business, the requirements are far more demanding. Real-world documents are often long-form, and the desired tables require high-dimensional data extraction where information is scattered and context-dependent.
To bridge this gap, researchers have introduced TKGT (Text-KG-Table), a two-stage pipeline that redefines the task for the era of Large Language Models (LLMs). By utilizing Knowledge Graphs (KGs) as structural "middleware," TKGT enables the extraction of complex data from long documents, outperforming general-purpose models like GPT-4-Turbo in specialized domains.
The TKGT Framework
The core innovation of TKGT is its departure from the "black box" approach of direct text-to-table conversion. Instead, it employs a two-stage process that leverages domain-specific structures to guide the extraction process.
- Stage 1: Mixed-IE Assisted KG Generation: The system first constructs a domain-specific Knowledge Graph or schema. This is achieved through a combination of statistical analysis (e.g., word frequency), rule-based filtering, and LLM prompting to identify "slack classes"—the essential roles (e.g., Lender, Borrower) and actions (e.g., Repayment, Guarantee) within a domain. This semi-automatic stage allows human experts to refine the KG, ensuring it captures necessary domain nuances.
- Stage 2: Hybrid-RAG Based Table Filling: With the KG structure established, the system employs a "Structure-Aware Hybrid-RAG" algorithm. It dynamically generates prompts to query the LLM for specific fields, using the KG to guide the search across the entire document. This ensures comprehensive data retrieval, preventing the model from missing details buried deep within long texts.
Dataset Complexity and the CPL Benchmark
The paper evaluates TKGT against traditional benchmarks like Wikitabletext, Wikibio, E2E, and Rotowire. However, to truly test the system, the authors introduced the Chinese Private Lending (CPL) dataset, which reflects real-world complexity.
The CPL dataset, derived from legal judgments, highlights the limitations of existing methods. While a document in the E2E dataset averages 22 words, a CPL document averages 1,105 words. Furthermore, CPL requires the extraction of 97 distinct fields, a massive increase in dimensionality compared to the 7 fields of E2E or 33 of Rotowire.
Key Insights: The V-Shape Discovery
A significant finding in this research is the "V-Shape" similarity curve. By analyzing the similarity between word frequencies and table fields, the authors discovered that in complex datasets like CPL and Rotowire, critical structural information is found not only in common words but also in the "long tail" of domain-specific vocabulary. This insight justifies the use of KGs to capture these rare but vital structural cues that LLMs might otherwise overlook in a standard summary task.
Experimental Results
The TKGT framework demonstrates superior performance across various benchmarks, particularly in complex, high-dimensional tasks where standard LLM prompting fails.
On the Rotowire sports statistics dataset, TKGT achieved a perfect 100% F1 score for table headers. More impressively, on the challenging CPL legal dataset, the TKGT pipeline (using a fine-tuned ChatGLM3-6B) achieved an F1 score of 82.45%, surpassing the 78.70% achieved by GPT-4-Turbo using a naive RAG approach. These results indicate that smaller, open-source models can outperform massive commercial models when guided by a well-constructed domain KG.
Conclusion
TKGT represents a significant shift in text-to-table methodology, moving from simple summarization to structured, KG-augmented extraction. By treating KGs as middleware, the framework handles the high dimensionality and document length typical of real-world professional demands. While Stage 1 currently requires some human expert intervention, future work will focus on increasing the autonomy of KG initialization, further streamlining the path from raw text to structured data.
Summary updated