atlas

Research map / Large language models / Language, safety and interpretability

Narrowing the Gap between Supervised and Unsupervised Sentence Representation Learning with Large Language Model

AAAI 2024 · Large language models › Language, safety and interpretability · approach: Linguistic encoding in LLM representations · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Explains the supervised vs. unsupervised contrastive sentence embedding gap via training-data similarity-pattern complexity (Relative Fitting Difficulty), then narrows it by using GPT-3.5 in-context learning to generate STS/NLI-style pattern data plus a Hierarchical Triplet loss.

Problem

The large STS performance gap between supervised and unsupervised contrastive sentence embedding (CSE) training, where the only difference is training data; prior work explained it only via alignment and uniformity, which describe results rather than the causal training-data factors.

Approach

Identifies the similarity pattern of training data as the key factor, defines Relative Fitting Difficulty (RFD) as the gap in alignment/uniformity between held-out training data and evaluation data, and uses LLM in-context learning to simulate STS and NLI similarity patterns (with a hierarchical intermediate sentence and a Hierarchical Triplet loss) to raise pattern complexity of unsupervised data

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
introduce LLM-generated complex similarity patterns into unsupervised training dataU-CSE · STS tasksSpearman's correlationHelped
use LLM-simulated hierarchical STS patterns with Hierarchical Triplet loss instead of ordinary unsupervised trainingU-CSE · STS tasksSpearman's correlationHelped
increase the number of LLM-generated training examples (ablation)Wiki.STS_HT with BERT-base · STS tasks (Avg.)Spearman's correlationHelped
invert HT margins to use a large m1 and small m2 (ablation)Wiki.STS_HT with BERT-base · STS tasks (Avg.)Spearman's correlationHurt
replace HT loss with contrastive loss using only one positive sentence (ablation)Wiki.STS with BERT-base · STS tasks (Avg.)Spearman's correlation: 79.79$_\mathrm{\pm 0.23}$ -> 78.72$_\mathrm{\pm 0.24}$Hurt
replace HT loss with contrastive loss using multiple positive sentences (ablation)Wiki.STS with BERT-base · STS tasks (Avg.)Spearman's correlation: 79.79$_\mathrm{\pm 0.23}$ -> 79.14$_\mathrm{\pm 0.27}$Hurt
add an intermediate positive sentence while retaining contrastive loss (ablation)Wiki.STS with BERT-base · STS tasks (Avg.)Spearman's correlation: 78.72$_\mathrm{\pm 0.24}$ -> 79.14$_\mathrm{\pm 0.27}$Helped
use LLM-generated complex patterns rather than simple data-augmentation patternsU-CSE · STS tasksSpearman's correlationHelped
change the anchor-sentence data domain while keeping the similarity pattern fixedCSE · STS tasksSpearman's correlationNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Wikipedia sentences (unsupervised CSE) NLI dataset (SNLI/MNLI premises and entailment/contradiction hypotheses) STS12 training split (pattern source) STS Benchmark validation split (hyperparameter selection) LLM-generated data from gpt-3.5-turbo-0613

Benchmarks: STS12 STS13 STS14 STS15 STS16 STS Benchmark SICK-R SentEval transfer tasks (MR, CR, SUBJ, MPQA, SST, TREC, MRPC)

Metrics: Spearman's correlation alignment uniformity RFD accuracy

Baselines: SimCSE PromptBERT ConSERT InfoCSE BERT-whitening Dino CLAIF SBERT InferSent

Builds on: SimCSE PromptBERT CLAIF InfoNCE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy