[Paper Review] Adaptive Attentional Network for Few-Shot Knowledge Graph Completion
This paper proposes FAAN, an adaptive attentional network for few-shot knowledge graph completion that learns dynamic, task-specific representations for entities and references using adaptive neighbor encoding and query-aware attention. By modeling entities' roles and references' contributions dynamically, FAAN achieves state-of-the-art performance on two public datasets across various few-shot settings.
Few-shot Knowledge Graph (KG) completion is a focus of current research, where each task aims at querying unseen facts of a relation given its few-shot reference entity pairs. Recent attempts solve this problem by learning static representations of entities and references, ignoring their dynamic properties, i.e., entities may exhibit diverse roles within task relations, and references may make different contributions to queries. This work proposes an adaptive attentional network for few-shot KG completion by learning adaptive entity and reference representations. Specifically, entities are modeled by an adaptive neighbor encoder to discern their task-oriented roles, while references are modeled by an adaptive query-aware aggregator to differentiate their contributions. Through the attention mechanism, both entities and references can capture their fine-grained semantic meanings, and thus render more expressive representations. This will be more predictive for knowledge acquisition in the few-shot scenario. Evaluation in link prediction on two public datasets shows that our approach achieves new state-of-the-art results with different few-shot sizes.
Motivation & Objective
- To address the limitation of static entity and reference representations in few-shot knowledge graph completion.
- To model dynamic roles of entities across different task relations by adapting neighbor attention based on task context.
- To differentiate the contribution of references to queries by learning query-aware attention weights.
- To improve few-shot knowledge acquisition by capturing fine-grained semantic meanings of entities and references.
- To achieve better generalization and predictive performance in low-data regimes for long-tail relations.
Proposed method
- FAAN employs an adaptive neighbor encoder that dynamically assigns attention weights to an entity’s one-hop neighbors based on the task relation, enabling role-aware entity representation.
- The model uses a stack of Transformer blocks to capture multi-meaning semantics of the task relation in reference and query triples.
- A query-aware aggregator adaptively aggregates references by computing attention weights that vary per query, differentiating their relevance.
- The attention mechanism is grounded in the translation assumption, allowing dynamic adaptation to task-specific semantics.
- Entity representations are enhanced by contextually weighted neighbors, and reference representations are refined through dynamic matching with queries.
- The final prediction is made via a matching processor that computes relevance between query and candidate entities using adaptive attention.
Experimental results
Research questions
- RQ1How can entity representations be made dynamic to reflect diverse roles in different task relations?
- RQ2Can reference representations be adaptively weighted based on query context to improve few-shot prediction?
- RQ3Does dynamic attention modeling lead to better performance in few-shot knowledge graph completion than static representations?
- RQ4How does the model generalize across relations with varying numbers of candidate entities?
- RQ5Can the model outperform existing state-of-the-art methods under different few-shot settings?
Key findings
- FAAN achieves new state-of-the-art results on both NELL and Freebase datasets for link prediction in few-shot scenarios.
- On NELL, FAAN improves MRR from 0.371 (MetaR) to 0.533 and Hits@10 from 0.453 to 0.766 in the 5-shot setting.
- For relations with large candidate sets (e.g., 10,569 candidates), FAAN maintains strong performance, with Hits@10 of 0.128 compared to MetaR’s 0.086.
- The model shows robustness across relations, outperforming MetaR in 9 out of 11 relation IDs in the NELL test set.
- Case studies confirm that attention weights dynamically adapt: location-related queries attend more to location-related references, and organization-related queries to organization-related references.
- The adaptive matching processor significantly outperforms baselines like LSTM matching and simple reference selection (C1, C2), demonstrating superior relevance computation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.