Papers › Static Word Embeddings for Sentence Semantic Representation

Static Word Embeddings for Sentence Semantic Representation

5 Jun 2025arXiv:2506.04624archive 2025-07-28

Takashi Wada, Yuki Hirakawa, Ryotaro Shimizu, Takahiro Kawashima, Yuki Saito

We propose new static word embeddings optimised for sentence semantic representation. We first extract word embeddings from a pre-trained Sentence Transformer, and improve them with sentence-level principal component analysis, followed by either knowledge distillation or contrastive learning. During inference, we represent sentences by simply averaging word embeddings, which requires little computational cost. We evaluate models on both monolingual and cross-lingual tasks and show that our model substantially outperforms existing static models on sentence semantic tasks, and even rivals a basic Sentence Transformer model (SimCSE) on some data sets. Lastly, we perform a variety of analyses and show that our method successfully removes word embedding components that are irrelevant to sentence semantics, and adjusts the vector norms based on the influence of words on sentence semantics.

PaperPDFCode 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="2506.04624")

Code

Syntology Ran 1 of 22 code samples harvested from 3 repositories linked to this paper; 21 have no recorded run. Of those that ran: 1 ran · honoured contract.

By repository: found in paper text by Syntology: 22 samples from 3 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.

twadada/swe4semantics found in paper text by SyntologyApache-2.0 report
dleemiller/WordLlama found in paper text by SyntologyMIT report
MinishLab/model2vec found in paper text by SyntologyMIT 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; 1 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 · honoured contract
21unverified

Licence: 0 of the 22 samples are 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 3 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.

approximate_function dleemiller/WordLlama/src/wordllama/adapters/binarizer.py found in paper text by Syntology ran · honoured contract fingerprinted MIT (permissive) · 09cf7bf4ad177244 · report
apply_pca MinishLab/model2vec/model2vec/distill/inference.py found in paper text by Syntology unverified MIT (permissive) · f977b771831e8cfd · report
binary_only dleemiller/WordLlama/src/wordllama/mode_decorators.py found in paper text by Syntology unverified MIT (permissive) · 58271a558cadd0d5 · report
collect_sentences twadada/swe4semantics/apply_pca_xling.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 69e02678a3940a6f · report
compute_weights MinishLab/model2vec/model2vec/distill/inference.py found in paper text by Syntology unverified MIT (permissive) · c0e21d259c6de207 · report
contrastive_loss twadada/swe4semantics/train_xling.py found in paper text by Syntology unverified Apache-2.0 (permissive) · bc033863eb7b03a6 · report
create_embeddings MinishLab/model2vec/model2vec/distill/inference.py found in paper text by Syntology unverified MIT (permissive) · f50a4fe67500f002 · report
dense_only dleemiller/WordLlama/src/wordllama/mode_decorators.py found in paper text by Syntology unverified MIT (permissive) · dd25f90bf6f229e8 · report
encode_batch_with_padding twadada/swe4semantics/extract_embs.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 5ef8c214726b2b02 · report
encode_bilingual twadada/swe4semantics/apply_pca_xling.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 3f0af3ab0ecd4794 · report
encode_sentences twadada/swe4semantics/apply_pca.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 4a593281de8cc870 · report
encode_text twadada/swe4semantics/util.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 51357003448ec154 · report
encode_text_xling twadada/swe4semantics/util.py found in paper text by Syntology unverified Apache-2.0 (permissive) · c5b4dcb8d8305191 · report
evaluate_single_or_multi_label MinishLab/model2vec/model2vec/inference/evaluation.py found in paper text by Syntology unverified MIT (permissive) · 916dbf02798a730a · report
identify_word_indices twadada/swe4semantics/extract_embs.py found in paper text by Syntology unverified Apache-2.0 (permissive) · a9c6c44e3bbf7f00 · report
load_w2v twadada/swe4semantics/util.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 8f3ae471496c40f1 · report
merge_word_vectors twadada/swe4semantics/apply_pca_xling.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 2dd0e5f64e28e235 · report
quantize_and_reduce_dim MinishLab/model2vec/model2vec/quantization.py found in paper text by Syntology unverified MIT (permissive) · a61103d9c8d1b43e · report
quantize_embeddings MinishLab/model2vec/model2vec/quantization.py found in paper text by Syntology unverified MIT (permissive) · 6062e9d596058d89 · report
quantize_vocabulary MinishLab/model2vec/model2vec/vocabulary_quantization.py found in paper text by Syntology unverified MIT (permissive) · 27d601dc73cf7436 · report
read_existing_vocabulary twadada/swe4semantics/extract_embs.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 14c9bef631548267 · report
select_optimal_device MinishLab/model2vec/model2vec/distill/utils.py found in paper text by Syntology unverified MIT (permissive) · 951c3eaccb80dafe · report

Tasks

Contrastive LearningKnowledge DistillationSentenceWord Embeddings

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsBPEDense ConnectionsDropoutKnowledge DistillationLabel SmoothingLayer NormalizationSoftmaxTransformer

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