Continual Graph Convolutional Network for Text Classification

Tiandeng Wu, Qijiong Liu, Yi Cao, Yao Huang, Xiao-Ming Wu, Jiandong Ding

Abstract

Traditional Graph Convolutional Networks (GCNs) for text classification are primarily transductive, relying on a static graph structure that requires retraining when new documents or tokens appear. This limitation hinders their application in real-time, streaming environments. This paper introduces ContGCN (Continual Graph Convolutional Network), a framework designed for online text classification. By shifting from a fixed graph to an "All-Token-Any-Document" (ATAD) paradigm, incorporating an Occurrence Memory Module (OMM) for dynamic edge updates, and utilizing a Label-free Updating Mechanism (LUM) for self-supervised adaptation, ContGCN enables continuous learning on streaming data. Experimental results demonstrate an 8.86% performance improvement in live industrial systems and state-of-the-art accuracy on academic benchmarks.

Introduction

Graph Convolutional Networks (GCNs) have set high standards in text classification by capturing global semantic relationships between words and documents. However, their practical utility in production environments is often limited by their transductive nature. In the conventional "Seen-Token-Seen-Document" paradigm, the graph structure is fixed during training. When a system encounters a previously unseen document or a novel vocabulary term—common occurrences in news feeds or social media—the existing graph cannot accommodate the new data without a computationally expensive full rebuild and retrain.

To address this, researchers have developed ContGCN, a model that bridges the gap between the relational power of GCNs and the flexibility required for real-time, streaming applications.

The Limitations of Transductive GCNs

In standard GCN-based text classification, a single large graph is constructed where nodes represent specific documents and words from the training set. Edges are typically defined by Term Frequency-Inverse Document Frequency (TF-IDF) or Pointwise Mutual Information (PMI). While effective for static datasets, this approach fails in "online" scenarios. Because the model's "worldview" is restricted to the tokens and documents present at the time of training, it cannot generalize to the evolving nature of human language and the constant influx of new information without constant manual intervention.

The ContGCN Framework

ContGCN overcomes these hurdles through three core architectural innovations:

1. The ATAD Paradigm (All-Token-Any-Document)

Instead of building a graph around a specific training set, ContGCN utilizes the entire vocabulary of a Pretrained Language Model (PLM), such as BERT or RoBERTa, as a permanent set of token nodes. When new documents arrive in a stream, they are treated as temporary nodes that "plug into" the existing token network based on the words they contain. This allows the model to process any document on the fly without altering the underlying graph architecture.

2. Occurrence Memory Module (OMM)

To maintain meaningful relationships between tokens over time, the model employs the OMM. This module tracks token co-occurrences across the entire history of the data stream. Initialized with a massive corpus (Wikipedia), the OMM incrementally updates edge weights as new text is processed. This ensures that the graph's understanding of language evolves—prioritizing recent context while retaining long-term semantic knowledge.

3. Label-free Updating Mechanism (LUM)

Real-world data is subject to "concept drift," where the distribution of topics changes over time. To adapt without requiring constant human labeling, ContGCN uses LUM. This mechanism employs an anti-interference contrastive loss, a self-supervised technique that helps the model distinguish a document's unique features from the collective "noise" of a processing batch. By generating "jammed" and "unjammed" embeddings, the model learns to remain robust against batch-level interference, allowing for continuous fine-tuning on unlabeled streaming data.

Experimental Results

Academic Benchmarks

The researchers evaluated ContGCN against five standard datasets: 20Newsgroups (20NG), R8, R52, Ohsumed, and Movie Review (MR). Using RoBERTa as a backbone, ContGCN achieved a peak accuracy of 90.1% on the 20NG dataset, outperforming both standalone PLMs and previous hybrid models like BertGCN.

Industrial Deployment

Beyond the lab, ContGCN underwent a rigorous three-month A/B test within the Huawei public opinion analysis system. This system processes thousands of daily comments where topics shift rapidly. ContGCN delivered an 8.86% performance gain over the existing state-of-the-art production models. Furthermore, the model demonstrated high efficiency; unlike traditional GCNs, which see training times balloon as datasets grow, ContGCN’s fine-tuning time remained stable, proving its sustainability for long-term deployment.

Conclusion and Future Work

ContGCN represents a significant step forward in making graph-based neural networks viable for real-world, dynamic text classification. By moving away from static graph structures and embracing a continual learning approach, the framework maintains high accuracy and adaptability in the face of streaming data.

Future research may focus on optimizing the memory overhead associated with the OMM for even larger vocabularies and exploring the application of this continual graph approach to other domains, such as dynamic recommendation engines or real-time social network analysis.

Summary updated

BibTeX
@inproceedings{wu2023continual,
  author = {Tiandeng Wu and Qijiong Liu and Yi Cao and Yao Huang and Xiao-Ming Wu and Jiandong Ding},
  title = {{Continual Graph Convolutional Network for Text Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i11.26611},
}
Figure