Elamur Research

Evaluation of Unsupervised Compositional Representations

Paper · 2018 · Hanan Aldarmaki and Mona Diab

Summary

A sentence representation compresses a passage into a fixed-length vector: a collection of numerical features that another procedure can compare, classify or cluster. The difficult question is what survives that compression. A useful representation might preserve the subject matter, the attitude expressed, the kind of question being asked, or distinctions created by word order. Those properties are related, but they are not interchangeable. In Evaluation of Unsupervised Compositional Representations, Hanan Aldarmaki and Mona Diab investigate which properties different representations make accessible, and why a strong result on one benchmark can accompany a weak result on another.

The paper compares simple word-presence features, combinations of word embeddings, and sentence encoders whose training objectives encourage different kinds of contextual information. Its central finding is that architectural complexity does not reliably predict evaluation quality. Averaging word vectors is competitive across many supervised tasks. Adjusting the contribution of frequent words makes averaging especially effective when sentence similarity is measured directly, without a classifier trained on the target task. Sub-word skip-gram provides particularly useful word vectors in the authors’ comparisons. Yet simple composition is not universally best: recurrent representations can help when a classification problem benefits from recurring sentence forms.

The distinction between direct comparison and supervised prediction is essential. A representation can contain useful information without arranging it so that cosine similarity exposes that information. Skip-thought illustrates this separation. Its sentence vectors perform poorly when their cosine scores are used directly for semantic similarity, but become more useful when a supervised procedure learns how to read their features. They also help with question classification and subjectivity detection. Conversely, vectors that place topically related passages close together can support coherent topic clusters while failing to match a strong task-specific classifier.

The authors therefore look beyond benchmark rankings. They examine lexical overlap in similarity datasets, inspect nearby sentences in vector space, visualize representations, and measure the correspondence between clusters and known categories. These analyses suggest that skip-thought emphasizes structural resemblance, whereas weighted averages and paragraph vectors more clearly organize passages by subject matter. InferSent appears to preserve a mixture of semantic and structural information and performs consistently across the tested tasks. The paper’s broader contribution is an evaluation argument: a sentence representation should be judged by the information a particular task requires, the way that information is read out, and the shortcuts available in the evaluation data.

Interesting ideas

Match the evaluation to the intended use. Direct similarity, supervised classification and clustering ask different questions about the same representation. A vector space can support a good classifier while providing poor nearest neighbors. Testing the operation that an application will actually perform avoids selecting a representation for an ability that its deployment does not use. This applies to search, document grouping and any pipeline that reuses features across tasks.

Give simple baselines a serious chance. Binary word-presence features and frequency-weighted averages reveal how much a task can be solved through lexical evidence or broad semantic associations. If an elaborate encoder cannot beat them under appropriate conditions, its additional machinery needs another justification. The same reasoning applies to rule induction, feature engineering and systems that combine several sources of evidence.

Control the input evidence before crediting composition. The authors compare contextual encoders with averages of their associated word vectors, instead of attributing every difference to sentence architecture. Better vocabulary coverage or stronger underlying word representations can otherwise masquerade as better composition. Comparable controls are useful whenever a new processing stage depends on an improved upstream resource.

Treat frequent features according to the task. Common words can obscure topical similarity, yet help identify question forms or sentence structure. Frequency weighting works because it changes which distinctions dominate the representation; that same change can hurt when those distinctions are useful. In other applications, the lesson is to test suppression rules against the information they remove, rather than assuming that common evidence is uninformative.

Inspect what an aggregate score conceals. A correlation across a complete similarity benchmark can be driven by obvious extremes, while distinctions within narrower score ranges remain difficult. Dividing examples into meaningful regions, checking simple confounds and examining concrete neighbors makes an overall result easier to interpret. This is valuable in evaluation whenever easy cases and hard cases are mixed.

Study representation geometry alongside prediction. Visual inspection can suggest what organizes a vector space, while clustering provides a more explicit test of whether that organization matches a desired category system. Neither analysis replaces downstream evaluation, but together they help explain why a representation succeeds. The approach also transfers to graph features, interpretable feature collections and other representations whose internal organization matters.

Deep dive: Evaluation of Unsupervised Compositional Representations

How sentence representations compare across similarity, sentiment and topic tasks, and why simple averaging often beats recurrent encoders. · about 34 minutes to read

How Mova uses it

Mova is a small language system implemented in Rust whose native pipeline constructs dependency trees, reads event frames and maintains a world of the text. The paper does not evaluate Mova, and its findings do not establish that distributed sentence representations would improve Mova’s readers. The most useful transfers concern evaluation design, controlled comparisons, retrieval and the treatment of linguistic evidence.

The status marks below are proposals against Mova’s documented mechanisms. They distinguish a closely related existing mechanism from a more specific extension suggested by the paper. The available account is incomplete, so a proposed new application is not a claim that no related implementation exists elsewhere. Effects in Mova are unknown unless separately measured.

Idea: Evaluate the operation that deployment needs. Where: Evaluation Datasets and Discussion and Conclusions. Area: evaluation. Mova: частково є (separate reader, school and mathematical assessments described in docs/architecture.md). Mova could distinguish a representation’s ability to retrieve a related passage from its ability to support a correct answer after task-specific training. The paper shows why success in one setting cannot stand in for the other. Why Mova: this would make each reported improvement answer a concrete operational question.

Idea: Require strong simple baselines. Where: Baselines and Evaluation on Sentiment Analysis and Categorization. Area: evaluation. Mova: частково є (school controls and explicit regression gates). Lexical overlap, word-presence features and simple frequency statistics could accompany comparisons of more elaborate frame or graph readers. These baselines would measure how much success requires structured interpretation rather than easily available surface evidence. Why Mova: transparent baselines would help justify the complexity of a proposed mechanism.

