LACoS-BLOOM:基于8比特Siamese-BLOOM的低秩适应与对比目标
LACoS-BLOOM: Low-rank Adaptation with Contrastive objective on 8 bits Siamese-BLOOM
AI总结:
本文提出LACoS-BLOOM,通过8比特量化、LoRA适配器和Siamese对比目标微调BLOOM,在单GPU上高效训练71亿参数模型,显著提升英语及多语言句子相似度任务性能。
摘要:
文本嵌入是多种自然语言处理应用(如句子相似度、文本聚类和语义搜索)的有用特征。本文提出了一种在8比特Siamese-BLOOM之上结合对比目标的低秩适应方法,其中Siamese-BLOOM是一种多语言大型语言模型,优化以产生语义上有意义的词嵌入。创新点有三方面。首先,我们将BLOOM权重转换为8比特值。其次,我们使用可扩展适配器(LoRA)和8比特Adam优化器对BLOOM进行微调,用于句子相似度分类。第三,我们在BLOOM模型上应用Siamese架构,并采用对比目标,以缓解多语言标注数据稀缺的问题。实验结果表明,LACoS-BLOOM学习到的嵌入质量与模型参数数量和无标注训练数据量成正比。凭借参数高效的微调设计,我们能够在具有32GB内存的单个GPU机器上端到端运行拥有71亿参数的BLOOM。与之前的解决方案Sentence-BERT相比,我们在英语和多语言语义文本相似度(STS)任务上均取得了显著改进。
英文摘要:
Text embeddings are useful features for several NLP applications, such as sentence similarity, text clustering, and semantic search. In this paper, we present a Low-rank Adaptation with a Contrastive objective on top of 8-bit Siamese-BLOOM, a multilingual large language model optimized to produce semantically meaningful word embeddings. The innovation is threefold. First, we cast BLOOM weights to 8-bit values. Second, we fine-tune BLOOM with a scalable adapter (LoRA) and 8-bit Adam optimizer for sentence similarity classification. Third, we apply a Siamese architecture on BLOOM model with a contrastive objective to ease the multi-lingual labeled data scarcity. The experiment results show the quality of learned embeddings from LACoS-BLOOM is proportional to the number of model parameters and the amount of unlabeled training data. With the parameter efficient fine-tuning design, we are able to run BLOOM 7.1 billion parameters end-to-end on a single GPU machine with 32GB memory. Compared to previous solution Sentence-BERT, we achieve significant improvement on both English and multi-lingual STS tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。