Abstract
Machine Learning has been the quintessential solution for many AI problems, but learning is still heavily dependent on the specific training data. Some learning models can be incorporated with a prior knowledge in the Bayesian set up, but these learning models do not have the ability to access any organised world knowledge on demand. In this work, we propose to enhance learning models with world knowledge in the form of Knowledge Graph (KG) fact triples for Natural Language Processing (NLP) tasks. Our aim is to develop a deep learning model that can extract relevant prior support facts from knowledge graphs depending on the task using attention mechanism. We introduce a convolution-based model for learning representations of knowledge graph entity and relation clusters in order to reduce the attention space. We show that the proposed method is highly scalable to the amount of prior information that has to be processed and can be applied to any generic NLP task. Using this method we show significant improvement in performance for text classification with News20, DBPedia datasets and natural language inference with Stanford Natural Language Inference (SNLI) dataset. We also demonstrate that a deep learning model can be trained well with substantially less amount of labeled training data, when it has access to organised world knowledge in the form of knowledge graph.
Introduction
Standard machine learning models are typically "dataset-bound," meaning their predictive power is limited to the patterns contained within their specific training samples. In contrast, human reasoning often relies on eliciting past knowledge about the world on demand. For instance, understanding that "The couple is walking" implies "A man and woman are awake" requires the common-sense knowledge that a "couple" typically consists of two people, often a man and a woman.
Current NLP models struggle with these logical leaps because they lack access to structured, general-purpose world knowledge. While Transfer Learning provides some assistance, it is often task-specific. This research addresses the challenge of building a scalable "look-up" mechanism that allows deep learning models to retrieve and infuse relevant facts from millions of Knowledge Graph (KG) triples—such as <Donald Trump, president, United States>—into the decision-making process.
Methods
The proposed Knowledge Graph Augmented Neural Network architecture functions in three primary stages:
- Knowledge Representation: The framework utilizes Description-Embodied Knowledge Representation Learning (DKRL), building on the TransE model. Entities and relations are represented as vectors in a continuous space where the relationship between a subject ($h$) and object ($t$) is defined by a translation vector ($r$), such that $h + r \approx t$.
- Scalable Retrieval via Convolutional Clustering: Attending over millions of facts is computationally prohibitive. To solve this, the authors employ k-means clustering to group similar entities and relations. They then apply 1D Convolutional Neural Networks (CNNs) over these clusters to learn a "representative" vector for each group, drastically reducing the attention space.
- Hybrid Architecture: The model uses an LSTM to encode input text and a "soft attention" mechanism to retrieve relevant entity and relation clusters from the KG. These retrieved facts are concatenated with text features for final prediction.
A critical technical finding was the necessity of two-stage training. Simultaneous training of retrieval and classification modules often led to "gradient saturation," where the model ignored the KG. To mitigate this, the KG retrieval module is pre-trained separately before joint fine-tuning.
Key Results and Insights
The approach was evaluated on News20 (text classification), SNLI (natural language inference), and DBPedia (ontology classification). For world knowledge, the researchers utilized Freebase (FB15k) and WordNet (WN18).
Accuracy and Data Efficiency
The convolution-based KG model improved accuracy by nearly 3% on News20 and 5% on SNLI compared to a standard LSTM. Even on DBPedia, where the baseline was already 98.6%, the augmented model achieved a 0.2% improvement.
Perhaps the most significant insight is that world knowledge acts as a "data multiplier." The KG-augmented model demonstrated that access to organized knowledge can compensate for a lack of labeled training data.
As shown in the results, the KG-augmented model trained on only 70% of the News20 dataset outperformed the baseline LSTM trained on 100% of the data. This suggests that structured knowledge can significantly reduce the labeling burden for complex NLP tasks.
Conclusion
This work demonstrates that infusing neural networks with on-demand world knowledge via scalable convolutional clustering leads to more robust and data-efficient models. Future research may explore hierarchical attention mechanisms to navigate even larger knowledge bases or "hard" attention using Reinforcement Learning to select discrete, highly specific facts. Additionally, investigating the retrieval of diverse "multi-facts" could further enhance the model's ability to handle complex, multi-step reasoning tasks.
Summary updated