Idea: Hold upstream evidence constant when testing a new stage. Where: Training Data. Area: experimental design. Mova: частково є (mova-enrich compares the same questions before and after a change). A reader comparison could reuse identical parses, dictionary versions and source passages while changing only the interpretation procedure. The paper’s matched word-vector comparisons motivate this control, although they do not implement a Mova experiment. Why Mova: it would separate a better reader from a better input resource.

Idea: Make frequency suppression task-dependent. Where: Word Embeddings and Composition Functions; Evaluation on Sentiment Analysis and Categorization. Area: information retrieval. Mova: частково є (tools/dictindex maintains occurrence counts and explained statistical selectors). Mova could test frequency weighting for passage retrieval while preserving the original evidence for its native reader. The paper gives no reason to apply the same weighting to grammatical interpretation. Why Mova: topical retrieval could become more selective without discarding function words needed for meaning.

Idea: Break aggregate scores into meaningful regions. Where: Evaluation on Pair-wise Similarity, Figure 1. Area: evaluation. Mova: частково є (prag/src/eval.rs reports confidence groups and associated uncertainty). Reader evaluations could additionally group items by lexical overlap, representational requirements or ambiguity. Each grouping would need a defined purpose and enough evidence to support interpretation. Why Mova: an unchanged overall score could then reveal a useful local improvement or a concentrated regression.

Idea: Inspect organization as well as final answers. Where: Qualitative Analysis, Figures 3–5 and Table 7. Area: representation analysis. Mova: частково є (frame traces, retained graphs and dictionary occurrence inspection). Mova could inspect whether cases sharing a relation or inference pattern receive similar internal treatment. This would be an analysis of explicit structures rather than an assumption that Mova needs dense vectors. Why Mova: it would connect answer errors to how the system organizes evidence.

Idea: Separate lexical identity from lexical relatedness. Where: Introduction and Baselines. Area: lexical semantics. Mova: частково є (en preserves lexical information, while global and onto provide concept links). The paper demonstrates different strengths for exact word evidence and distributed associations. Mova could evaluate both channels explicitly when retrieving evidence, retaining which match was literal and which depended on a concept relation. Why Mova: related words could improve coverage without hiding the reason a passage was selected.

Idea: Use random representations as a diagnostic control. Where: Word Embeddings and Qualitative Analysis. Area: evaluation. Mova: нове. A bounded diagnostic could compare meaningful lexical features with randomized features while preserving the evaluation procedure. The purpose would be to estimate whether apparent success mainly reflects overlap or accidental structure; implementation status beyond the documented controls is unknown. Why Mova: this could expose benchmarks that reward a weak proxy for understanding.

Idea: Preserve task-specific features as task-specific. Where: Baselines, the log-count-ratio construction. Area: statistics. Mova: частково є (learned school parameters are distinguished from compiled global knowledge). If a word becomes predictive because it frequently accompanies an assessment label, that association should remain a task feature rather than becoming an asserted world fact. Why Mova: it would protect the separation between useful prediction and admitted knowledge.

Idea: Treat topical proximity and paraphrase as different relations. Where: Evaluation on Pair-wise Similarity, Tables 3–4. Area: semantics. Mova: частково є (frames distinguish participants, actions and negation). A retrieval stage may identify passages about the same subject, but a subsequent check should examine whether their claims agree. Why Mova: related evidence could remain useful without being promoted automatically to an equivalent statement.

Idea: Test lexical overlap as a benchmark shortcut. Where: Figure 1 and Figure 2. Area: evaluation. Mova: частково є (contrast sets and negative controls in the documented assessment approach). Mova could report how answer quality varies when the question and relevant passage share more or fewer words. A controlled comparison would retain the underlying semantic requirement. Why Mova: it would show whether a reader relies too heavily on repeated wording.

Idea: Examine semantic distinctions inside broadly similar material. Where: Evaluation on Pair-wise Similarity, the score-region analysis. Area: reasoning evaluation. Mova: частково є (world readers track possession, state changes and event order). Cases with the same topic but different participants, polarity or outcomes could test whether the world representation preserves the distinction that changes an answer. Why Mova: these cases probe interpretation after easy topical matching has already succeeded.

Idea: Preserve structural clues carried by common words. Where: Evaluation on Sentiment Analysis and Categorization. Area: syntax. Mova: вже є (en dependency parsing and the role-sensitive frame pipeline). The proposed extension is evaluative: check which failures appear when grammatical evidence is hidden from a candidate retrieval or interpretation stage. The paper’s weighting results motivate the question without proving which clues Mova needs. Why Mova: the comparison could demonstrate the practical value of explicit grammatical structure.

Idea: Distinguish a question’s subject from its requested answer type. Where: Qualitative Analysis, Table 8. Area: question answering. Mova: частково є (native question observations and configured task interpretation). A question about islands may seek a place, a quantity or another kind of answer. Mova could evaluate answer-type identification separately from finding the relevant subject matter. Why Mova: it would make question-routing errors easier to locate.

Idea: Use nearest-neighbor audits for dictionary evidence. Where: Qualitative Analysis, Tables 6 and 8. Area: lexicography. Mova: частково є (tools/dictindex returns exact examples and reviewed selectors). Dictionary workers could inspect whether a candidate’s retrieved examples share a meaning, merely a topic, or only a sentence pattern. Existing provenance should remain attached to every example. Why Mova: this would make statistical proposals easier to review before any admission decision.

Idea: Compare coarse and fine category structure. Where: Qualitative Analysis, Table 7. Area: evaluation. Mova: нове. A controlled diagnostic could ask whether retained features distinguish broad domains while collapsing distinctions within them. No such specific diagnostic is established by the documented mechanisms. Why Mova: it would identify the level at which a representation stops being useful, rather than treating category coverage as all-or-nothing.

