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

Natural Language Processing (almost) from Scratch

Single neural network learns features for several NLP tasks without hand-built inputs

  • Problem Top NLP systems rely on hand-designed features tuned for one benchmark each. Those features depend on earlier systems, so they do not show general language representations.
  • Method The authors train one multilayer network that takes raw word indices and learns its own word embeddings from unlabeled text. Unlike hand-built features, the embeddings are tuned for each task during supervised training.
  • Results The NN+SLL+LM2 model scored 97.20 POS accuracy, compared to 97.24 for the benchmark system.

Why hand-built features keep NLP systems narrow

Most strong systems on these benchmarks apply linear statistical models to ad-hoc features that researchers design by hand. Many of those features come from the output of earlier systems, which creates complex runtime dependencies between components. The approach works, but it invites tuning a system to one benchmark rather than to general representations of language.

The authors want a single learning system that discovers its own internal representations, and they treat each benchmark as an indirect measure of those representations. They call the result almost from scratch, because it still uses a reduced amount of prior NLP knowledge. The four benchmark tasks are POS, chunking, NER and SRL.

A window network over learned word vectors

The core idea is to let the network learn its features during training instead of designing them in advance. Each word index from a finite dictionary is first mapped to a feature vector by a lookup table. The vectors of the words in a window are concatenated and passed through the layers of the network.

A linear layer and a HardTanh non-linearity transform the concatenated vector, and a final linear layer gives one score per possible tag. The network is a composition of layer functions, so any feed-forward design with L layers can be written in that form. Because the lookup table holds trainable parameters like the other layers, the word vectors are tuned for the task together with the rest of the network.

Why SRL needs a sentence-level network

The window approach fails for SRL, because the role of a word depends on a predicate that may sit outside the window. Tagging a word therefore has to consider the whole sentence. The authors use a convolutional network for this case, a design first introduced as Time Delay Neural Networks.

The convolutional layers compute local features around every word of the sentence. Each word also carries relative distances to the chosen verb and to the word being tagged, so the network knows which verb and which target it is working on. The convolutional layer's output is 300 local features per word in the SRL setting.

A Max layer then takes, for each feature, the maximum over all positions in the sentence. This yields a fixed-size vector whatever the sentence length, which the affine layers can use. The authors chose a maximum over an average, because most words in a sentence have little influence on the role of a given word.

Word-level versus sentence-level likelihood

All networks are trained by maximizing a log-likelihood on the training data with stochastic gradient ascent. The word-level version applies a softmax over the tags of each word on its own. That criterion ignores the fact that tags of neighbouring words are correlated, which matters for chunking, NER and SRL.

The sentence-level version adds a transition score for each pair of tags and an initial score for each starting tag. It normalizes the score of the true tag path over all possible tag paths, and a recursion over the words computes this sum in linear time. At test time the Viterbi algorithm replaces the log-add by a max, and tracks back the best path.

For all segment-based tasks the authors use IOBES tags, which removes one source of variation between the benchmarks. Such a scheme marks the begin, inside and end of each segment and adds a single-word tag.

Pretraining embeddings on unlabeled text

The language model is trained with a ranking criterion that scores a real window above the same window with its centre word replaced by another dictionary word. The training corpus holds 852 million words of unlabeled text. Training takes weeks per run, so the authors grow the dictionary in stages and start each network from the embeddings of the earlier one.

Model choices were made by breeding, in which child networks inherit embeddings from their parents and train on richer data with varied parameters. LM1 uses a window size of 11 and 100 hidden units, and its dictionary grows to 100,000 words. LM2 starts from the LM1 embeddings and trains on a second corpus with a 130,000-word dictionary.

The supervised networks start with their lookup tables set to these embeddings, and supervised training may still change them. This keeps the slow language model training separate from the faster supervised training. With this initialization the NN+SLL+LM2 model scored 97.20 POS accuracy, compared to 97.24 for the benchmark system.

Adding parse tree levels to SRL

The SRL networks so far use no parse trees, so the authors add levels of the Charniak parse tree as extra lookup tables. Each level encodes IOBES segment tags, and the 40 phrase labels give each table 161 entries. Level 0 comes from the leaves of the tree, and higher levels are built by trimming those leaves.

Adding level 0 raises validation F1 of NN+SLL+LM2 from 72.29 to 74.44. Using levels 0 to 4 reaches 76.06 test F1, compared to 75.65 for level 0 alone, so the extra levels bring diminishing returns. The six-tree benchmark system scores 77.92 on test, so the single-parse network remains behind it.

Chunk features helped SRL less than parse level 0, because parse leaves cut segments differently from chunk tags. Feeding PT0 into the SRL network gives 75.49 test F1.

Linear versus non-convex networks with Brown clusters

To match classical NLP practice, the authors also train a linear version of the network with fixed inputs. The word lookup table is fixed to the LM2 embeddings, and the other discrete features use sparse one-hot vectors. Training with the sentence-level likelihood in this setting amounts to training a CRF.

Brown cluster features reach 51.54 in the linear setting with 130K words. In the non-convex setting, fixed LM2 embeddings reach 72.24 SRL F1, close to the 72.09 that Brown clusters with 130K words reach.

On NER the non-convex LM2 network scores 89.59, compared to 87.15 for Brown clusters with 130K words. These networks use 300 hidden units, with an extra 500-unit layer for SRL.

Limitations

Language model training takes weeks, so hyperparameters were picked by breeding and not by a full grid search. Ensembles of ten networks multiply running time about tenfold, and a joint combination layer did not improve on simple voting. The parse-tree results use only the Charniak parses supplied with CoNLL 2005, and no other parser was tested.

The convex, linear setting is far weaker on SRL, so the embeddings' value there depends on the non-linear network.

Paper info

Authors
Collobert, Ronan, Weston, Jason, Bottou, Leon, Karlen, Michael, Kavukcuoglu, Koray, Kuksa, Pavel
Venue
arXiv · Preprint
First published
2011-3-2
Added
2026-11-11
Updated
2011-3-2
Version
v1
arXiv
1103.0398
Category
cs.LG · cs.CL
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

Collobert, Ronan, Weston, Jason, Bottou, Leon, Karlen, Michael, Kavukcuoglu, Koray, Kuksa, Pavel (2011). Natural Language Processing (almost) from Scratch. arXiv:1103.0398v1. https://arxiv.org/abs/1103.0398v1

BibTeX
@misc{ronan2011natural,
  title = {{Natural Language Processing (almost) from Scratch}},
  author = {Collobert, Ronan and Weston, Jason and Bottou, Leon and Karlen, Michael and Kavukcuoglu, Koray and Kuksa, Pavel},
  year = {2011},
  eprint = {1103.0398},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1103.0398v1}
}

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