paper-with-me

Papers

KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning

2024-09-19 · Junnan Liu, Qianren Mao, Weifeng Jiang, JianXin Li

Knowledge graph reasoning plays a vital role in various applications and has garnered considerable attention. Recently, path-based methods have achieved impressive performance. However, they may face limitations stemming from constraints in message-passing neural networks, such as missing paths and information over-squashing. In this paper, we revisit the application of transformers for knowledge graph reasoning to address the constraints faced by path-based methods and propose a novel method KnowFormer. KnowFormer utilizes a transformer architecture to perform reasoning on knowledge graphs from the message-passing perspective, rather than reasoning by textual information like previous pretrained language model based methods. Specifically, we define the attention computation based on the query prototype of knowledge graph reasoning, facilitating convenient construction and efficient optimization. To incorporate structural information into the self-attention mechanism, we introduce structure-aware modules to calculate query, key, and value respectively. Additionally, we present an efficient attention computation method for better scalability. Experimental results demonstrate the superior performance of KnowFormer compared to prominent baseline methods on both transductive and inductive benchmarks.

📄 PDF Abstract BibTeX arXiv:2409.12865

Code (0)

등록된 구현이 없습니다.

Tasks

Knowledge GraphsLanguage ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Question-guided Knowledge Graph Re-scoring and Injection for Knowledge Graph Question Answering

2024-10-02 · Yu Zhang, Kehai Chen, Xuefeng Bai, Zhao Kang 외

Knowledge graph question answering (KGQA) involves answering natural language questions by leveraging structured information stored in a knowledge graph. Typically, KGQA initially retrieve a targeted subgraph from a larg…

Graph Question AnsweringQuestion Answering

GNN is a Counter? Revisiting GNN for Question Answering

2021-10-07 · ICLR 2022 4 · Kuan Wang, Yuyu Zhang, Diyi Yang, Le Song 외

Question Answering (QA) has been a long-standing research topic in AI and NLP fields, and a wealth of studies have been conducted to attempt to equip QA systems with human-level reasoning capability. To approximate the c…

Knowledge GraphsQuestion Answering

Revisiting the Graph Reasoning Ability of Large Language Models: Case Studies in Translation, Connectivity and Shortest Path

2024-08-18 · Xinnan Dai, Qihao Wen, Yifei Shen, Hongzhi Wen 외

Large Language Models (LLMs) have achieved great success in various reasoning tasks. In this work, we focus on the graph reasoning ability of LLMs. Although theoretical studies proved that LLMs are capable of handling gr…

Knowledge Graphs

Enhancing Transformers for Generalizable First-Order Logical Entailment

2025-01-01 · Tianshi Zheng, Jiazheng Wang, ZiHao Wang, Jiaxin Bai 외

Transformers, as a fundamental deep learning architecture, have demonstrated remarkable capabilities in reasoning. This paper investigates the generalizable first-order logical reasoning ability of transformers with thei…

Logical ReasoningOut-of-Distribution Generalization

Can Demographic Factors Improve Text Classification? Revisiting Demographic Adaptation in the Age of Transformers

2022-10-13 · Chia-Chien Hung, Anne Lauscher, Dirk Hovy, Simone Paolo Ponzetto 외

Demographic factors (e.g., gender or age) shape our language. Previous work showed that incorporating demographic factors can consistently improve performance for various NLP tasks with traditional NLP models. In this wo…

Language ModelingLanguage ModellingMulti-Task Learningtext-classification+1