Idea: Examine category fragmentation across cluster settings. Where: Qualitative Analysis, Figure 5. Area: statistics. Mova: нове. If clustering is used to inspect lexical or graph-derived features, varying its granularity could reveal whether one category consists of several consistent subgroups. This would remain exploratory evidence, not an automatic sense inventory. Why Mova: it could help reviewers distinguish genuine substructure from a poor choice of clustering scale.

Idea: Pair visual analysis with an explicit criterion. Where: Qualitative Analysis, Figures 3–5 and Table 7. Area: statistics. Mova: частково є (explained dictionary selectors and measured evaluation reports). A visualization of graph or lexical features could be accompanied by a criterion that states what organization is desirable. The paper’s combination of visual inspection and purity is a useful pattern, though the exact criterion would depend on Mova’s task. Why Mova: it would make an attractive display accountable to a stated question.

Idea: Evaluate the entire readout procedure. Where: Pairwise Similarity and Discussion and Conclusions. Area: evaluation. Mova: частково є (separate native inference and trained pragmatic evaluation paths). If a feature set improves only after a learned classifier is added, the claim should concern that complete procedure. It should not imply that the raw representation supports equally good direct comparison. Why Mova: this would keep capability claims tied to the mechanism actually tested.

Idea: Measure inference work as well as predictive quality. Where: Neural Compositional Models, the paragraph-vector discussion. Area: operational efficiency. Mova: частково є (tools/twin records prospective costs and measured runs). A proposed representation that needs optimization for every new passage should be evaluated with that work included. The paper identifies this issue for paragraph vectors without providing a general runtime ranking. Why Mova: repeated reading and worker calls make per-input costs operationally important.

Idea: Normalize irrelevant source formatting before classification. Where: Sentiment Analysis and Text Categorization, the Newsgroup preparation. Area: data processing. Mova: частково є (tools/sources and tools/dictindex maintain explicit source configurations). A controlled text preparation stage could remove material that belongs to transmission or presentation rather than the passage being classified. Any transformation would need to preserve the original source for inspection. Why Mova: this would reduce misleading evidence while keeping preparation reviewable.

Idea: Keep corpus differences visible in architecture comparisons. Where: Training Data. Area: provenance. Mova: вже є (source/version checks, immutable index parts and source fingerprints). The paper’s pretrained encoders depend on different training resources, limiting how completely their architectures can be isolated. Mova should retain the same caution when comparing workers, dictionary versions or trained parameters. Why Mova: a documented resource change should not be mistaken for an isolated algorithmic gain.

Idea: Use character-level information as a hypothesis about sparse vocabulary. Where: Word Embeddings, the sub-word skip-gram description. Area: morphology. Mova: частково є (en has explicit morphology and derivational rules). The paper’s sub-word results motivate testing whether transparent morphological classes help group rare variants in retrieval. They do not establish that a new neural component is necessary or that sub-words alone caused the reported advantage. Why Mova: explicit morphology fits Mova’s direction while offering a concrete coverage hypothesis.

Idea: Test weighting and shared-component removal separately. Where: Word Embeddings and Composition Functions. Area: experimental design. Mova: нове. A statistical retrieval experiment inspired by SIF should distinguish the contribution of frequency weighting from any removal of a common component. The paper evaluates their combined procedure without isolating those contributions. Why Mova: separate controls would identify which operation deserves the added complexity.

Idea: Match significance checks to the measured outcome. Where: Table 2 and Table 5. Area: statistics. Mova: частково є (paired comparisons, bootstrap intervals and confidence diagnostics in the application record). Correlation and classification results should receive appropriate comparisons instead of a generic declaration that one score is larger. The paper uses different significance procedures for its different evaluation families. Why Mova: this would make small apparent gains easier to assess without overstating them.

Idea: Keep example-based explanations separate from causal proof. Where: Qualitative Analysis and Discussion and Conclusions. Area: interpretability. Mova: частково є (explicit evidence types and the separation of observations from stronger conclusions). A revealing pair of neighboring sentences can suggest which feature matters, but a controlled intervention is needed to establish causation. Why Mova: this would preserve the usefulness of diagnostic examples while preventing them from becoming unsupported mechanism claims.

Idea: Broaden evaluation across linguistic requirements. Where: Evaluation Datasets. Area: evaluation design. Mova: частково є (school, mathematical and narrative-reader assessments). A candidate change could be checked on tasks requiring different evidence, rather than judged only where it was expected to help. The paper’s task diversity demonstrates why one favorable benchmark can miss a systematic weakness. Why Mova: it would help protect general readers from narrowly optimized improvements.

The problem and its context

The paper starts from a practical ambition: turn passages of varying length into representations that can be reused. A sentence, a short review and a paragraph contain different numbers of words. Many comparison and classification procedures are easier to apply when every input has the same numerical shape. Composition is the operation that makes this possible by combining information about individual words into a representation of the whole passage.

The target is broader than success on a single supervised classification task. A classifier trained specifically for sentiment can learn to attend to the evidence that separates favorable reviews from unfavorable ones. Its internal features need not provide a generally useful description of sentence meaning. The authors instead investigate representations intended to retain information for later applications, including applications without labeled examples from the target task.

This distinction explains the paper’s treatment of earlier neural classification systems. It cites Kim’s convolutional sentence classifier and Socher and colleagues’ recursive sentiment work as examples of architectures that can handle variable-length input while learning features suited to classification. Their success motivates interest in learned representations, but it does not settle how a generic sentence vector should be constructed or assessed.

A binary bag of words supplies the simplest alternative. Each vocabulary item gets a feature, and a passage records whether that word appears. Such a representation retains exact lexical identity but does not express that different words can have related meanings. With enough task-specific examples, a classifier may learn useful associations for each word. With fewer examples, the inability to share evidence across related vocabulary becomes more restrictive.

Word embeddings offer a different compromise. In distributional semantics, words receive numerical representations learned from their use in text. Averaging those vectors gives a compact passage representation and allows different but related words to contribute similar evidence. The paper notes earlier findings that additive composition can be surprisingly effective, including comparisons with more elaborate composition functions and evaluations outside the training domain.

