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

Convolutional Neural Networks for Sentence Classification

Pre-trained word vectors let a simple CNN classify sentences well

  • Problem Randomly initialized word vectors leave a CNN weak on small labelled sentence datasets. Learning good vectors from so little labelled text is hard.
  • Method CNN-static is a simple CNN with one-layer convolutions over word2vec vectors that stay fixed. Max-over-time pooling and dropout feed a softmax layer, and a second variant fine-tunes the vectors.
  • Results CNN-static scored 86.8 on SST-2, compared with 82.7 for the randomly initialized CNN-rand.

Why random word vectors fall short

Sentence classifiers begin with word vectors, which are dense representations in which semantically close words sit close together. Learning those vectors from a small labelled set is hard, which is why borrowing vectors from an unsupervised model is attractive when a large supervised set is missing. The baseline shows the cost: with every word randomly initialized and tuned only on the task, the CNN does not perform well on its own.

The authors had expected gains from pre-trained vectors but were surprised by how large they turned out to be.

So the open question is whether vectors from an unsupervised model can carry one simple CNN across different sentence tasks.

A one-layer CNN over word vectors

The core idea is to treat a sentence as a stack of word vectors and slide small filters over it, so that each filter responds to one short run of words wherever that run appears. A sentence of length n becomes a matrix with one row per word, where each row is a k-dimensional vector, and each filter covers a window of h consecutive words. Each window yields one feature, \(c_i = f(w \cdot x_{i:i+h-1} + b)\), where w is the filter, b is a bias and f is a non-linear function.

The paper gives the hyperbolic tangent as its example of f, but its experiments use rectified linear units.

Applying one filter to every window yields a feature map, and max-over-time pooling keeps only its largest value as that filter's feature. Because each filter contributes a single value whatever the sentence length, sentences of different lengths fit the same model. The pooled features from all filters form the penultimate layer, and a fully connected softmax layer turns them into a probability distribution over labels.

The experiments use 100 feature maps for each window size of 3, 4 and 5.

The multichannel variant places the word vectors in two channels, and each filter is applied to both channels with the results added before the bias. Gradients flow back through only one channel, so one set of vectors is fine-tuned while the other stays static, and both start from word2vec.

Regularization and training settings

Dropout is applied to the penultimate layer, where each unit is kept with probability \(p\) during training and the rest are masked out. The masked output is \[ y = w \cdot (z \circ r) + b \] where r is a vector of Bernoulli variables, so gradients pass only through the units that are kept. At test time the learned weights are scaled by \(p\) and used without dropout, and the setting is \(p = 0.5\) on all datasets.

The model also caps the weight vectors: after each gradient step, a weight vector is rescaled to l2-norm \(s\) whenever its norm exceeds \(s\). Here \(s = 3\) on every dataset, which limits how large the weights can grow while leaving smaller vectors untouched.

Training runs stochastic gradient descent over shuffled mini-batches of 50, with Adadelta as the update rule. Early stopping on dev sets is the only per-dataset tuning, and a grid search on the SST-2 dev set chose the shared values. Datasets without a standard dev set hold out a random 10% of their training data for development.

Static versus fine-tuned vectors on seven benchmarks

Switching from random to pre-trained vectors raised the score on MR from 76.1 for CNN-rand to 81.0 for CNN-static. On SST-2 the same switch moved the score from 82.7 to 86.8, while SST-1 barely changed, from 45.0 to 45.5.

CNN-static also holds up against methods that need more machinery, such as complex pooling or parse trees. On SST-2 it scored 86.8, the same as DCNN and above the 85.4 of RNTN. The authors read this as evidence that the pre-trained vectors work as general features across datasets.

Fine-tuning helped on most datasets: on SST-1 the score moved from 45.5 to 48.0, and on TREC it went from 92.8 to 93.6. It did not help everywhere, since CR fell from 84.7 for CNN-static to 84.3 for CNN-non-static. Each cell gives a single score with no spread, so gaps of a few tenths are hard to read.

The multichannel model scored 88.1 on SST-2 and 85.0 on CR, the highest of the CNN variants in those columns. On SST-1 it scored 47.4, below the 48.0 of CNN-non-static, so the two-channel design did not win on every dataset.

Capacity and dropout effects

Kalchbrenner et al. report 37.4% on SST-1 for Max-TDNN with randomly initialized words, compared to 45.0 for CNN-rand here. The 37.4% is the cited figure, not a rerun under this paper's settings. The authors attribute the gap to their CNN having more capacity, with multiple filter widths and feature maps. The paper reports no controlled run that isolates that capacity effect.

Dropout was a strong regularizer in the authors' experiments, adding 2%–4% relative performance. Because of this, they were comfortable using a larger than necessary network and letting dropout regularize it.

What fine-tuning changes in the vectors

Table 3 lists nearest neighbours by cosine similarity for the static channel and the fine-tuned non-static channel of the multichannel model on SST-2. In word2vec good is most similar to bad, presumably because the two are nearly syntactically equivalent. After fine-tuning on SST-2, good is no longer most similar to bad. The authors argue that good is closer to nice than to great for expressing sentiment, and say the learned vectors reflect this.

Tokens absent from word2vec start random and become more meaningful through fine-tuning. The authors read the neighbour lists as showing exclamation marks linked to effusive expressions and commas linked to conjunctive use.

Open problems in the multichannel design

The multichannel results are mixed, so the authors treat regularizing the fine-tuning step as an open problem. They suggest keeping one channel and adding extra dimensions that can be modified during training as one route forward.

In brief tests, Wikipedia vectors from Collobert et al. did worse than word2vec. It isn't clear whether that gap comes from the architecture or from the Google News corpus. Four datasets, MR, Subj, CR and MPQA, have no standard split and use 10-fold cross-validation.

Paper info

Authors
Yoon Kim
Venue
arXiv · Preprint
First published
2014-8-25
Added
2026-11-11
Updated
2014-9-3
Version
v2
arXiv
1408.5882
Category
cs.CL · cs.NE
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

Yoon Kim (2014). Convolutional Neural Networks for Sentence Classification. arXiv:1408.5882v2. https://arxiv.org/abs/1408.5882v2

BibTeX
@misc{kim2014convolutional,
  title = {{Convolutional Neural Networks for Sentence Classification}},
  author = {Yoon Kim},
  year = {2014},
  eprint = {1408.5882},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1408.5882v2}
}

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