Answering complex questions requires reasoning over both stated textual context and the underlying world knowledge. While large pretrained language models (LMs) like RoBERTa or BERT are incredibly adept at capturing linguistic patterns, they often struggle with robust reasoning, frequently relying on statistical shortcuts rather than a true understanding of the world. Conversely, Knowledge Graphs (KGs) provide explicit, structured facts (e.g., “A weasel is a predator”), but lack the ability to handle the "messiness" of natural language, such as negation (“not”), hedging (“unlikely”), or complex situational constraints.
Previous attempts to combine these two modalities have been largely "shallow." They either fused the representations only at the very last layer or used one modality to simply seed the other. This created a one-way street where information couldn't flow back and forth to refine the reasoning process.
To address this, researchers have proposed GreaseLM (Graph REASoning Enhanced Language Model), a novel architecture that enables deep, bidirectional fusion between pretrained LMs and Graph Neural Networks (GNNs).
The GreaseLM Architecture
GreaseLM introduces a "deep fusion" approach that allows linguistic nuances and structured world knowledge to interact across multiple layers.
- Unimodal Pre-encoding: The input text first passes through $N$ standard LM layers to establish a baseline linguistic representation.
- GreaseLM Layers: The model then enters $M$ specialized layers where the LM and a GNN (operating on a retrieved subgraph of a KG) run in parallel.
- The Interaction Bottleneck: The core innovation is the introduction of a special interaction token (
[INT]) in the text sequence and an interaction node in the KG. - Modality Interaction (MInt): At the end of each GreaseLM layer, the representations of the interaction token and the interaction node are extracted, concatenated, and passed through a multi-layer perceptron (MLP). This operation "mixes" the information, and the updated representations are sent back to their respective modalities for the next layer.
This bidirectional communication is crucial. It allows the LM to "ground" its tokens in structured facts, while the GNN uses linguistic context to prune or weight the importance of different entities in the graph. For example, if a question asks what is unlikely to happen, the LM communicates this "negative" constraint to the GNN through the interaction bottleneck, preventing the model from focusing on the most common (but contextually incorrect) associations.
Evaluation and Key Results
The model was evaluated on three challenging multiple-choice question-answering (MCQA) benchmarks: CommonsenseQA (general background knowledge), OpenbookQA (elementary science reasoning), and MedQA-USMLE (professional medical licensing questions). The researchers utilized ConceptNet for general reasoning and a self-constructed medical KG (integrating UMLS and DrugBank) for the medical tasks.
State-of-the-Art Performance and Efficiency
GreaseLM achieved state-of-the-art results across these complex tasks. On the CommonsenseQA in-house split, GreaseLM achieved 74.2% accuracy, a significant jump over the previous best KG+LM model (QA-GNN at 73.4%) and raw RoBERTa (68.7%). In the highly specialized medical domain (MedQA), GreaseLM reached 38.5% accuracy, outperforming specialized biomedical models like BioBERT and SapBERT.
Furthermore, deep fusion proved to be vastly more efficient than brute-force scaling. With approximately 350M parameters, GreaseLM outperformed models up to eight times its size (such as the 3B parameter T5 model) on OpenbookQA, and remained highly competitive with massive 11B parameter models like UnifiedQA.
Handling Linguistic Nuance
Standard LMs typically stumble when faced with complex phrasing. Quantitative analysis demonstrated that GreaseLM significantly outperforms baselines on questions containing multiple prepositional phrases, negation terms, and hedging.
Visualizations of the model's attention weights confirmed that GreaseLM correctly shifts its focus across layers based on the "logic" of the sentence, whereas previous models often maintained a static, incorrect focus.
Limitations and Future Work
While highly effective, GreaseLM does have limitations. It relies on a separate retrieval step to pull a relevant subgraph from a massive KG; if this step misses a crucial entity, the model's reasoning ceiling is lowered. Additionally, running a GNN alongside an LM adds computational overhead compared to a standard transformer of the same size.
Future directions include exploring more sophisticated "MInt" operators beyond simple MLPs and investigating ways to integrate the KG retrieval more tightly into the end-to-end training process, potentially allowing the model to learn how to retrieve the best knowledge graphs dynamically.
Summary updated