However, averaging changes what is preserved. Exact word identity becomes less accessible, and every included word influences the result. A frequent grammatical word may contribute as much as a word central to the passage’s subject. More fundamentally, addition does not preserve word order. Different arrangements of the same lexical material receive the same average even when their interpretations differ.

The paper organizes potential remedies around these weaknesses. Frequency weighting adjusts the prominence of words without changing the basic averaging operation. Context-sensitive composition allows a word’s contribution to depend on its surrounding sentence. Sentence-level training objectives encourage encoders to preserve information useful for predicting adjacent sentences, finding paraphrases or distinguishing inference relations.

These objectives do not all teach the same notion of meaning. Predicting surrounding prose may reward features different from those needed to identify a paraphrase. Learning an inference distinction may encourage attention to relationships that topical similarity ignores. The question is therefore not simply whether context helps. It is which contextual distinctions a training objective encourages, and whether the evaluation rewards those distinctions.

The authors place their study alongside Hill and colleagues’ evaluation of sentence representations. As described in the paper, that earlier evaluation found substantial differences between supervised and unsupervised uses of sequential encoders. Strong supervised results did not guarantee that direct similarity would work well. Aldarmaki and Diab extend this concern by emphasizing stronger baselines and by investigating the structure of the resulting spaces.

Their comparison is thus a study of evaluation as much as representation. A benchmark supplies examples, labels and a scoring rule. It also contains regularities that may make particular strategies successful. If lexical overlap tracks the labels closely, a representation that mostly recognizes shared words can look more semantically capable than it is. If question categories align with common sentence openings, structural resemblance can be more valuable than topic resemblance.

The paper does not reject those regularities as irrelevant. Shared vocabulary often is informative, and question form can legitimately reveal what kind of answer is wanted. Its aim is to identify what contributes to the result. That explanation makes it easier to choose a representation for a new application, where the useful regularities may be different.

The method, step by step

The study’s procedure has several layers. First, it constructs or obtains passage representations. It then evaluates those representations through different readout procedures. Finally, it examines the relationship between their internal organization and their benchmark behavior. The representations are mostly fixed before target-task evaluation; supervised classifiers learn to use them without turning every comparison into a newly trained sentence encoder.

From text representations to diagnostic evaluation

The steps in order.

From text representations to diagnostic evaluationStep 1: Train or obtain word and sentence representations1. Train or obtain word and sentence representationsStep 2: Construct lexical and averaging baselines2. Construct lexical and averaging baselinesStep 3: Compare sentences directly through cosine similarity3. Compare sentences directly through cosine similarityStep 4: Train task-specific linear prediction procedures4. Train task-specific linear prediction proceduresStep 5: Inspect neighboring passages and visual organization5. Inspect neighboring passages and visual organizationStep 6: Cluster representations and measure category agreement6. Cluster representations and measure category agreement

Establish lexical baselines

For a binary bag of words, each sentence becomes a sparse vector. A feature is active when its corresponding vocabulary item occurs. This provides an exact lexical baseline whose strengths and weaknesses are easy to understand: it can recognize repeated wording but does not itself connect different expressions of a related concept.

The authors also include a supervised transformation derived from class-specific word counts. Its purpose is to emphasize words that discriminate between the labels. For a binary task, counts are accumulated separately for the positive and negative classes, with smoothing.

p = 1 + Σᵢ:yᵢ=1 xᵢ

Here, xᵢ is the binary feature vector for example i, and yᵢ is its class label. The sum includes examples labeled 1. The addition of 1 supplies smoothing to each count, and p is the resulting vector of positive-class feature counts.

q = 1 + Σᵢ:yᵢ=0 xᵢ

The symbols have the same roles, but the sum now includes examples labeled 0. The vector q therefore describes smoothed feature counts for the other class.

r = log((p / ‖p‖) / (q / ‖q‖))

The vector r contains log-count ratios. The quantities ‖p‖ and ‖q‖ normalize their respective count vectors. Division between vectors and the logarithm are applied feature by feature. A word’s value consequently reflects its relative association with the classes, rather than only its presence in a passage.

Each example’s binary vector is then multiplied element by element by r. These transformed features are useful as a competitive baseline, but they are no longer generic representations: their construction depends on the labels of the particular classification task. The paper keeps that distinction explicit when comparing them with representations learned from unlabeled text.

Build passage vectors from word vectors

The additive approaches begin with a vector for each word. Simple averaging combines the vectors of the words in a passage without learning a separate passage encoder. This creates a fixed-length representation regardless of the passage’s length.

The authors compare several underlying word representations. CBOW, from Mikolov and colleagues’ word-vector work, learns to predict a word from its surrounding context. GloVe, introduced in Pennington and colleagues’ work, uses a regression formulation based on word co-occurrence information. Their different training procedures make it possible to ask whether composition results depend strongly on the word vectors being combined.

The sub-word skip-gram alternative represents words through character sequences of different lengths. The paper connects it to Bojanowski and colleagues’ subword method and to the skip-gram approach described by Mikolov and colleagues. Sharing character-level components allows related word forms to share evidence, which is intended to help with less frequent morphological variants.

Random word vectors provide another control. The authors draw a vector for each vocabulary item from a standard normal distribution. Combining these vectors produces a compressed lexical representation without learning distributional relationships. This control is particularly informative when comparing tasks: success cannot be attributed to learned word meaning if random assignments support similar behavior.

Change the contribution of frequent words

The first weighting approach treats each sentence as a document for TF-IDF. Words found in many sentences receive less weight than words appearing in fewer sentences.

idfₜ = log(N / (1 + nₜ))

The term t identifies a word, N is the number of sentences, and nₜ counts the sentences containing that word. The added 1 appears in the denominator. The resulting idfₜ controls the word’s contribution to the passage representation.

