StaRSE: Compact Russian Sentence Embeddings with a Sign-Coded Static Encoder

Boris Malashenko, Ivan Jarsky, Egor Soldatov, Vladislav Luzhnov, Sviatoslav Stumpf, Vladislav Shmatkov, Viacheslav Shalamov, Andrey Stankevich, Valeria EfimovaarXiv 2026 · arXiv

TL;DR

StaRSE is a compact Russian static sentence encoder that achieves extreme inference efficiency by ditching Transformers at deployment time. By storing token directions as sign bits and optimizing them through quantization-aware training, it delivers an 18x CPU speedup over tiny contextual models while significantly outperforming traditional static baselines on the RuMTEB benchmark.

What Problem Does This Paper Address?

In the world of text embeddings, we usually face a stark trade-off. Contextual encoders (like BERT) offer top-tier quality but are computationally expensive, requiring a full Transformer forward pass for every query. This becomes a major bottleneck when you're running on CPUs, handling massive document collections, or working under tight latency budgets.

On the other hand, static embedding models (like word2vec or fastText) are incredibly fast—inference is just a simple table lookup and mean pooling—but they often struggle with sentence-level semantics because they weren't originally trained for it. Furthermore, while English has many efficient options, high-quality, language-specific static encoders for Russian are scarce. The authors of StaRSE set out to bridge this gap, creating a model that is "static" at inference time but "contextual-grade" in its training pedigree.

Methods

StaRSE (Sign-coded Russian Static Encoder) follows a sophisticated three-stage pipeline:

  1. Smart Initialization: Rather than starting from scratch, the model initializes its 512-dimensional token table from ruBERT-base input embeddings. It uses All-But-The-Top (ABTT) PCA to remove dominant, non-semantic components and applies SIF-Zipf weighting to downweight overly frequent tokens.
  2. Contrastive Fine-Tuning: The model is trained using a bidirectional InfoNCE loss. To teach it sentence-level semantics without a massive labeled dataset, the authors use adjacent sentences from large web corpora as "weak positives." This is supplemented by task-specific data from sources like mMARCO.
  3. Sign-Projected Post-Training: This is the "secret sauce." To compress the model, token directions are stored as binary sign bits (1 bit per dimension), while a single scalar norm is kept for each token. Crucially, they don't just "sign" the table after training; they use quantization-aware training with a straight-through estimator. This allows the optimizer to account for the discrete nature of the sign-projection during the final training phase.

At inference time, the Transformer is gone. The model simply looks up the sign-coded vectors, scales them by their stored norms, and performs mean pooling.

Datasets

  • Training: The primary source for weak supervision is Cultura RU Edu, a large-scale Russian web corpus. Task-shaped positives are drawn from the Russian subset of mMARCO, the ru-HNP paraphrase dataset, and ru-paraphrase-NMT-Leipzig.
  • Evaluation: The main benchmark is RuMTEB (23 tasks covering classification, clustering, retrieval, etc.). For long-document performance, they use the Russian subset of MLDR (Multilingual Long Document Retrieval).

Key Insights and Ideas

  • The Power of Adjacency: Using consecutive sentences from documents as positive pairs provides a massive, virtually free signal for training. While not perfect paraphrases, adjacent sentences naturally share topics and entities, which is enough to induce strong sentence-level similarity in a static table.
  • Norms are Non-Negotiable: A key finding was that while you can binarize the direction of a token vector, you must keep the norm. Dropping token norms (treating all tokens as equally important) resulted in a massive 8.42-point drop on RuMTEB.
  • Quantization-Awareness Wins: Training through the sign-projection (Stage 3) added nearly 2 points to the RuMTEB score compared to simply binarizing a pre-trained continuous model.
  • Streaming Long Documents: Because static encoders lack the $O(n^2)$ complexity of self-attention, StaRSE can process 8,000+ tokens by simply streaming them into a mean-pooling accumulator, making it surprisingly effective for long-form retrieval where Transformers often struggle or require truncation.

Key Results

StaRSE establishes a new Pareto frontier for Russian embeddings, as shown in Figure 1.

Figure 1: Quality on RuMTEB [13] versus mean end-to-end single-sentence encoding latency in milliseconds (log scale; lower is better). Static encoders are measured on CPU and contextual encoders on GPU, so the two device groups represent different deployment regimes. Marker area shows encoder footprint in MiB on a log scale: contextual footprints are estimated as parameter count times two bytes, while static footprints are measured packages. Labeled blue points form the nondominated frontier of the displayed score–latency measurements under this mixed-device diagnostic. The star marks StaRSE.
  • Accuracy: It achieved a mean score of 51.16 on RuMTEB, outperforming the strongest static baseline (Potion multilingual) by 7.98 points.
  • Speed: On an AMD Ryzen 9 CPU, StaRSE has a mean latency of 0.08 ms per sentence. This is roughly 18x faster than ruBERT-tiny-turbo, the closest contextual competitor.
  • Size: The packaged model is only 11.3 MiB, making it ideal for edge deployment or resource-constrained environments.
  • Long-Doc Retrieval: On the MLDR-RU benchmark, StaRSE reached 51.66 nDCG@10, coming within 0.03 points of the much larger USER2-small contextual model when processing 8,192 tokens.

Limitations and Future Work

The authors acknowledge that as a static model, StaRSE is fundamentally limited by its architecture: it cannot account for word order or disambiguate word senses based on context (e.g., "bank" as a river edge vs. a financial institution).

Future directions include:

  • Exploring one-bit-per-dimension sentence representations (binarizing the final pooled vector) to enable ultra-fast Hamming distance searches.
  • Refining the training recipe for other languages with limited labeled sentence-pair data.
  • Investigating how lexical rankers (like BM25) can best complement StaRSE in hybrid retrieval systems.

Summary updated

Abstract

Transformer sentence encoders provide strong retrieval quality, but their inference cost becomes a bottleneck when embeddings must be produced on CPUs or refreshed frequently. We introduce StaRSE, a compact Russian static sentence encoder that removes Transformer inference at deployment time: token directions are stored as sign bits, token norms are stored separately, and sentences are encoded by mean pooling over norm-scaled sign directions. StaRSE is initialized from ruBERT-base, fine-tuned on Russian adjacent-sentence and task-shaped pairs, and post-trained with a contrastive stage that directly optimizes the sign-projected token table. On RuMTEB, StaRSE reaches a task mean of $51.16$, $7.98$ points above the strongest included static baseline. The packaged model occupies $11.3$ MiB and has a mean CPU latency of $0.08$ ms per sentence, compared with an estimated $55.7$ MiB 16-bit parameter footprint and $1.43$ ms mean CPU latency for the closest-quality contextual encoder. Ablations examine adjacent-sentence supervision, token norms, and direct sign-projected post-training.
BibTeX
@misc{malashenko2026starse,
  author = {Boris Malashenko and Ivan Jarsky and Egor Soldatov and Vladislav Luzhnov and Sviatoslav Stumpf and Vladislav Shmatkov and Viacheslav Shalamov and Andrey Stankevich and Valeria Efimova},
  title = {{StaRSE: Compact Russian Sentence Embeddings with a Sign-Coded Static Encoder}},
  year = {2026},
  eprint = {2611.14236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.14236},
}
Figure