arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.25674cs.CLcs.IR
收藏

BitNet 文本嵌入

BitNet Text Embeddings

Peking University(北京大学);Microsoft Research(微软研究院)

Zhen Li, Xin Huang, Liang Wang, Nan Yang, Ting Song, Yan Xia, Xun Wu, Shaohan Huang, Huishuai Zhang, Furu Wei, Dongyan Zhao

AI总结:

提出BITEMBED框架,通过将预训练LLM转换为BitNet风格编码器并联合训练,实现低比特文本嵌入,在MMTEB基准上性能接近全精度模型,同时降低存储和计算开销。

摘要:

基于LLM的文本嵌入器显著提升了检索和语义表示质量,但其部署成本仍然高昂:大型骨干模型拖慢嵌入推理速度,而高维全精度嵌入给大规模索引带来巨大的存储和带宽开销。本文提出BITEMBED,一个面向LLM文本嵌入的极端低比特框架,同时针对编码效率和向量存储进行优化。BITEMBED将预训练LLM骨干转换为具有三元权重、量化激活和轻量归一化精炼的BitNet风格嵌入编码器。转换后的模型通过连续对比预训练适应表示学习,随后结合来自全精度教师的相似度分布蒸馏和注意力关系蒸馏进行监督对比微调。除了量化骨干,BITEMBED还进一步训练输出嵌入以支持多种存储精度,满足不同场景下的存储需求。在MMTEB(eng, v2)上使用Qwen3-0.6B和Gemma3-270M的实验表明,BITEMBED与全精度教师嵌入器大致相当。此外,BITEMBED灵活地获得各种精度的文本嵌入,实现了性能与存储成本之间的权衡。

英文摘要:

LLM-based text embedders have substantially improved retrieval and semantic representation quality, but their deployment remains costly: large backbone models slow down embedding inference, while high-dimensional full-precision embeddings impose substantial storage and bandwidth overhead on large-scale indexes. In this paper, we present BITEMBED, an extreme low-bit framework for LLM-based text embedding that jointly targets encoding efficiency and vector storage. BITEMBED converts pretrained LLM backbones into BitNet-style embedding encoders with ternary weights, quantized activations, and lightweight normalization refinement. The converted model is adapted to representation learning through continual contrastive pre-training, followed by supervised contrastive fine-tuning with both similarity-distribution distillation and attention-relation distillation from a full-precision teacher. Beyond quantizing the backbone, BITEMBED further trains output embeddings to support multiple storage precisions meeting different storage needs in various scenarios. Experiments on MMTEB (eng, v2) with Qwen3-0.6B and Gemma3-270M show that BITEMBED is largely comparable to full precision teacher embedders. Moreover, BITEMBED flexibly obtains text embeddings of various precisions, achieving a trade-off between performance and storage cost.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