Hierarchical information matters: Text classification via tree based graph neural network

Chong Zhang, He Zhu, Xingyu Peng, Junran Wu, Ke Xu
10/5/2021
9 citations
cs.CLcs.AI
gnn

Official code: Daisean/HINT (4 stars, Python, last commit 2023-02-07).

Abstract

Text classification is a primary task in natural language processing (NLP). Recently, graph neural networks (GNNs) have developed rapidly and been applied to text classification tasks.

Show full abstract

As a special kind of graph data, the tree has a simpler data structure and can provide rich hierarchical information for text classification. Inspired by the structural entropy, we construct the coding tree of the graph by minimizing the structural entropy and propose HINT, which aims to make full use of the hierarchical information contained in the text for the task of text classification. Specifically, we first establish a dependency parsing graph for each text. Then we designed a structural entropy minimization algorithm to decode the key information in the graph and convert each graph to its corresponding coding tree. Based on the hierarchical structure of the coding tree, the representation of the entire graph is obtained by updating the representation of non-leaf nodes in the coding tree layer by layer. Finally, we present the effectiveness of hierarchical information in text classification. Experimental results show that HINT outperforms the state-of-the-art methods on popular benchmarks while having a simple structure and few parameters.

View on arXivView PDF

Code Implementations(1)

Daisean/HINTOfficial100%
44PythonSep 28, 20213 years ago

Similar Papers

Cite this paper

@article{zhang2021hierarchical,
  title  = {Hierarchical information matters: Text classification via tree based graph neural network},
  author = {Chong Zhang and He Zhu and Xingyu Peng and Junran Wu and Ke Xu},
  year   = {2021},
  eprint = {2110.02047},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.02047}
}

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/2110.02047.svg)](https://codeofpaper.com/paper/2110.02047)

Discussion