Abstract
Relation extraction in Natural Language Processing (NLP) often relies on dependency parse graphs to capture grammatical relationships between entities. However, traditional kernels like tree kernels struggle with arbitrary graph structures and edge-specific information. This paper presents the ASM Kernel, which transforms the Approximate Subgraph Matching (ASM) distance into a mathematically valid kernel suitable for Support Vector Machines (SVM). By focusing on shortest paths and incorporating structural, label, and directionality distances, the ASM Kernel significantly improves performance in extracting complex relations, particularly in the biomedical domain.
Introduction
In the field of Natural Language Processing, understanding the relationship between entities (e.g., "Drug A causes Disease B") requires analyzing the underlying syntactic structure of a sentence. This structure is typically represented as a dependency parse graph, where nodes represent words and edges represent grammatical relations.
While Approximate Subgraph Matching (ASM) has long been a useful distance measure for comparing such graphs, it lacked the mathematical properties—specifically symmetry and positive semi-definiteness—required to function as a "kernel" for robust machine learning algorithms like SVMs. Consequently, researchers were previously limited to using ASM in simpler, less powerful rule-based systems. This paper bridges that gap by redefining ASM as a mathematically valid kernel.
Methodology
The authors transform the flexible ASM distance into a kernel by demonstrating that a modified version of the distance can be represented as a dot product in a high-dimensional feature space, specifically equivalent to an $L_2$ norm. The ASM Kernel evaluates similarity by decomposing the shortest path between two entities into three distinct components:
- Structural Distance: Compares the lengths of the paths between entities.
- Label Distance: Employs a "bag-of-words" approach to compare the types of grammatical edge labels (e.g.,
nmod,acl) along the path. - Directionality Distance: Tracks whether the edges are pointing "forward" or "backward" relative to the entities.
Unlike exact subgraph matching, which is computationally exponential, the ASM Kernel evaluation is polynomial ($O(n^3)$), making it practical for real-world sentence processing.
Experimental Evaluation
The ASM Kernel was evaluated across three distinct tasks to test its versatility and power:
- Chemical-induced Disease (CID): Inferring "induces" relations between chemicals and diseases in PubMed abstracts.
- SeeDev Binary: Extracting genetic and molecular mechanisms involved in plant seed development.
- UIUC Question Classification: A general NLP benchmark for classifying questions to test the kernel's performance outside of relation extraction.
In the CID task, the ASM Kernel achieved an F1 score of 58.1, significantly outperforming both the classical rule-based ASM (49.0) and standard tree kernels like the Partial Tree Kernel (PTK) with LCT (55.5).
On the SeeDev task, the kernel reached an F1 of 26.4, nearly doubling the performance of the rule-based ASM (14.5). For general question classification, it achieved 89.6% accuracy, proving competitive with state-of-the-art tree kernels (91.4%) even on tasks it wasn't specifically optimized for.
Discussion and Future Work
A key insight from this research is that relation extraction depends heavily on edge labels and directions, which the ASM Kernel handles natively. By focusing on the shortest path between entities, the kernel effectively filters out syntactic "noise" from the rest of the sentence.
However, the authors noted that simple linear classifiers using hand-crafted features still outperformed all kernel methods on certain tasks, suggesting the current feature space may be too noisy. Future directions include using Principal Component Analysis (PCA) for feature selection, integrating semantic word embeddings to recognize synonyms, and learning optimal weights for the three distance components rather than weighting them equally.
Summary updated