Manuscript Offprint

arXiv:2610.10508

Your Prompt Should Do More: Effects of Retrieval Instructions in Embedding Models

Amanda Myntti, Jenna Kanerva, Veronika Laippala, Filip Ginter

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Prompted embedding models have recently received increasing attention, particularly for retrieval, where detailed retrieval instructions are provided as part of the retrieval prompt. Several new datasets and studies have examined this setting, showing that the current embedding models often struggle to follow such instructions reliably. In this paper, we study the mechanism of how instructions actually affect the representations of retrieval queries in asymmetric retrieval tasks. We show that models can fail to follow even simple task instructions when query-side distractors are included in the evaluation. We hypothesize that this behavior is driven by the training setup of current embedding models and their evaluation, and show that fine-tuning with added query-side distractors leads to substantial improvements, with minimal effect on other tasks.

1 INTRODUCTION

Text embeddings are widely used for semantic matching, where relevance of two texts is determined by their embedding similarity. Modern embedding models are often trained to support multiple tasks through natural language instructions that specify the intended relation between a query and its target. Typically, retrieval tasks are asymmetric, where only the query receives a task instruction while candidate documents are embedded independently. This allows a shared document index for multiple retrieval tasks. Yet, standard evaluation does not match this use. Popular benchmarks, like MTEB (Muennighoff et al., 2023), measure performance on multiple embedding task categories, which suggests that models should adapt query representations toward task-specific targets. However, the tasks are evaluated in isolation: both the queries and candidate sets are constructed for a single, specific task. Consequently, candidate pools rarely contain semantically related texts that do not satisfy the task instruction. We argue that this setting provides limited insight into how instructions actually transform query embeddings and alter retrieval behavior.

In this paper, we study how instructions affect retrieval behavior and embedding representations, uncovering several unintuitive results. For example, task instructions do not always increase the similarity between a question and its answer, and irrelevant task prompts are not consistently distinguishable from relevant ones in terms of performance, suggesting that instructions only weakly affect query representations. We hypothesize that this behavior may reduce robustness when the candidate pool includes examples semantically similar to the queries, which may be the case in practical large-scale retrieval applications. Using a controlled evaluation setting, we show that semantic similarity can dominate retrieval irrespective of the relation required by the task at hand, and that models fail to follow instructions adequately. We find evidence that this behavior may be related to common contrastive training practices that lack query-side negatives, and show that fine-tuning with such negatives substantially improves robustness.

References (57)