paper-with-me

Papers

Scaling Sentence Embeddings with Large Language Models

2023-07-31 · Ting Jiang, Shaohan Huang, Zhongzhi Luan, Deqing Wang, Fuzhen Zhuang

Large language models (LLMs) have recently garnered significant interest. With in-context learning, LLMs achieve impressive results in various natural language tasks. However, the application of LLMs to sentence embeddings remains an area of ongoing research. In this work, we propose an in-context learning-based method aimed at improving sentence embeddings performance. Our approach involves adapting the previous prompt-based representation method for autoregressive models, constructing a demonstration set that enables LLMs to perform in-context learning, and scaling up the LLMs to different model sizes. Through extensive experiments, in-context learning enables LLMs to generate high-quality sentence embeddings without any fine-tuning. It helps LLMs achieve performance comparable to current contrastive learning methods. By scaling model size, we find scaling to more than tens of billion parameters harms the performance on semantic textual similarity (STS) tasks. However, the largest model outperforms other counterparts and achieves the new state-of-the-art result on transfer tasks. We also fine-tune LLMs with current contrastive learning approach, and the 2.7B OPT model, incorporating our prompt-based method, surpasses the performance of 4.8B ST5, achieving the new state-of-the-art results on STS tasks. Our code is available at https://github.com/kongds/scaling_sentemb.

📄 PDF Abstract BibTeX arXiv:2307.16645

Code (1)

kongds/scaling_sentemb 공식 구현 pytorch

Tasks

Contrastive LearningIn-Context LearningSemantic Textual SimilaritySentenceSentence EmbeddingSentence EmbeddingsSTS

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…
Contrastive Learning 설명 없음
OPT OPT is a suite of decoder-only pre-trained transformers ranging from 125M to 175B parameters. The model uses an AdamW optimizer and weight decay of 0.1. It follows a linear…

Similar Papers 제목 키워드 기반

Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Models

2021-08-19 · Findings (ACL) 2022 5 · Jianmo Ni, Gustavo Hernández Ábrego, Noah Constant, Ji Ma 외

We provide the first exploration of sentence embeddings from text-to-text transformers (T5). Sentence embeddings are broadly useful for language processing tasks. While T5 achieves impressive performance on language task…

Contrastive LearningDecoderSemantic Textual SimilaritySentence+2

Do Large Language Models Think Like the Brain? Sentence-Level Evidence from fMRI and Hierarchical Embeddings

2025-05-28 · Yu Lei, Xingyang Ge, Yi Zhang, Yiming Yang 외

Understanding whether large language models (LLMs) and the human brain converge on similar computational principles remains a fundamental and important question in cognitive neuroscience and AI. Do the brain-like pattern…

Sentence

Meta-Task Prompting Elicits Embeddings from Large Language Models

2024-02-28 · Yibin Lei, Di wu, Tianyi Zhou, Tao Shen 외

We introduce a new unsupervised text embedding method, Meta-Task Prompting with Explicit One-Word Limitation (MetaEOL), for generating high-quality sentence embeddings from Large Language Models (LLMs) without the need f…

Semantic Textual SimilaritySentenceSentence EmbeddingsSTS

Exploring RWKV for Sentence Embeddings: Layer-wise Analysis and Baseline Comparison for Semantic Similarity

2025-02-20 · Xinghan Pan

This paper investigates the efficacy of RWKV, a novel language model architecture known for its linear attention mechanism, for generating sentence embeddings in a zero-shot setting. I conduct a layer-wise analysis to ev…

GPULanguage ModelingLanguage ModellingMRPC+6

BeLLM: Backward Dependency Enhanced Large Language Model for Sentence Embeddings

2023-11-09 · Xianming Li, Jing Li

Sentence embeddings are crucial in measuring semantic similarity. Most recent studies employed large language models (LLMs) to learn sentence embeddings. Existing LLMs mainly adopted autoregressive architecture without e…

Language ModelingLanguage ModellingLarge Language ModelSemantic Similarity+4