The second approach is smooth inverse frequency, abbreviated SIF. It also discounts common words, but uses their relative corpus frequency and a smoothing parameter.

sifₜ = a / (a + p(t))

Here, p(t) is the relative frequency of word t in the training corpus, and a is the smoothing parameter. The value sifₜ is the weight assigned to that word. More frequent words receive smaller contributions under this rule.

The SIF procedure includes a further operation after weighted composition: the representation’s projection onto the leading principal component is removed. In this setting, a principal component is a shared direction of variation across the passage vectors. The paper associates the leading direction with common-word and syntactic effects. Because weighting and component removal are evaluated together, the results concern that combined procedure.

Compare different contextual objectives

Paragraph vectors, or doc2vec, attach a learned vector to each training passage. In the distributed-memory version evaluated here, a neural predictor uses both nearby words and the passage vector when predicting a word. For a previously unseen passage, the shared parameters remain fixed while the new passage vector is optimized. This makes inference more involved than simply averaging known word vectors.

The paper’s reference point is Le and Mikolov’s paragraph-vector method. In the authors’ experiment, doc2vec uses the same general training corpus as their locally trained word vectors, and its word representations are initialized from their sub-word skip-gram vectors. That shared corpus reduces some sources of variability.

GRAN, the gated recurrent averaging network, modifies averaging through context-dependent contributions. Its training uses paired sentences treated as paraphrases and contrasts them with negative examples. The objective encourages the paired sentences to have similar representations. The paper compares GRAN with the PARAGRAM-SL999 vectors used in its initialization, connecting the comparison to the compositional paraphrase work.

Skip-thought uses an encoder–decoder arrangement. A sentence is compressed into a vector, and decoders learn to reconstruct its neighboring sentences. Its recurrent components use GRU activations, and training depends on contiguous passages from novels. The broader encoder–decoder background includes sequence-to-sequence learning, though skip-thought’s training target is neighboring text rather than translation.

InferSent supplies a contrasting objective. It uses a bidirectional LSTM with max-pooling, trained jointly with an inference classifier. Its supervision comes from SNLI, whose sentence pairs receive entailment, contradiction or neutral labels. The comparison therefore includes a supervised source of sentence representations, in spite of the paper’s emphasis on unsupervised composition.

Control resources and train readout procedures

The authors train CBOW, GloVe and sub-word skip-gram on approximately ∼ 7 million sentences from English Wikipedia and Amazon review material. They deliberately use a medium-sized common corpus rather than giving each approach an independently chosen large resource. Their stated goal is a more consistent comparison with less variation from data and vocabulary coverage.

The contextual encoders require different resources, so complete training-data equality is not possible. The authors use pretrained GRAN, skip-thought and InferSent representations. They compare each with relevant underlying word vectors: PARAGRAM-SL999 for GRAN, the CBOW vectors associated with skip-thought’s vocabulary expansion, and pretrained GloVe for InferSent.

For supervised classification, linear support-vector machines are tuned using grid search where suitable splits exist. Otherwise, the evaluation uses nested cross-validation, which separates parameter selection from the outer performance estimate. Kernel support-vector machines are also tried, but the authors report no notable change. Similarity tasks use their own direct or supervised prediction procedures, allowing the same representation to be assessed under different assumptions about how it will be used.

Experiments and results

The experiments cover semantic similarity, sentiment-related classification and category prediction. This range matters because each family rewards a different kind of information. Similarity asks whether passages should be close in meaning. Sentiment asks about an expressed attitude or subjectivity. Topic categorization asks what a passage concerns, while question classification asks what kind of answer is requested.

The paper names an evaluation repository containing its scripts and data. It also identifies the pretrained encoders and associated word-vector resources used in the comparisons. These resources support reproducibility, although the article’s central evidence remains the reported experimental conditions and results.

Similarity and paraphrase evaluation

The STS benchmark supplies sentence pairs with human similarity ratings running from 0 to 5. The paper’s dataset table lists 5,749 training examples and 1,379 test examples. Representations are evaluated by Pearson correlation between their predictions and the human scores.

SICK contributes a relatedness task with 4,934 training examples and 4,906 test examples in the paper’s statistics. The authors use the same broad distinction between direct cosine comparison and supervised regression. The benchmark therefore tests both the raw similarity geometry and the usefulness of the features after a learned readout.

For supervised similarity prediction, the input combines two kinds of coordinate-wise evidence from the sentence vectors: their element-wise products and their absolute differences. Linear regression maps these pair features to a similarity score. This procedure can learn which dimensions matter more, whereas plain cosine applies a fixed comparison rule.

The paraphrase experiment uses the Microsoft Research paraphrase corpus, abbreviated MSRP. Its table lists 4,076 training examples and 1,725 test examples, with a positive ratio of 0.66. One evaluation compares cosine similarity with a threshold tuned using training data. Another trains logistic regression on the same product-and-difference pair features.

Frequency weighting makes a substantial difference for some underlying word vectors. The locally trained GloVe averages provide a clear illustration in direct STS evaluation.

GloVe composition on STS benchmark, cosine Pearson correlation

SIF composition gives a stronger direct similarity signal than unweighted averaging.

GloVe composition on STS benchmark, cosine Pearson correlationGloVe average: 0.336GloVe average0.336GloVe IDF average: 0.540GloVe IDF average0.540GloVe SIF (this paper): 0.685GloVe SIF (this paper)0.685
The numbers
System or settingPearson ρ
GloVe average0.336
GloVe IDF average0.540
GloVe SIF (this paper)0.685

The paper reports a broader tendency for SIF to outperform IDF weighting in similarity evaluation. Sub-word skip-gram is especially competitive among the locally trained embeddings: its SIF representation reaches 0.694 on STS with cosine comparison and 0.716 on SICK under the same kind of readout. The authors’ overall interpretation favors sub-word word representations, particularly when combined with SIF.

