This invention discloses an
information retrieval optimization method based on few-sample
knowledge graph completion. It constructs a few-sample
knowledge graph completion model, GAKDN, and utilizes a gated and role-aware neighbor aggregator to effectively filter neighbor
noise information, reducing the
impact of
noise on entity embedding learning. A role recognition network learns deep associations between entities and their neighbors, identifying the roles of entities under different few-sample relationships. Knowledge
distillation extracts structural information between entity pairs corresponding to few-sample relationships, alleviating the problem of
insufficient sample representation. An
adaptive matching processor calculates the scores of the positive and negative query sets and the support set, finding the most suitable entity for completion based on the highest
score. This invention solves the problems of noisy neighborhoods, multiple entity roles, and
insufficient sample feature learning in few-sample scenarios, thereby more accurately predicting the
tail entity to be completed, improving the accuracy of
knowledge graph completion in few-sample scenarios, and optimizing the
information retrieval capability of knowledge graphs.