Be More with Less: Hypergraph Attention Networks for Inductive Text Classification

Kaize Ding, Jianling Wang, Jundong Li, Dingcheng Li, Huan Liu

Introduction

Text classification is a foundational task in natural language processing. While Graph Neural Networks (GNNs) have shown promise by capturing long-distance word dependencies, they face significant hurdles. Standard GNNs rely on pairwise edges, failing to capture high-order interactions like idioms (e.g., "eat humble pie"). Furthermore, models like TextGCN require massive corpus-wide graphs, leading to high memory consumption and a transductive nature that necessitates retraining for new documents.

Methodology: The HyperGAT Framework

To overcome these limitations, we introduce HyperGAT (Hypergraph Attention Networks). Unlike traditional GNNs, HyperGAT models each document as an independent hypergraph where a single hyperedge can connect multiple nodes.

Hypergraph Construction

HyperGAT utilizes two types of hyperedges to capture diverse contexts:

  1. Sequential Hyperedges: These connect all words within a sentence, preserving local structural context.
  2. Semantic Hyperedges: Using Latent Dirichlet Allocation (LDA), the top $K$ words of a document's topics form hyperedges, capturing global thematic connections.

Dual Attention Mechanism

The model employs a two-step attention process within each layer to refine representations:

  • Node-level Attention: Weights the importance of words within a specific hyperedge.
  • Edge-level Attention: Determines which hyperedges are most informative for a specific word's final representation.
Figure 1: The HyperGAT architecture illustrating the dual attention mechanism and document-level hypergraph processing.

By operating on document-level graphs, HyperGAT is inherently inductive, allowing it to generalize to unseen documents without retraining the entire corpus graph.

Experimental Results

HyperGAT was evaluated against benchmarks including 20-Newsgroups (20NG), Reuters (R8 & R52), Ohsumed, and Movie Review (MR).

Performance and Efficiency

HyperGAT consistently outperformed baselines like TextGCN, BERT, and LSTMs. Notably, it achieved this with extreme efficiency. On the 20NG dataset, HyperGAT reduced GPU memory usage from TextGCN's 14.4 GB to just 180 MB—a nearly 80x improvement.

Robustness in Low-Data Scenarios

One of HyperGAT's most significant advantages is its performance when labeled data is scarce. By leveraging rich internal document structures, it maintains high accuracy even with minimal training examples.

Figure 2: Performance comparison on the Ohsumed dataset across different training percentages, highlighting HyperGAT's superiority in low-data regimes.

Conclusion

HyperGAT demonstrates that "more is less": by using a more complex data structure (hypergraphs), it achieves greater efficiency and accuracy. Future work may explore integrating syntactic hyperedges or end-to-end topic modeling to further enhance its capabilities.

Summary updated

BibTeX
@inproceedings{ding2020be,
  author = {Kaize Ding and Jianling Wang and Jundong Li and Dingcheng Li and Huan Liu},
  title = {{Be More with Less: Hypergraph Attention Networks for Inductive Text Classification}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.399},
}
Figure