Papers
arxiv:2408.00690

Improving Text Embeddings for Smaller Language Models Using Contrastive Fine-tuning

Published on Aug 1
· Submitted by akhaliq on Aug 2

Abstract

While Large Language Models show remarkable performance in natural language understanding, their resource-intensive nature makes them less accessible. In contrast, smaller language models such as MiniCPM offer more sustainable scalability, but often underperform without specialized optimization. In this paper, we explore the enhancement of smaller language models through the improvement of their text embeddings. We select three language models, MiniCPM, Phi-2, and Gemma, to conduct contrastive fine-tuning on the NLI dataset. Our results demonstrate that this fine-tuning method enhances the quality of text embeddings for all three models across various benchmarks, with MiniCPM showing the most significant improvements of an average 56.33\% performance gain. The contrastive fine-tuning code is publicly available at https://github.com/trapoom555/Language-Model-STS-CFT.

Community

Paper submitter

Please cite the source of the prompt. This paper uses the same prompt with PromptEOL[1], but it is not mentioned in the paper.

Prompt in this paper.
image.png

Prompt in PromptEOL.

image.png

[1] Jiang T, Huang S, Luan Z, et al. Scaling sentence embeddings with large language models[J]. arXiv preprint arXiv:2307.16645, 2023.

·
Paper author

Thank you for bringing this to our attention! We've added the necessary citation in the latest version of the paper. We appreciate your interest and apologize for the oversight. 🙏🏻 Your feedback helps us improve, and we're grateful for your support. ✨

Thu homework.

·
Paper author

Hello! This is our open-topic final project for the NLP course, and we're delighted to share the insights we've gained 🤗. Thank you for your comment :D

This is an automated message from the Librarian Bot. I found the following papers similar to this paper.

The following papers were recommended by the Semantic Scholar API

Please give a thumbs up to this comment if you found it helpful!

If you want recommendations for any Paper on Hugging Face checkout this Space

You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend

Sign up or log in to comment

Models citing this paper 3

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2408.00690 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2408.00690 in a Space README.md to link it from this page.

Collections including this paper 13