Papers › Universal Sentence Encoder

Universal Sentence Encoder

29 Mar 2018arXiv:1803.11175archive 2025-07-28

Daniel Cer, Yinfei Yang, Sheng-yi Kong, Nan Hua, Nicole Limtiaco, Rhomni St. John, Noah Constant, Mario Guajardo-Cespedes, Steve Yuan, Chris Tar, Yun-Hsuan Sung, Brian Strope, Ray Kurzweil

We present models for encoding sentences into embedding vectors that specifically target transfer learning to other NLP tasks. The models are efficient and result in accurate performance on diverse transfer tasks. Two variants of the encoding models allow for trade-offs between accuracy and compute resources. For both variants, we investigate and report the relationship between model complexity, resource consumption, the availability of transfer task training data, and task performance. Comparisons are made with baselines that use word level transfer learning via pretrained word embeddings as well as baselines do not use any transfer learning. We find that transfer learning using sentence embeddings tends to outperform word level transfer. With transfer learning via sentence embeddings, we observe surprisingly good performance with minimal amounts of supervised training data for a transfer task. We obtain encouraging results on Word Embedding Association Tests (WEAT) targeted at detecting model bias. Our pre-trained sentence encoding models are made freely available for download and on TF Hub.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 22 code samples harvested from 7 repositories linked to this paper: 18 ran (of which 0 constructed an object rather than computing a result; 17 with no instrument failure: 0 honoured, 0 violated, 17 with no contract checked; 1 where Syntology's instrument failed) · 4 unverified. Where Syntology's instrument failed: 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: community (archive-listed): 22 samples from 7 repositories, 18 ran (17 with no instrument failure; 1 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 2 of its repositories that Syntology harvested for other papers:

Levels written between 2026-09-22 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

24 repositories listed; official and paper-mentioned ones first.

Alleansa/eluvio mentioned on GitHubtfSyntology: not harvested report
MirkoLenz/ReCAP-Argument-Graph-Retrieval mentioned on GitHubtfApache-2.0Syntology: 8 samples, 8 ran (0 instrument-failed) · 0 unverified report
ReCAP-UTR/Argument-Graph-Retrieval mentioned on GitHubtfApache-2.0Syntology: not harvested report
TAUSBV/sentence-level-domain-classification mentioned on GitHubtfMITSyntology: 1 sample, 1 ran (0 instrument-failed) · 0 unverified report
advaithsrao/TwitterSentimentAnalysis_using_UniversalSentenceEncoder mentioned on GitHubtfMITSyntology: not harvested report
asgaardlab/test-case-similarity-technique mentioned on GitHubtfSyntology: not harvested report
ceshine/textrank_summary_benchmark mentioned on GitHubtfMITSyntology: 6 samples, 5 ran (0 instrument-failed) · 1 unverified report
contemn1/sentence_embeddings mentioned on GitHubtfSyntology: 1 sample, 1 ran (1 instrument-failed) · 0 unverified report
f-data/ADD mentioned on GitHubtfSyntology: not harvested report
facebookresearch/InferSent mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
facebookresearch/SentEval mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Supervised Learning of Universal Sentence Representations from Natural Language Inference Data (arXiv:1705.02364; that paper's own run record: 6 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 2 honoured, 0 violated, 0 with no contract checked; 4 where Syntology's instrument failed) · 1 unverified); nothing checks that they implement this paper's method. report
idanmoradarthas/text-summarization mentioned on GitHubtfMITSyntology: 3 samples, 2 ran (0 instrument-failed) · 1 unverified report
jobdataexchange/competensor mentioned on GitHubtfApache-2.0Syntology: not harvested report
joseph-bongo-220/TV_NLP_Project mentioned on GitHubtfSyntology: not harvested report
korymath/jann mentioned on GitHubtfnot reachable when probed 2026-09-18 — repositories for recent papers often appear after camera-readySyntology: not harvested report
krisbukovi/document_similarity mentioned on GitHubtfSyntology: not harvested report
martinomensio/spacy-universal-sentence-encoder mentioned on GitHubtfMITSyntology: 2 samples, 1 ran (0 instrument-failed) · 1 unverified report
ncbi-nlp/BioSentVec mentioned on GitHubNOASSERTIONSyntology: not harvested report
ncbi-nlp/BioWordVec mentioned on GitHubNOASSERTIONSyntology: not harvested report
pathway/crosslang_embed mentioned on GitHubtfApache-2.0Syntology: 1 sample, 0 ran · 1 unverified report
ppapalampidi/GraphTP mentioned on GitHubpytorchSyntology: not harvested report
ppapalampidi/SUMMER mentioned on GitHubpytorchSyntology: not harvested report
textflint/textflint mentioned on GitHubSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Stanza: A Python Natural Language Processing Toolkit for Many Human Languages (arXiv:2003.07082; that paper's own run record: 16 ran (of which 8 constructed an object rather than computing a result; 10 with no instrument failure: 2 honoured, 0 violated, 8 with no contract checked; 6 where Syntology's instrument failed) · 14 unverified); nothing checks that they implement this paper's method. report
weiyezhimeng/silent-guardian mentioned on GitHubpytorchSyntology: not harvested report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

