StaRSE:采用符号编码静态编码器的紧凑型俄语句子嵌入模型
StaRSE: Compact Russian Sentence Embeddings with a Sign-Coded Static Encoder
AI总结:
本文提出StaRSE,一种紧凑型俄语静态句子编码器,通过符号编码等设计降低推理成本,在RuMTEB上性能优于静态基线,且模型体积小、CPU延迟低。
摘要:
Transformer句子编码器具备出色的检索性能,但当需在CPU上生成嵌入或频繁刷新嵌入时,其推理成本会成为瓶颈。本文提出StaRSE,一种紧凑型俄语静态句子编码器,在部署时移除了Transformer推理:将token方向存储为符号位,token范数单独存储,通过对范数缩放后的符号方向进行平均池化来编码句子。StaRSE从ruBERT-base初始化,在俄语相邻句子及任务型对上微调,并经对比阶段后训练,该阶段直接优化符号投影token表。在RuMTEB上,StaRSE的任务均值达51.16,比纳入的最强静态基线高出7.98个百分点;打包模型占11.3 MiB,单句平均CPU延迟为0.08 ms,而质量最接近的上下文编码器的16位参数 footprint 估计为55.7 MiB,平均CPU延迟为1.43 ms。 ablation 研究考察了相邻句子监督、token范数及直接符号投影后训练的影响。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。