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:
- Sequential Hyperedges: These connect all words within a sentence, preserving local structural context.
- 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.
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.
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