22 samples harvested: 18 ran (of which 0 constructed an object rather than computing a result; 17 with no instrument failure: 0 honoured, 0 violated, 17 with no contract checked; 1 where Syntology's instrument failed) · 4 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran; the contract check could not run
17ran
4unverified

Licence: 1 of the 22 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 7 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

MirkoLenz/ReCAP-Argument-Graph-Retrieval community (archive-listed) 8 samples, 8 ran (0 instrument-failed) · 0 unverified
compute_pc recap_agr/libs/sif.py ran fingerprinted Apache-2.0 (permissive) · be6a5a54256a2e48 · report fixture: signature X:ndarray/2/float, npc:int/0/int · returned ndarray · level recorded 2026-09-26
cum_gain recap_agr/libs/ndcg.py ran fingerprinted Apache-2.0 (permissive) · 57ed8fb06d18eb28 · report fixture: signature relevance:ndarray/1/float · returned float64 · level recorded 2026-09-26
dcg in 14 papers recap_agr/libs/ndcg.py ran Apache-2.0 (permissive) · b21be746b7a81ea3 · report fixture: signature relevance:ndarray/1/int, alternate:bool/0/bool · returned float64 · level recorded 2026-09-26
get_text_from_nodes recap_agr/models/graph.py ran Apache-2.0 (permissive) · c04bf5d2161ebd3d · report fixture: signature nodes:dict/0/? · returned str · level recorded 2026-09-26
get_weighted_average recap_agr/libs/sif.py ran Apache-2.0 (permissive) · 49ed3a1011829d57 · report fixture: signature We:ndarray/2/float, x:ndarray/2/int, w:ndarray/2/float · returned ndarray · level recorded 2026-09-26
idcg recap_agr/libs/ndcg.py ran Apache-2.0 (permissive) · d8a18a7be265eaa8 · report fixture: signature relevance:ndarray/1/int, alternate:bool/0/bool · returned float64 · level recorded 2026-09-26
remove_pc recap_agr/libs/sif.py ran fingerprinted Apache-2.0 (permissive) · 17f9e35850be5bb0 · report fixture: signature X:ndarray/2/float, npc:int/0/int · returned ndarray · level recorded 2026-09-26
tex_tab recap_agr/cli/texify.py ran Apache-2.0 (permissive) · 4ad5869bd60d549c · report fixture: signature results_list:list/1/str · returned str · level recorded 2026-09-26
TAUSBV/sentence-level-domain-classification community (archive-listed) 1 sample, 1 ran (0 instrument-failed) · 0 unverified
read_file in 112 papers src/utils.py ran MIT (permissive) · 46df1f9c4f68b7a2 · report fixture: signature filename:str/0/str · returned list · level recorded 2026-09-26
ceshine/textrank_summary_benchmark community (archive-listed) 6 samples, 5 ran (0 instrument-failed) · 1 unverified
bm25pluseps_weights bm25.py ran MIT (permissive) · 062a676fc76590b0 · report fixture: signature docs:list/1/list, eps:float/0/float · returned list · level recorded 2026-09-26
cosine_similarity in 120 papers
census: 26 implementations from 30 papers, 11 distinct outputs across 5 buckets, one shared input per bucket
textrank_use.py ran MIT (permissive) · 09459e7e459b59bb · report fixture: signature similarity_matrix:Tensor/2/float, id_1:int/0/int, id_2:int/0/int · returned Tensor · level recorded 2026-09-26
get_sentence_embeddings textrank_use.py ran MIT (permissive) · bdc6f530892a2385 · report fixture: signature session:MockSession/0/?, sentences:list/1/MockSentence, sentence_input:MockTensor/0/?, sentence_emb:MockTensor/0/?, batch_size:int/0/int · returned ndarray · level recorded 2026-09-26
head baselines.py ran MIT (permissive) · a720718390092b01 · report fixture: signature sentences:list/1/str, ratio:float/0/float · returned list · level recorded 2026-09-26
random in 15 papers baselines.py ran MIT (permissive) · 06039e3720a58652 · report fixture: signature sentences:list/1/str, ratio:float/0/float · returned ndarray · level recorded 2026-09-26
setence_embeddings_similarity_factory similarity_functions.py unverified MIT (permissive) · 82e73a7356e05547 · report
contemn1/sentence_embeddings community (archive-listed) 1 sample, 1 ran (1 instrument-failed) · 0 unverified
pad_array in 5 papers encode_sentences.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 374645eab129b0a7 · report fixture: signature array:ndarray/2/float, max_length:int/0/int · returned ndarray · level recorded 2026-09-22
idanmoradarthas/text-summarization community (archive-listed) 3 samples, 2 ran (0 instrument-failed) · 1 unverified
sentence_pairing sentence_handler.py ran fingerprinted MIT (permissive) · 718cc353bcf17057 · report fixture: signature sentences:list/1/str · returned DataFrame · level recorded 2026-09-26
sentence_sorter sentence_handler.py ran MIT (permissive) · cf60b388c921a1ae · report fixture: signature df:DataFrame/0/?, top_n:int/0/int, sentences:list/1/str · returned str · level recorded 2026-09-26
sentence_rank_with_page_rank sentence_handler.py unverified MIT (permissive) · 339439151f9ebe35 · report
martinomensio/spacy-universal-sentence-encoder community (archive-listed) 2 samples, 1 ran (0 instrument-failed) · 1 unverified
set_hooks spacy_universal_sentence_encoder/language.py ran MIT (permissive) · bbef9b2638430ee8 · report fixture: signature doc:MockDoc/0/? · returned MockDoc · level recorded 2026-09-26
create_lang spacy_universal_sentence_encoder/util.py unverified MIT (permissive) · c8560729712489aa · report
pathway/crosslang_embed community (archive-listed) 1 sample, 0 ran · 1 unverified
embed_text crosslang_embed.py unverified Apache-2.0 (permissive) · dc19d36ff15c170e · report

Tasks

Conversational Response SelectionSemantic Textual SimilaritySentenceSentence EmbeddingsSentiment AnalysisSubjectivity AnalysisText ClassificationTransfer LearningWord Embeddings

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Conversational Response Selection PolyAI Reddit USE 1-of-100 Accuracy 47.7% #4 of 5 Archive leaderboard report
Semantic Textual Similarity STS Benchmark USE_T Pearson Correlation 0.782 #29 of 66 Archive leaderboard report
Sentiment Analysis CR USE_T+CNN (w2v w.e.) Accuracy 87.45 #6 of 9 Archive leaderboard report
Sentiment Analysis MPQA USE_T+DAN (w2v w.e.) Accuracy 88.14 #4 of 4 Archive leaderboard report
Sentiment Analysis MR USE_T+CNN Accuracy 81.59 #9 of 19 Archive leaderboard report
Sentiment Analysis SST-2 Binary classification USE_T+CNN (lrn w.e.) Accuracy 87.21 #72 of 87 Archive leaderboard report
Subjectivity Analysis SUBJ USE Accuracy 93.90 #10 of 19 Archive leaderboard report
Text Classification TREC-6 USE_T+CNN Error 1.93 #2 of 19 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections