Do We Really Need GNNs with Explicit Structural Modeling? MLPs Suffice for Language Model Representations

Li Zhou, Hao Jiang, Junjie Li, Zefeng Zhao, Feng Jiang, Wenyu Chen, Haizhou Li · DOI

Abstract

In Natural Language Processing (NLP), Graph Neural Networks (GNNs) are frequently employed as auxiliary modules to inject explicit linguistic structures—such as dependency trees or semantic roles—into Language Models (LMs). This paper challenges the necessity of such complex structural modeling. By decoupling GNNs into their fundamental components—message passing and feature transformation—the authors reveal that the performance gains attributed to GNNs are primarily driven by simple Multi-Layer Perceptrons (MLPs). Across a variety of benchmarks, MLP-only modules consistently outperform full GNNs, suggesting that modern LMs already internalize sufficient structural information.

Introduction

The prevailing consensus in NLP has long held that while Pre-trained Language Models (PLMs) are powerful, they benefit significantly from "explicit structural modeling." This typically involves parsing sentences into syntax or semantic graphs and processing them with GNNs to capture linguistic "shape." However, GNNs introduce significant computational overhead and scaling challenges. This research asks a fundamental question: Is the "graph" component of a GNN truly beneficial, or is the performance boost simply a result of adding learnable parameters via MLP layers?

Methodology: Decoupling the GNN

To isolate the effects of graph-based aggregation versus linear transformation, the authors developed a modular probing framework. They tested three major architectures: BERT (encoder), T5 (encoder-decoder), and Llama-3 (adapted via LLM2Vec). A "Control Module" was inserted before the final classification head to evaluate four distinct configurations:

  1. Without: A baseline with no additional module.
  2. GNN: A standard graph-aware model combining message passing and feature transformation.
  3. Message-only: Pure graph aggregation with minimal learnable parameters.
  4. MLP-only: Pure feature transformation using a simple MLP, completely ignoring graph structure.
The modular probing framework decouples GNNs into message-passing and MLP components to isolate their effects.

The evaluation utilized the Edge Probing Suite across gold-standard datasets including OntoNotes 5.0, English Web Treebank (UD 2.2), and SemEval 2010 Task 8, covering tasks from POS tagging to relation classification.

Key Insights and Results

The MLP Supremacy

The most striking finding was that MLP-only modules outperformed full GNNs in nearly every task. For BERT, adding an MLP improved average performance by 4.52 points, compared to 3.68 for the GNN. This trend held for T5 (+5.82 vs +4.69) and Llama-3 (+3.06 vs +1.84). This suggests that LMs already possess "structure-aware" representations; they merely require a non-linear transformation to surface this knowledge for specific downstream tasks.

Message Passing as Noise

In many cases, explicit message passing acted as noise rather than a signal. For Llama-3, the "Message-only" module led to a significant performance degradation (-5.47 average F1). Forcing the model to aggregate information based on external graphs often conflicted with the model's superior internal attention mechanisms.

Sensitivity to Structural Noise

The authors further tested the models' sensitivity by replacing high-quality Universal Dependency (UD) trees with random graphs. While GNN performance dropped, the MLP component acted as a buffer, mitigating the negative impact of incorrect structural information. In contrast, Message-only modules were highly sensitive to graph quality.

Comparison of F1 scores across various tasks using UD vs. random graphs, highlighting the sensitivity of message-passing components.

Conclusion

This study provides a compelling "Occam's Razor" argument for the use of MLPs over GNNs in structural probing. While GNNs may offer marginal advantages in specific scenarios—such as bridging very long-distance entity spans—the simple MLP is generally faster, more scalable, and more effective at leveraging the latent structural knowledge already present in modern language models. Before implementing complex graph-based architectures, researchers should consider whether a simple MLP might suffice.

Summary updated

BibTeX
@misc{zhou2025do,
  author = {Li Zhou and Hao Jiang and Junjie Li and Zefeng Zhao and Feng Jiang and Wenyu Chen and Haizhou Li},
  title = {{Do We Really Need GNNs with Explicit Structural Modeling? MLPs Suffice for Language Model Representations}},
  year = {2025},
  eprint = {2506.21682},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.21682},
}
Figure