Abstract
Semantic relationships, such as hyponym-hypernym, cause-effect, meronym-holonym etc. between a pair of entities in a sentence are usually reflected through syntactic patterns. Automatic extraction of such patterns benefits several downstream tasks, including, entity extraction, ontology building, and question answering. Unfortunately, automatic extraction of such patterns has not yet received much attention from NLP and information retrieval researchers. In this work, we propose an attention-based supervised deep learning model, ASPER, which extracts syntactic patterns between entities exhibiting a given semantic relation in the sentential context. We validate the performance of ASPER on three distinct semantic relations -- hyponym-hypernym, cause-effect, and meronym-holonym on six datasets. Experimental results show that for all these semantic relations, ASPER can automatically identify a collection of syntactic patterns reflecting the existence of such a relation between a pair of entities in a sentence. In comparison to the existing methodologies of syntactic pattern extraction, ASPER's performance is substantially superior.
Introduction
In Natural Language Processing (NLP), identifying the nature of relationships between entities is fundamental for knowledge representation. For instance, the phrase "X is a kind of Y" explicitly signals a hyponym-hypernym relationship. These syntactic patterns serve as the building blocks for ontologies and complex question-answering systems.
Historically, the field relied on hand-crafted "Hearst patterns." While effective, manual discovery is labor-intensive and fails to scale across diverse and complex relations like causality or part-whole structures. While modern deep learning models excel at relation classification, they often function as "black boxes," failing to provide the human-readable patterns that explain their decisions. ASPER (Attention-based Syntactic Pattern Extraction for Semantic Relation) addresses this by providing an automated, supervised framework to extract these "linguistic fingerprints" across arbitrary semantic relations.
Methodology
The ASPER framework employs a multi-stage pipeline designed to prioritize syntactic structure over specific entity vocabulary.
Sentence Representation and Masking
The model processes sentences by focusing on the dependency tree, specifically the shortest path between two target entities and their immediate descendants. To ensure the model learns generalized syntactic patterns rather than memorizing specific entity pairs (e.g., "lung" and "cancer"), the embeddings for the entities themselves are masked (zeroed out). This forces the model to rely entirely on the surrounding "connective tissue" of the sentence.
Model Architecture
The core of ASPER is a Bi-directional Long Short-Term Memory (Bi-LSTM) network that processes a sequence of edges. Each edge embedding incorporates word embeddings, Part-of-Speech (POS) tags, and dependency types. An integrated Attention Layer assigns weights to each edge, identifying the components most critical for relationship identification.
Pattern Mining
After training the model as a binary classifier, the authors analyze sentences where the model correctly identifies a relationship. By filtering for edges with high attention weights and applying the ECLAT frequent itemset mining algorithm, ASPER extracts the most recurring and significant syntactic patterns across the dataset.
Experimental Setup
ASPER was evaluated across six datasets representing three major semantic relations:
- Hyponym-Hypernym: LEX and RND datasets.
- Cause-Effect: SemEval and ADE (Adverse Drug Effect) datasets.
- Meronym-Holonym: BLESS and Phi datasets.
To ensure sufficient sentential context, the researchers augmented these datasets with relevant sentences scraped from Wikipedia.
Results and Discussion
ASPER demonstrated significant performance gains over traditional baselines. In the hyponym-hypernym task, it outperformed the benchmark method by Snow et al. (2005) by nearly 50% across precision, recall, and F1 metrics.
Key findings include:
- High Precision: The model achieved a precision of 0.87 on the RND dataset.
- Robustness: While meronymy proved more challenging due to its linguistic fluidity, ASPER maintained consistent performance, with F1 scores for cause-effect relations ranging between 0.65 and 0.71.
- Discovery: Beyond validating known Hearst patterns, ASPER identified overlooked structures, such as "the Y of X" for hyponymy (e.g., "the village of Aasu").
Conclusion
ASPER represents a significant step forward in automated syntactic pattern extraction. By leveraging attention mechanisms as a filter for importance and enforcing generalization through entity masking, the model successfully discovers human-interpretable linguistic patterns. Future work will focus on applying ASPER to specialized domains, such as medical literature, to map complex interactions between diseases and treatments.
Summary updated