Skip to content
#natural language processing Conference Open access

Focusing Condition: Inference-Time Self-Contrastive Steering Elicits Better Conditional Text Embeddings in LLMs

Sep 2026 · Annual Meeting of the Association for Computational Linguistics · pp. 1135-1147 · 1 citation · 31 references
Computer Science

TL;DR

This work proposes an inference-time, plug-and-play Self-Contrastive Steering (SCS) method that constructs unconditional general text embeddings and uses them to refine conditional text embeddings, making them more focused on the target condition.

Abstract

Extracting conditional text embeddings from large language models (LLMs) is a promising paradigm, as it requires neither additional data nor fine-tuning. Existing methods incorporate conditions into prompts to guide LLMs to focus on specific aspects and elicit conditional text embeddings. However, relying solely on prompts often fails to produce high-quality conditional text embeddings, as they remain entangled with general text embeddings, ultimately degrading their quality. To this end, we propose an inference-time, plug-and-play Self-Contrastive Steering (SCS) method that constructs unconditional general text embeddings and uses them to refine conditional text embeddings, making them more focused on the target condition. Specifically, we modify the attention mask and positional encodings to mask the condition, thereby obtaining unconditional text embeddings and intervening in the multi-head self-attention computation process. Notably, our method is highly efficient, requiring only a single additional multi-head self-attention computation at inference time. Extensive experiments on clustering, Semantic Textual Similarity, and triplet alignment datasets demonstrate that our method can seamlessly improve the performance of existing prompt-based methods across different LLMs in a training-free and plug-and-play manner. Our code will be released at https://github.com/zifengcheng/SCS

Read PDF

Similar papers

#natural language process... Preprint Sep 2026

Selecting What Matters: Semantic Compression-Guided Selective Pooling for Long-Context Embeddings

SCSP is a training-free framework that leverages semantic compression for informative token selection in long-context embedding and can be integrated into both zero-shot and fine-tuned models in a plug-and-play manner, consistently improving their performance.

Zi-Feng Cheng, Jie Zheng, Zhiwei Jiang et al. · 0 citations
#natural language process... Preprint Oct 2026

Steering beyond Language: Improving Multilingual Training-Free Text Embeddings via Paired-Residual Subspace Removal

This work proposes Paired-Residual Subspace Removal (PRSR), a training-free inference-time intervention that steers LLM representations toward a more language-invariant semantic space and demonstrates that PRSR consistently improves the performance of existing training-free baselines in both monolingual and cross-lingu...

Ailiang Lin, Zhuo-Yun Li, Yu-Song Wang et al. · 0 citations
#natural language process... Preprint Oct 2026

A Reality Check of Inference-Time Context Augmentation Methods

Large language models (LLMs) often fail to utilise the context given in the input, resulting in hallucinations or a fallback to parametric knowledge. Context augmentation methods aim to improve model performance by modifying the input, from inserting filler tokens that add computational time to adding relevant content...

Haeun Yu, Geert Heyman, Pepa Atanasova et al. · 0 citations
#machine learning Preprint Oct 2026

Lend Me Your Eyes: Instruction-Aware Text Embeddings via Attention Relay

Text embedding models trained with contrastive learning learn to follow task instructions from instruction-paired data, while instruction-tuned LLMs already know how to follow them. We show that this instruction-following ability can carry over from an LLM to a Transformer-based embedder without any training. We propos...

Yi-Pei Luo, Vaggos Chatziafratis · 0 citations
Sep 2026

GLoT: global–local token alignment for interpretable zero-shot graph reasoning with LLMs for e-commerce applications

A two-stage framework that tightly couples self-supervised graph learning with dual-projection prompting that guarantees that local context is derived from the same clustering signal used during pretraining, and global and local semantics are aligned through purpose-built pathways is proposed.

Yuan-Yuan Ji, Yuan-Kun Xu, Chu-Lei Xiang · 0 citations
#machine learning Preprint Sep 2026

You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinement

In-context learning (ICL) is crucial for boosting the inference performance of large language models (LLMs). However, the effectiveness of ICL in LLMs is greatly influenced by the choice of demonstration sets. Exhaustive searches over these sets are combinatorial, and existing selectors often rely on relevance or likel...

Jia-Rong Wen, Qi Wang, Yun Qu et al. · 1 citation

Related blog posts

Microsoft Research Blog Oct 22, 2026

Flint-interactive: A language for creating interactive data visualizations

Flint-interactive gives AI agents a language for creating interactive visualizations. Click a chart, filter data, highlight related content, and explore beyond the view the author originally chose. The post Flint-interactive: A language for creating interactive data visualizations appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.