Abstract
Zero-shot learning relies on semantic class representations such as hand-engineered attributes or learned embeddings to predict classes without any labeled examples. We propose to learn class representations by embedding nodes from common sense knowledge graphs in a vector space. Common sense knowledge graphs are an untapped source of explicit high-level knowledge that requires little human effort to apply to a range of tasks. To capture the knowledge in the graph, we introduce ZSL-KG, a general-purpose framework with a novel transformer graph convolutional network (TrGCN) for generating class representations. Our proposed TrGCN architecture computes non-linear combinations of node neighbourhoods. Our results show that ZSL-KG improves over existing WordNet-based methods on five out of six zero-shot benchmark datasets in language and vision.
Introduction
Zero-shot learning (ZSL) aims to classify instances from categories not seen during training. Traditionally, this has required either labor-intensive hand-engineered attributes or unsupervised embeddings like Word2Vec, which often lack the explicit "common sense" needed for fine-grained distinctions. While Graph Neural Networks (GNNs) have been applied to taxonomies like WordNet, these hierarchies are often limited to simple "is-a" relationships.
Common sense knowledge graphs (CSKGs), such as ConceptNet, offer a much richer set of relationships (e.g., UsedFor, HasProperty). However, their massive scale and non-hierarchical structure pose significant challenges for standard GNN architectures.
The ZSL-KG Framework
The proposed ZSL-KG framework maps class labels to nodes in a CSKG to generate robust class representations. The core of this framework is the Transformer Graph Convolutional Network (TrGCN).
Transformer Graph Convolutional Network (TrGCN)
TrGCN introduces several key innovations:
- Transformer-based Aggregator: Unlike standard GCNs that use simple linear averaging, TrGCN employs a self-attention mechanism to learn complex, non-linear interactions between a concept's neighbors.
- Inductive Learning: TrGCN is inductive, learning to represent nodes based solely on their local neighborhoods. This allows the model to generalize to new, unseen classes at test time without requiring the full graph structure.
- Neighborhood Sampling: To manage the scale of ConceptNet, the authors utilize random walks with hitting probabilities to select the most relevant top $N$ neighbors for each class.
- Permutation Invariance: TrGCN is naturally order-independent, ensuring stable predictions regardless of the sequence in which neighbors are processed.
Experimental Evaluation
ZSL-KG was evaluated across multiple domains, including fine-grained entity typing (OntoNotes, BBN), intent classification (SNIPS-NLU), and object classification (AWA2, aPY, ImageNet 22K).
Key Results
- State-of-the-Art Performance: ZSL-KG achieved new state-of-the-art (SOTA) accuracies on OntoNotes, BBN, aPY, and SNIPS-NLU.
- Knowledge Graph Superiority: The framework outperformed WordNet-based methods on the ImageNet 22K benchmark, demonstrating that the rich relationships in ConceptNet are more effective for ZSL than sparse taxonomies.
- Architectural Robustness: Ablation studies showed that TrGCN consistently outperformed Graph Attention Networks (GAT). Furthermore, while LSTM-based aggregators were sensitive to neighbor ordering, TrGCN remained perfectly consistent.
Conclusion and Future Work
ZSL-KG demonstrates that common sense knowledge graphs are a powerful, universal bridge between modalities like vision and language. By leveraging non-linear aggregators within a GNN, the model captures high-level semantic nuances that simpler models miss.
Future research may focus on overcoming mapping constraints for niche domain terms not present in general CSKGs and exploring more computationally efficient attention mechanisms to handle even larger neighborhoods. Replacing the current biLSTM encoders with pre-trained Transformers like BERT could also yield further performance gains.
Summary updated