Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Graph Convolutional Networks for Text Classification

Text GCN classifies documents by graph convolution over the whole corpus

  • Problem Convolutional and recurrent text classifiers read words in short windows, so they miss word co-occurrence across a whole corpus, which links words far apart.
  • Method Text GCN puts documents and words as nodes in one corpus graph, weighted by TF-IDF and PMI. A two-layer graph convolution is then trained with labels on the document nodes.
  • Results On 20-Newsgroups, Text GCN reached 0.8634 ± 0.0009 accuracy, against 0.8516 ± 0.0029 for SWEM, the strongest comparison method there.

Why a corpus-level graph

Convolutional and recurrent text classifiers read words in short consecutive windows, which captures nearby syntax and meaning well. Their weak point is the global word co-occurrence across a corpus, which links words that sit far apart in different documents.

The authors instead place documents and words together as nodes in one graph built from the whole corpus, so classification becomes node classification. Earlier graph methods for text either treated each document or sentence as its own graph of word nodes, or depended on citation links between documents. The corpus graph here needs neither, which the authors state as the difference from that prior work.

Building the text graph

Each node receives a one-hot vector, so the input feature matrix is an identity matrix with one row per word and per document. The model therefore starts without pre-trained word embeddings or external knowledge, and all word and document representations are learned during training.

A document-word edge takes the TF-IDF weight of the word in that document, combining the count of the word in the document with an inverse document frequency. In preliminary experiments, TF-IDF weights gave better results than term frequency alone.

