GreaseLM: Graph REASoning Enhanced Language Models for Question Answering
Xikun Zhang, Antoine Bosselut, Michihiro Yasunaga, Hongyu Ren, Percy Liang, Christopher D. Manning, Jure Leskovec
TL;DR
GreaseLM addresses the challenge of answering questions requiring both contextual reasoning and external world knowledge by fusing pretrained language models with knowledge graphs across multiple layers. Its core innovation is a cross-modal fusion mechanism using an interaction token and an interaction node, enabling bidirectional information flow between the LM and KG representations in successive layers. Empirical results on CommonsenseQA, OpenBookQA, and MedQA-USMLE show consistent improvements over strong baselines and other LM+KG methods, including when using smaller, comparably sized models. The approach also demonstrates enhanced handling of linguistic nuances such as negation and hedging, and proves adaptable across domains with different language models and knowledge graphs.
Abstract
Answering complex questions about textual narratives requires reasoning over both stated context and the world knowledge that underlies it. However, pretrained language models (LM), the foundation of most modern QA systems, do not robustly represent latent relationships between concepts, which is necessary for reasoning. While knowledge graphs (KG) are often used to augment LMs with structured representations of world knowledge, it remains an open question how to effectively fuse and reason over the KG representations and the language context, which provides situational constraints and nuances. In this work, we propose GreaseLM, a new model that fuses encoded representations from pretrained LMs and graph neural networks over multiple layers of modality interaction operations. Information from both modalities propagates to the other, allowing language context representations to be grounded by structured world knowledge, and allowing linguistic nuances (e.g., negation, hedging) in the context to inform the graph representations of knowledge. Our results on three benchmarks in the commonsense reasoning (i.e., CommonsenseQA, OpenbookQA) and medical question answering (i.e., MedQA-USMLE) domains demonstrate that GreaseLM can more reliably answer questions that require reasoning over both situational constraints and structured knowledge, even outperforming models 8x larger.
