Abstract
Extracting structured knowledge from dense legal documentation presents significant challenges due to lexical ambiguity and procedural noise. The CORE-KG framework addresses these issues by combining type-aware coreference resolution with domain-specific structured prompting. This paper presents an ablation study evaluating the framework's efficacy in reducing node duplication and filtering irrelevant "legal noise." Results indicate that coreference resolution is the primary driver for entity deduplication, while structured prompting is critical for maintaining extraction precision.
Introduction
Automated extraction of structured data from legal texts, such as court opinions on human smuggling, is often hindered by the "lexically dense" nature of the documents. A single entity may be referenced by multiple aliases (e.g., "the defendant," "the driver," or a specific name), leading to fragmented knowledge graphs with excessive duplicate nodes. Furthermore, standard Large Language Model (LLM) extraction techniques often fail to distinguish between relevant factual entities and procedural "legal boilerplate" (e.g., "The Court," "Motion to Suppress"), resulting in noisy, cluttered graphs.
The CORE-KG framework was developed to mitigate these issues. This study provides a systematic ablation analysis to quantify the specific contributions of coreference resolution and structured prompting to the overall quality of the generated knowledge graphs.
Methodology
The CORE-KG pipeline consists of two primary stages designed to improve graph coherence and precision.
1. Type-aware Coreference Resolution
To prevent "attention drift," the system employs a sequential, per-type prompting strategy. The LLM is tasked with resolving entities to canonical forms category by category (e.g., "Person," then "Location," then "Route"). This ensures that aliases are correctly mapped to a single node before the extraction phase begins.
2. Structured Prompting for Extraction
The resolved text is processed by an extraction module using domain-guided prompts. These prompts enforce a fixed extraction order and include explicit filtering rules to ignore procedural legal terms and government entities that do not contribute to the core factual narrative.
Experimental Setup
The study utilized a dataset of 20 judicial case documents related to human smuggling (1994–2024). The authors compared four system configurations using LLaMA 3.3 70B:
- Full CORE-KG: Both modules enabled.
- CoreKG-no-coref: Structured prompts only.
- CoreKG-no-structprompts: Coreference resolution only.
- GraphRAG (Baseline): A standard, non-specialized LLM extraction pipeline.
Results and Analysis
The ablation study confirms that coreference resolution and structured prompting are complementary components.
Key Findings
- Entity Deduplication: Coreference resolution is essential for graph coherence. Removing this module resulted in a 28.25% increase in node duplication relative to the full system.
- Noise Reduction: Structured prompting acts as a vital filter. Its removal led to a 73.33% increase in noisy nodes, as the LLM struggled to distinguish procedural legal language from relevant network entities.
- Graph Density: CORE-KG produced more compact and informative graphs. It achieved a Relationship-to-Node (R/N) ratio of 2.88, compared to 1.67 for the baseline, indicating a higher density of meaningful connections between accurate entities.
Overall, CORE-KG achieved a duplication rate of 20.28% and a noise rate of 16.65%, significantly outperforming the GraphRAG baseline, which suffered from 30.53% duplication and 27.43% noise.
Conclusion
The CORE-KG framework demonstrates that specialized prompting and resolution strategies are necessary for high-fidelity knowledge extraction from complex domains like law. While the current system focuses on intra-document resolution, future work will explore cross-document coreference resolution to map criminal networks across multiple legal proceedings. Additionally, automated prompt optimization could further enhance the system's adaptability across different legal jurisdictions.
Summary updated