Word-word edges come from a fixed-size sliding window slid over every document, which gives co-occurrence statistics for the whole corpus. The weight is point-wise mutual information, \\(\\mathrm{PMI}(i,j)=\\log \\frac{p(i,j)}{p(i)\\,p(j)}\\), where \\(p(i,j)=\\#W(i,j)/\\#W\\) and \\(p(i)=\\#W(i)/\\#W\\) are estimated from counts of sliding windows, with \\(\\#W\\) the total number of windows.

Only pairs with a positive PMI get an edge, since a negative value is read as little or no semantic correlation. In preliminary experiments, PMI weights beat raw co-occurrence counts.

Each node is connected to itself, and the diagonal of the adjacency matrix is set to 1.

Two-layer propagation and classifier

One graph convolution layer lets each node see only its immediate neighbors. Stacking layers extends the reach.

The full model is \\(Z=\\mathrm{softmax}(\\tilde A\\,\\mathrm{ReLU}(\\tilde A X W_0) W_1)\\). The second-layer node embeddings have one column per class, so the softmax turns them into class probabilities.

Two layers let a node exchange information with nodes at most two steps away. Two documents with no direct edge can therefore influence each other through a shared word. In preliminary experiments, two layers beat one layer, and more layers did not improve results. The authors read the propagation as a form of Laplacian smoothing that averages a node with its second-order neighbors, and they argue that label information flows from document nodes through word nodes to the rest of the graph.

Training with labeled documents

Training minimizes a cross-entropy error summed over the labeled documents and over the output classes, \\(\\mathcal{L}=-\\sum_{d\\in Y_D}\\sum_{f=1}^{F} Y_{df}\\ln Z_{df}\\), where \\(Y\\) is the label indicator matrix and \\(F\\) is the number of classes. Unlabeled documents and all word nodes enter the loss only through the graph, since the sum runs over labeled documents alone.

The weights \\(W_0\\) and \\(W_1\\) are updated by gradient descent.

Text GCN uses a first-layer embedding size of 200 and a sliding window size of 20, with learning rate 0.02 and dropout rate 0.5. The authors report that small changes to the other settings did not change results much. Training uses Adam for at most 200 epochs, with 10% of the training set held out as validation, and stops when the validation loss has not decreased for 10 consecutive epochs.

Benchmark accuracy against baselines

Five corpora are used: 20-Newsgroups with 18,846 documents, Ohsumed restricted to single-label documents (7,400), R8 and R52 from Reuters 21578, and MR. Stop words were removed and words appearing fewer than 5 times were dropped for 20NG, R8, R52 and Ohsumed, while MR kept all words after cleaning.

Each model was run 10 times, and Text GCN's mean accuracy on 20-Newsgroups was 0.8634 ± 0.0009, against 0.8516 ± 0.0029 for SWEM, the strongest comparison method on that corpus. On R8, Text GCN reached 0.9707 ± 0.0010 against 0.9699 ± 0.0012 for Graph-CNN-C, a small margin.

On R52, Text GCN reached 0.9356 ± 0.0018, above SWEM at 0.9294 ± 0.0024. On Ohsumed it reached 0.6836 ± 0.0056, against 0.6386 ± 0.0053 for Graph-CNN-C. The paper reports these gains over baselines as significant with a t-test at p < 0.05 on the four corpora 20NG, R8, R52 and Ohsumed.

Among the non-graph baselines, TF-IDF + LR at 0.8319 ± 0.0000 beat CNN-rand at 0.7693 ± 0.0061 on 20-Newsgroups, and PTE and fastText beat PV-DBOW and PV-DM. The authors attribute the gap between PV-DBOW and PV-DM on one side and PTE and fastText on the other to supervised learning of document embeddings, which lets label information shape them.

Accuracy with few labeled documents

The authors reduced the training sets of 20NG and R8 to 1%, 5%, 10% and 20% of their original size and evaluated several of the best-performing models at each proportion.

With 20% of the 20NG training documents, Text GCN reached 0.8063 ± 0.0025. With only 1% of the R8 training documents, it reached 0.8830 ± 0.0027, which the authors report as higher than some baselines trained on the full training set. The authors relate this to GCN's known good performance at low label rates, and read it as label information spreading over the whole graph.

Window size and embedding dimension

On R8 and MR, the window size was varied from 5 to 30, and accuracy rose as the window grew. The average accuracy stops increasing once the window size exceeds 15. The authors read this as small windows giving too little global co-occurrence, while large windows add edges between weakly related nodes.

The first-layer embedding dimension was varied from 0 to 300 on R8 and MR, and the authors observed trends similar to the window study. Low dimensions may fail to spread label information across the graph, while high dimensions brought no gain and cost more training time.

Inspecting the learned embeddings

The authors use t-SNE to project 200-dimensional first-layer and 20-dimensional second-layer test document embeddings for 20NG, together with PV-DBOW and PTE. The second-layer embeddings look more separable than the first-layer ones, and this is a visual judgement rather than a measured score.

For word embeddings, each word is given the label of its largest second-layer dimension and plotted with t-SNE, and words with the same label tend to sit together. The top ten words per class in Table 3 include jpeg, graphics and image for comp.graphics, and similar lists for sci.space, sci.med and rec.autos.

Limitations

The GCN is transductive because unlabeled test documents are included in training, so Text GCN cannot quickly produce embeddings or predictions for unseen test documents. The authors name inductive GCN (Hamilton, Ying, and Leskovec 2017) and fast GCN (Chen, Ma, and Xiao 2018) as possible routes.

On MR, Text GCN scored 0.7674 ± 0.0020, below CNN-non-static at 0.7775 ± 0.0072. The authors give three reasons: GCN ignores word order, the MR graph has few document-word and word-word edges because the documents are short and the windows few, and CNN and LSTM use pre-trained embeddings while Text GCN uses only the target corpus.

The label-rate tests cover only 20NG and R8, and the embedding visualizations cover only 20NG. The main comparison uses five corpora with 10 runs per model, and the preliminary checks on layer count and edge weighting are reported only in the text.

Paper info

Authors
Yao, Liang, Mao, Chengsheng, Luo, Yuan
Venue
arXiv · Preprint
First published
2018-9-15
Added
2026-11-12
Updated
2018-11-13
Version
v3
arXiv
1809.05679
Category
cs.CL · cs.AI
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Yao, Liang, Mao, Chengsheng, Luo, Yuan (2018). Graph Convolutional Networks for Text Classification. arXiv:1809.05679v3. https://arxiv.org/abs/1809.05679v3

BibTeX
@misc{liang2018graph,
  title = {{Graph Convolutional Networks for Text Classification}},
  author = {Yao, Liang and Mao, Chengsheng and Luo, Yuan},
  year = {2018},
  eprint = {1809.05679},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.05679v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up