Abstract
Zero-Shot Learning (ZSL) aims to recognize objects from classes not seen during training by leveraging auxiliary information. Conventional ZSL methods often rely on simple word embeddings or manual attributes, which fail to capture complex logical relationships. This paper presents a neural-symbolic framework that utilizes formal OWL 2 EL ontologies to define class relationships. By embedding logical axioms into a continuous vector space, the model achieves superior performance in recognizing unseen classes by understanding their compositional properties.
Introduction
Standard machine learning models are typically restricted to classifying objects within the set of labels present in their training data. Zero-Shot Learning (ZSL) seeks to overcome this by using "side information" to relate seen and unseen classes. While common approaches use Word2Vec or attribute lists, these often lack the expressive power to represent hierarchical and logical structures. This research addresses the semantic gap between raw visual data and abstract concepts by integrating formal logic into the learning process.
Methodology
The proposed framework leverages Description Logic (specifically OWL 2 EL) to bridge the gap between visual features and semantic concepts. The process involves three primary stages:
- Ontology Construction: Class labels are represented within an OWL 2 EL ontology, allowing for complex definitions through subsumption (e.g., Killer Whale ⊑ Toothed Whale) and existential quantification (e.g., Killer Whale has habitat Ocean).
- Ontology Embedding: Logical axioms are transformed into a continuous vector space. Concepts are modeled geometrically as "balls," where subsumption is represented by containment and relations by translations. Additionally, language models are fine-tuned on ontology-derived "sentences" to capture statistical correlations.
- Mapping-based ZSL: A Semantic Autoencoder (SAE) learns to project image features into this semantic embedding space. During inference, images of unseen classes are projected and matched to the nearest ontology-encoded label.
Experimental Results
The framework was evaluated on the Animal Image Classification (AIC) task using the AwA2 benchmark and on Visual Question Answering (VQA) using the OK-VQA dataset.
The results indicate that ontology-based embeddings (EL_Embed) significantly outperform traditional word vectors. Specifically, on the AIC task, logical embeddings achieved 48.3% accuracy compared to 34.2% for standard Word2Vec (Label_W2V). The highest performance was achieved by combining word vectors, manual attributes, and logical embeddings, reaching 58.9% on AIC and 50.1% on VQA.
Key Insights
- Compositionality: Formal logic provides a structured way to compose new concepts from known ones (e.g., understanding a "Toothed Whale" by combining "Whale" and "Teeth" concepts).
- Synergy: Logical embeddings and word embeddings are complementary; logic captures strict hierarchies while text captures nuanced statistical associations.
- Quality over Quantity: A small, high-quality ontology can outperform larger, noisier graphs (like WordNet) by providing clearer constraints for the learning model.
Conclusion and Future Work
This work demonstrates the potential of neural-symbolic integration for ZSL. While the performance is promising, the authors note that future research must address the challenges of automated ontology engineering and scaling these techniques to more complex, large-scale knowledge bases while maintaining geometric precision and explainability.
Summary updated