Introduction
Ontologies are structured frameworks essential for representing domain knowledge in fields like bioinformatics and the Semantic Web. However, maintaining these complex hierarchies is a labor-intensive task traditionally performed by human experts. While symbolic reasoners can infer some relationships using formal logic, they often fail to capture "plausible" connections that are not explicitly defined.
BERTSubs is a novel framework designed to automate ontology curation by predicting "is-a" relationships (subsumption) within and between ontologies. Unlike previous methods that relied on static embeddings (e.g., Word2Vec) or graph-based models (e.g., TransE), BERTSubs leverages the contextual power of BERT to understand the rich semantic information embedded in class labels and logical constraints.
Methodology: Fine-Tuning BERT for Subsumption
The core of BERTSubs involves treating subsumption prediction as a binary text classification task. The model is fine-tuned to determine whether a given pair of classes represents a valid "is-a" relationship.
To bridge the gap between structured ontologies and natural language, the authors proposed three templates to "translate" graph structures into sentences that BERT can process:
- Isolated Class (IC): Uses only individual class labels (e.g., "soybean milk").
- Path Context (PC): Captures vertical hierarchical slices (e.g., "soybean beverage [SEP] soybean milk").
- Breadth-first Context (BC): Includes horizontal relationships with siblings and neighbors.
Representing Complex Ontologies
A significant challenge in ontology embedding is handling existential restrictions—complex logical statements such as "something that derives from a soybean plant." BERTSubs converts these into pseudo-natural language (e.g., "something derives from soybean plant"), allowing the model to learn semantic links between raw ingredients and final food products.
The framework was evaluated on five large-scale ontologies, including FoodOn, the Gene Ontology (GO), and the National Cancer Institute Thesaurus (NCIT). These datasets cover both intra-ontology prediction (completing a single hierarchy) and inter-ontology alignment (matching concepts across different schemas).
Key Results and Insights
BERTSubs consistently outperformed traditional baselines and set new state-of-the-art benchmarks across multiple domains:
- Gene Ontology (GO): BERTSubs (PC) achieved a Mean Reciprocal Rank (MRR) of 0.606, a significant jump from the 0.462 achieved by the previous state-of-the-art, OWL2Vec*.
- Subsumption Discovery: In predicting complex existential restrictions in FoodOn, the model improved the Hits@1 score from 0.562 to 0.723.
- Inter-ontology Alignment: In the NCIT-DOID task, BERTSubs reached an MRR of 0.707, significantly outperforming Word2Vec-based methods (~0.444).
Analysis revealed that Path Context (PC) is generally the most effective template. By presenting a "path" from specific classes to general ancestors, the model learns the directionality of relationships more effectively than looking at classes in isolation. Interestingly, Breadth-first Context (BC) often introduced noise, suggesting that horizontal relationships can sometimes obscure the primary hierarchical signal.
Conclusion and Future Work
BERTSubs demonstrates that pre-trained linguistic knowledge is highly effective at capturing the "common sense" required for ontology curation. While the current model handles existential restrictions, future work aims to support more complex logical constructors like universal restrictions, negations, and intersections. Additionally, integrating "entailed" hierarchies—relationships already proven by symbolic reasoners—could further refine the training process and improve prediction accuracy.
Summary updated