TL;DR
This paper introduces CKG, a novel method that enhances language representations by integrating external knowledge graphs (KGs) with contextual information from large text corpora. CKG aims to resolve polysemy (words with multiple meanings) by dynamically enriching word representations with relevant semantic information from KGs, leading to improved performance on various NLP tasks.
What Problem Does This Paper Address?
Modern neural language representation models, like BERT and ELMo, excel at capturing co-occurrence patterns from vast text datasets. However, they often struggle with polysemy – words having multiple distinct meanings (e.g., "apple" as a fruit vs. a tech company). This ambiguity can hinder downstream task performance, as models might not grasp the intended meaning of a word within a specific context. The paper argues that external knowledge graphs, which store rich semantic relationships between entities, can provide crucial disambiguation information that is missing from purely text-based training.
Methods
CKG is a two-part system:
- Extractor (Semantic Extension): This module leverages knowledge graphs (specifically Dbpedia in their experiments) to find potential meanings for entities in a sentence. For each identified entity, it traverses the KG to find its "neighbors" (related entities). To manage complexity and focus on the most relevant information, it selects the top 3 most similar extensions based on their GloVe vectors compared to the average vector of the surrounding words in the sentence.
- Aggregator (Semantic Fusion): This module takes the original word representations and the KG-derived extensions. It then fuses these to create a refined representation. Specifically, it calculates the cosine similarity between each KG extension and the average vector of the sentence's words, selecting the extension that maximizes this similarity to represent the entity's meaning in that context. This enriched representation is then used as input for downstream models.
For feature extraction, CKG incorporates a 1D-CNN layer before a BiLSTM. The CNN helps reduce the dimensionality of the input sequence, mitigating the vanishing gradient problem and reducing computational costs associated with long sequences in BiLSTMs.
Datasets
The paper evaluates CKG on a variety of NLP tasks and datasets:
- Word Analogy Task: Used to evaluate word similarity.
- Quora Question Pairs (QQP): Binary classification for question similarity.
- Microsoft Research Paraphrase Corpus (MRPC): Sentence pair classification for paraphrase detection.
- Stanford Sentiment Treebank (SST-5): Single-sentence sentiment classification.
- Stanford Question Answering Dataset (SQuAD v1.1): Question answering.
- CoNLL 2003: Named Entity Recognition (NER).
- Stanford Natural Language Inference (SNLI): Textual entailment.
- FIGER: Fine-grained entity typing (used for qualitative analysis).
The paper also mentions pre-training on a corpus of approximately 30 million sentences.
Key Insights and Ideas
- KG Integration for Polysemy Resolution: The core idea is that KGs provide a structured way to disambiguate word meanings, which is a significant limitation of purely corpus-based models.
- Dynamic Representation: CKG doesn't just add static KG information; it dynamically selects the most relevant KG extension for each word based on its specific context within a sentence.
- Efficiency through 1D-CNN: Using a 1D-CNN before BiLSTM is a clever way to reduce sequence length and computational burden, making the model more practical for longer inputs.
- "Note" Style Enrichment: The paper proposes replacing the original input sentence with one where the disambiguated entities are appended in parentheses (e.g., "apples (fruit)"), which is then used for further training.
Key Results
CKG demonstrates significant improvements across several tasks:
- SQuAD: Achieved a State-of-the-Art (SOTA) score of 89.2, outperforming SAN (84.4), ELMo (85.8), and BERT Base (88.5).
- FIGER: CKG achieved higher strict accuracy (58.87%) and micro scores (76.23%) compared to ERNIE, suggesting its effectiveness in reducing noise from distant supervision.
- Word Analogy Task: CKG combined with GloVe achieved a Spearman rank score of 79.37, a notable improvement over pure GloVe (68.93).
- SNLI: CKG improved accuracy to 91.1% when combined with ESIM.
- NER: CKG achieved a score of 92.56.
- QQP, MRPC, SST-5: CKG+ELMo showed competitive or improved performance compared to baselines like Pre-OpenAI SOTA and ERNIE.
Limitations and Future Work
- KG Dependency: The performance of CKG is inherently tied to the quality and coverage of the knowledge graph used.
- Computational Cost: While the 1D-CNN helps, the process of KG traversal and similarity calculation can still add computational overhead compared to models that solely rely on text.
- "Note" Style Input: The method of appending disambiguated meanings in parentheses as a new input format is an interesting heuristic, but its generalizability and impact on different model architectures could be further explored.
- Future Work: The authors suggest that CKG can be further improved by exploring more sophisticated KG traversal strategies and by applying it to a wider range of knowledge-intensive NLP tasks. They also imply that the dynamic adjustment model in CKG is effective as a fine-tuning tool.
Summary updated