DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representations
Paper · 2021 · John Giorgi, Osvald Nitski, Bo Wang et al.
Summary
A useful text embedding turns a passage into a fixed-length vector that other systems can compare, classify or retrieve. The difficulty is making that vector useful beyond the task on which it was learned. DeCLUTR investigates whether ordinary documents can supply enough training signal to produce such transferable representations without human-labelled sentence pairs. Its target is the gap between unsupervised sentence encoders and approaches trained with annotated relationships such as entailment and contradiction. The paper’s answer is a carefully constructed contrastive task: learn to associate related passages while distinguishing them from competing passages.
The training examples come from the internal structure of documents. An anchor is a sampled passage; its positives are other passages drawn from its vicinity. A positive can intersect the anchor, occur beside it or fit inside it. The method deliberately varies passage length, usually giving anchors more text than positives. A shared encoder processes all these passages, and averaging their token representations produces vectors. Training makes each anchor compatible with its assigned positive representation while making alternatives in the same batch less competitive. Drawing several anchors from a document introduces particularly demanding alternatives: passages that share a broad subject but concern different local content.
DeCLUTR combines this passage-level objective with masked language modelling, or MLM, which predicts tokens hidden in an input. It continues the training of existing transformer encoders rather than starting with untrained weights. The experiments use 497,868 sufficiently long documents selected from OpenWebText. DeCLUTR-small builds on DistilRoBERTa, with 6 layers and roughly 82M parameters; DeCLUTR-base builds on RoBERTa-base, with 12 layers and roughly 125M parameters. Once training is complete, embedding a new text requires only encoding and pooling: the passage-sampling machinery is no longer involved.
The main evaluation uses SentEval, whose 28 tasks examine both practical transfer and recoverable linguistic information. On the downstream test average that excludes SNLI, DeCLUTR-base obtains 79.10, compared with 78.89 for Universal Sentence Encoder and 77.19 for the evaluated Sentence Transformers system. Its result therefore supports the paper’s central claim that this unsupervised training procedure can compete with supervised alternatives under the benchmark’s conditions. The gains are uneven across tasks, however, and the highest average does not mean that DeCLUTR wins every individual comparison.
The controlled studies explain several important design choices. Multiple anchors from the same document help substantially; additional positives per anchor contribute relatively little. Combining different spatial relationships between passages is more effective than restricting positive examples to a single relationship. Joint MLM and contrastive training outperforms either objective on its own, and the joint objective improves as the evaluated training-data amount increases. These findings support further investigation of larger encoders and more unlabelled text. They do not establish performance in additional languages or specialist domains, which the authors identify as opportunities for extension. The authors make their implementation and trained encoders publicly available.
Interesting ideas
Make difficult alternatives from shared context. Random examples from unrelated documents can make a discrimination problem too easy. Sampling competing passages from the same document requires attention to local meaning rather than broad topic alone. The reusable idea is to construct negatives that preserve much of an example’s background while changing the relationship that matters. This can inform retrieval training, candidate ranking and the evaluation of systems that must distinguish closely related interpretations.
Combine complementary views. A contained passage and a neighbouring passage provide different kinds of evidence about an anchor. Containment connects a larger discussion to one of its parts; adjacency connects material through contextual continuation. DeCLUTR’s comparisons suggest that a mixture carries useful information absent from either restricted strategy. Elsewhere, this motivates testing several justified relationships between training examples rather than treating one convenient augmentation as sufficient.
Retain the earlier learning objective during adaptation. DeCLUTR adds its new loss while continuing token prediction. The joint objective performs better than either component alone, and the authors suggest that MLM helps preserve useful properties acquired before adaptation. This offers a general hypothesis for staged learning: an adaptation objective may benefit from an explicit connection to the earlier task. The preservation effect still needs to be checked rather than assumed.
Vary the granularity of the evidence. Random passage lengths expose the encoder to different amounts of context. Making the anchor generally longer than its positive also creates a relationship between a broad view and a more local one. The transferable principle is to test whether a system depends on an arbitrary segmentation choice. It is relevant whenever inputs might arrive as fragments, sentences or longer passages, including document retrieval and passage-based answering.
Evaluate representations through independent consumers. A training loss measures success at the training task. SentEval instead asks what lightweight downstream systems can do with the resulting vectors, and separately examines linguistic properties. This distinction is useful for any pipeline that produces intermediate representations. A structure should be judged in part by the work it enables, alongside checks that establish its internal validity.
Control resource changes in an ablation. Increasing the number of anchors also changes the amount of processed text and the effective contrastive batch. The paper compensates for those changes when comparing anchor counts. The reusable lesson is methodological: before attributing a gain to a design choice, identify which computational and statistical quantities changed with it. A comparison is more informative when those accompanying changes are held steady.
Separate direct similarity from learned adaptation. Some SentEval tasks compare embeddings without training another predictor; others learn a classifier or related component from them. Those settings test different forms of usefulness. Reporting both prevents a strong trained consumer from obscuring weak direct geometry, or a strong similarity score from being mistaken for broad transfer. The distinction applies to search representations, reusable features and structured linguistic outputs.
Deep dive: DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representations
DeCLUTR learns reusable text embeddings without labelled pairs by contrasting nearby passages; its method, results and ablations explained. · about 35 minutes to read
How Mova uses it
Mova is a small, transparent language system implemented in Rust. Its native route builds dependency structures, interprets frames and maintains a world of the text. DeCLUTR concerns learned vector representations, so transferring its ideas requires care: proximity in a document is evidence for a training relationship, not a logical guarantee that two statements agree. The proposals below identify concrete places to investigate the paper’s lessons. The status marks describe their relationship to documented Mova mechanisms; they do not record a measured DeCLUTR application.
Idea: Contrast competing analyses from the same document. Where: Section 3.2 and Section 5.2. Area: learning and candidate ranking. Mova: частково є (treeagree, the teacher loop and parser comparison). Mova already retains competing parser analyses and the evidence behind agreement decisions. A scorer for those candidates could receive contrasts drawn from the same source text, where vocabulary and topic offer fewer shortcuts than unrelated examples. Why Mova: this could make statistical ranking more sensitive to the structural disagreement that a reviewer actually needs resolved. Its effect on admitted annotations remains unknown.
Idea: Combine containment, overlap and adjacency for mention windows. Where: Figure 1 and Section 3.2. Area: coreference and event linking. Mova: частково є (coref, prag and world). Existing components identify referents, events and their relationships, but the digest does not establish this window-sampling procedure. A proposed scorer could compare mention or event contexts under each relationship separately and in combination. Why Mova: complementary contexts might expose links missed by a reader restricted to neighbouring sentences. Document proximity would supply candidate evidence, while native constraints would still determine which links are acceptable.
Idea: Preserve an earlier objective during parser adaptation. Where: Section 3.3 and Section 5.3. Area: dependency parsing and training stability. Mova: частково є (gparse and the continued parser-training loop). When adapting the GPU parser to reviewed silver trees or converted conventions, an experiment could retain an explicit contribution from its earlier parsing objective or earlier admitted data. This is an analogy to DeCLUTR’s joint training, not a direct implementation of MLM. Why Mova: preserving established parsing behaviour matters when improvements on a new source could damage earlier capabilities. The appropriate objective and its effect are unknown.
Idea: Test readers across passage lengths. Where: Section 3.2 and Figure 1. Area: question answering and segmentation. Mova: частково є (world readers and the retained fast reader). Fable questions could be evaluated with passages of varied length while keeping the question, admissible evidence and answer criterion fixed. The experiment should record whether a boundary removes necessary context or introduces distracting material. Why Mova: a reader that succeeds only under one convenient segmentation may fail on ordinary documents. DeCLUTR motivates the variation; it does not demonstrate that Mova benefits from it.
Idea: Evaluate frames by their downstream usefulness. Where: Section 4.2 and Appendix C. Area: stage-level evaluation. Mova: частково є (prag frame evaluation, school controls and retained-reading analysis). Alongside checking whether a frame has the expected roles, Mova could compare how fixed lightweight readers use alternative frame outputs across several tasks. Why Mova: structurally plausible frames can still omit distinctions needed for answering or state tracking. This would add evidence about usefulness without turning reader success into proof that every frame is correct.
Idea: Match work and batch conditions in comparisons. Where: Section 5.2. Area: experimental design. Mova: вже є (the measured-change principles and regression gates described in README.md and docs/architecture.md). Mova’s existing requirement for controlled, reproducible comparisons is directly relevant here. When testing a richer candidate set, it should distinguish the effect of better candidates from the effect of processing more examples or spending more computation. Why Mova: this helps explain which mechanism earned a gain and whether the gain is worth its cost. The paper supplies a particularly clear example involving anchor count.
Idea: Report direct use separately from trained use. Where: Section 5.1 and Appendix C. Area: evaluation. Mova: частково є (fresh-text and prepared-graph reading paths, and separate retained-state assessment). A representation could be assessed through native rules first and through an additional trained scorer in a separate condition. These outcomes should remain separately named. Why Mova: success after statistical adaptation answers a different question from success using the representation directly. The existing reading distinctions offer a useful foundation, but they are not equivalent to SentEval’s evaluation conditions.
Idea: Treat locality as a proposal mechanism. Where: Section 3.2. Area: data preparation and evidence admission. Mova: вже є (tools/dictindex, tools/enrich and their review boundaries). DeCLUTR uses nearby passages as likely positive pairs. Mova can borrow that inexpensive way of finding related material while retaining its distinction between retrieved evidence and admitted knowledge. Why Mova: same-document examples can help reviewers locate relevant contexts, but fiction, reported beliefs and unrelated local statements must not become facts merely because they occur nearby. Existing provenance and admission checks already embody the necessary boundary.
Idea: Separate candidate generation from acceptance. Where: Sections 3.1–3.2. Area: statistical architecture. Mova: вже є (dictionary proposals, reviewed enrichment and source-bound groupants). DeCLUTR separates the construction of training relationships from the objective that learns to discriminate among them. In Mova, an analogous separation keeps broad proposal generation distinct from explicit checks and review. Why Mova: inexpensive candidate generation is useful only when its uncertainty stays visible. The analogy concerns architectural roles; it does not make contrastive similarity an admission criterion for dictionary entries or graph facts.
Idea: Keep representation interfaces independent of their producer. Where: Section 3.1 and Appendix C. Area: modular evaluation. Mova: частково є (typed layer interfaces and source-bound groupants). DeCLUTR evaluates fixed representations through consumers that do not reproduce their training process. Mova could define stable test interfaces for frames or retained graphs so alternative producers can be compared using the same readers. Why Mova: this would make it easier to locate whether a failure begins in parsing, representation or interpretation. Current typed interfaces support the direction, but a matching evaluation suite is not established by the digest.
Idea: Use simple pooling as a serious comparison. Where: Section 3.1 and Appendix A. Area: representation baselines. Mova: нове, as a proposed baseline in this setting. If a vector-based scorer is investigated around the native core, mean pooling should be compared with more elaborate aggregation before added complexity is accepted. This proposal does not imply replacing symbolic frames with vectors. Why Mova: a transparent baseline can reveal whether complexity contributes useful information or merely complicates diagnosis. The digest does not establish whether an equivalent comparison has already been performed elsewhere.
Idea: Keep training-only machinery outside routine inference. Where: Section 3.1. Area: execution efficiency. Mova: вже є (the offline teacher boundary and separate assessment execution). DeCLUTR’s sampler and contrastive batch are needed to learn the encoder but not to embed new text. Mova already separates teaching operations from native answering. Why Mova: the same discipline can keep review, proposal generation and expensive preparation from becoming hidden dependencies of a reported native result. This is an existing architectural principle rather than evidence that DeCLUTR itself runs inside Mova.
Idea: Preserve an unadapted reference. Where: Section 4.2.1 and Section 5.1. Area: evaluation and attribution. Mova: вже є (before-and-after measurements, rule audits and regression gates). DeCLUTR compares its continued training with the starting encoders under the same pooling strategy. Mova should likewise retain a fixed earlier reader or parser when evaluating an adaptation. Why Mova: a comparison with unrelated alternatives cannot by itself identify what the adaptation contributed. Existing rule audits illustrate this principle, although they do not establish any result for the proposed contrastive scorers.
Idea: Examine retained properties alongside task gains. Where: Section 5.1 and Table 3. Area: regression analysis. Mova: вже є (held-out gates and checks against losses in existing students). DeCLUTR reports linguistic probes alongside downstream performance, showing that a useful average can coexist with losses on particular properties. Mova can apply the same reasoning to role recovery, negation, ownership and other existing distinctions. Why Mova: an improved answer score should not conceal a damaged representation that other consumers depend on. Which properties need additional probes would have to be chosen and justified.
Idea: Make overlap visible when interpreting performance. Where: Section 3.2 and Appendix B. Area: evaluation controls. Mova: нове, as a proposed analysis of sampled windows. When testing readers with overlapping contexts, Mova could report contained, intersecting and disjoint evidence conditions separately. Why Mova: lexical reuse can make a result look like successful interpretation when the decisive information was repeated almost unchanged. The paper motivates this concern through its view construction, but does not provide a Mova control or establish that any current Mova result suffers from this issue.
Idea: Check training-source exposure in benchmark aggregation. Where: Section 4.2. Area: contamination control. Mova: вже є (tools/dictindex assessment exclusions and the separation of admitted training from frozen assessment). The authors omit SNLI from a comparison average because supervised alternatives used it during training. Mova should maintain equally explicit source-to-assessment boundaries when building dictionary evidence, reviewed corpora or reader tests. Why Mova: a score is easier to interpret when prior exposure is known. The lesson supports the existing policy without establishing that every possible leakage route has been audited.
Idea: Describe aggregate scores through their components. Where: Appendix C.2. Area: statistics and reporting. Mova: частково є (task traces, explicit benchmark commands and diagnostic reports). DeCLUTR explains how accuracy, correlation and retrieval measures enter its averages. Mova reports could similarly state exactly what is combined and retain the component outcomes. Why Mova: a single favourable total can hide a regression on a practically important task. This proposal concerns reporting clarity; it does not justify combining unrelated Mova metrics into a new universal score.
Idea: Record resource limits as part of the tested scope. Where: Figure 2 and Section 4.1. Area: computational measurement. Mova: вже є (bounded workers, explicit budgets and measured cost tooling). The authors identify a positive-count setting that could not be run for the larger encoder because of memory limits. Mova should retain comparable distinctions between failed execution, unsupported settings and measured quality. Why Mova: an untested configuration cannot support a performance conclusion, and an execution limit can explain why an apparently natural comparison is absent.
Idea: Separate observed scaling from a scaling forecast. Where: Section 5.3 and Figure 3. Area: experimental interpretation. Mova: вже є (bounded measurement statements in tools/dictindex and explicit implementation limits). DeCLUTR observes improvement over the data amounts and encoder capacities it evaluates, then proposes further expansion. Mova should use the same boundary when discussing larger corpora or more retained knowledge. Why Mova: a successful bounded run can justify another experiment while leaving full-corpus cost, coverage and eventual quality unresolved.
Idea: Keep auxiliary annotations distinct from asserted content. Where: Section 3.2, interpreted alongside the training-pair construction. Area: pragmatics and provenance. Mova: вже є (prag attribution and the distinction between narrative evidence and admitted facts). A nearby passage can be useful for representation learning even when it reports a belief, a denial or a fictional event. Mova could exploit that contextual relationship without importing the passage as an unconditional world fact. Why Mova: this preserves the logical meaning of evidence while allowing statistical methods to use its linguistic context. DeCLUTR does not itself test this proposed integration.
The problem and its context
From useful words to useful passages
The paper places sentence embeddings within the broader history of transfer learning in natural language processing. When labelled examples are scarce, a system can benefit from representations learned beforehand on other material. Earlier transfer commonly relied on word embeddings, including the approaches represented by GloVe and distributed word representations. A downstream system could use those vectors rather than learning every lexical distinction from its own labelled dataset.
Sentence embeddings extend that idea to larger units. The output is a vector of fixed size even when input texts differ in length. This makes it possible to compare passages directly or to supply a standard representation to another predictor. The paper highlights clustering and retrieval as applications. In clustering, representations should expose useful groupings; in information retrieval, they should help associate a query with relevant text.
The word “universal” describes an ambition of transfer. The encoder is intended to support tasks that were not individually specified during representation learning. It does not mean that a vector captures every aspect of meaning or that an encoder succeeds equally well everywhere. That distinction matters because DeCLUTR is evaluated through a collection of tasks, not through a proof that its representation is sufficient for arbitrary language understanding.
Why labelled sentence pairs were a bottleneck
According to the paper, the strongest existing sentence encoders depended on annotated natural language inference data. Such datasets classify a premise–hypothesis pair according to whether the relationship is entailment, contradiction or neutrality. The relevant corpora include SNLI and MultiNLI.
This supervision gives a training procedure explicit relationships between sentences. InferSent demonstrated the value of inference training for transferable representations. Universal Sentence Encoder combined supervised and unsupervised components. Sentence-BERT adapted pretrained transformer encoders using labelled inference examples.
The limitation is the availability of those relationships. Unlabelled documents may exist in a language or domain where comparable inference annotations do not. The paper therefore asks whether a training task can recover enough sentence-level structure from documents themselves. Its objective is not to eliminate all prior learning or all human decisions. It is to remove the need for manually assigned relationships in the added sentence-representation training.
What earlier unsupervised objectives offered
The paper describes a line of unsupervised work that uses surrounding text as supervision. Skip-Thoughts and FastSent learn from the relationship between a sentence and neighbouring sentences. Their objectives involve predicting words in that surrounding material. This follows a sentence-level version of distributional semantics: contexts provide evidence about meaning.
The authors identify a difficulty with reconstructing text. Predicting the exact wording of a neighbouring sentence may require learning details that are not central to the meaning needed by a transferable vector. Such generation can also be computationally expensive. QuickThoughts replaces reconstruction with discrimination, asking whether a candidate belongs to a sentence’s context rather than generating the candidate’s words.
DeCLUTR is closely related to that discriminative approach. Its changes concern how the passages are sampled, what relationships count as positives and how the objective is combined with an already pretrained encoder. These choices broaden the task beyond a fixed relationship between complete neighbouring sentences.
Why transformer pretraining was not enough
A transformer can learn powerful token representations without automatically producing a strong whole-sentence vector. The paper distinguishes these two capabilities. BERT uses masked token prediction and a next-segment decision task. ALBERT introduces a sentence-order objective. Both offer a special classification-token representation that might seem suitable as a sentence embedding.
The authors’ preliminary comparisons do not support that assumption. Classification-token outputs from these training schemes are weak universal representations under their SentEval tests, and averaging token outputs generally works better. The paper also cites RoBERTa as evidence that removing next-sentence prediction need not damage downstream performance.
The resulting motivation is specific: token-level pretraining supplies a strong starting point, but transferable sentence geometry may need a better sentence-level objective. DeCLUTR uses contrastive learning to provide that objective.
The method, step by step
The overall training path
The method turns documents into many temporary prediction problems. Each problem asks an anchor representation to identify its assigned positive among alternatives. The examples are generated during data loading rather than supplied as a fixed collection of labelled sentence pairs.
How DeCLUTR learns transferable passage embeddings
The steps in order.
This pipeline contains both a data design and an optimisation objective. The data design specifies which pieces of text should be associated and which pieces should compete. The loss then changes the encoder so that the assigned associations become easier to recover.
Documents, anchors and positives
Let a minibatch contain N documents. From each document, the sampler selects A anchors. For every anchor it selects P positive spans. An anchor is simply a contiguous segment of tokenized text; it need not correspond exactly to a sentence.
The document is first converted into a sequence of n tokens. An anchor length is sampled, followed by a uniformly selected valid start position. The resulting interval identifies the anchor. Positive passages are sampled in the anchor’s vicinity, with their own independently sampled lengths.
The length construction is:
ℓ_anchor = floor(p_anchor × (ℓ_max − ℓ_min)) + ℓ_min
Here ℓ_anchor is the anchor’s token length. The variables ℓ_min and ℓ_max specify the allowed length range. The random quantity p_anchor determines the position within that range, and floor discards the fractional part before the minimum length is added.
The corresponding positive length follows the same structure:
ℓ_positive = floor(p_positive × (ℓ_max − ℓ_min)) + ℓ_min
Here ℓ_positive is a positive passage’s token length. The quantity p_positive is sampled separately from p_anchor. The length limits are shared, but the distributions favour different parts of the range.
The anchor’s sampling distribution is:
p_anchor ∼ Beta(α = 4, β = 2)
Beta denotes the beta distribution. Its shape parameters α and β determine which values of p_anchor are more likely. The chosen settings favour longer anchors within the permitted interval.
For positives, the distribution is:
p_positive ∼ Beta(α = 2, β = 4)
The reversed shape settings favour shorter positive passages. The paper reports that the precise shape parameters were not especially sensitive choices, while the tendency toward a longer anchor was beneficial.
The experiments set the minimum span length to 32 tokens and the maximum to 512. This exposes the encoder to varying amounts of text rather than tying training to sentence boundaries. The maximum also corresponds to the input limit of many pretrained transformers considered by the authors.
How positive locations are chosen
After choosing an anchor, the sampler draws positive start positions from a region around it. In the paper’s notation, the allowed range extends from a positive-length offset before the anchor begins through the anchor’s end. Depending on start position and passage length, the sampled positive can intersect the anchor, occur directly beside it or be contained within it.
These relationships create different prediction problems. A contained passage supplies a local view of material present in a broader anchor. An adjacent passage supplies context without necessarily repeating the same text. An overlapping passage shares some content while introducing or removing other material.
The paper’s examples illustrate these distinctions with ordinary documents. A contained view uses part of a description of a video game. An adjacent view comes from reporting about volcanic ash and aviation. An overlapping view draws from a discussion of immigration enforcement and community policing. These examples show what the sampling procedure produces; they are not manually constructed semantic labels.
The underlying assumption is probabilistic. Nearby passages are more likely to share relevant meaning than arbitrary passages, but the procedure does not inspect every pair to verify semantic equivalence. In fact, the intended relationship is broader than paraphrase: a paragraph and one of its components can be compatible even when they do not say exactly the same thing.
Why anchors from one document are separated
When several anchors come from a document, the sampler requires separation of at least 2 × ℓ_max tokens. This limits direct overlap between the anchor regions and makes the different anchor-positive pairs more distinct.
The importance of multiple anchors appears later in the contrastive task. Another document often supplies an easy alternative because its vocabulary and subject differ. A distant passage from the same document may share both. Distinguishing the correct local relationship then requires finer information.
This is an economical way to obtain harder negatives. The method does not need a separate search system to mine them. It changes the sampling structure so that a batch naturally contains alternatives at different difficulty levels.
Encoding and pooling
All sampled spans pass through the same encoder. Shared weights matter because anchors and positives must inhabit a common representational space. The paper’s formulation allows different encoder architectures, but its experiments use pretrained transformers.
For an arbitrary span, encoding and pooling are written as:
e_i = g(f(s_i))
The symbol s_i denotes a sampled span. The function f produces a token representation for every token in that span. The function g aggregates those token representations, and e_i is the resulting fixed-length vector.
The experiments use mean pooling. Each token contributes through averaging rather than through a separately trained aggregation mechanism. This choice is supported by the preliminary pooling comparisons and keeps the inference procedure simple.
When an anchor has several positives, the procedure averages their already pooled embeddings:
e_(i+AN) = (1/P) Σ_(p=1)^P g(f(s_(i+pAN)))
The index i identifies an anchor among the AN anchors in the batch. The symbols A and N retain their meanings as anchors per document and documents per batch. P is the number of positives assigned to that anchor, while p selects a particular positive. The left-hand vector is the mean positive representation paired with anchor e_i.
Averaging positives is therefore different from concatenating their text or averaging all their tokens together before encoding. Each positive is encoded as its own span. Their resulting vectors are then combined.
The comparison function
The contrastive objective uses cosine similarity:
sim(u, v) = (uᵀv) / (‖u‖₂ ‖v‖₂)
The vectors u and v are the embeddings being compared. The numerator is their dot product, and the denominator multiplies their Euclidean lengths. The resulting similarity measures their directional alignment.
This comparison gives training a relative target. The assigned positive should be more competitive for an anchor than other available candidates. The objective is not a claim that every numerical distance has an independently interpretable linguistic meaning.
The contrastive prediction loss
After positive averaging, the batch contains AN anchor vectors and AN corresponding positive vectors. The paper therefore defines its contrastive prediction problem over 2AN representations.
For an ordered positive pair, the loss is:
ℓ(i, j) = −log[exp(sim(e_i, e_j)/τ) / Σ_(k=1)^(2AN) 1_[i≠k] exp(sim(e_i, e_k)/τ)]
The function ℓ(i, j) measures the cost of choosing representation e_j as the positive partner of e_i. The index k ranges over candidate representations. The indicator 1_[i≠k] removes the anchor’s comparison with itself. The function exp turns scaled similarities into positive scores, and log converts the assigned partner’s normalised score into a loss.
The temperature τ is positive and controls how sharply similarity differences affect the normalised scores. A lower temperature makes those differences more pronounced. The positive partner remains in the denominator, so the objective compares its score with the full set of admissible candidates.
Every representation other than the current example and its assigned partner acts as a negative for that prediction. The paper describes 2(AN − 1) such alternatives. Some arise from other documents; when A exceeds 1, others arise from the same document.
Training includes both directions of each pair:
L_contrastive = Σ_(i=1)^(AN) [ℓ(i, i+AN) + ℓ(i+AN, i)]
L_contrastive is the combined contrastive loss. The first term treats the anchor as the query and its mean positive as the target. The second reverses their roles. The sum runs across all AN anchor-positive pairs.
The paper identifies this objective with InfoNCE and with the NT-Xent formulation used in earlier contrastive work. Its contribution lies especially in constructing suitable textual views and combining the objective with continued token-level learning.
Continuing masked-token training
The authors also apply MLM to each anchor. Randomly hidden tokens must be predicted from the available context, preserving a token-level learning signal alongside the passage-level one.
The combined objective is:
L = L_contrastive + L_MLM
L is the training loss used to update the shared parameters. L_MLM is the masked language modelling component, and L_contrastive is the passage discrimination component. The paper adds them before the parameter update.
This setup extends the pretraining of RoBERTa-base or DistilRoBERTa. It does not train an encoder from the beginning. The authors make that choice to keep the computation feasible, and the starting encoders already contain information learned from earlier pretraining.
What happens after training
At inference, a text is tokenized, encoded and mean-pooled. There is no need to draw an anchor, find nearby positives or assemble a contrastive batch. Those operations created the learning problem; they do not form part of the ordinary embedding interface.
This separation is central to the method’s practical appeal. A relatively elaborate training scheme yields a simple reusable representation function. Its runtime cost is dominated by the encoder, with mean pooling adding little overhead.
Experiments and results
Training data and implementation
The training collection consists of OpenWebText documents with at least 2048 tokens. Applying that condition yields 497,868 documents. Long documents are useful here because the method needs room for separated anchors and nearby positive passages.
The authors implement the system with PyTorch and AllenNLP. They use the PyTorch Metric Learning implementation of NT-Xent and obtain pretrained architectures and weights through the Transformers library. Training uses up to four NVIDIA Tesla V100 GPUs with 16 or 32GB memory.
The default batch contains 16 documents, with A = 2 anchors per document and P = 2 positives per anchor. The temperature is 5 × 10⁻². Optimisation uses AdamW with a learning rate of 5 × 10⁻⁵ and weight decay of 0.1. The schedule is Slanted Triangular, with a cut fraction of 0.1, and the gradient norm is controlled at 1.0.
Unless an experiment states otherwise, training lasts for one to three epochs. The remaining settings of the starting encoder are left at their defaults. Hyper-parameter selection uses SentEval validation data, a detail that matters when interpreting “unsupervised”: the added representation-learning examples have no manual labels, but evaluation labels still guide configuration selection.
What SentEval measures
SentEval contains 18 downstream tasks and ten probing tasks. The downstream collection includes classification, inference, semantic relatedness, paraphrase detection and caption–image retrieval. The probing collection asks which linguistic properties are recoverable from the sentence vectors.
For most tasks, the encoder produces fixed features and a relatively simple predictor is trained using them. The encoder itself is not adapted to each downstream task in the manner commonly associated with GLUE evaluation. For the direct semantic similarity tasks, the embeddings are compared without fitting an additional predictor.
The paper takes care over SNLI exposure. The supervised comparison systems used SNLI during representation learning, and SNLI also appears among SentEval tasks. The headline downstream comparison therefore omits SNLI from its average. This does not erase every difference in training history, but it avoids a clear source of contamination in that aggregate.
The averaging procedure combines heterogeneous measures. Correlation is used for the relevant relatedness tasks. MRPC contributes a combination of accuracy and F1. Caption–image retrieval contributes an average of recall measurements, while other tasks generally contribute accuracy. The aggregate is therefore a benchmark score, not a single uniform accuracy.
The main downstream comparison
The strongest overall DeCLUTR result is competitive with the evaluated supervised alternatives. The following chart uses the downstream test average reported in Table 2, with SNLI excluded.
SentEval downstream test average, excluding SNLI
DeCLUTR-base is competitive with the supervised comparison systems.
The numbers
| System or setting | average downstream score |
|---|---|
| Transformer-base | 72.70 |
| InferSent | 76.00 |
| Sentence Transformers | 77.19 |
| DeCLUTR-small | 77.50 |
| Universal Sentence Encoder | 78.89 |
| DeCLUTR-base (this paper) | 79.10 |
The starting-encoder comparison is particularly informative. Transformer-base uses the same basic architecture and mean-pooling strategy before the added training. Its contrast with DeCLUTR-base isolates the value of the continued-training procedure more closely than a comparison with an unrelated architecture.
The smaller encoder also improves. Transformer-small has a downstream test average of 72.58, whereas DeCLUTR-small obtains 77.50. The paper emphasises that this smaller variant exceeds the evaluated Sentence Transformers average despite using fewer trainable parameters. That observation is tied to these particular systems and benchmark settings; it is not a general ranking of all possible supervised encoders.
The weak bag-of-words comparisons remain useful reference points. Averaged GloVe embeddings obtain a downstream test average of 65.47, and averaged fastText embeddings obtain 68.56. They establish that the evaluated learned sentence representations offer more than straightforward lexical averaging, while also providing inexpensive baselines.
Individual tasks reveal different strengths
The aggregate conceals meaningful variation. On the CR test task, DeCLUTR-base scores 90.68 and Sentence Transformers scores 90.78. On MR, the corresponding results are 85.16 and 84.98. These examples show why the paper’s overall claim should be read as competitive average transfer rather than universal task dominance.
Some supervised alternatives remain distinctly strong on particular evaluations. InferSent obtains 86.30 on SICK-E, compared with DeCLUTR-base at 83.84. On SICK-R, the reported results are 83.06 for InferSent and 78.62 for DeCLUTR-base. DeCLUTR’s unsupervised sentence-level training therefore does not replace every benefit of explicit relational supervision.
The authors also identify exceptions to improvement over the starting encoder. DeCLUTR-base improves or matches the underlying encoder across the downstream collection except SST5. The smaller variant has exceptions on SST2, SST5 and TREC. Adaptation changes the representation in ways that help many consumers without guaranteeing a benefit for every one.
Direct similarity provides another perspective. On STS13, DeCLUTR-base obtains 72.58, compared with 46.10 for Transformer-base. Universal Sentence Encoder obtains 71.70 on that task. On STS14, however, Universal Sentence Encoder records 72.76 while DeCLUTR-base records 71.70. The broader pattern supports improved geometry while preserving differences between systems.
Linguistic probing
The probing average asks a different question from downstream transfer: how readily can a classifier recover the selected linguistic properties? It includes sentence length, lexical content, grammatical information and sensitivity to certain alterations.
SentEval probing test average
DeCLUTR preserves a probing average close to its starting encoders.
The numbers
| System or setting | average accuracy |
|---|---|
| Sentence Transformers | 63.22 |
| Universal Sentence Encoder | 66.70 |
| InferSent | 72.58 |
| Transformer-base | 74.19 |
| DeCLUTR-base (this paper) | 74.65 |
| Transformer-small | 74.57 |
| DeCLUTR-small | 74.71 |
These averages support the authors’ observation that stronger transfer need not require a broad loss of probe-accessible information. They contrast DeCLUTR’s pattern with Sentence Transformers, whose probing performance is substantially below that of the pretrained encoder it adapts.
The individual probes still matter. Word-content accuracy for Transformer-base is 59.67, compared with 68.98 for DeCLUTR-base. By contrast, semantic oddity detection is 68.54 before continued training and 65.08 afterwards. Coordinate inversion also declines, from 71.32 to 67.54. A stable or improved average can therefore coexist with weaker access to specific properties.
The paper appropriately avoids treating probing as an independent competition to maximise every score. Probes diagnose what information is accessible under their prediction setup. They do not demonstrate complete syntactic understanding or guarantee that a downstream application will use the recovered information well.
Comparability of the baselines
The baseline set spans architectures and training histories. InferSent has 38M trainable parameters and a 4096-dimensional embedding. Universal Sentence Encoder has 147M parameters and a 512-dimensional output. Sentence Transformers and DeCLUTR-base each have 125M parameters and produce 768-dimensional vectors.
These differences affect how the comparisons should be read. The same-architecture Sentence Transformers comparison is especially relevant because both approaches begin with RoBERTa-base weights and differ in their additional training. Other comparisons demonstrate practical performance but do not isolate the training objective on their own.
QuickThoughts is a further special case. The authors could not reproduce a full SentEval evaluation with its available pretrained encoders, so they report results from the earlier paper. Its scores should therefore not be mistaken for a complete, freshly standardised comparison under precisely the same execution conditions.
What the ablations show
Multiple anchors help beyond extra computation
Changing A affects several quantities at once. More anchors mean more sampled spans and a larger effective contrastive batch. Without adjustment, an apparent benefit might result simply from increased exposure or more alternatives.
The authors address that confound. Conditions with A = 1 use two epochs and a document minibatch twice as large as the corresponding A = 2 condition. Both sides then process the same number of spans and use an effective contrastive batch expressed as 4N.
Under that control, sampling multiple anchors from a document remains beneficial. The interpretation is that same-document alternatives make the task harder in a useful way. A representation cannot rely solely on recognising that an anchor concerns the same general subject as its positive, because competing pairs may share that subject too.
The observed improvement supports the sampling choice. The explanation in terms of harder semantic discrimination remains the authors’ hypothesis about why it works. The experiment does not independently label negative difficulty or prove that it is the only changing informational property.
More positives have limited value here
The positive-count experiments consider P = 1, P = 2 and P = 4. The larger setting is omitted for DeCLUTR-base because it does not fit the available GPU memory. This omission defines the scope of the comparison instead of indicating poor representation quality at that setting.
Within the tested conditions, additional positives make relatively little difference. This is important because averaging several positives had been motivated by earlier theoretical and empirical work. A reasonable design justification did not translate into a large measured advantage in this application.
The result should not be generalised to every contrastive system. The usefulness of an additional positive can depend on how it is sampled and how much new information it contributes. DeCLUTR’s nearby positives may share substantial content. The paper demonstrates limited benefit in its setup, not a universal argument against multiple positives.
Positive relationships are complementary
The restricted-view experiments compare the general sampling strategy with alternatives limited to particular passage relationships. Allowing both neighbouring and contained views performs better than either restricted choice.
This supports the idea that the relationships teach different aspects of a useful representation. A contained positive connects a broader passage to a local component. A neighbouring positive asks the representation to follow contextual association beyond direct textual inclusion. Combining them offers a richer family of prediction problems.
The exact causal contribution of each linguistic phenomenon is not isolated. The comparison changes which text relationships are available, but it does not annotate those pairs for discourse function, paraphrase or factual agreement. The conclusion is therefore about the usefulness of the sampling mixture under downstream evaluation.
The joint objective is stronger
The objective study compares contrastive training alone, MLM alone and their combination. Joint training provides better downstream validation performance than either isolated objective.
The authors propose a preservation explanation. Because the starting weights were learned through masked-token prediction, retaining MLM may keep adaptation from moving too far away from useful earlier information. They connect this possibility to catastrophic forgetting.
That explanation is plausible and consistent with the probing results, but it is not established as the unique mechanism. MLM also supplies additional learning signal on the new corpus. The experiments show that the combination is useful; they do not separate every possible reason for its usefulness.
Data amount and capacity
The scaling analysis varies training exposure from 10% to 100% of the selected corpus. In this analysis, 100% means an epoch over all 497,868 documents. The study includes both the smaller and larger encoder.
With the joint objective, downstream validation performance improves monotonically as the amount of training data increases. The larger encoder also supports the paper’s conclusion that capacity matters within the evaluated range.
These are informative empirical trends, not a fitted general scaling law. The experiments do not establish how long improvement would continue, which resource would become limiting next or whether the same relationship would hold on a different corpus. They motivate further expansion without measuring it.
Pooling and earlier sequence objectives
Appendix A provides a preliminary comparison of classification-token and mean-pooled representations. For BERT-base, the downstream validation averages are 63.53 with the classification token and 71.98 with mean pooling. For ALBERT-base-V2, they are 58.75 and 69.39.
These comparisons help justify mean pooling as the default aggregation method. They also weaken the assumption that a sequence-level pretraining task automatically yields a strong ready-to-use sentence embedding.
However, the comparison between NSP, SOP and neither objective uses different pretrained encoders. Their training histories differ in more than the named sequence-level loss. The appendix establishes practical inadequacy of the evaluated outputs more directly than it establishes a clean causal ranking of those objectives.
Limitations
Limits acknowledged through the paper’s scope
The authors present adaptation to new domains and non-English languages as a future extension. The reported experiments do not establish either capability. Removing manually labelled sentence pairs makes such adaptation easier to contemplate, but it does not show that an appropriate corpus, tokenizer and starting encoder are available in every setting.
The approach also begins from pretrained weights. The authors explicitly choose continued training to make the computation manageable. As a consequence, the results establish the value of DeCLUTR as an additional training stage, not its ability to learn a comparable encoder from an untrained initial state.
The intended input range is bounded. Training spans extend up to 512 tokens, and the authors expect the encoder to support material reaching paragraph length. The paper does not evaluate unlimited document encoding or demonstrate that a pooled vector can preserve all information needed from a much longer work.
Practical memory limits also shape the ablations. The larger encoder cannot be tested with P = 4 under the available setup. This does not undermine the reported comparisons, but it prevents conclusions about that missing condition.
Nearby text is imperfect supervision
A careful reader should distinguish likely association from verified semantic agreement. Document locality often provides useful context, but neighbouring passages may disagree, quote another speaker, change subject or describe contrasting events. A contained positive may reflect only part of its anchor’s meaning.
The sampler does not resolve those relationships with annotations. Its strength is that it produces many inexpensive learning problems from ordinary text. Its weakness is that the intended semantic signal is noisy and only indirectly specified.
Negatives have a corresponding ambiguity. Two passages assigned to different pairs can still convey related information. Same-document negatives are deliberately difficult, but difficulty can include semantic compatibility rather than merely subtle difference. The paper does not provide a pair-level audit that distinguishes all these possibilities.
These are limitations inferred from the construction, not claims that the authors report harmful rates of mislabeled pairs. No such rate is established by the experiments.
Benchmark success has a particular meaning
SentEval is broad, but its results remain tied to its tasks, consumers and averaging rules. A high downstream average supports transfer under those conditions. It does not demonstrate dependable performance on arbitrary retrieval collections, specialist classification or question answering.
The aggregate also combines measures with different interpretations. Accuracy, correlation and retrieval recall are useful within their respective tasks, yet their average is a summary convention. It should not be described as a uniform probability of understanding a sentence.
Validation labels influence hyper-parameter selection. Therefore, the representation-training objective is unsupervised in its example construction, while the complete experimental workflow still uses labelled benchmark information to choose settings. This distinction is especially relevant to claims about deployment where no comparable validation resource exists.
Preservation is partial and mechanistic claims remain tentative
The probing average is encouraging, but some probes decline after training. The results therefore do not demonstrate complete preservation of prior linguistic information. They show a favourable overall tradeoff alongside property-specific losses.
Similarly, the explanation that MLM prevents forgetting is a hypothesis supported by the objective comparison and the broader pattern of results. The study does not measure parameter drift in a way that isolates forgetting as the cause of performance differences.
The same caution applies to hard negatives. The controlled anchor experiment strongly supports using several anchors, but the exact internal behaviour responsible for the improvement is not directly observed. Distinguishing a beneficial design from a proven explanation makes the result more useful for future work.
No direct comparison with transparent symbolic interpretation
DeCLUTR produces distributed vectors whose usefulness is demonstrated through task performance. It does not evaluate an explicit representation of entities, event roles, attribution or logical consequences. That makes it relevant to Mova chiefly as a source of training and evaluation ideas, unless a separate integration is implemented and measured.
Vector similarity can support ranking and retrieval without supplying the evidence required for a symbolic assertion. Treating those roles separately preserves the contribution of the paper while avoiding claims about capabilities it does not test.
What came after
The later works that cite DeCLUTR place it within a wider discussion of contrastive text representation learning. Their titles identify several subsequent directions, including sentence embeddings, retrieval and adaptation. The citation relationship establishes that these works engage with DeCLUTR as prior work; it does not on its own establish that they reuse its sampler, retain MLM or reproduce its results.
Sentence representation continued to diversify
SimCSE: Simple Contrastive Learning of Sentence Embeddings and ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfer both appear among the citing works from 2021. Their stated subjects continue the central question DeCLUTR addresses: how contrastive learning can support transferable sentence representations.
The available bibliographic information does not establish which details they borrow or change. In particular, it would be unwarranted to attribute DeCLUTR’s passage relationships or its joint objective to either work on the basis of a citation alone. They are useful follow-up directions for comparing how later research formulates the sentence-representation problem.
Self-Guided Contrastive Learning for BERT Sentence Representations also identifies contrastive sentence representation as its subject. DiffCSE: Difference-based Contrastive Learning for Sentence Embeddings names a difference-based approach. Their titles indicate distinct emphases within the same broader research area, while leaving their technical relationship to DeCLUTR unresolved here.
Retrieval became a prominent application direction
Unsupervised Dense Information Retrieval with Contrastive Learning places unsupervised contrastive representation learning directly in a retrieval setting. This connects to an application DeCLUTR names as a motivation for reusable sentence vectors, but a citation alone does not demonstrate adoption of its local span-sampling procedure.
Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval identifies corpus-aware pretraining and passage retrieval as its focus. SGPT: GPT Sentence Embeddings for Semantic Search likewise names semantic search as the intended use of its sentence representations.
Together, these titles show where a reader can investigate the relationship between general sentence embeddings and retrieval-specific representations. They do not supply a numerical comparison with DeCLUTR or establish that a representation strong on SentEval is automatically optimal for search.
Objectives, scale and supported inputs remained open questions
Text and Code Embeddings by Contrastive Pre-Training names both natural text and code as representation targets. Its inclusion among the citing works points towards a broader input scope than DeCLUTR’s reported evaluation, without establishing a particular transferred mechanism.
Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup addresses a resource question directly relevant to contrastive learning. DeCLUTR itself shows why batch structure and memory matter: alternatives come from the batch, and a larger positive-count condition is omitted when memory is insufficient. The later title identifies this practical issue as a research subject, but does not specify its solution here.
AnglE-optimized Text Embeddings and Fast, Effective, and Self-Supervised: Transforming Masked Language Models into Universal Lexical and Sentence Encoders offer further directions around embedding objectives and adaptation. Their technical findings cannot be inferred from their names.
More specialised settings appear in the later citation record
The later list also includes Supporting Clustering with Contrastive Learning and Generating Datasets with Pretrained Language Models. These titles concern downstream organisation and training-data construction, respectively. The available information establishes their citation of DeCLUTR, while leaving the precise intellectual dependence unspecified.
More specialised titles include Topic-Guided Sampling For Data-Efficient Multi-Domain Stance Detection, FAID: Fine-grained AI-generated Text Detection using Multi-task Auxiliary and Multi-level Contrastive Learning and Template-assisted Contrastive Learning of Task-oriented Dialogue Sentence Embeddings. They identify sampling, detection and dialogue as settings in which later authors discuss related ideas.
MOSAIC: Masked Objective with Selective Adaptation for In-domain Contrastive Learning explicitly brings masked objectives and contrastive adaptation together in its title. That makes DeCLUTR’s joint-training experiment a relevant comparison question, although the title alone establishes neither the mechanism nor its outcome.
Across these later directions, DeCLUTR leaves a concrete experimental reference point: ordinary document structure can define useful contrastive relationships, and those relationships can improve transferable passage vectors when combined with continued token-level learning. Its lasting research questions concern the quality of those relationships, the information preserved during adaptation and the evaluation conditions under which a reusable representation proves useful.
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 John Giorgi, Osvald Nitski, Bo Wang and Gary Bader. 2021. DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representations. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).
@inproceedings{giorgi2021declutr,
title = {{DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representations}},
author = {John Giorgi, Osvald Nitski, Bo Wang and Gary Bader},
booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
year = {2021},
doi = {10.18653/v1/2021.acl-long.72},
url = {https://doi.org/10.18653/v1/2021.acl-long.72}
}References
- Eneko Agirre, Carmen Banea, Claire Cardie, Daniel Cer, Mona Diab, Aitor Gonzalez-Agirre, Weiwei Guo, Iñigo Lopez-Gazpio, Montse Maritxalar, Rada Mihalcea, German Rigau, Larraitz Uria, and Janyce Wiebe. 2015. SemEval-2015 task 2: Semantic textual similarity, English, Spanish and pilot on interpretab…
- Eneko Agirre, Carmen Banea, Claire Cardie, Daniel Cer, Mona Diab, Aitor Gonzalez-Agirre, Weiwei Guo, Rada Mihalcea, German Rigau, and Janyce Wiebe. 2014. SemEval-2014 task 10: Multilingual semantic textual similarity. In Proceedings of the 8th International Workshop on Semantic Evaluation (SemEval 2…
- Eneko Agirre, Carmen Banea, Daniel Cer, Mona Diab, Aitor Gonzalez-Agirre, Rada Mihalcea, German Rigau, and Janyce Wiebe. 2016. SemEval-2016 task 1: Semantic textual similarity, monolingual and cross-lingual evaluation. In Proceedings of the 10th International Workshop on Semantic Evaluation (SemEval…
- Eneko Agirre, Daniel Cer, Mona Diab, and Aitor Gonzalez-Agirre. 2012. SemEval-2012 task 6: A pilot on semantic textual similarity. In *SEM 2012: The First Joint Conference on Lexical and Computational Semantics – Volume 1: Proceedings of the main conference and the shared task, and Volume 2: Proceed…
- Eneko Agirre, Daniel Cer, Mona Diab, Aitor Gonzalez-Agirre, and Weiwei Guo. 2013. *sem 2013 shared task: Semantic textual similarity. In Second Joint Conference on Lexical and Computational Semantics (*SEM), Volume 1: Proceedings of the Main Conference and the Shared Task: Semantic Textual Similarit…
- Philip Bachman, R. Devon Hjelm, and William Buchwalter. 2019. Learning representations by maximizing mutual information across views. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver… OpenAlex ↗ · Scholar ↗
- Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. 2015. A large annotated corpus for learning natural language inference. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 632–642, Lisbon, Portugal. Association for Computati…
- Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. 2020. ELECTRA: pre-training text encoders as discriminators rather than generators. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net. OpenAlex ↗ · Scholar ↗
- Alexis Conneau and Douwe Kiela. 2018. SentEval: An evaluation toolkit for universal sentence representations. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), Miyazaki, Japan. European Language Resources Association (ELRA).
- Alexis Conneau, Douwe Kiela, Holger Schwenk, Loı̈c Barrault, and Antoine Bordes. 2017. Supervised learning of universal sentence representations from natural language inference data. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 670–680, Copenhagen,…
- Alexis Conneau, German Kruszewski, Guillaume Lample, Loı̈c Barrault, and Marco Baroni. 2018. What you can cram into a single $&!\#* vector: Probing sentence embeddings for linguistic properties. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long…
- Maxime Bucher, Stéphane Herbin, and Frédéric Jurie. 2016. Improving semantic embedding consistency by metric learning for zero-shot classiffication. In European Conference on Computer Vision, pages 730–746. Springer. OpenAlex ↗ · Scholar ↗
- Alexis Conneau and Guillaume Lample. 2019. Cross-lingual language model pretraining. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 7057–7067. OpenAlex ↗ · Scholar ↗
- Daniel Cer, Mona Diab, Eneko Agirre, Iñigo Lopez-Gazpio, and Lucia Specia. 2017. SemEval-2017 task 1: Semantic textual similarity multilingual and crosslingual focused evaluation. In Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017), pages 1–14, Vancouver, Canada.…
- Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc Le, and Ruslan Salakhutdinov. 2019. Transformer-XL: Attentive language models beyond a fixed-length context. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 2978–2988, Florence, Italy. Assoc… OpenAlex ↗ · Scholar ↗
- Daniel Cer, Yinfei Yang, Sheng-yi Kong, Nan Hua, Nicole Limtiaco, Rhomni St. John, Noah Constant, Mario Guajardo-Cespedes, Steve Yuan, Chris Tar, Brian Strope, and Ray Kurzweil. 2018. Universal sentence encoder for English. In Proceedings of the 2018 Conference on Empirical Methods in Natural Langua…
- Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey E. Hinton. 2020. A simple framework for contrastive learning of visual representations. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, volume 119 of Proceedings of Machine…
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies,…
- Bill Dolan, Chris Quirk, and Chris Brockett. 2004. Unsupervised construction of large paraphrase corpora: Exploiting massively parallel news sources. In COLING 2004: Proceedings of the 20th International Conference on Computational Linguistics, pages 350–356, Geneva, Switzerland. COLING.
- Matt Gardner, Joel Grus, Mark Neumann, Oyvind Tafjord, Pradeep Dasigi, Nelson F. Liu, Matthew Peters, Michael Schmitz, and Luke Zettlemoyer. 2018. AllenNLP: A deep semantic natural language processing platform. In Proceedings of Workshop for NLP Open Source Software (NLP-OSS), pages 1– 6, Melbourne,…
- Aaron Gokaslan and Vanya Cohen. 2019. Openwebtext corpus. http://Skylion007.github.io/ OpenWebTextCorpus . OpenAlex ↗ · Scholar ↗
- Alexander Grabner, Peter M. Roth, and Vincent Lepetit. 2018. 3d pose estimation and 3d model retrieval for objects in the wild. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 3022–3031. IEEE Computer Society. OpenAlex ↗ · Scholar ↗
- Raia Hadsell, Sumit Chopra, and Yann LeCun. 2006. Dimensionality reduction by learning an invariant mapping. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’06), volume 2, pages 1735–1742. Ieee. OpenAlex ↗ · Scholar ↗
- Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross B. Girshick. 2020. Momentum contrast for unsupervised visual representation learning. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2020, Seattle, WA, USA, June 13-19, 2020, pages 9726–9735. IEEE.
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 770–778. IEEE Computer Society.
- Xinwei He, Yang Zhou, Zhichao Zhou, Song Bai, and Xiang Bai. 2018. Triplet-center loss for multi-view 3d object retrieval. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 1945–1954. IEEE Computer Society. OpenAlex ↗ · Scholar ↗
- Matthew Henderson, Rami Al-Rfou, Brian Strope, Yun-Hsuan Sung, László Lukács, Ruiqi Guo, Sanjiv Kumar, Balint Miklos, and Ray Kurzweil. 2017. Efficient natural language response suggestion for smart reply. arXiv preprint arXiv:1705.00652. OpenAlex ↗ · Scholar ↗
- Felix Hill, Kyunghyun Cho, and Anna Korhonen. 2016. Learning distributed representations of sentences from unlabelled data. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1367–1377, San Diego, C…
- R. Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Philip Bachman, Adam Trischler, and Yoshua Bengio. 2019. Learning deep representations by mutual information estimation and maximization. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA… OpenAlex ↗ · Scholar ↗
- Jeremy Howard and Sebastian Ruder. 2018. Universal language model fine-tuning for text classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 328–339, Melbourne, Australia. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Minqing Hu and Bing Liu. 2004. Mining and summarizing customer reviews. In Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining, pages 168–177. OpenAlex ↗ · Scholar ↗
- Yacine Jernite, Samuel R. Bowman, and David A. Sontag. 2017. Discourse-based objectives for fast unsupervised sentence representation learning. CoRR, abs/1705.00557. OpenAlex ↗ · Scholar ↗
- Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S. Weld, Luke Zettlemoyer, and Omer Levy. 2020. SpanBERT: Improving pre-training by representing and predicting spans. Transactions of the Association for Computational Linguistics, 8:64–77.
- Ryan Kiros, Yukun Zhu, Ruslan Salakhutdinov, Richard S. Zemel, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. 2015. Skip-thought vectors. In Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Queb… OpenAlex ↗ · Scholar ↗
- Lingpeng Kong, Cyprien de Masson d’Autume, Lei Yu, Wang Ling, Zihang Dai, and Dani Yogatama. 2020. A mutual information maximization perspective of language representation learning. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. Open… OpenAlex ↗ · Scholar ↗
- Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. 2020. ALBERT: A lite BERT for self-supervised learning of language representations. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenRevi…
- Quoc V. Le and Tomás Mikolov. 2014. Distributed representations of sentences and documents. In Proceedings of the 31th International Conference on Machine Learning, ICML 2014, Beijing, China, 21-26 June 2014, volume 32 of JMLR Workshop and Conference Proceedings, pages 1188–1196. JMLR.org.
- Laura Leal-Taixé, Cristian Canton-Ferrer, and Konrad Schindler. 2016. Learning by tracking: Siamese cnn for robust target association. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 33–40. OpenAlex ↗ · Scholar ↗
- Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. 2014. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer.
- Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.
- Aaron van den Oord, Yazhe Li, and Oriol Vinyals. 2018. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748.
- Bo Pang and Lillian Lee. 2004. A sentimental education: Sentiment analysis using subjectivity summarization based on minimum cuts. In Proceedings of the 42nd Annual Meeting of the Association for Computational Linguistics (ACL-04), pages 271– 278, Barcelona, Spain.
- Lajanugen Logeswaran and Honglak Lee. 2018. An efficient framework for learning sentence representations. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net.
- Bo Pang and Lillian Lee. 2005. Seeing stars: Exploiting class relationships for sentiment categorization with respect to rating scales. In Proceedings of the 43rd Annual Meeting of the Association for Computational Linguistics (ACL’05), pages 115– 124, Ann Arbor, Michigan. Association for Computatio…
- Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net. OpenAlex ↗ · Scholar ↗
- Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. 2017. Automatic differentiation in PyTorch. In NIPS Autodiff Workshop. OpenAlex ↗ · Scholar ↗
- David G Lowe. 1995. Similarity metric learning for a variable-kernel classifier. Neural computation, 7(1):72–85. OpenAlex ↗ · Scholar ↗
- Jeffrey Pennington, Richard Socher, and Christopher Manning. 2014. GloVe: Global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1532–1543, Doha, Qatar. Association for Computational Linguistics.
- Marco Marelli, Stefano Menini, Marco Baroni, Luisa Bentivogli, Raffaella Bernardi, and Roberto Zamparelli. 2014. A SICK cure for the evaluation of compositional distributional semantic models. In Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC’14), pages…
- Michael McCloskey and Neal J Cohen. 1989. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pages 109–165. Elsevier. OpenAlex ↗ · Scholar ↗
- Sebastian Mika, Gunnar Ratsch, Jason Weston, Bernhard Scholkopf, and Klaus-Robert Mullers. 1999. Fisher discriminant analysis with kernels. In Neural networks for signal processing IX: Proceedings of the 1999 IEEE signal processing society workshop (cat. no. 98th8468), pages 41–48. Ieee. OpenAlex ↗ · Scholar ↗
- Tomás Mikolov, Ilya Sutskever, Kai Chen, Gregory S. Corrado, and Jeffrey Dean. 2013. Distributed representations of words and phrases and their compositionality. In Advances in Neural Information Processing Systems 26: 27th Annual Conference on Neural Information Processing Systems 2013. Proceeding…
- Kevin Musgrave, Ser-Nam Lim, and Serge Belongie. 2019. Pytorch metric learning. https://github.com/KevinMusgrave/ pytorch-metric-learning . OpenAlex ↗ · Scholar ↗
- Jason Phang, Thibault Févry, and Samuel R. Bowman. 2018. Sentence encoders on stilts: Supplementary training on intermediate labeled-data tasks. CoRR, abs/1811.01088.
- Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. 2018. Improving language understanding by generative pre-training. URL https://s3-us-west-2.amazonaws. com/openai-assets/researchcovers/languageunsupervised/language understanding paper. pdf. OpenAlex ↗ · Scholar ↗
- Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9. OpenAlex ↗ · Scholar ↗
- Roger Ratcliff. 1990. Connectionist models of recognition memory: constraints imposed by learning and forgetting functions. Psychological review, 97(2):285. OpenAlex ↗ · Scholar ↗
- Nils Reimers and Iryna Gurevych. 2019. Sentence-BERT: Sentence embeddings using Siamese BERT-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 3982–3992,…
- Sebastian Ruder, Matthew E. Peters, Swabha Swayamdipta, and Thomas Wolf. 2019. Transfer learning in natural language processing. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Tutorials, pages 15–18, Minneapolis, Minnesota. Assoc…
- Victor Sanh, Lysandre Debut, Julien Chaumond, and Thomas Wolf. 2019. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.
- Nikunj Saunshi, Orestis Plevrakis, Sanjeev Arora, Mikhail Khodak, and Hrishikesh Khandeparkar. 2019. A theoretical analysis of contrastive unsupervised representation learning. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California,… OpenAlex ↗ · Scholar ↗
- Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1631–…
- Kihyuk Sohn. 2016. Improved deep metric learning with multi-class n-pair loss objective. In Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pages 1849–1857. OpenAlex ↗ · Scholar ↗
- Sandeep Subramanian, Adam Trischler, Yoshua Bengio, and Christopher J. Pal. 2018. Learning general purpose distributed sentence representations via large scale multi-task learning. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018,… OpenAlex ↗ · Scholar ↗
- Ran Tao, Efstratios Gavves, and Arnold W. M. Smeulders. 2016. Siamese instance search for tracking. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 1420–1429. IEEE Computer Society. OpenAlex ↗ · Scholar ↗
- Yonglong Tian, Dilip Krishnan, and Phillip Isola. 2020. Contrastive multiview coding. In ECCV. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017,…
- Ellen M Voorhees and Dawn M Tice. 2000. Building a question answering test collection. In Proceedings of the 23rd annual international ACM SIGIR conference on Research and development in information retrieval, pages 200–207. OpenAlex ↗ · Scholar ↗
- Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenRevie…
- Yandong Wen, Kaipeng Zhang, Zhifeng Li, and Yu Qiao. 2016. A discriminative feature learning approach for deep face recognition. In European conference on computer vision, pages 499–515. Springer. OpenAlex ↗ · Scholar ↗
- Janyce Wiebe, Theresa Wilson, and Claire Cardie. 2005. Annotating expressions of opinions and emotions in language. Language resources and evaluation, 39(2-3):165–210. OpenAlex ↗ · Scholar ↗
- Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Pa…
- Paul Wohlhart and Vincent Lepetit. 2015. Learning descriptors for object recognition and 3d pose estimation. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015, pages 3109–3118. IEEE Computer Society. OpenAlex ↗ · Scholar ↗
- Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pier-ric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lho… — Transformers: State-of-the-Art Natural Language Processing
- Zhirong Wu, Yuanjun Xiong, Stella X. Yu, and Dahua Lin. 2018. Unsupervised feature learning via non-parametric instance discrimination. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 3733–3742. IEEE Computer Society. OpenAlex ↗ · Scholar ↗
- Eric P. Xing, Andrew Y. Ng, Michael I. Jordan, and Stuart J. Russell. 2002. Distance metric learning with application to clustering with side-information. In Advances in Neural Information Processing Systems 15 [Neural Information Processing Systems, NIPS 2002, December 9-14, 2002, Vancouver, Britis… OpenAlex ↗ · Scholar ↗
- Zhilin Yang, Zihang Dai, Yiming Yang, Jaime G. Carbonell, Ruslan Salakhutdinov, and Quoc V. Le. 2019. Xlnet: Generalized autoregressive pretraining for language understanding. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, Ne…
- Sasi Kiran Yelamarthi, Shiva Krishna Reddy, Ashish Mishra, and Anurag Mittal. 2018. A zero-shot framework for sketch based image retrieval. In European Conference on Computer Vision, pages 316– 333. Springer. OpenAlex ↗ · Scholar ↗
- Yang You, Jing Li, Jonathan Hseu, Xiaodan Song, James Demmel, and C Hsieh. 1904. Reducing bert pre-training time from 3 days to 76 minutes. corr abs/1904.00962 (2019). OpenAlex ↗ · Scholar ↗
- Rui Yu, Zhiyong Dou, Song Bai, Zhaoxiang Zhang, Yongchao Xu, and Xiang Bai. 2018. Hard-aware point-to-set deep metric for person re-identification. In Proceedings of the European Conference on Computer Vision (ECCV), pages 188–204. OpenAlex ↗ · Scholar ↗
- Ye Yuan, Wuyang Chen, Yang Yang, and Zhangyang Wang. 2020. In defense of the triplet loss again: Learning robust person re-identification with fast approximated triplet loss and label distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops. OpenAlex ↗ · Scholar ↗
- Ziming Zhang and Venkatesh Saligrama. 2016. Zero-shot learning via joint latent similarity embedding. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 6034–6042. IEEE Computer Society. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/giorgi-2021-declutr-deep-contrastive-learning-unsupervised/