Distributed Representations of Sentences and Documents
Paper · 2014 · Quoc V. Le and Tomas Mikolov
Summary
A sentence and a long review can convey the same judgment, but they supply very different amounts of text. To compare them or pass them to a classifier, it helps to represent each with a list of numbers of a standard length. Counting words is a simple way to do this. It gives identical representations to sentences whose words have been rearranged, and it gives different words separate coordinates even when their meanings are close. Le and Mikolov propose Paragraph Vector, a way to learn a compact numerical representation from the words in a text. The same procedure applies to a phrase, a sentence or a document.
In the main version, each training text gets a vector of its own. Each vocabulary word also has a vector, which it shares across texts. The procedure samples short windows from a text and uses its vector alongside the vectors of the local context words to predict a target word. The same text vector participates in predictions throughout the text, so learning can use it to carry information useful across windows. A second version predicts sampled words from the text vector alone. When a new text arrives, the system keeps the learned word representations and prediction weights fixed and uses the new text’s words to fit a vector for that text. This procedure needs no sentiment labels and runs without a parser. A classifier can then learn to assign sentiment labels from the resulting vectors for text classification.
On the Stanford Sentiment Treebank, the combined representation gives test error rates of 12.2% for positive-versus-negative classification and 51.3% for the finer sentiment categories. On IMDB, where the inputs are reviews with several sentences, it reaches 7.42% test error. These are the lowest errors in the paper’s comparisons for those tasks, which include word counts, short word sequences, averaged word vectors and, on the Treebank, methods that use parse trees. Using word vectors pretrained on news reduces the reported sentiment errors further. The two benchmarks test the same representation idea at different lengths and use different classifiers for sentiment analysis.
The authors also construct a test from search-result snippets. Given a snippet and two candidates, a representation succeeds if it places the candidate returned for the same query closer than a candidate sampled from another query. Paragraph Vector gives 3.82% test error, compared with 5.67% for a bigram representation whose weights were learned for the comparison. The sentiment results measure how well a classifier can use the vectors. The snippet test measures whether distances between the vectors themselves recover a relationship relevant to information retrieval.
Deep dive: Distributed Representations of Sentences and Documents
Paragraph Vector learns a fixed-length representation of a sentence or document by predicting its words, and tests it on sentiment and retrieval. · about 75 minutes to read
The problem and its context
A common input shape for texts of different lengths
A review comes as a sequence, and the number of words is part of what varies from review to review. Logistic regression, one of the paper’s examples, expects a consistent set of input features. A weight learned for a feature on one training case has to apply to that same feature on the next case. Clustering poses a related problem. For a method such as K-means, the representation supplies the coordinates used to decide which items are close. A good feature scheme therefore has to give its coordinates a consistent meaning across texts, even when the texts differ in length and have few words in common. The paper takes this feature-design problem as its starting point in machine learning.
A bag of words solves the input-shape problem by choosing coordinates from a common vocabulary. A document supplies the values for those coordinates, for example by counting occurrences. A short sentence and a long document can consequently be processed by the same classifier. The same vocabulary can also be used to compare a query with a potential result, or to give a spam filter a consistent description of each message. The paper acknowledges the appeal of this approach. It is simple, efficient and can perform well. Any learned representation needs to earn its place against that starting point.
Counting individual words gives the same answer after any rearrangement of those words. For a simple illustration, “the film rescued the ending” and “the ending rescued the film” contribute the same counts. The change in which thing does the rescuing never reaches the classifier. This is a loss at the representation stage. A more elaborate classifier can discover interactions between features that it receives, yet both sentences still present it with the same feature values. The example isolates the problem even before asking how much a particular application depends on such a reversal.
The paper also points to a different issue. In a vocabulary with a separate coordinate for every word, the distinction between two nearly interchangeable words is represented in the same basic way as the distinction between a word and an unrelated place name. The vocabulary index assigns identity, and the choice of coordinates supplies no graded relationship between those identities. From the classifier’s viewpoint this affects how evidence is shared. A useful observation about texts containing one word can help with a near synonym when their representations share learned structure. A plain word-count vector gives each word its own evidence to accumulate. The paper connects this concern to earlier approaches surveyed in work on distributional semantics.
Preserving local order with counts
A bag of short sequences preserves some of what a bag of individual words drops. Each feature now represents an ordered run of neighboring words. A bigram describes a pair, so it can distinguish one arrangement of the pair from its reversal. A longer sequence can keep more of a short construction together. The full text is still represented as an aggregate of the sequences it contains. The order inside each feature is available, while the placement of those features across the text disappears into their counts. This is the role of the n-gram in the paper’s comparison.
Widening the span of the counted sequences has a cost. More word combinations can occupy different coordinates, and a particular combination may have few chances to occur in the training data. The representation can thus have a large number of possible features while a particular text uses only a small share of them. If a phrase recurs with a related word substituted, the resulting sequence can move to another coordinate. Adding longer patterns therefore addresses a real weakness of word counts while increasing the amount of evidence needed to learn about particular combinations.
The authors use this tradeoff to motivate a representation built from learned word vectors. When the input to a predictor consists of vectors for words in ordered positions, sequence information is available in the positions, and related words can have related input values. The paper’s proposal also changes where the fixed-length representation comes from. An n-gram representation is filled by looking up and counting the patterns that occur. Paragraph Vector is fitted by using the text’s words as targets in a prediction problem. Its coordinates are available to support that problem jointly, with no requirement that a particular coordinate stand for a particular word or phrase.
What word prediction had already made possible
The authors draw on earlier work that gives each word a list of trainable values. In one approach they describe, a predictor takes the vectors for preceding words in their order and uses them to estimate which word follows. Training examples need only a sequence of words. The sequence supplies both the context and the target. If the predictor repeatedly needs related information when given two words, learning can move their vectors into related parts of the space. Word prediction provides the pressure for this geometry to emerge in word embeddings.
The paper discusses two examples of the structure that earlier work found in such spaces. Some relations could be recovered by adding and subtracting word vectors in analogy problems. Other work learned a linear mapping between representations from different languages, which could be used for translating words and phrases. The paper presents these as precedents for what can emerge from word-level training. They concern the numerical relationships learned among words, and motivate asking whether a prediction objective can learn meaningful relationships among longer pieces of text. The analogy example comes from Linguistic Regularities in Continuous Space Word Representations.
A word-vector lookup gives a representation for each word, but a downstream classifier still needs a way to turn the entire input into a single vector. A direct approach is to average the vectors of the words in the text. Weighting can make some words count more heavily. The resulting vector has the same length regardless of the number of words that went into it. It also conveys some of the relationships already present in the word space. As the authors point out, averaging loses word order. With the same word contributions, changing their order leaves the average unchanged. A vector of this kind gives the classifier a summary of vocabulary use with a richer geometry than the ordinary vocabulary index.
Paragraph Vector uses the fact that a text offers many opportunities for prediction. The authors turn the identity of the text into an extra input and train its vector alongside the word vectors. A term that never occurs beside a particular target can still affect the fitted representation for the document because it participates in other windows from that document. The important change from averaging is the kind of feedback the representation receives. An average is determined once the word vectors and their weights are given. A Paragraph Vector is judged by how well it helps a shared predictor account for observed words.
Syntax as a way to organize composition
The paper describes a more structured family of approaches that combine word vectors along a sentence’s parse tree. A tree groups words into constituents and provides an order of combination. The representation for a phrase can be assembled from the representations of its parts, and the process can continue up to the whole sentence. Matrix and vector operations learn how to carry information through these combinations. This supplies a route by which the structure of a phrase can influence its representation in work that uses parsing.
The authors discuss these approaches in connection with sentence sentiment. Short reviews can express a judgment through the way their parts combine, so the same words can have different effects in different structures. The authors credit recursive approaches with providing a way to address that problem. Their concern is the unit of representation. A sentence parser can supply a tree for each sentence in a review. A collection of sentence trees leaves a further decision about how to combine their representations across a document. The sentence-level work they discuss leaves that extension unclear. The main comparison on the Treebank comes from Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank.
The paper’s alternative gives all windows from the same document access to a common vector. Its input structure comes from the word sequence and the identity of the text span being represented. It can use the same learning procedure on a sentence or on a review containing several sentences. In the sentiment experiments, the unit chosen for the final prediction remains important. A sentence vector supports a judgment about that sentence. A document vector is fitted across the review, so the classifier receives a single set of features for the document’s label.
Earlier document representation work also included approaches that the paper groups with autoencoders. The authors place their proposal in this broader effort to use learning to obtain useful features for longer texts. They also draw an analogy with Fisher kernels in computer vision, where a gradient derived from an unsupervised generative system serves as a representation. Both use a fitted prediction system to get information about a new item. In Paragraph Vector the representation is the result of updating an item-specific vector through gradient descent. That difference matters when a previously unseen text has to be encoded.
Where the supervision enters
A central practical concern is the availability of labels. The authors want to learn a representation from text even when only some documents have the ratings or categories needed for a downstream task. Every suitable window offers a word that can be predicted, so an unannotated review can contribute training signals to the representation. Learning a classifier for positive and negative reviews is a separate use of annotation. It associates positions in the learned feature space with the labels supplied for particular examples.
This division gives the paper a concrete way to ask what the representations buy. The system has one job while learning the features and another when those features are evaluated. During feature learning, the document vector helps predict words. For sentiment classification, a classifier maps the vector to a rating category. In the retrieval experiment, the desired behavior is a relative distance between snippets. Word prediction supplies the initial organizing signal in both cases. The experiments measure whether that signal yields features that remain useful when the question asked about a text changes.
The method, step by step
Begin with the prediction of a word
Imagine reading a short stretch of text with the next word hidden. Some continuations fit the recent words better than others. The underlying word-vector procedure takes advantage of that regularity. It looks up a vector for each visible word, combines the vectors, and scores possible choices for the hidden word. The word that actually occurred is the training target. Its score relative to the scores of other candidates determines the feedback for learning. Repeating the prediction task on many windows lets the system improve both the predictor and the word vectors it uses.
The paper illustrates the setup with the beginning of a sentence about a cat sitting somewhere. The article, the noun and the verb are the supplied context. The target is the preposition immediately following them. At this point the input is all local. Evidence from farther away in the same sentence or elsewhere in the document is outside the window. The procedure is a word-prediction example of a language model.
Paragraph Vector adds a new source of evidence. Alongside the context words, the predictor receives a vector for the identity of the text from which the window came. For a training document that identity is an index into a separate matrix. Whenever the window moves to another part of the document, the word inputs can change and the document input stays the same. An update from the opening of a review and an update from its ending can therefore affect a common vector. The relationship between those updates is what makes the vector a representation of the review as a whole.
The name Paragraph Vector refers to the role of the text unit in this procedure. A “paragraph” in the algorithm can be the sentence that is being rated, a labeled phrase used in training, or a review spanning several sentences. The choice of unit determines which prediction windows share a vector. The length of that vector is set in advance. A longer document can provide more contexts for training its coordinates while retaining the same input size for a downstream classifier.
Learning and using a distributed memory paragraph vector
The steps in order.
Give words and texts separate lookup tables
The vocabulary is a common index of word types. The word matrix, called W, stores a column for each index. Whenever an occurrence of that word appears in a context, the predictor reads the corresponding column. A word occurring in several paragraphs still points to the same column. This is where cross-document sharing enters. Learning from a context in one text can change the representation of an input word later used in a different text.
The text matrix, D, is indexed by the chosen text units in the training collection. Each unit gets a column of its own. Positions in the same unit use that same column, and positions in different units use their own columns. Two texts can end up with nearby vectors when the fitted values have similar effects on prediction, even though the table assigns them separate identities. Assigning distinct slots is how the optimization knows which predictions are permitted to change the same text representation.
The distinction between the two indexes is critical to understanding the method. A vocabulary entry tells the system which word occurred at a position in the input. The paragraph index tells it which larger span supplied that position. Both values can be supplied as lookups, hence the authors’ analogy between a paragraph identity and an extra word. The identity input occupies its own role across the entire text. Its vector learns through the pattern of prediction errors associated with that span.
The trainable input size depends on the number of vocabulary entries and the number of text units. The paper counts the parameters for their two lookup tables as follows.
N × p + M × q
N is the number of paragraphs in the corpus, and p is the number of coordinates in a paragraph vector. M is the number of vocabulary words, and q is the number of coordinates in a word vector. The multiplication sign × gives the size of each table as a count of columns times coordinates per column. The plus sign combines those counts. This expression covers D and W. The parameters of the word predictor are additional.
A large corpus can produce a large D even when each column is relatively short. The paper distinguishes that storage cost from the work on an individual training example. One sampled window uses the column of the current text and the word columns needed for that context. The lookup updates can therefore be sparse. Most texts and vocabulary entries have no input role in that particular window and receive no lookup update from it. The output computation has its own cost, which the authors address through a hierarchy over candidate words.
State the prediction objective
The starting point is to make observed words probable under their supplied contexts. The paper writes the objective for the word-vector procedure using positions around a target. Its examples and experimental descriptions also use the next word after a run of preceding words. In either presentation, the target appears as the word being scored, and the context consists of the input words made available for predicting it. The average log-probability objective is written as follows.
(1 / T) ∑ₜ₌ₖᵀ⁻ᵏ log p(wₜ ∣ wₜ₋ₖ, …, wₜ₊ₖ)
The training sequence is indexed by word position. T is its length, t is the current position, and wₜ is the token observed at that position. The fixed window parameter k gives the offsets in the context notation. The entries wₜ₋ₖ and wₜ₊ₖ mark the left and right bounds, and the ellipsis stands for the intervening context inputs, with the target itself held out. The sum ∑ runs from k through T minus k, as indicated by the lower and upper indices. The factor 1 divided by T scales the sum by sequence length. Here p is a probability function, distinct from the dimension p in the parameter count. The conditional bar ∣ separates the target from the given context. The logarithm log converts its probability to the contribution that the objective maximizes.
The objective rewards probability assigned to the words that occur. A predictor that puts little probability on the observed target receives a low log probability at that position. Placing more probability on the observed target improves its contribution. The role of the features is therefore specific: they provide information from which the predictor can change its distribution over candidate words. During representation learning there is no need to know which sentiment category or search query belongs to a text to calculate this feedback.
A conventional multiclass softmax gives the probability in terms of the scores for the candidate output words.
p(wₜ ∣ wₜ₋ₖ, …, wₜ₊ₖ) = exp(y[wₜ]) / ∑ᵢ exp(yᵢ)
The symbols p, w, t and k have the same roles as in the objective. The symbol y denotes the collection of scores for the current prediction. The notation y[wₜ] selects the score for the observed word, and yᵢ is the score for output vocabulary entry i. The function exp turns each score into a positive quantity, and the sum ∑ᵢ adds these quantities over all candidate output words. The slash divides the observed word’s quantity by that common total. Thus a word’s probability depends on its score and on the scores of its competitors.
The paper expresses the scores as a linear transformation of the input features.
y = b + U h(wₜ₋ₖ, …, wₜ₊ₖ; W)
Here y is the output score vector, and b is the vector of output biases. U is the matrix that maps the input features to scores. The function h assembles the input features from the supplied context words. The indexed w entries, t, k and the ellipsis identify the context in the notation above. W is the table from which h takes the word vectors. The semicolon within the formula separates the context inputs from the parameter table used to represent them. Multiplication by U gives a contribution for each output word, and the plus sign adds its bias.
In the word-only setup, h can combine the context word vectors by concatenating them or averaging them. Concatenation lays out the coordinates of each vector in a separate part of a longer input. Averaging pools them into a common set of coordinates. The proposed Distributed Memory version, PV-DM, keeps the same principle for scoring a target and changes the construction of h. In that version, the paragraph column from D joins the word columns from W. With concatenation, the predictor can learn distinct weights for the document-level input and for the word at each position.
Learn from sliding windows
To create a training example for PV-DM, the procedure selects a paragraph and samples a context from a sliding window. It looks up that paragraph’s column and the columns of the words supplied as context. The predictor receives their combined values. The observed target determines the error signal, and back-propagation tells the procedure how changes to the participating values would affect the objective.
The authors describe training with stochastic gradient descent. The word “stochastic” refers here to obtaining an update from a sample, such as a window from a randomly selected paragraph. A training step can adjust the predictor and the paragraph and word vectors used in the example. Over many such steps, the same paragraph column has to serve the prediction needs of many contexts. The word columns, in turn, have to work across the paragraphs in which they are used. These two patterns of sharing give the fitted quantities different jobs.
The authors interpret the paragraph vector as distributed memory. A local window may be compatible with several topics or continuations. A feature shared across that paragraph can help the predictor favor the words characteristic of its larger context. Consider a short phrase in a review that could be used to discuss either a performance or the story. Words in other windows can shape the text vector used when predicting a continuation of that phrase. The representation has an opportunity to carry information about the larger text because any change to its column will be available to the other windows as well.
The memory is a vector of fitted values, and the word-prediction objective determines how those values are useful. The paper describes topic as one way to understand the role of the shared input. The predictor is free to learn from other regularities that help with the targets. This follows from how the update is defined. The feedback concerns a candidate word’s probability, and the training samples supply many such decisions with partly overlapping evidence.
Concatenation makes the local order accessible to the predictor. If context words trade places, their vectors move to different parts of the feature input. A predictor with separate weights for those parts can respond differently. Sum or average makes word contributions in a given window interchangeable with respect to position. The paper’s connection to n-grams is local in this sense. Both ordered windows and n-gram features give the learning procedure access to neighboring sequences. With PV-DM, the input uses reusable word vectors, and the representation retained for the whole text is its fitted paragraph vector.
Use a tree to score candidate words efficiently
The flat softmax equations make the objective easy to describe. The denominator involves the full output vocabulary. The implementation uses hierarchical softmax to speed training. It arranges the output words in a binary Huffman tree and represents a word by the branching choices along its path. Predicting the word then involves the decisions on that path. This replaces the flat comparison with the full vocabulary by a sequence of binary decisions.
A Huffman tree gives often occurring words shorter codes. A common target consequently requires fewer steps through the tree. This property is useful in training because those targets appear more often. The paragraph and word vectors still supply information for predicting the target. The hierarchy changes how the predictor organizes that decision and which output parameters are used for it.
The paper points to word2vec as an available implementation of the earlier neural approach to learning word vectors. Its discussion also identifies earlier work using the same binary Huffman structure. Paragraph Vector’s distinguishing addition in the distributed memory version is the fitted column associated with the whole input text. Its predictor builds on the kind of efficient word-vector learning described in Efficient Estimation of Word Representations in Vector Space.
Predict words from the paragraph alone
The authors also train a representation with a simpler input. In Distributed Bag of Words, abbreviated PV-DBOW, the predictor receives the paragraph vector and is asked to identify words sampled from that paragraph. At a training step it samples a text window and selects a target word from the window. The context words have no input role in making that prediction. The useful signal to the paragraph column comes from having to support predictions about the words that its text contains.
The sampling step still uses windows. The key difference lies between the data used to produce a target and the features used to predict it. In PV-DM, the word vectors supplied by a window can help predict a particular neighboring word. In PV-DBOW, all targets drawn for a given paragraph are predicted from the same paragraph input. This makes the vector useful for representing overall word content. The procedure resembles the earlier Skip-gram arrangement in the sense that an input representation is trained to support predictions about other words, here with a paragraph identity in the input role.
PV-DBOW dispenses with the input word-vector table required by PV-DM. It still needs paragraph vectors and the weights that predict output words. The simpler input also changes what each prediction demands from the paragraph. With context words available, the distributed memory predictor can obtain some of the required information locally. With the paragraph as the sole input, its vector has to bear the predictive load. The training jobs overlap in their targets, while the information supplied to perform them differs.
For the combined representation, the authors train a vector with each objective and concatenate the resulting paragraph vectors. This is a separate use of concatenation from joining word and paragraph vectors for a PV-DM prediction. The combination occurs at the feature interface for the downstream task. A classifier can use coordinates learned from context-dependent prediction together with coordinates learned from paragraph-only prediction. The intermediate context vectors involved in individual window predictions stay part of the learning procedure. The fixed-length features passed onward describe the whole text.
Fit a vector for a text the system has never seen
A new text has no trained paragraph column. The authors add a new column and use windows from that text to fit its values. The word vectors and the shared output parameters are held fixed. Gradients still describe how a change in the input would help the prediction, and the optimization applies those changes only to the new paragraph vector. The paper describes proceeding by gradient descent to obtain the representation.
This procedure makes an unseen review useful as data in a specific way. The words in the review provide targets for fitting the review’s own features. The previously learned predictor determines which values help. The review’s sentiment label has no role in those updates. Once the vector is fitted, it can be passed to the classifier trained from labeled examples. The inference therefore has two distinct operations: determining the coordinates of the text from its words, then assigning a label from those coordinates.
Freezing the shared parameters keeps the new column in the feature system established during training. The same word inputs and output weights that shaped the vectors for training texts are used when determining where to place a test text. A downstream classifier expects the new coordinates to function like its training coordinates. The fixed predictor supplies that common basis. The text-specific optimization can use as many windows as the inference procedure samples from the new text without changing the features of earlier items.
This design also explains why encoding a test document involves more work than retrieving a vector for a known training document. For the training document, the column already exists. For the test document, repeated predictions and updates are part of computing the feature. The paper observes that inference can be parallelized: with the shared quantities fixed, different documents have separate variables to fit. The speed measurement in the IMDB experiment concerns that fitting operation.
Use the features for the downstream task
Paragraph Vector training produces features, and their practical value depends on how the application uses them. The paper envisages sending them to familiar procedures such as logistic regression, a support vector machine or K-means. A classifier can also receive them alongside conventional count features. The feature-learning method and the downstream decision rule are separate choices.
In the sentiment tests, labels train a decision rule from the features for the labeled training items. The same kind of features are fitted for each test item and passed to that rule. In the search-snippet test, representations are evaluated through distances. The central questions are therefore different. For sentiment, the experiment asks whether a trained decision rule can read useful information from the vector. For retrieval, it asks whether the vector geometry directly helps distinguish related snippets. This distinction carries through to the baselines and to what their error rates mean.
Experiments and results
What the experiments measure
The evaluation moves from sentence-length movie commentary to multi-sentence movie reviews, then to short web snippets grouped by search query. The sentiment tasks give each example a human-assigned category. The retrieval task derives a relationship from the search results, using shared query membership to define the preferred pair. In all cases the representation turns each evaluated text into a vector of fixed length. Success is determined by the requirements of the particular task, which makes this a test of feature usefulness across different kinds of evaluation benchmarks.
The sentiment comparisons have a common form. The word predictor learns text features using material from the designated training portion. A separate procedure learns to use the features associated with sentiment labels. The test text supplies words for fitting its vector, and the resulting vector supplies features for the label prediction. An error is a predicted category different from the benchmark category. Within a dataset the comparison is with earlier results reported by the paper, using the task’s classification error. The Stanford and IMDB settings differ in both granularity and the classification procedure above the representation.
Stanford Sentiment Treebank
The Stanford data start from sentences from Rotten Tomatoes reviews. The paper traces the original dataset to Seeing Stars: Exploiting Class Relationships for Sentiment Categorization with Respect to Rating Scales.
The Treebank has 11,855 sentences, with 8544 for training, 2210 for testing and 1101 for validation. Human annotators supplied sentiment judgments through Amazon Mechanical Turk on a scale from 0.0 to 1.0. The relevant label can describe a whole sentence or a smaller constituent. The dataset construction used the Stanford Parser to identify constituent phrases, which were rated by human annotators on the same scale. The paper reports 239,232 labeled phrases in the dataset. The parser used for this step is described in Accurate Unlexicalized Parsing.
The benchmark permits both a fine-grained classification and a coarse classification. The fine-grained task distinguishes five sentiment classes: neutral, positive, very positive, negative, and very negative. The coarse task uses 2 classes, positive and negative. There is also a choice about the span to classify. The authors report results for complete sentences. The annotated constituents enter their training procedure as additional examples.
Each subphrase in the training portion is treated as an independent text unit for representation learning. It can have a vector of its own, as can its enclosing sentence. This treatment lets the classifier receive feature vectors and ratings for short expressions as well as complete training sentences. The phrase boundaries come with the Treebank, and the Paragraph Vector computations within each chosen span use windows of words. For a test sentence, the authors fit a sentence vector with the learned predictor held fixed and apply the sentiment classifier to that full-sentence representation. The benchmark’s annotated structure thus contributes training units, while the prediction path for an unseen sentence works from the sentence text.
The authors choose the window size on the validation portion and report 8 as the selected setting. For PV-DM they use 400 dimensions for a word and 400 for a paragraph. The prediction input joins the paragraph vector with the vectors for 7 preceding words to predict the 8-th word. PV-DBOW also learns 400-dimensional paragraph vectors. The authors concatenate the two paragraph vectors for the downstream inputs. Logistic regression learns to use them for the sentiment categories.
Punctuation such as commas, periods, exclamation marks and question marks is treated as ordinary vocabulary material. The authors report padding at the beginning of a paragraph with a special NULL word if it has fewer than 9 words. That detail is pertinent to the phrase-level training inputs. Some examples offer very little preceding text, and a padding symbol lets the procedure supply inputs to its fixed window without using words from outside the chosen phrase. This is one practical role of tokenization in the experiments.
The Treebank comparisons
The baseline results for the Treebank come from the earlier work that introduced its sentiment benchmark. They include classifiers using word or short-sequence features, a representation based on averaging word vectors, and recursive approaches that combine representations according to syntactic structure. These comparisons matter for different reasons. A word-count classifier tests what the sentiment labels can teach from vocabulary features. Averaging tests whether adding learned word geometry in a pooled representation is enough. Recursive composition supplies the predictor with a considerably different way to use relations among parts of a sentence.
Full-sentence binary sentiment test error on the Stanford Sentiment Treebank
Paragraph Vector has lower error than the reported count-based, averaging and recursive baselines.
The numbers
| System or setting | error % |
|---|---|
| Naïve Bayes | 18.2 |
| SVMs | 20.6 |
| Bigram Naïve Bayes | 16.9 |
| Word Vector Averaging | 19.9 |
| Recursive Neural Network | 17.6 |
| Matrix Vector-RNN | 17.1 |
| Recursive Neural Tensor Network | 14.6 |
| Paragraph Vector (this paper) | 12.2 |
For the binary task, the strongest baseline in the reported table is the Recursive Neural Tensor Network at 14.6% test error. Paragraph Vector gives 12.2%. The authors describe this as an absolute error improvement of 2.4% and a relative improvement of 16%. The comparison is between full-sentence predictions. The recursive result serves as a stronger point of comparison than the simplest classifiers because it gives the predictor information about how the sentence was composed.
The comparisons within the simpler approaches are informative as well. Bigram Naïve Bayes attains 16.9% binary test error, while Naïve Bayes with the simpler features attains 18.2 %. This is consistent with short ordered sequences being useful for the task. Word Vector Averaging gives 19.9%, and the SVM baseline gives 20.6%. The average therefore produces a different ranking from the one that might be expected if learning word vectors were sufficient on its own to represent the sentence. How evidence from different words is brought together makes a difference to the features available for classification.
On the fine-grained test, Paragraph Vector records 51.3% error. The Recursive Neural Tensor Network records 54.3%, the Matrix Vector-RNN 55.6%, and the Recursive Neural Network 56.8%. The count-based comparison includes Bigram Naïve Bayes at 58.1%, Naïve Bayes at 59.0% and SVMs at 59.3%. Word Vector Averaging gives 67.3%. These results address assignment to the finer categories on complete sentences. Their error levels show how much difficulty remains when the required output distinguishes degrees of sentiment and includes a neutral category.
The paper attributes some of the weakness of bag features to how much composition matters in short reviews. It mentions sarcasm as an example of a phenomenon that a representation based on word inventory can miss. The table is an aggregate comparison over the benchmark. It supplies evidence that the distributed features work well for the benchmark as a whole, including against methods explicitly designed for composition. The use of phrase annotations in training is part of the conditions under which those full-sentence results were achieved.
IMDB reviews
The IMDB task changes the span being classified. Rather than an isolated sentence, each example is a review containing several sentences. The document can include multiple observations, descriptions and qualifications before arriving at an overall view. The representation is fitted to the review as a whole, and a classifier predicts its overall positive or negative label. The dataset was introduced in Learning Word Vectors for Sentiment Analysis.
The collection contains 100,000 reviews. It has 25,000 labeled training reviews, 50,000 unlabeled training reviews and 25,000 labeled test reviews. Positive and negative labels are balanced in both labeled portions. The authors use 75,000 reviews for representation learning, covering the labeled and unlabeled training material. Word prediction can make use of both kinds of review because their words supply the observations for its objective. The resulting vectors for the 25,000 labeled training reviews are the inputs used for supervised classifier training.
The classifier is a neural network with a hidden layer of 50 units and a logistic output. The authors say that it worked better here than a linear logistic classifier. This is part of the setup behind the published result. The IMDB evaluation measures the representation as used by that classifier, while the Treebank results use logistic regression directly on the paragraph features. At test time, the authors hold the learned word prediction components fixed, infer the review vectors and then classify the reviews with the trained network.
The selected window size is 10 words, again chosen by cross-validation. The PV-DM setup predicts the 10-th word using the concatenation of paragraph and context word vectors. It uses 400 dimensions for each document vector and 400 for each word vector. PV-DBOW produces 400-dimensional document vectors, and the two document representations are concatenated for the classifier. Punctuation enters as vocabulary items. The IMDB protocol gives the same threshold for pre-padding as the Treebank discussion, stating that documents shorter than 9 words are padded with the NULL symbol.
The transfer from sentences to reviews follows directly from how the shared text input is defined. In the Treebank evaluation, windows from a sentence contribute to fitting that sentence’s vector. In IMDB, the document slot is shared by windows from the full review. The output shape stays fixed as the amount of text that can inform the feature changes. This is the empirical test of the authors’ contention that a single representation procedure can cover both sentence-level and document-level classification.
The IMDB comparisons
The IMDB table includes conventional bags of words, representations combined with bags of words, and several classifiers tested with unigram and bigram features. The authors note that simpler vocabulary features work well on these longer reviews. A review provides more chances than an isolated sentence for characteristic words or phrases to occur. The strong comparison for Paragraph Vector consequently comes from a well-performing bigram classifier, NBSVM-bi, which combines naïve Bayes feature weighting with a support vector machine. The table also includes an earlier result that combines a word-based Restricted Boltzmann Machine with bag-of-words features.
Binary review sentiment test error on IMDB
The combined Paragraph Vector representation gives lower error than the strongest reported bigram baseline.
The numbers
| System or setting | error % |
|---|---|
| BoW (bnc) | 12.20 |
| Full+Unlabeled+BoW | 11.11 |
| WRRBM + BoW (bnc) | 10.77 |
| SVM-uni | 13.05 |
| SVM-bi | 10.84 |
| NBSVM-uni | 11.71 |
| NBSVM-bi | 8.78 |
| Paragraph Vector (this paper) | 7.42 |
The combined PV-DM and PV-DBOW representation gives 7.42% test error on the positive-versus-negative IMDB task. The best reported earlier result is 8.78% with NBSVM-bi. The authors describe the gain as a 1.3% absolute improvement and a 15% relative improvement in error. The bigram baseline is already below 10% error. The paper emphasizes how far its representation carries the result below that level.
Several of the table’s comparisons help explain why this is a substantial baseline. For the SVM results, the unigram setting gives 13.05% error on the IMDB test set and the bigram setting gives 10.84%. For the NBSVM settings, the corresponding errors are 11.71% and 8.78%. Bigram features are effective for this dataset, and the choice of classifier and feature weighting matters even within a family of count representations. Paragraph Vector’s comparison is with the strongest of these reported combinations.
The table also documents variation among approaches intended to go beyond ordinary counts. It gives 32.58% IMDB test error for LDA, 12.58% for WRRBM alone, and 10.77% for WRRBM combined with a bag of words. The comparison between the last two settings shows how much the choice to retain ordinary vocabulary features can influence the result for a learned representation. The Paragraph Vector result in the table uses the concatenation of its two kinds of document vector as the classifier input.
The size of the unlabeled portion gives the IMDB experiment a role beyond testing document length. Its reviews contribute word-prediction examples even though their ratings are unavailable to the classifier. In the reported setting, information from these examples enters the shared word and prediction parameters, which also shape the vectors for reviews with labels. This describes how the unlabeled material was used. The main comparison evaluates the resulting system with that material included.
Transferring word vectors from news
The authors repeat the sentiment experiments using word vectors trained in advance on a different collection. In the earlier stage, continuous Skip-gram is applied to a 100-billion-word news corpus. During the learning of the paragraph vectors for the sentiment data, the system loads the pretrained word table and holds it fixed. This uses a large outside collection to set the word input geometry, then uses words from each sentiment text to learn the representation for that text.
This freezing occurs during the sentiment representation training, which is distinct from the freezing done for the ordinary inference procedure. In ordinary training, word and paragraph inputs can both learn from the training texts. In ordinary inference, the new paragraph vector is fitted with the shared predictor and its word vectors held fixed. The news experiment moves the decision to keep the word table fixed earlier in the process. The existing word vectors serve as inputs when the text representations for the sentiment task are learned.
With this setup, the reported Stanford Sentiment Treebank test errors are 12.1% for the coarse classification and 51.2% for the fine-grained classification. The IMDB binary test error is 7.31%. Each is below the corresponding result obtained in the preceding sentiment comparison. The changes are measured on the same downstream tasks and illustrate that the representation procedure can incorporate a word table learned on other text. The reported condition combines external pretraining with freezing that table on the target data.
The transfer still leaves work for the paragraph-level procedure. The news collection supplies input vectors for words, while a sentiment example needs a vector adapted to its own sequence. Its column is trained through the word predictions that its text supplies. This is the mechanism by which broad word-level information can be used in a document feature without having a pretrained document vector for every review or Treebank sentence.
Search-result snippets as a relative retrieval test
The retrieval experiment changes how the vectors are scored. The base collection consists of snippets from the first 10 search results returned for each of 1,000,000 popular queries. A snippet describes the content of a webpage in the context of a result. The authors take such texts as the items to represent. They use the identity of the queries that returned them to construct an evaluation of distance.
For each query, they take two snippets returned for it and a third snippet drawn randomly from results for a different query. One of the same-query snippets acts as the anchor. The system compares the anchor’s distance to the other same-query result with its distance to the result from elsewhere. A correct comparison puts the same-query result strictly closer. An error is recorded when the system fails to produce that ordering. The target for the representation is thus a relative preference grounded in the search results, a particular operational test of semantic similarity.
The paper illustrates the setup with snippets about identifying a telephone caller. One gives reports about calls and attributes the caller to an airline. Another invites readers to find and share information about who called. Those are the two snippets that the benchmark expects to be close. The third discusses how clinic patients can pay a bill online. It comes from a different query. The example is a useful description of what the distances have to express. The first two snippets perform somewhat different functions and can use different wording, yet they are related in the search context. The clinic snippet can contain ordinary web vocabulary in common with them while serving a different purpose.
Training gets 80% of the triplets, while validation and testing each get 10%. Methods that learn use the training portion, and hyper-parameters are selected on validation. The reported errors assess the resulting representations on the test comparisons. The query organizes the selection of snippets and thereby supplies the preferred relationship. The inputs being compared at evaluation are the snippet vectors.
The basic competitors use word features, bigram features or averages of word vectors. The authors report that TF-IDF weighting worked better than raw counts for the retrieval task, and give the results using the stronger weighting in the main comparison. TF-IDF gives weight to how much a term occurs in an item and to how widely it occurs across the collection. This lets the count features emphasize some matches more than others. The baseline comparison therefore takes account of the common advantage of TF-IDF.
A further bigram baseline learns a linear transformation for the distance comparison. The paper uses W for this matrix in the retrieval discussion. There it acts on TF-IDF bigram features, a different role from the word lookup matrix in PV-DM. Its training favors small distance within the same-query pair and large distance between the anchor and the other-query snippet. The relative weight given to the two goals is selected as a hyper-parameter. This baseline can learn how to adjust its feature space using the triplets, which makes it a closer competitor than a bag of bigrams with fixed weighting alone.
Test error on the search-snippet retrieval triplets
Paragraph Vector makes fewer triplet-ordering errors than the learned bigram transformation and the simpler features.
The numbers
| System or setting | error % |
|---|---|
| Vector Averaging | 10.25 |
| Bag-of-words | 8.10 |
| Bag-of-bigrams | 7.28 |
| Weighted Bag-of-bigrams | 5.67 |
| Paragraph Vector (this paper) | 3.82 |
Vector Averaging gives 10.25% test error on the triplets. Bag-of-words gives 8.10 %, and Bag-of-bigrams gives 7.28 %. Learning the transformation for the bigram features brings the error to 5.67%. Paragraph Vector gives 3.82%, the lowest error among the compared representations. The authors report a 32% relative improvement in error. The strongest count-based competitor in this comparison is the transformed bigram representation, which had access during training to the relationship that the test counts as a success.
An error in this experiment concerns the relative positions of snippet vectors. The evaluation rewards a smaller distance from the anchor to the other snippet for the same query, even when both distances are large or both are small. This makes the result directly interpretable for the particular comparison being attempted. The improvement means that fewer held-out triplets had the wrong distance ordering under Paragraph Vector. It gives the paper evidence about the arrangement of the learned features themselves, complementing the sentiment results obtained by training a classifier on top of them.
The cost of fitting held-out review vectors
Alongside the benchmark errors, the authors report the computation needed to encode the IMDB test set. Their implementation takes 30 minutes on average to compute vectors for the 25,000 test documents on a 16 core machine. These documents have 230 words on average. This measurement concerns test feature inference, the operation that repeatedly adjusts a separate vector for each review with the shared parameters fixed. The reported time belongs to that implementation, workload and machine.
The procedure can distribute inference across reviews because the variables being fitted belong to individual documents. Each worker can use the same fixed predictor and update the vector for its own text. For a practitioner reading the results, this timing is part of the conditions behind the IMDB error rate. The system first incurs the cost of fitting each held-out review’s features from its words, then uses the fitted features to make the sentiment decision.
What the ablations show
The closest comparisons in the paper change how the representation is learned or assembled while keeping the downstream question recognizable. Most of the numerical evidence about those choices comes from the IMDB test set. The same review can supply a feature learned by predicting words with their local contexts, a feature learned by predicting words from the review alone, or a combination of the two. The authors also compare ways of assembling the input to a word prediction, vary the prediction window, and substitute word vectors learned from news. These interventions act at different points. Some change what evidence the word predictor sees, some change the features available to the sentiment classifier, and one changes the corpus from which the word representations are learned.
What the paragraph-only objective adds
The combined representation reaches 7.42% test error on IMDB, while the distributed memory version, PV-DM, reaches 7.63% on its own. This is the clearest numerical evidence for including the paragraph-only representation alongside the distributed memory representation. The authors say that PV-DM generally performed better than the paragraph-only version, PV-DBOW, and that combining them gave more consistent results across the tasks they tried. Their numerical example establishes the benefit of the combination on IMDB. The paper gives no separate PV-DBOW error for that test, so the reader can compare the combined system with its stronger constituent using the reported numbers.
The two training objectives give the review vector different responsibilities. With PV-DM, a nearby word can make the target fairly predictable on its own. The review vector can help most when the local words leave a question unresolved. With PV-DBOW, a target receives the same input representation regardless of where it occurs in the review. Information about which words are characteristic of that text consequently has a direct use in the paragraph-only objective. A word that is easy to predict from its immediate neighbors in PV-DM can still exert pressure on the paragraph representation in PV-DBOW, because those neighbors are unavailable to the latter predictor.
This distinction helps explain how a weaker feature on its own could contribute to a stronger feature set. The useful question for the combination is whether the additional coordinates tell the classifier something it can act on given the coordinates it already has. A review’s vocabulary can supply evidence of its overall judgment even when the informative words appear in windows whose continuations are easy to predict locally. Conversely, a change in how neighboring words are arranged can affect the distributed memory training examples while leaving the collection of words available to the paragraph-only predictor the same. The two objectives give these kinds of evidence different routes into the final representation. The test errors record the performance of the classifier using those routes together. The paper leaves the source of particular corrected predictions unexamined.
There is a further distinction between combining the representations and combining their decisions. Each objective gives the review a vector, and the classifier receives the vectors joined together. It can use some coordinates from one and some from the other in making a single decision. There are no separate sentiment predictions whose votes have to agree. For example, if a vocabulary signal has different implications depending on what is present in the distributed memory features, a classifier operating on the joint input has an opportunity to use that relationship. The reported comparison concerns this access to both feature sets. It offers no breakdown of the weights the classifier assigned to either set.
Concatenating the two paragraph vectors also increases the number of features supplied to the classifier. The reported comparison therefore answers a practical question about which of the tested inputs gives lower error. An explanation based specifically on complementary objectives would require separating that change from the increase in feature capacity. The paper gives no corresponding result for a larger PV-DM representation matched to the combined input in size, or for a combination of independently fitted vectors from the same objective. Either would address a different question from the one answered by the published comparison. The available evidence supports the choice of the combined representation in the IMDB setup and leaves the size of each contribution open.
The setup also clarifies the scope of the authors’ recommendation about consistency. The paper gives a concrete gain on binary review sentiment and describes a broader pattern from their trials. Its benchmark tables give a result for the final representation on each task, with limited coverage of the alternatives. The reader therefore has a measured comparison on IMDB and the authors’ qualitative account of what they saw elsewhere. Those are different kinds of evidence. The reported example is enough to show that the paragraph-only component can earn a place beside the distributed memory component, even when the latter already works well.
Combining the inputs to a prediction
A separate comparison changes what happens inside PV-DM, before it makes any word prediction. Here the choice is whether to concatenate or sum the inputs from the paragraph and its context. The reported IMDB test error for PV-DM with summation is 8.06%, compared with 7.63% for PV-DM alone in the concatenation setting. The relevant comparison is between those two distributed memory settings. The combined system also adds the PV-DBOW features at the classifier, which is a further intervention.
With concatenation, the input word from each position occupies a distinct part of the feature vector. The output weights can give a word different effects depending on where it appeared. Summation supplies a pooled value for each coordinate. Exchanging two context words leaves that pooled value unchanged. In a fixed paragraph, their exchange therefore leaves the summed input to that prediction unchanged as well. This is a specific property of the input calculation. It helps explain why the authors point to the loss of order as a possible reason for the higher sentiment error.
That property has to be applied at the correct scale. A change to the order of words in a text can alter which words fall into a given window or which word serves as its target. So even with summed inputs, two texts with the same overall word counts can supply different sets of word prediction examples. The operation erases position within the supplied context for an individual prediction. The training examples still come from a sequence and depend on which words occur near each other. The ablation is consequently more informative than a comparison of a fully ordered text with a shuffled one. It changes the predictor’s treatment of positions while retaining the window-based learning setup.
There is also a change in how the predictor can use the paragraph. Concatenation gives its vector a region of the input with its own weights. The shared output calculation can thus treat a change in a paragraph coordinate differently from a change in that coordinate of a context word. Summation places both changes into the same pooled input. Values present there can still carry information distinctive to paragraphs or words as a consequence of learning, but the predictor no longer receives separate inputs marking their sources. This provides another plausible route from the change in assembly to a change in the fitted review vectors.
The comparison also changes the size of the input to the shared word predictor. Keeping each context position separate requires output weights for the separate parts that concatenation supplies. Pooling reduces the number of input coordinates seen by that predictor. An improvement from concatenation therefore covers the effect of giving the predictor a richer way to distinguish the contributions in a window. The endpoint cannot isolate position information from the separate treatment of paragraph and word features or from the change in the predictor’s input size. Those distinctions matter because the paper’s explanation of the result is architectural. It points to what the better-performing version makes available, while the experiment measures their joint effect.
One implication follows directly from the design. A classifier on top of a paragraph vector sees neither the context words nor their positions as explicit inputs. Any benefit from position-sensitive word prediction has to survive the fitting of the text vector. The IMDB comparison measures a consequence at this downstream stage. It does not measure how accurately the word predictor recognizes a reordered context, or whether the resulting review vector can recover the order of a particular sentence. The lower classification error is evidence that the chosen input operation mattered to the final system. The paper leaves the detailed contents of the resulting vector undetermined.
The amount of text a window supplies
The window size determines how much nearby evidence is made available for a prediction. A narrow window gives considerable responsibility to the paragraph input when the immediate neighbors leave the target uncertain. A broader window lets the predictor draw on more words in distinct positions. It also changes the set of training contexts that can be built from a paragraph and how much of a short span consists of padding. These are consequences of changing the input, so a window size that serves the word prediction objective well need not yield the review features that serve sentiment classification best.
The authors recommend choosing the setting by validation. They suggest a range from 5 to 12 as a useful starting point and report that IMDB error fluctuated by 0.7% as they varied the window within that range. The paper gives the magnitude of the fluctuation without a row for each setting. The reader can infer that the choice is consequential at the scale of the reported IMDB comparisons. The direction of the response between particular settings, the shape of the response across the range, and the stability of the selected value across training runs remain unspecified.
Validation gives the choice a clear interpretation. Window size is selected for the application in which the vectors will be used. A favorable setting can balance how much useful information the context provides against how much is left for the paragraph vector to supply. The classification error alone cannot measure that balance directly. A wide context could support excellent predictions by using detailed local clues, while the classifier benefits most from regularities that occur across a review. Conversely, a very limited context could leave the review vector with a prediction burden that it can satisfy only in a coarse way. These are possibilities created by the objective. The paper gives no word prediction results by window size that would distinguish them.
The selected contexts for the Treebank and IMDB should also be read in light of what those datasets supply. The Treebank training procedure presents subphrases as individual units, sometimes requiring a prediction from a short expression with padding. IMDB presents a whole review, which supplies many contexts within the same text unit. The selected setting in each experiment belongs to that dataset and its classifier. A preference in one does not establish what follows from length alone. The two evaluations also change the label granularity, the size and composition of the training collections, and the decision rule used beyond the vector. The validation outcomes show that the authors adapted the window to each task. The experiment does not derive a rule for selecting it from the length of the input.
The reported fluctuation is also a reason to be precise about what the summary comparison represents. It is the performance of a selected configuration. It does not describe the result that would follow from using a single window setting everywhere, or the average performance of settings in the suggested range. No analogous range of errors is given for the competing count features. The main tables therefore compare the reported systems at their chosen settings, while the window experiment tells the reader how much one decision within Paragraph Vector mattered on IMDB.
What can be transferred from news
The transfer experiment changes the source of the word vectors and fixes them during the learning of the sentiment text representations. The resulting errors are 12.1% for coarse-grained full-sentence sentiment and 51.2% for fine-grained full-sentence sentiment on the Stanford Sentiment Treebank test set, and 7.31% for binary sentiment on the IMDB test set. The paper reports an improvement in each case. The important control is that the downstream questions stay the same. The transferred table is used inside a procedure that still fits a separate representation for each input text.
The comparison shows that the word table and the paragraph table can be learned under different conditions and still work together. In ordinary fitting, a word vector reflects the demands of learning on the target training collection. In the transfer setting, a word vector reflects the earlier news training objective, and the sentiment text vectors must learn using what that table supplies. The experiment thus establishes a useful form of reuse. The representation of a new review can benefit from a vocabulary geometry learned elsewhere even though the review itself is represented through predictions made on its own words.
Several elements move together in that comparison. The source is news, the amount of external text is large, the word training uses continuous Skip-gram, and the resulting table is kept fixed on the sentiment tasks. The paper does not match those elements one by one. It supplies no result for training the same word predictor on different amounts of news, for freezing a table learned from the sentiment collection, or for continuing to update the pretrained word vectors on reviews. The experiment supports the complete transfer condition as implemented. It leaves open how much of the gain belongs to corpus size, which words received useful representations, and how much freezing contributed.
The result is especially informative about the branch with context words. It is there that an input word table has an explicit role. In the paragraph-only procedure described by the authors, the text vector supplies the input and sampled words supply targets. That description gives no usual context lookup for a news word vector to replace. The reported sentiment errors concern the transfer setup as a whole. They offer no separate score for the transferred distributed memory component or estimate of how much the unchanged paragraph-only representation contributed to the final decisions.
The transfer result also differs from the evidence about unlabeled reviews. The news condition varies the source of reusable word features. IMDB’s main training condition includes unlabeled reviews from the review collection itself. Those reviews can influence the shared predictor used to fit labeled examples as well as supply uses of the shared input words. The presence of unlabeled reviews in the main result shows the method can use them. The paper gives no corresponding IMDB score from retraining the same setup with only the labeled training documents. Consequently the transfer comparison provides evidence about one declared external word table, while the value of the unlabeled review portion remains unmeasured as a separate effect.
What the baseline variations help explain
Some of the comparisons concern changes made to the competing representations. The retrieval experiment offers a well-defined example. Plain bigram features already retain information about which word followed which within a pair. The weighted setting goes further by fitting a transformation using the same-query and different-query relationships in the training triplets. Its lower test error shows that how a distance uses bigram features matters to this task. The features can support a better ordering once the distance is adapted to what the benchmark asks it to recover.
This helps locate the advantage of Paragraph Vector. Its comparison includes a count-based representation whose geometry has already been adjusted using task information. The gain over the plain bigram features alone would leave open how much improvement a better distance over the same features could deliver. The learned transformation answers part of that question. The remaining performance advantage is over a stronger system that can make some bigram patterns count more than others in the relationships it learns. Since the procedures learn from different signals and have different feature spaces, the comparison still evaluates complete approaches. It does not establish an advantage for dense coordinates independently of the objective and distance used with them.
The treatment of counts in the retrieval results gives a related qualification. The authors tried raw counts and report that term weighting gave better results. They publish the stronger results without the corresponding raw-count errors. This tells the reader that their comparison gives the count features the benefit of a useful preprocessing choice. It leaves open how large that choice was for each baseline. It also means the retrieval evidence concerns representations after a practical feature weighting decision. The result is stronger for including that decision, while the contribution of the weighting itself remains qualitative in the report.
The word-vector averaging baseline addresses a different explanation. An average already uses learned numerical relationships between words. Its weaker performance on the Treebank and on the retrieval triplets shows that merely including such relationships through the reported pooling procedure did not give the same downstream behavior as Paragraph Vector. It is a comparison between complete ways of constructing a text feature. Averaging and paragraph fitting change several things at once, including which features can depend on a context and whether the text supplies targets to fit its own vector. The comparison therefore narrows the interpretation to the value of the learned text representation as used in these experiments. It cannot locate that value in any single linguistic property.
Finally, the IMDB footnote gives a comparison at the classifier stage. The authors report that the hidden-layer classifier performed better than linear logistic classification in that experiment. They give no paired error rates for the two classifiers. The note matters because the classification result is sometimes read as though it came completely from an improvement in the vectors. The authors’ own experiment indicates that the way the features are read contributes to performance. At the same time, the retrieval result uses a distance comparison, which shows that there is evidence for the features beyond their use with that particular sentiment classifier.
Taken together, these comparisons identify decisions at several levels. The concatenation experiment changes the word predictor’s input. The combined representation experiment changes the downstream feature set. Validation changes how much local evidence training uses. The news experiment changes the reusable word representations, and the classifier comparison changes how fitted features lead to labels. Each comparison has an outcome at the task level. Their explanatory value comes from tracking which part changed and which intervening quantities the authors actually measured.
Limitations
The limits the authors state
The authors qualify their claim about word order by locating it within short contexts. The distributed memory procedure gives the word predictor access to positions in a window. A word near the opening of a review and a word near its close can both affect its paragraph vector, but the route between those positions is a common fitted representation. The method description supplies no ordered composition of distant passages. This distinction matters whenever a task depends on the placement of a qualification, the course of an argument or the relationship between events in separate sentences. The paper’s architecture offers local order and document-wide sharing. The authors’ qualification concerns the span at which order enters directly.
The authors also flag the expense of computing vectors for new texts. Inference requires repeated adjustments, and the speed measurement they report is for the full IMDB test workload on their machine. They point out that the computation can run in parallel. Parallelism helps because held-out texts have independent paragraph variables and use the same fixed predictor. It does not eliminate the fitting work for an individual text, which still needs enough inference steps for the procedure to find a useful representation. A throughput measurement on a collection therefore describes a different operational property from how long a single new item takes to become usable.
In discussing training, the authors distinguish storage from the size of an update. The paragraph table grows with the number of training text units, even when each training example changes a small share of it. Sparse updates address the amount of work done during a step. The table positions for previously seen paragraphs still exist. The paper’s claim about efficient updates must be read with this parameter count in mind. Memory requirements, the cost of building the shared predictor, and the time spent fitting new paragraphs are related to different parts of the procedure.
The discussion extends the idea to sequential data beyond text as a proposal. A sequence can supply observable elements to predict and a shared identity for the larger unit, so the authors see a possible use where a parser is unavailable. Every reported benchmark in the paper involves written text. The proposal thus depends on an analogy in the construction of training examples. Its feasibility, suitable window and downstream value in another domain remain empirical questions. The authors express an expectation about those settings, and the experiments establish results for the text settings they actually examine.
What the sentiment benchmarks establish
The sentiment experiments measure how frequently the complete systems assign the benchmark category to a held-out text. The category is defined at the level of the sentence or review under evaluation. A correct label indicates that the features supplied enough usable evidence for that decision under the trained classifier. The same result leaves open which words and constructions provided the evidence. The score can include correct decisions reached from local phrasing, overall vocabulary, or correlations that have little to do with the way a reader would justify the rating.
For instance, the authors use sarcasm to illustrate why word order and composition can matter. The Treebank results give an error rate for the whole test evaluation. The paper gives no separately identified sarcasm set, and it reports no test in which the same vocabulary is deliberately arranged to change the intended sentiment. That would be a way to measure whether particular decisions depend on the construction at issue. The aggregate result shows that the final system uses the benchmark’s available evidence effectively. It leaves open how frequently the system can distinguish meanings that differ through sarcasm, reversal, or the scope of a qualification.
The large error on the fine-grained Treebank task also has a specific interpretation. The benchmark requires a distinction among several degrees of sentiment and includes a neutral label. Overall error records whether the final category agrees with the annotation. It supplies no account of how close the mistaken categories are to the correct ones, how frequently neighboring categories are confused, or which distinctions caused the most difficulty. An approach could be relatively good at the broad orientation of sentiment while finding subtle changes in degree hard. The reported fine-grained score establishes performance under the benchmark’s category rule. The authors give no breakdown from which to infer the distribution of mistakes within that rule.
The classifier and training conditions matter when interpreting the two sentiment datasets together. The Treebank evaluates full sentences and uses the annotated phrases in its training portion. IMDB lets the representation draw on a much larger set of reviews, including unlabeled training material, and uses a different decision rule for the labels. These results demonstrate that the method can supply features of the required shape for both lengths. They do not provide a controlled comparison of sentence length with document length. A different numerical result between the datasets could follow from what the annotations demand, how many training examples are available, how much text each vector uses, or how the classifier reads its inputs.
More broadly, the two sentiment datasets concern movie reviews. They give evidence about a method applied to different units within that kind of material. The transfer from news concerns the reusable word table. It does not move the supervised rating task to a new domain or test the same sentiment classifier on an unrelated kind of prose. Testing the portability of the classifier would require labels from the setting to which it is moved. Testing portability of the representation alone would call for training or evaluating a decision rule with a clear account of which feature parameters were held fixed. The reported results answer narrower, identifiable questions about the two benchmarks.
The comparisons with earlier methods also have a limit as experiments on causes. The Treebank and IMDB tables draw the earlier results from the cited benchmark work. They give a comparison on the stated evaluations, using the performance figures available to the authors. The paper does not report rebuilding each competing feature extraction method under the same training procedure and giving every representation the same classifier. The tables can therefore support a claim about the relative reported errors of complete systems. They leave the attribution of those differences to representation, supervision, classifier, or tuning to the more focused comparisons where those choices are varied.
Parsing, phrase supervision and the unit of evaluation
The authors’ claim that Paragraph Vector does not require a parse tree applies to the computations used to learn from a span and encode an unseen span. The Treebank experiment also makes use of phrase examples that the dataset supplies. Those spans were generated through parsing when the dataset was built and were then annotated for sentiment. The distinction is between how training material was obtained and what the representation procedure consumes. Once a span has been supplied, the predictor uses its words and its identity. The reported sentence result nonetheless belongs to a regime in which the labeled training spans include the treebank’s constituents.
This matters for interpreting the comparison with recursive methods. A recursive procedure can use the tree to determine which phrase representation combines into which larger representation. Paragraph Vector treats a labeled phrase as a training unit with its own feature vector. A phrase and its parent sentence can thus appear as distinct examples, each with its own word prediction problem and label. The classifier can benefit from a short expression that gives a relatively concentrated sentiment signal. The way these examples are obtained expands the supervised training evidence without requiring the representation of a held-out sentence to be composed along a parse tree.
The paper does not report removing the annotated phrases and keeping the sentence classification protocol otherwise fixed. There is consequently no direct measurement of how much the phrase-level material contributes to full-sentence performance. It would be possible for the word prediction procedure to benefit from seeing individual spans as separate training units and for the sentiment classifier to benefit from their labels. The reported experiment uses the spans in both roles. Separating the two would require deciding independently which spans supply word prediction data and which supply labeled classifier examples.
The same distinction applies to the sense in which the method is unsupervised. Fitting a paragraph vector uses words in the text as prediction targets, so an externally assigned sentiment category plays no part in that objective. The classifiers used to report sentiment performance are trained on benchmark labels. The Treebank additionally uses annotations to define and rate its phrase examples. The paper demonstrates an unsupervised procedure for obtaining features within a pipeline that uses supervision where the task requires it. The benchmark errors represent that full pipeline, including the chosen access to labeled material.
Sentence-level evaluation leaves phrase-level accuracy open as well. A training scheme can learn from the label of a constituent and use that experience to improve decisions about sentences, while remaining untested as a classifier of every constituent in an unseen sentence. The paper chooses full sentences as the evaluated unit on the Treebank. That gives a clean target for its comparison with the earlier work. It supplies no corresponding performance claim about recovering sentiment throughout a syntax tree or locating the exact phrase responsible for the whole sentence’s rating.
How far the retrieval proxy reaches
The retrieval experiment uses a relationship that is cheap to obtain from a search result collection. Snippets appearing under the same query are candidates for the near pair. A randomly selected result under another query supplies the alternative. This makes a clear held-out comparison possible without collecting a graded judgment for every pair. It carries assumptions about what the query grouping represents. Two snippets can address different aspects of the same request, and results from different queries can share a topic or purpose. The assignment defines the benchmark’s intended preference. It does not guarantee a particular relationship under every reading of similarity.
The paper’s example shows why the strength of the alternative matters. The snippet about clinic payments is readily distinguishable in subject from the snippets about identifying a caller. Recovering the expected ordering in such a case can be achieved through a useful distinction in topic. A harder related comparison would use an alternative that shared the same field or terminology but answered a different request. The experiment samples the alternative at random from the rest of the collection. The authors do not describe selecting alternatives to match the positives on topic or lexical overlap. The measured error characterizes the stated sampling procedure.
The same consideration applies to the near pair. Shared query membership can favor repeated vocabulary, a common subject, or complementary uses of the same terminology. The paper offers evidence that Paragraph Vector is effective at identifying this relationship more frequently than the compared features. It supplies no separate scores for pairs with little vocabulary overlap, for pairs with a close paraphrase relation, or for pairs linked only by the purpose of the query. These subsets would distinguish forms of similarity that receive the same treatment under the triplet rule. The aggregate improvement may combine several of them.
The query’s role in construction also constrains claims about a search engine. The original search results supply the candidate snippets and their grouping. At evaluation, the representation compares one snippet with other snippets. The paper does not use a query representation to score a full set of candidate webpages or reorder the engine’s results. A system could achieve the required preference in these triplets and still face additional challenges in ranking many closely related candidates. The benchmark concerns a pair of distances drawn from a search context. Its metric provides evidence for that use of the representation, with no estimate of end-to-end search quality.
There is another consequence of judging a distance by relative order. A successful trial need only put the preferred snippet closer to the anchor. The strength of that preference receives no extra credit under the stated error rule. Similarly, the benchmark does not require a distance threshold that generalizes across queries. This is a virtue for a comparison designed without absolute similarity scores. It also means the reported error offers no calibration information. A downstream use that accepts results within some fixed distance would need evidence about how distances behave across anchors, including cases where both alternatives are close or both are remote.
The split is described in terms of triplets. The paper does not explain whether every occurrence of a query or snippet is constrained to a single split if the same underlying material can occur more than once in the collection. The reported procedure specifies which triplets are available for fitting and tuning. A claim about completely new query families, or wholly disjoint webpages for every test comparison, would require further detail about the assignment of the underlying items. This is a limit of what can be established from the reported construction. It leaves the held-out triplet results interpretable under their stated split.
Details of the retrieval representation and distance receive less attention than the sentiment configurations. The paper names the feature families and explains how the learned bigram transformation is encouraged to bring the preferred pair together and push the alternative apart. It does not spell out every choice needed to recreate the distance experiment from the written description, such as all normalization settings or a complete equivalent of the sentiment hyper-parameter specification. The directional criterion and the table tell the reader what was compared and how an error was counted. Exact replication of the numerical comparison calls for further implementation and data details.
What can be inferred about the feature space
The paper’s semantic interpretation is grounded in a prediction objective and downstream performance. Texts that require similar help from their paragraph inputs can benefit from similar effects on the word predictor. In the triplet experiment, the resulting distances often agree with the relation defined by the queries. These observations give a reason to take the geometry seriously. They do not establish a unique meaning for each coordinate or assign designated coordinates to content, tone, or syntax. There is no such target in the objective, and the paper gives no analysis tracing a concept through individual coordinates.
The distributed memory analogy is similarly broad. The fitted paragraph vector can hold information useful across windows. A topic is a plausible source of such information, particularly when nearby words do not settle which continuation belongs in the text. A characteristic vocabulary, a repeated name, or recurring phrases can also help with observed targets. The scores do not distinguish among these explanations of what the representation retains. A topic interpretation describes a role the vector can play. It does not identify an explicit topic variable or tell the reader how to inspect one directly.
This also bounds what is demonstrated about order at the document level. Joining context vectors in position-specific slots makes a local swap visible to the word predictor. Once all the windows have contributed to fitting a single paragraph vector, their own positions in the document have no separately identified coordinates in the reported representation. Moving a passage can change its boundary windows and therefore change the feature. The design alone gives no rule that makes the new placement recoverable from the vector. A test that deliberately reorders passages while holding most local contexts fixed would ask a different question from the paper’s sentiment or snippet experiments.
The ability to accept texts of varying lengths should be understood in the same way. The dimensions of the output are chosen independently of length, and the procedure can use windows from whatever span has been assigned one identity. The diversity of the tests demonstrates practical use with phrases in training, sentences in evaluation, and reviews spanning sentences. It does not establish that every length produces equally reliable features. A very short span supplies relatively little evidence for adjusting its text vector. A long input may present several kinds of content that all have to influence the same coordinates. The paper reports no performance curve by length that would measure where either issue becomes important.
The precision and cost of the reported estimates
The results tables give point estimates. They do not give a distribution over repeated training runs, confidence intervals, or a test of how sensitive the differences are to the chosen sample split. This matters particularly when discussing the smaller differences between closely related settings. The reader can report the ordering seen in the experiment and the settings under which it occurred. The paper does not quantify how reliably the same ordering would hold under a repeat fit or a differently sampled collection.
There are several potential sources of variation in the stated procedure. Training samples windows for updates, the representation for an unseen text is obtained by optimization, and the downstream classifier has its own training process. The paper describes these roles clearly enough to explain the method. It does not provide a complete comparison of initialization, inference duration or convergence criteria and their consequences for the final labels. A report about sensitivity to the window setting is available. It cannot stand in for sensitivity to the other choices used in obtaining a fitted text vector.
The time measurement has a corresponding boundary. It concerns inference on a particular review collection and machine. It provides no matched timing for the word and bigram baselines, no scale curve across different numbers of workers, and no allocation of time between the two parts of the combined representation. Parallel execution is supported by the independence of the per-document optimization. The amount of speedup and the cost to a workload with very different text lengths remain outside the measured evidence. A count representation and a fitted representation also require different kinds of operations at this stage, so the error ranking cannot be read as an efficiency ranking.
Finally, the paper’s scans of earlier work and its experiments establish the comparison available in the paper’s setting. The sentiment results concern the named benchmarks, the listed earlier systems and the protocols described. The retrieval result concerns a particular set of search snippets and a specific sampling rule. These measurements give substance to the claim that predicting a text’s words is a productive way to learn features. Their scope is preserved by keeping the evaluated decision, the construction of the input and the comparison set attached to each performance claim.
What came after
The later citing papers take up several questions raised by Paragraph Vector. Some concentrate on how a sentence obtains a fixed-length feature. Others ask how prediction on unlabeled sequences can supply useful information for another task, or how supervision should organize a space of document representations. Citation establishes a connection in the research literature. Where a later paper’s stated subject gives a point of comparison, it is possible to identify the shared question and the change in emphasis without assuming that it uses Paragraph Vector’s lookup table or its inference procedure.
Learning from sentences without task annotations
The closest continuation in scope is work explicitly devoted to distributed sentence representations learned from unlabelled data. Paragraph Vector makes the observation that a sentence supplies its own prediction targets and needs no task label to acquire a vector. The later work names the sentence as the object of representation and unlabelled text as its source of training evidence. This puts the sentence-level question in its own right. Paragraph Vector had used a common method for units at several lengths and demonstrated full-sentence usefulness through sentiment labels. The later work’s stated focus is how sentence features can be learned in the first place. Learning Distributed Representations of Sentences from Unlabelled Data.
The distinction between learning a text feature and using it in a labeled problem is also pertinent to work on semisupervised sequence learning. In the IMDB setup, unlabeled text shapes the representation procedure and labeled text teaches a separate decision rule. The later paper’s subject is semi-supervision at the level of sequences. The relationship is the attempt to use observations available in unannotated material to improve what can be learned when labels are limited to part of the data. From that connection, one can ask which parts of a sequence system should carry information from the unlabeled examples into the labeled stage. The citation alone does not specify that the later study carries out this transfer by optimizing a new vector for each input. Semi-supervised Sequence Learning.
Contrastive predictive coding identifies another use for prediction in representation learning. Paragraph Vector’s distributed memory objective asks whether a text feature can help give probability to an observed word using the available context. The later work puts the contrastive form of prediction at the center of representation learning. This shifts the comparison from the mere presence of prediction to what the prediction is set up to distinguish. Paragraph Vector supplies a useful point of reference because it ties the feature’s learning signal to observed content and makes the choice of target explicit. The stated subject of the later work supports that connection at the level of objectives. It gives no basis here for transferring any particular result between the two. Representation Learning with Contrastive Predictive Coding.
Prediction can also be used to prepare a system for producing text. MASS addresses masked sequence-to-sequence pretraining for language generation. The shared principle is that parts of a sequence can create prediction tasks from text itself. The generation setting makes a different demand on the system that learns from those tasks. A useful Paragraph Vector feature can support classification or distance comparisons after it has been fitted. A generation task makes produced language the downstream output. Reading the projects together clarifies how the same general source of training evidence can serve different endpoints, with the unit of prediction and what is done with the learned information left to each method. MASS.
The development of continuous sentence representations also creates a question about generation from the representation itself. In Paragraph Vector, the representation helps predict sampled words. The authors use the fitted vector to make comparisons and assign labels in their reported evaluations. Work on generating sentences from a continuous space takes sentence production as its declared subject. It therefore asks for a different kind of relationship between coordinates and text. A space can be effective for classifying its items even if a sentence cannot readily be produced from an arbitrary position in that space. The two research aims can be compared precisely because the success condition changes from the use of features for a decision to the use of a continuous space for producing sentences. Generating Sentences from a Continuous Space.
Choosing where structure enters
Paragraph Vector puts structure in the construction of a prediction example. Window boundaries determine which words appear together, and concatenation keeps their positions distinct. Other work explicitly treats syntax as a structure through which the representation is built. Tree-structured long short-term memory research makes that design choice central to semantic representation. It continues a question that the Paragraph Vector paper takes seriously in its discussion of sentence sentiment. How a sentence’s components are combined can influence what a classifier can learn from their representation. The tree-based direction and the window-based direction differ in where they supply that composition. This connection comes from the stated architecture and aim of the later work. The citation provides no matched experimental result isolating the effect of a tree in either approach. Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks.
Structured self-attentive sentence embedding makes the construction of the sentence representation explicit in a different way. The description identifies self-attention as the means through which the representation is formed. This is a relevant continuation of the question of how information from different parts of a sentence reaches its features. For Paragraph Vector, those parts influence a common parameter through word prediction errors. A self-attentive embedding puts the treatment of relations within the sentence in the operation that constructs its features. The papers can therefore be situated around a shared representation problem while leaving the details and empirical claims about the later architecture to its own evaluation. A Structured Self-attentive Sentence Embedding.
The use of word order can also be investigated directly for text categorization. The citing work on convolutional neural networks places order in the design of a categorization system. Paragraph Vector’s sum comparison makes a related issue visible at the word prediction stage. In each case, the relevant design question is where an ordered sequence first becomes an input whose parts can affect the decision differently. The experiments discussed here give the errors of competing Paragraph Vector settings. The later paper’s title identifies the broader question it pursues with a different architecture. It would take comparable results on common conditions to rank the two ways of exploiting order. Effective Use of Word Order for Text Categorization with Convolutional Neural Networks.
Work on deep unordered composition puts pressure on any simple interpretation of that comparison. Its stated claim is that unordered composition can rival syntactic methods for text classification. An unordered learned composition procedure is a much broader design choice than adding the context vectors within a specific word predictor. Paragraph Vector’s ablation shows that pooling the inputs in that predictor raised its IMDB error. The later paper’s subject identifies another question, whether a classifier that composes unordered evidence in a different way can be competitive with syntax-based methods. The questions can coexist because the operations, training signal and point at which information is combined all affect what the classifier ultimately receives. Deep Unordered Composition Rivals Syntactic Methods for Text Classification.
Word order is especially consequential to interpret at document length. Work on document modeling with a gated recurrent neural network for sentiment classification presents a sequence-based alternative aimed at the same general task as the IMDB experiment. Paragraph Vector avoids having to specify a composition of sentence trees by giving the document one fitted variable. A recurrent approach brings a different basis for representing a sequence, with the state associated with processing it providing the mechanism of composition. The shared problem is delivering document-level evidence to a sentiment decision. The later paper’s stated focus identifies gated recurrence as the avenue it explores, without establishing from the citation how much of its result belongs to recurrence, the training data or the classifier. Document Modeling with Gated Recurrent Neural Network for Sentiment Classification.
Changing the unit of the prediction
Several later works make the requested output more specific than a label for a whole document. Aspect-level sentiment classification assigns sentiment with respect to an aspect, so the same set of words may have to support different judgments depending on what is being considered. Paragraph Vector represents each declared text unit with one fitted feature, and its sentiment evaluation assigns a rating to that unit. The aspect-level framing highlights a condition that this evaluation does not vary. The question asked about the text can affect which evidence is relevant. Work combining aspect-level sentiment with a deep memory network puts that narrower prediction unit at the center of the application. Aspect Level Sentiment Classification with Deep Memory Network.
Target-dependent sentiment classification makes a related change. The target is part of what defines the correct answer. A document or sentence vector that separates generally positive from generally negative texts may give a classifier useful evidence, but an evaluation of target-dependent sentiment needs to determine whether the prediction is about the designated target. The later work names LSTMs as the approach it investigates for that problem. Its connection to Paragraph Vector is easier to see by separating the text unit from the unit of the judgment. In the original sentiment experiments they coincide at test time. The citing paper’s stated task requires the judgment to be indexed by a target as well. Effective LSTMs for Target-Dependent Sentiment Classification.
The unit changes again in sequence tagging. A single text may require a sequence of outputs related to particular positions. Paragraph Vector supplies a fixed-length feature by making one vector useful across positions. Semisupervised tagging with bidirectional language prediction brings the relationship between unlabeled prediction and supervised decisions to a problem where the decisions themselves are positioned within the text. Both lines of work can draw training evidence from unannotated sequences. Their different output granularity changes what must be preserved for subsequent use. This relationship follows from the stated focus on tagging and bidirectional language prediction, rather than from any claim that the cited procedure inherits paragraph-level fitting. Semi-supervised sequence tagging with bidirectional language models.
The question of selecting evidence also appears in work on machine reading and open-domain question answering. WikiQA offers a challenge dataset for the latter task. A question requires support for a particular answer. It can therefore give a purpose to a sentence comparison that simply knowing the two texts have a shared search context does not settle. Paragraph Vector’s retrieval test shows that a space can recover a relative relation among snippets. A question answering benchmark turns evaluation toward the relation between an explicit request and its answer. The connection here is between benchmark design choices. The later work’s stated contribution is a dataset for that problem. WikiQA.
Pretraining and deciding what to adapt
The Paragraph Vector experiments contain distinct choices about when to hold parameters fixed. An unseen text is fitted in a feature system whose shared quantities have already been learned. In the news transfer experiment, the restriction is introduced earlier for the word table so the sentiment representation can use information learned from another corpus. These are specific examples of a more general design problem. A representation has parts that can transfer across examples or collections and parts that can be adapted when it is used. BERT addresses the broader language understanding problem through pretraining with deep bidirectional Transformers, as its title specifies. The shared subject is reusable information from learning on text. The later work names a different architecture and a broader set of uses. BERT.
Once pretraining is established as a stage, another question is how to adapt it for classification. Work on fine-tuning BERT for text classification takes that decision as its main subject. Paragraph Vector’s sentiment experiments make a clear division between fitting text features through word prediction and learning the rule for labels. The citing work concerns the procedure for adapting a pretrained system to a classification problem. The useful comparison is between the places at which task information can enter. In Paragraph Vector the sentiment label trains the classifier on the features supplied to it. The title of the later work identifies fine-tuning itself as the object of study, without specifying in this connection a single adaptation setting or outcome. How to Fine-Tune BERT for Text Classification?.
Parameter-efficient transfer learning asks a related question under a constraint on adaptation. The original paper counts the parameters needed for its lookup tables and points out that the updates from a sampled example are sparse. At inference, the variable being changed belongs to an individual document. Parameter-efficient transfer learning addresses how to limit the parameters involved in transfer for natural language processing. That is a different unit of economy from a sparse update while fitting one document, even though both research problems distinguish shared parameters from those being adjusted. The relationship is most informative when the object of adaptation is kept explicit. An individual text needs a feature in the Paragraph Vector setting. Transfer learning concerns what is changed to support a new use. Parameter-Efficient Transfer Learning for NLP.
ALBERT frames efficiency through a lighter BERT for self-supervised learning of language representations. Paragraph Vector’s efficiency discussion concerns the number of learned input parameters, the sparse nature of training updates, and the parallel fitting of new paragraph vectors. The later work’s title identifies a different locus for economy, the design of the pretrained language representation system. This helps keep storage, adaptation and encoding costs separate. Reducing the size of shared machinery, restricting how much can change for a task, and minimizing work to represent an individual text are distinct objectives. A method’s success on one of them gives no measurement of the others. ALBERT.
These citing works place the earlier news experiment in a larger set of questions about reuse. The specific evidence in Paragraph Vector is that a fixed external word table can help when sentence and review features are learned for the same sentiment tasks. Pretraining at a wider level, the choice of classifier adaptation, and the cost of the reusable machinery are matters the later titles identify directly. Their relationship to the original idea lies in deciding what training can be done before a particular application or item is encountered, and what is learned at the point of use.
Learning which texts should lie close together
The search-snippet comparison uses an external relation, common query membership, to assess an embedding space. SPECTER makes citation information part of document-level representation learning. This carries forward the concern with whether document features express a useful relation between pieces of text, and changes the evidence available for organizing them. A citation relation is specific to the documents and the context in which they are linked. Shared query membership is specific to a retrieval event. Both can connect items even when vocabulary overlap is incomplete. The distinction between evaluation and the training signal also matters here. Paragraph Vector receives its defining text features from word prediction and is evaluated on triplets. The stated contribution of SPECTER is citation-informed learning of the representations themselves. SPECTER.
Work on semantic textual similarity gives another way to frame the desired relation. SemEval’s multilingual and crosslingual focused evaluation names similarity as the task and extends the setting across languages. Paragraph Vector’s triplet test derives a preferred pair from the search results. The later benchmark calls attention to the act of defining and evaluating similarity itself, including where two texts have different linguistic forms by virtue of their languages. These are different conditions under which a feature space can be asked to bring related items together. The original paper discusses translation mappings as background about word vectors, while its own snippet results concern the stated search collection. The later evaluation’s multilingual scope adds a requirement beyond what that collection establishes. SemEval-2017 Task 1.
Massively multilingual sentence embeddings similarly place the sentence feature in a setting with several languages and name zero-shot cross-lingual transfer as a use. Paragraph Vector asks a common predictor to give separately fitted text vectors a useful geometry. A multilingual transfer setting asks how representations can support a use in which the linguistic source of an item changes. The connection is the ambition to obtain a sentence feature that remains useful beyond the immediate observations used to construct it. The later work’s stated scope puts cross-language reuse at the center. The original experiments give no cross-language performance result against which to compare it. Massively Multilingual Sentence Embeddings for Zero-Shot Cross-Lingual Transfer and Beyond.
Document representations can also support grouping and description. BERTopic addresses neural topic modeling with class-based TF-IDF. This is a useful connection to the distinction between a dense feature and a term-based description. In the Paragraph Vector paper, the paragraph feature can behave like a memory for topic, and term weighting improves the count features considered for retrieval. The later work’s stated subject brings neural topic modeling and a class-based term weighting procedure into the same task. Its topic-oriented goal calls for a form of description of document groups. The original paragraph-vector coordinates are fitted to aid prediction and evaluated by classification or distance. The original study does not give topic descriptions derived from those coordinates. BERTopic.
The citation from work on learning transferable visual systems from natural language supervision connects to the original paper’s suggestion that the benefits of predictive representation learning might extend beyond text. The later work names a different relationship between data sources. Language serves as supervision for learning visual representations. Paragraph Vector uses words observed within a text to fit a feature for that text, and its non-text proposal concerns other sequential data. The later title supports a broader common theme of deriving reusable representations from relationships already present in training material. It gives no reason to treat the visual approach as an implementation of the proposed extension of Paragraph Vector. Learning Transferable Visual Models From Natural Language Supervision.
Across these directions, the original experiments provide concrete reference points. A text’s words can be used to fit features that a sentiment classifier can read. A feature space learned from prediction can also arrange search snippets in a useful order under a declared comparison rule. The citing work changes the object being represented, the evidence used to fit the representation, or the task by which it is judged. Those changes explain why the paper can be relevant to later research whose procedures differ substantially from fitting a fresh paragraph vector by gradient descent.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Cite
Cite as Quoc V. Le and Tomas Mikolov. 2014. Distributed Representations of Sentences and Documents. arXiv:1405.4053.
@misc{le2014distributed,
title = {{Distributed Representations of Sentences and Documents}},
author = {Quoc V. Le and Tomas Mikolov},
year = {2014},
doi = {10.48550/arxiv.1405.4053},
eprint = {1405.4053},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1405.4053}
}References
- Bengio, Yoshua, Schwenk, Holger, Senécal, Jean-Sébastien, Morin, Fréderic, and Gauvain, Jean-Luc. Neural probabilistic language models. In Innovations in Machine Learning, pp. 137–186. Springer, 2006. OpenAlex ↗ · Scholar ↗
- Collobert, Ronan and Weston, Jason. A unified architecture for natural language processing: Deep neural networks with multitask learning. In Proceedings of the 25th International Conference on Machine Learning, pp. 160–167. ACM, 2008. OpenAlex ↗ · Scholar ↗
- Collobert, Ronan, Weston, Jason, Bottou, Léon, Karlen, Michael, Kavukcuoglu, Koray, and Kuksa, Pavel. Natural language processing (almost) from scratch. The Journal of Machine Learning Research, 12:0 2493–2537, 2011. our card
- Dahl, George E., Adams, Ryan P., and Larochelle, Hugo. Training Restricted Boltzmann Machines on word observations. In International Conference on Machine Learning, 2012. OpenAlex ↗ · Scholar ↗
- Elman, Jeff. Finding structure in time. In Cognitive Science, pp. 179–211, 1990. OpenAlex ↗ · Scholar ↗
- Frome, Andrea, Corrado, Greg S., Shlens, Jonathon, Bengio, Samy, Dean, Jeffrey, Ranzato, Marc'Aurelio, and Mikolov, Tomas. DeViSE: A deep visual-semantic embedding model. In Advances in Neural Information Processing Systems, 2013. OpenAlex ↗ · Scholar ↗
- Grefenstette, E., Dinu, G., Zhang, Y., Sadrzadeh, M., and Baroni, M. Multi-step regression learning for compositional distributional semantics. In Conference on Empirical Methods in Natural Language Processing, 2013. OpenAlex ↗ · Scholar ↗
- Harris, Zellig. Distributional structure. Word, 1954. OpenAlex ↗ · Scholar ↗
- Huang, Eric, Socher, Richard, Manning, Christopher, and Ng, Andrew Y. Improving word representations via global context and multiple word prototypes. In Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics: Long Papers-Volume 1, pp. 873–882. Association for Computational Linguistics, 2012. our card
- Jaakkola, Tommi and Haussler, David. Exploiting generative models in discriminative classifiers. In Advances in Neural Information Processing Systems 11, pp. 487–493, 1999. OpenAlex ↗ · Scholar ↗
- Klein, Dan and Manning, Chris D. Accurate unlexicalized parsing. In Proceedings of Association for Computational Linguistics, 2003. OpenAlex ↗ · Scholar ↗
- Larochelle, Hugo and Lauly, Stanislas. A neural autoregressive topic model. In Advances in Neural Information Processing Systems, 2012. OpenAlex ↗ · Scholar ↗
- Maas, Andrew L., Daly, Raymond E., Pham, Peter T., Huang, Dan, Ng, Andrew Y., and Potts, Christopher. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics, 2011. our card
- Mikolov, Tomas. Statistical Language Models based on Neural Networks. PhD thesis, Brno University of Technology, 2012. OpenAlex ↗ · Scholar ↗
- Mikolov, Tomas, Chen, Kai, Corrado, Greg, and Dean, Jeffrey. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013a. our card
- Mikolov, Tomas, Le, Quoc V., and Sutskever, Ilya. Exploiting similarities among languages for machine translation. CoRR, abs/1309.4168, 2013b. our card
- Mikolov, Tomas, Sutskever, Ilya, Chen, Kai, Corrado, Greg, and Dean, Jeffrey. Distributed representations of phrases and their compositionality. In Advances on Neural Information Processing Systems, 2013c. OpenAlex ↗ · Scholar ↗
- Mikolov, Tomas, Yih, Scott Wen-tau, and Zweig, Geoffrey. Linguistic regularities in continuous space word representations. In NAACL HLT, 2013d. our card
- Mitchell, Jeff and Lapata, Mirella. Composition in distributional models of semantics. Cognitive Science, 2010. OpenAlex ↗ · Scholar ↗
- Mnih, Andriy and Hinton, Geoffrey E. A scalable hierarchical distributed language model. In Advances in Neural Information Processing Systems, pp. 1081–1088, 2008. OpenAlex ↗ · Scholar ↗
- Morin, Frederic and Bengio, Yoshua. Hierarchical probabilistic neural network language model. In Proceedings of the International Workshop on Artificial Intelligence and Statistics, pp. 246–252, 2005. OpenAlex ↗ · Scholar ↗
- Pang, Bo and Lee, Lillian. Seeing stars: Exploiting class relationships for sentiment categorization with respect to rating scales. In Proceedings of Association for Computational Linguistics, pp. 115–124, 2005. our card
- Perronnin, Florent and Dance, Christopher. Fisher kernels on visual vocabularies for image categorization. In IEEE Conference on Computer Vision and Pattern Recognition, 2007. OpenAlex ↗ · Scholar ↗
- Perronnin, Florent, Liu, Yan, Sanchez, Jorge, and Poirier, Herve. Large-scale image retrieval with compressed fisher vectors. In IEEE Conference on Computer Vision and Pattern Recognition, 2010. OpenAlex ↗ · Scholar ↗
- Rumelhart, David E, Hinton, Geoffrey E, and Williams, Ronald J. Learning representations by back-propagating errors. Nature, 3230 (6088):0 533–536, 1986. OpenAlex ↗ · Scholar ↗
- Socher, Richard, Huang, Eric H., Pennington, Jeffrey, Manning, Chris D., and Ng, Andrew Y. Dynamic pooling and unfolding recursive autoencoders for paraphrase detection. In Advances in Neural Information Processing Systems, 2011a. OpenAlex ↗ · Scholar ↗
- Socher, Richard, Lin, Cliff C, Ng, Andrew, and Manning, Chris. Parsing natural scenes and natural language with recursive neural networks. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 129–136, 2011b. OpenAlex ↗ · Scholar ↗
- Socher, Richard, Pennington, Jeffrey, Huang, Eric H, Ng, Andrew Y, and Manning, Christopher D. Semi-supervised recursive autoencoders for predicting sentiment distributions. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2011c. our card
- Socher, Richard, Chen, Danqi, Manning, Christopher D., and Ng, Andrew Y. Reasoning with neural tensor networks for knowledge base completion. In Advances in Neural Information Processing Systems, 2013a. our card
- Socher, Richard, Perelygin, Alex, Wu, Jean Y., Chuang, Jason, Manning, Christopher D., Ng, Andrew Y., and Potts, Christopher. Recursive deep models for semantic compositionality over a sentiment treebank. In Conference on Empirical Methods in Natural Language Processing, 2013b. our card
- Srivastava, Nitish, Salakhutdinov, Ruslan, and Hinton, Geoffrey. Modeling documents with deep boltzmann machines. In Uncertainty in Artificial Intelligence, 2013. OpenAlex ↗ · Scholar ↗
- Turian, Joseph, Ratinov, Lev, and Bengio, Yoshua. Word representations: a simple and general method for semi-supervised learning. In Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics, pp. 384–394. Association for Computational Linguistics, 2010. our card
- Turney, Peter D. and Pantel, Patrick. From frequency to meaning: Vector space models of semantics. Journal of Artificial Intelligence Research, 2010. our card
- Wang, Sida and Manning, Chris D. Baselines and bigrams: Simple, good sentiment and text classification. In Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics, 2012. OpenAlex ↗ · Scholar ↗
- Yessenalina, Ainur and Cardie, Claire. Compositional matrix-space models for sentiment analysis. In Conference on Empirical Methods in Natural Language Processing, 2011. OpenAlex ↗ · Scholar ↗
- Zanzotto, Fabio, Korkontzelos, Ioannis, Fallucchi, Francesca, and Manandhar, Suresh. Estimating linear models for compositional distributional semantics. In COLING, 2010. our card
- Zhila, A., Yih, W.T., Meek, C., Zweig, G., and Mikolov, T. Combining heterogeneous models for measuring relational similarity. In NAACL HLT, 2013. OpenAlex ↗ · Scholar ↗
- Zou, Will, Socher, Richard, Cer, Daniel, and Manning, Christopher. Bilingual word embeddings for phrase-based machine translation. In Conference on Empirical Methods in Natural Language Processing, 2013. our card
This page in Markdown https://md.research.elamur.ai/free/en/papers/le-2014-distributed-representations-sentences-documents/