Introduction
Document enrichment typically involves linking entities in a text to external knowledge sources like Wikipedia. However, standard methods often provide only isolated entity types or direct relations (e.g., "Company A owns Company B"). Real-world relationships are frequently more complex and indirect, involving shared investors, common headquarters, or subsidiaries. To capture these nuances, researchers have developed CR², a framework that automatically generates small, meaningful subgraphs from a Knowledge Graph (KG) to enrich documents.
The Challenge of Subgraph Extraction
The goal is to find an Entity Relation Subgraph (ERG) that balances three often-conflicting objectives:
- Representativeness: Covering the most important (salient) entities mentioned in the text.
- Compactness: Maintaining a concise structure, as users prefer short, direct paths over sprawling networks.
- Relevance: Ensuring the connections relate specifically to the document's context.
Existing algorithms frequently struggle with this balance, either returning empty results when entities are distant in the KG or providing technically correct but contextually irrelevant subgraphs.
The CR² Framework
The authors propose a two-step approach to generate optimal subgraphs:
1. Balancing Representativeness and Compactness
CR² treats subgraph selection as a combinatorial optimization problem. It seeks a subset of entities with the highest total "salience" that can be connected within a predefined "diameter" (maximum distance between nodes). To navigate the massive KG efficiently, the system uses a best-first search algorithm. This algorithm utilizes a mathematical "certificate"—a central node within a specific distance of all target entities—to avoid exhaustive searches.
2. Measuring Relevance
Candidate subgraphs are ranked using two novel metrics:
- Document-KG Relevance ($rel_D$): A "TF-IEF" (Type Frequency–Inverse Entity Frequency) measure that matches the ontological types of entities in the graph to the document's themes.
- Intra-KG Relevance ($rel_I$): A measure of "cohesion" based on the semantic similarity of entity types within the graph's hierarchy.
Key Results
The framework was evaluated using DBpedia and the Signal-1M news dataset. Key findings include:
- User Preference: In a study with 25 participants, CR² significantly outperformed baselines like RankingSA and RDF2Vec in terms of relevance and meaningfulness.
- Computational Efficiency: While naive algorithms often timed out as the number of entities increased, the CR² best-first search remained stable. For a typical document with 7 entities, it found the optimal subgraph in approximately 1.5 seconds.
- Representativeness: Even with a strict diameter bound (D=4), the algorithm captured entities representing over 70% of the document's total salience score.
Conclusion
CR² demonstrates that "perfect" entity coverage is often less useful than "representative" coverage. By allowing the algorithm to drop less important entities to maintain a compact diameter, the resulting visualizations become significantly more readable and helpful for human comprehension. Future work may involve integrating more sophisticated NLP-based salience measures and further optimizing the ranking step for real-time applications.
Summary updated