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 Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1803.11175")

Code

Syntology Ran 1 of 22 code samples harvested from 7 repositories linked to this paper; 21 have no recorded run. Of those that ran: 1 ran · fixture could not drive it.

By repository: community (archive-listed): 22 samples from 7 repositories, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

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

Alleansa/eluvio mentioned on GitHubtf report
MirkoLenz/ReCAP-Argument-Graph-Retrieval mentioned on GitHubtfApache-2.0 report
ReCAP-UTR/Argument-Graph-Retrieval mentioned on GitHubtfApache-2.0 report
ceshine/textrank_summary_benchmark mentioned on GitHubtfMIT report
contemn1/sentence_embeddings mentioned on GitHubtf report
f-data/ADD mentioned on GitHubtf report
facebookresearch/InferSent mentioned on GitHubpytorchNOASSERTION report
facebookresearch/SentEval mentioned on GitHubpytorch report
idanmoradarthas/text-summarization mentioned on GitHubtfMIT report
jobdataexchange/competensor mentioned on GitHubtfApache-2.0 report
joseph-bongo-220/TV_NLP_Project mentioned on GitHubtf report
korymath/jann mentioned on GitHubtfnot reachable when probed 2026-09-18 — repositories for recent papers often appear after camera-ready report
krisbukovi/document_similarity mentioned on GitHubtf report
ncbi-nlp/BioSentVec mentioned on GitHubNOASSERTION report
ncbi-nlp/BioWordVec mentioned on GitHubNOASSERTION report
pathway/crosslang_embed mentioned on GitHubtfApache-2.0 report
ppapalampidi/GraphTP mentioned on GitHubpytorch report
ppapalampidi/SUMMER mentioned on GitHubpytorch report
textflint/textflint mentioned on GitHub report
weiyezhimeng/silent-guardian mentioned on GitHubpytorch 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.

Code Syntology ran Syntology

22 samples harvested; 1 ran; 0 honoured the contract we drafted; 21 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
21unverified

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; each sample names its own and says which. “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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

pad_array contemn1/sentence_embeddings/encode_sentences.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 374645eab129b0a7 · report
bm25pluseps_weights ceshine/textrank_summary_benchmark/bm25.py community (archive-listed) unverified MIT (permissive) · 062a676fc76590b0 · report
compute_pc MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/sif.py community (archive-listed) unverified Apache-2.0 (permissive) · be6a5a54256a2e48 · report
cosine_similarity ceshine/textrank_summary_benchmark/textrank_use.py community (archive-listed) unverified MIT (permissive) · 09459e7e459b59bb · report
create_lang martinomensio/spacy-universal-sentence-encoder/spacy_universal_sentence_encoder/util.py community (archive-listed) unverified MIT (permissive) · c8560729712489aa · report
cum_gain MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/ndcg.py community (archive-listed) unverified Apache-2.0 (permissive) · 57ed8fb06d18eb28 · report
dcg MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/ndcg.py community (archive-listed) unverified Apache-2.0 (permissive) · b21be746b7a81ea3 · report
embed_text pathway/crosslang_embed/crosslang_embed.py community (archive-listed) unverified Apache-2.0 (permissive) · dc19d36ff15c170e · report
get_sentence_embeddings ceshine/textrank_summary_benchmark/textrank_use.py community (archive-listed) unverified MIT (permissive) · bdc6f530892a2385 · report
get_text_from_nodes MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/models/graph.py community (archive-listed) unverified Apache-2.0 (permissive) · c04bf5d2161ebd3d · report
get_weighted_average MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/sif.py community (archive-listed) unverified Apache-2.0 (permissive) · 49ed3a1011829d57 · report
head ceshine/textrank_summary_benchmark/baselines.py community (archive-listed) unverified MIT (permissive) · a720718390092b01 · report
idcg MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/ndcg.py community (archive-listed) unverified Apache-2.0 (permissive) · d8a18a7be265eaa8 · report
random ceshine/textrank_summary_benchmark/baselines.py community (archive-listed) unverified MIT (permissive) · 06039e3720a58652 · report
read_file TAUSBV/sentence-level-domain-classification/src/utils.py community (archive-listed) unverified MIT (permissive) · 46df1f9c4f68b7a2 · report
remove_pc MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/libs/sif.py community (archive-listed) unverified Apache-2.0 (permissive) · 17f9e35850be5bb0 · report
sentence_pairing idanmoradarthas/text-summarization/sentence_handler.py community (archive-listed) unverified MIT (permissive) · 718cc353bcf17057 · report
sentence_rank_with_page_rank idanmoradarthas/text-summarization/sentence_handler.py community (archive-listed) unverified MIT (permissive) · 339439151f9ebe35 · report
sentence_sorter idanmoradarthas/text-summarization/sentence_handler.py community (archive-listed) unverified MIT (permissive) · cf60b388c921a1ae · report
set_hooks martinomensio/spacy-universal-sentence-encoder/spacy_universal_sentence_encoder/language.py community (archive-listed) unverified MIT (permissive) · bbef9b2638430ee8 · report
setence_embeddings_similarity_factory ceshine/textrank_summary_benchmark/similarity_functions.py community (archive-listed) unverified MIT (permissive) · 82e73a7356e05547 · report
tex_tab MirkoLenz/ReCAP-Argument-Graph-Retrieval/recap_agr/cli/texify.py community (archive-listed) unverified Apache-2.0 (permissive) · 4ad5869bd60d549c · 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