GRAN improves over a plain average of its associated word vectors. Its cosine correlation is 0.747 on STS, compared with 0.564 for the unweighted PARAGRAM-SL999 average. But the comparison becomes less decisive when the baseline receives frequency weighting. The associated SIF average reaches 0.716 on STS and 0.733 on SICK, while GRAN obtains 0.715 on SICK. The authors identify unsupervised STS as the setting where GRAN retains an advantage over weighted averaging.

Skip-thought shows why the readout procedure matters. On STS, its direct cosine correlation is 0.213, whereas supervised linear regression reaches 0.729. On SICK, the corresponding reported values are 0.498 and 0.811. These results support a narrower conclusion than “the representation contains no meaning”: useful predictive information is available, but direct cosine comparison does not expose it well.

InferSent performs more consistently across the two readouts. Its STS correlations are 0.692 with cosine and 0.773 with regression. On SICK, they are 0.744 and 0.865. Because InferSent is trained using labeled inference examples, these results should not be read as a victory for an entirely unsupervised training procedure. They show the value of that particular representation under the evaluation conditions.

The authors also find that binary features and random-vector combinations can be surprisingly competitive in parts of the similarity evaluation. Their explanation is not that random assignments recover rich semantics. Instead, lexical overlap correlates with the reference scores, allowing weak semantic representations to exploit a strong dataset regularity.

Sentiment, subjectivity and longer reviews

The sentiment-related evaluation includes product reviews and opinion phrases, alongside short and full-length movie reviews. CR has 3,775 examples in the dataset table. MPQA contains 10,606, while RT-s contains 10,662. Subjectivity classification contributes 10,000 examples.

The IMDB experiment uses 25k training reviews and 25k test reviews. Its average sample length is 262, substantially different from the short opinion expressions in MPQA, whose listed average length is 3. These are distinct conditions for passage composition: a representation may behave differently when it averages a few words instead of a lengthy review.

The corresponding sources include Maas and colleagues’ IMDB work, Pang and Lee’s subjectivity study, and their rating-related sentiment work. The paper uses these datasets as evaluations, instead of proposing a new sentiment corpus.

Unlike the similarity experiments, these tasks do not show a general advantage for frequency-weighted composition. Simple averages often work as well or better. With the locally trained sub-word vectors, the IMDB result is 88.0 for plain averaging and 88.2 for SIF. The authors’ point is the broader lack of a consistent weighting advantage, not that every numerical comparison is identical.

InferSent obtains 83.0 accuracy on CR, with F1 0.867, and is identified as the strongest representation there. Skip-thought reaches 93.4 on subjectivity, compared with 90.5 for the average of its associated pretrained CBOW vectors. These exceptions matter because they show where structural information may help rather than merely complicate a topical representation.

Topic and question categorization

For Newsgroup experiments, the authors remove headers, forwarded material and signatures. They then form binary topic distinctions such as sports and computing, alongside religion and politics. They also evaluate a multiclass task using 8 groups. This preparation aims to evaluate the remaining passage content rather than readily available transmission metadata.

The strongest supervised topic results come from the NBSVM baseline associated with Wang and Manning’s baseline study. The paper reports 93.5 for sports, 86.7 for computing and 91.9 for politics. Its multiclass result is 93.4. The authors state that no tested compositional representation exceeds this baseline across the supervised topic tasks.

TREC is different. It asks for a coarse question category, with 5,452 training examples and 500 test examples. Its 6 categories concern people, entities, locations, quantities, descriptions and abbreviations. A sentence’s topic alone does not determine the category: the requested answer type matters.

Skip-thought and associated CBOW compositions on TREC, classification accuracy

Skip-thought benefits this question task, while frequency weighting weakens the associated averaging baseline.

Skip-thought and associated CBOW compositions on TREC, classification accuracyPretrained CBOW average: 80.0Pretrained CBOW average80.0Pretrained CBOW IDF average: 72.2Pretrained CBOW IDF average72.2Pretrained CBOW SIF: 74.2Pretrained CBOW SIF74.2Skip-thought (this paper): 88.2Skip-thought (this paper)88.2
The numbers
System or settingaccuracy %
Pretrained CBOW average80.0
Pretrained CBOW IDF average72.2
Pretrained CBOW SIF74.2
Skip-thought (this paper)88.2

InferSent reaches 88.6 on TREC, while binary unigram features and NBSVM each obtain 89.8. The authors treat these as broadly competitive results under their significance analysis. Their interpretation is that common grammatical cues and structural regularities can be useful for identifying the kind of question being asked.

Clustering reveals another ranking

The authors cluster Newsgroup representations at coarse and fine granularities. The coarse setting groups passages into sports, computing, and a combined religion/politics category. Cluster purity measures how consistently a cluster corresponds to a reference category.

Newsgroup coarse clustering with k = 3, cluster purity

Weighted averaging and paragraph vectors align more closely with broad topics than skip-thought does.

Newsgroup coarse clustering with k = 3, cluster purityRandom: 0.5563Random0.5563Binary: 0.6236Binary0.6236Subword average: 0.8465Subword average0.8465Subword SIF (this paper): 0.8776Subword SIF (this paper)0.8776Paragraph vector: 0.8625Paragraph vector0.8625Skip-thought: 0.4471Skip-thought0.4471GRAN: 0.8227GRAN0.8227InferSent: 0.6562InferSent0.6562
The numbers
System or settingpurity
Random0.5563
Binary0.6236
Subword average0.8465
Subword SIF (this paper)0.8776
Paragraph vector0.8625
Skip-thought0.4471
GRAN0.8227
InferSent0.6562

The fine-grained setting reinforces the value of distinguishing task and granularity. With k = 8, paragraph vectors obtain purity 0.4967, while the sub-word SIF representation obtains 0.4523. Skip-thought reaches 0.1854. These clustering results support the authors’ account of topical organization, even though clustering is a different operation from supervised classification.

For the similarity comparisons, the paper uses the Williams test with α = 0.05 to assess correlation differences. Its classification table reports a two-tailed significance procedure at α = 0.05. The original tables use shading to distinguish groups of results, so a visible score ordering should not automatically be treated as a statistically supported ranking.

What the ablations show

The paper’s evidence comes mainly from controlled comparisons and diagnostic analyses, rather than a comprehensive removal study inside one new architecture. Those comparisons are still valuable: they isolate several practical choices while revealing where a stronger causal claim would require additional experiments.

Learned lexical relationships matter differently across tasks

Random vectors test whether learned relationships between words are necessary for a particular result. In similarity evaluation, random combinations can perform close to paragraph vectors. The accompanying overlap analysis explains why this is plausible: a representation can preserve evidence about shared words without organizing vocabulary semantically.

In sentiment and category prediction, random vectors are much weaker than distributed word representations and the task-specific baseline. The distinction suggests that these tasks benefit more from globally reusable relationships among lexical items. It also warns against generalizing from a random baseline’s success in one benchmark family to the claim that learned word representations are unnecessary.

The visualization analysis supports the same distinction. Random vectors produce a relatively undifferentiated space, while the stronger topic-oriented representations show larger regions associated with broad categories. A representation can therefore reproduce some pairwise overlap behavior without producing a coherent organization across the dataset.

Weighting helps when common words distract

Comparing plain averages, IDF and SIF reveals a clear interaction between weighting and task. Direct similarity frequently benefits from reducing the influence of frequent words. In that setting, a representation should emphasize what the sentence is about, instead of allowing common vocabulary to dominate its direction.

Question and subjectivity classification expose the opposite risk. Frequent words can carry grammatical information, and grammatical patterns can predict the label. Removing or reducing this information can hurt a supervised classifier even if the resulting vector appears more focused on content words.

The paper’s account is a plausible interpretation of these results, not an isolation of every relevant feature. It does not selectively remove particular function-word classes and demonstrate which one causes the change. The controlled finding concerns the weighting procedures; the explanation concerns the kind of information those procedures may suppress.

SIF also combines frequency weighting with principal-component removal. Because these operations are not separated in the reported comparison, the study cannot assign the full improvement to either one individually. An engineer borrowing the method should understand that the reported result belongs to the combination.

Supervision can reveal information hidden from cosine

The contrast between direct similarity and trained regression is particularly informative for skip-thought. The sentence vectors are held fixed, while the evaluation learns how to compare their features. The stronger supervised results indicate that the raw cosine geometry is not the only useful property of the representation.

This finding changes how a poor unsupervised score should be interpreted. It may mean that useful and irrelevant information coexist in the same space. A learned readout can emphasize the useful coordinates, whereas cosine treats the representation according to its existing geometry.

However, the result does not show that a supervised readout can recover every missing semantic distinction. Nor does it imply that the added training is always available. For an application that needs immediate similarity judgments without target labels, weak cosine performance remains a practical limitation.

Aggregate similarity can be driven by easy extremes

The authors divide relatedness scores into regions, including examples with score ≤ 2, those with score ∈ (2, 4), and those with score ≥ 4. Their analysis shows that the overall correlation can obscure weaker relationships within these regions.

This matters because unrelated passages and very similar passages are frequently easier to separate than passages with subtler differences. Word overlap can contribute strongly to the broad ordering. A system may therefore obtain a respectable overall coefficient while making unreliable distinctions among examples that occupy a narrower semantic range.

The examples make the distinction concrete. Food-related descriptions can share a semantic field despite using different wording or describing incompatible situations. Football and soccer descriptions can be related through vocabulary that a binary representation treats as different. Distributed representations can recognize those associations, but recognizing the topic does not by itself establish equivalence.

The paraphrase analysis makes a parallel point. The likelihood of a paraphrase increases with overlap in MSRP, but difficult cases require attention to details. Two passages about bureau chiefs can share an occupational frame while referring to different people and places. Similarity supplies evidence for paraphrase detection, but cannot replace every distinction the label requires.

Neighbor inspection distinguishes topic from question form

The authors inspect representations around a question asking which country the Galapagos Islands belong to. Averaging tends to retrieve other questions involving islands. Those neighbors are connected by subject matter, even when they ask for a different kind of answer.

Skip-thought instead retrieves questions organized around a country-requesting form. For TREC classification, that structural resemblance can be more useful because it aligns with the location category. Binary features capture shared words but can group together questions whose answer types differ in spite of overlapping vocabulary.

InferSent’s neighbors suggest a mixture of these tendencies. The authors interpret this as a balance of semantic and structural information. The examples make that interpretation understandable, but they remain selected observations rather than a complete decomposition of what every dimension represents.

Cluster scale exposes fragmented categories

For TREC, the authors examine purity as the number of clusters changes. A category need not occupy one compact region. Several recurring question forms can create separate, internally consistent groups that all correspond to the same answer type.

Skip-thought’s purity rises more quickly as clustering becomes more fine-grained. This agrees with the visual observation that its space contains several coherent groups. A coarse clustering can merge these groups in an unhelpful way and obscure information that a supervised classifier can use.

Purity itself must be interpreted with care: allowing more clusters generally makes it easier to form homogeneous groups. The useful observation is the comparative pattern across representations, not the mere fact that purity increases. The paper uses that pattern to explain why a representation can have useful category structure without arranging each category into a single broad cluster.

Limitations

The authors explicitly design a comparative study, not a proof that one sentence representation is best for every application. Their conclusions concern the evaluated datasets, training resources and readout procedures. Several boundaries follow directly from those choices, while others emerge from a careful reading of the experimental setup.

Limits the authors acknowledge

