Connecting the Dots: What Graph-Based Text Representations Work Best for Text Classification Using Graph Neural Networks?

Margarita Bugueño, Gerard de Melo
5/23/2023
cs.CL

No official code found. Best implementation: Buguemar/GRTC_GNNs (2 stars, last commit 2024-10-30).

Abstract

Given the success of Graph Neural Networks (GNNs) for structure-aware machine learning, many studies have explored their use for text classification, but mostly in specific domains with limited data characteristics. Moreover, some strategies prior to GNNs relied on graph mining and classical machine learning, making it difficult to assess their effectiveness in modern settings. This work extensively investigates graph representation methods for text classification, identifying practical implications and open challenges. We compare different graph construction schemes using a variety of GNN architectures and setups across five datasets, encompassing short and long documents as well as unbalanced scenarios in diverse domains. Two Transformer-based large language models are also included to complement the study. The results show that i) although the effectiveness of graphs depends on the textual input features and domain, simple graph constructions perform better the longer the documents are, ii) graph representations are especially beneficial for longer documents, outperforming Transformer-based models, iii) graph methods are particularly efficient at solving the task.

View on arXivView PDF

Code Implementations(1)

Buguemar/GRTC_GNNsCommunity100%

Public repository of our paper accepted to the Findings of EMNLP 2023: "Connecting the Dots: What Graph-Based Text Representations Work Best for Text Classification using Graph Neural Networks?"

20Python, Jupyter NotebookOct 18, 20231 years ago

Similar Papers

Cite this paper

@article{bugueo2023connecting,
  title  = {Connecting the Dots: What Graph-Based Text Representations Work Best for Text Classification Using Graph Neural Networks?},
  author = {Margarita Bugueño and Gerard de Melo},
  year   = {2023},
  eprint = {2305.14578},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.14578v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.14578.svg)](https://codeofpaper.com/paper/2305.14578)

Discussion