Pith. sign in

REVIEW 1 cited by

Contrastive Prompting Enhances Sentence Embeddings in LLMs through Inference-Time Steering

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2505.12831 v1 pith:V5BUSP5T submitted 2025-05-19 cs.CL

classification cs.CL
keywords sentencellmsinformationmethodmethodspromptauxiliarycontrastive
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Extracting sentence embeddings from large language models (LLMs) is a practical direction, as it requires neither additional data nor fine-tuning. Previous studies usually focus on prompt engineering to guide LLMs to encode the core semantic information of the sentence into the embedding of the last token. However, the last token in these methods still encodes an excess of non-essential information, such as stop words, limiting its encoding capacity. To this end, we propose a Contrastive Prompting (CP) method that introduces an extra auxiliary prompt to elicit better sentence embedding. By contrasting with the auxiliary prompt, CP can steer existing prompts to encode the core semantics of the sentence, rather than non-essential information. CP is a plug-and-play inference-time intervention method that can be combined with various prompt-based methods. Extensive experiments on Semantic Textual Similarity (STS) tasks and downstream classification tasks demonstrate that our method can improve the performance of existing prompt-based methods across different LLMs. Our code will be released at https://github.com/zifengcheng/CP.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Token Prepending: A Training-Free Approach for Eliciting Better Sentence Embeddings from LLMs

    cs.CL 2024-12 conditional novelty 6.0 of 10

    Prepending each early layer's decoded sentence embedding to the next layer's input improves prompt-based sentence embeddings from decoder-only LLMs without fine-tuning.

Pith tools