Training data are a major constraint on interpretation. The locally trained word representations share a medium-sized corpus, which improves consistency, but the contextual encoders rely on different pretrained resources. GRAN needs paraphrase pairs, skip-thought needs neighboring prose, and InferSent uses labeled inference examples. Those differences are part of what the representations learn.

The authors address this by choosing associated word-vector baselines. This is a meaningful control, but it does not make every resource and training decision identical. Their discussion of training data also acknowledges that larger pretrained word resources could produce better absolute results. The experiment favors consistency in a substantial part of the comparison over an unrestricted search for the highest possible score.

The paper also recognizes the limits of simple similarity for paraphrase detection. Broad semantic association cannot reliably distinguish every pair of claims that should receive different labels. The authors point towards more nuanced features for difficult cases. Their own evidence does not establish a complete solution to those cases.

Another explicit practical concern is paragraph-vector inference. Learning a vector for each new passage requires an optimization procedure after the shared parameters have been trained. The authors identify this as a source of greater inference complexity. They do not provide a comprehensive measured comparison of runtime, memory and quality across all approaches, so the observation should remain a methodological distinction rather than a numerical efficiency claim.

Limits visible in the evaluation design

In spite of the title’s emphasis, not every representation has an unsupervised training history. InferSent is trained using manually labeled inference pairs. GRAN uses paired sentences treated as paraphrases. The comparison remains informative, but it spans different kinds of supervision. “No target-task training” and “no labeled training anywhere” are separate conditions.

The experiments use English material. The reported evidence therefore does not establish that the relative strengths transfer to languages with different morphological or syntactic properties. Sub-word skip-gram’s success is relevant to morphological representation, but this study does not contain a cross-language comparison that isolates that factor.

The benchmark collection covers several task families without covering every aspect of interpretation. Sentiment, topic and similarity results do not directly demonstrate reliable handling of event order, attribution, scope or participant roles. Some examples touch on distinctions that matter to meaning, but the paper does not offer a dedicated evaluation of every such phenomenon.

The comparison of word-vector methods also does not isolate a single cause for sub-word skip-gram’s advantage. The systems differ in learning procedures as well as representational units. The result supports choosing that configuration under the tested conditions; it is weaker evidence for the claim that character information alone explains its performance.

Diagnostic evidence is suggestive rather than causal

Visualizations help communicate organization, but a plotted arrangement is not the full vector space. The authors strengthen their account with clustering and neighbor examples, yet those analyses answer specific questions instead of revealing a complete semantic inventory.

The distinction matters especially for statements about syntax. Skip-thought’s question neighbors and selected classification strengths suggest structural information. They do not establish that the representation correctly encodes every syntactic dependency or that syntax alone produces its performance.

One detail also calls for restraint: the method description identifies GRUs in skip-thought, while a later interpretive passage refers to LSTM structure when explaining its behavior. The secure account is the architectural description. The explanation of the results should consequently be expressed in terms of recurrent structural information rather than treating that later wording as a separate architectural fact.

The TREC clustering discussion contains another tension. Its prose description of the coarse clustering does not align cleanly with the listed purity values. The table and the analysis across varying cluster counts still provide useful evidence, but they do not justify repeating every comparative sentence as an unqualified result.

Statistical evidence has a defined scope

The paper reports significance testing, which is preferable to treating every numerical ordering as meaningful. Nonetheless, a nonsignificant comparison does not establish that two representations are interchangeable in every application. It indicates what the particular test, sample and outcome support.

Likewise, a strong aggregate score does not settle whether the right examples are being solved for the right reasons. The authors’ own overlap analysis shows why. Evaluation needs both quantitative summaries and an account of the distinctions that drive them.

Clustering purity has an additional dependency: it changes with the chosen number of clusters. A representation’s purity at a coarse setting and its purity at a finer setting answer different questions. The paper explores this dependence for TREC, making the limitation visible rather than eliminating it.

Some practical conclusions remain hypotheses

The authors argue that distributional representations are attractive where labels are scarce, because related passages can cluster together without a target classifier. That is a reasonable interpretation of the direct-similarity and clustering results. However, the paper does not report a systematic experiment that progressively reduces the available labeled training data.

Its low-resource conclusion should therefore be understood as an inference from representational behavior, not a measured learning curve. A deployment with few labels would still need to test whether the observed geometry matches its own categories or retrieval needs.

Likewise, the paper does not show that combining topical and structural representations would necessarily outperform either one alone. InferSent’s balanced behavior makes such a direction plausible, but the study’s comparisons do not supply a general recipe for feature combination. The strongest practical lesson is to identify the information required by the application and evaluate whether the complete procedure makes that information usable.

What came after

No specific later citing study is established here, so there is no supported follow-on experiment to attribute to this paper. Its discussion of earlier work should also remain separate from later influence: the authors evaluate existing sentence encoders and baselines rather than introducing those systems.

The paper nevertheless leaves clear questions for subsequent investigation. One is how to preserve topic information while retaining the structural distinctions needed for questions and other sentence-level decisions. Another is how to assess a representation without allowing lexical overlap or a convenient supervised readout to conceal its weaknesses.

A further direction is to isolate the contributions of training data, word representations and composition more completely. The study’s matched baselines make progress on that problem, while its pretrained comparisons show why it remains difficult. These are questions motivated by the findings, not claims about documented later results. The enduring value of the paper is its insistence that an evaluation explain what information is being measured and how the chosen procedure makes that information accessible.

Cite

Cite as Hanan Aldarmaki and Mona Diab. 2018. Evaluation of Unsupervised Compositional Representations. Proceedings of the 27th International Conference on Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{aldarmaki2018evaluation,
  title = {{Evaluation of Unsupervised Compositional Representations}},
  author = {Hanan Aldarmaki and Mona Diab},
  booktitle = {Proceedings of the 27th International Conference on Computational Linguistics},
  year = {2018},
  url = {https://aclanthology.org/C18-1226/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/aldarmaki-2018-evaluation-unsupervised-compositional-representations/