Graph affine Transformer with a symmetric adaptation strategy for text classification
摘要
Text classification is a foundational natural language processing task. Many models have transformed text data into innovative graph structures and employed graph neural networks (GNNs) to learn representations for classification. However, graphs constructed based on artificial rules may contain redundant connections, which can introduce noise. Additionally, graph neural network-based (GNN-based) models are ineffective in learning word order. To cope with these difficulties, we propose graph affine Transformer with a symmetric adaptation strategy (GATSAS) for text classification. After graph construction, a symmetric gated graph neural network is crafted to detect edge attributes and remove trivial connections. In the graph learning step, graph affine Transformer encodes word positions and updates word representations with multi-head graph affine attention. Then, the readout module fuses word features to achieve text representation. The experimental results show that GATSAS has an average accuracy of 0.11