betaFeedback

WorksComputer Science

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

Abstract

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 propose Attention Relay, which passes the attention weights an LLM produces to the embedder's own attention. Across six instruction-tuned LLMs from the Qwen3, Llama 3.1 and OLMo 3 families and ten widely used embedding models that differ in tokenizer, size and pooling type, Attention Relay makes nearly every combination instruction-aware. Experiments that break the method down into its parts show that the LLM's attention weights track the instruction in its later layers and come largely from instruction tuning. They also show that relaying these weights selects which content in the text matters: it makes the aspect of the text that the instruction asks about dominant in the embedding, or restores that aspect where averaging had diluted it.

Project Page: qdd99.github.io/attention-relay

Code: github.com/qdd99/attention-relay

Introduction

Text embeddings are central to search, retrieval-augmented generation, clustering and classification [22], and the success of Large Language Models (LLMs) has made them stronger: the best embedding models are now built on LLM backbones [39, 2, 23, 56]. What makes two texts similar, however, can depend on the task: news articles can be grouped by topic or by where they happened, customer messages by how the customer feels or by what the customer needs. We call any model or readout that turns a text into one vector by pooling its token states an embedder; trained embedding models are the most common kind.

An embedder trained without instructions cannot follow one, even when the instruction is placed in its input. Most recent embedders are therefore trained with instructions: they take an instruction as part of their input and learn to use it by contrastive training on texts paired with instructions, from InstructOR [31] to Qwen3-Embedding [56], which takes curated instruction data and a round of training for each embedder, to teach what the LLMs they are built on already do [41, 25].

An instruction-tuned LLM follows such instructions readily, but it is no substitute for an embedder. Its hidden states were never shaped for similarity, and embeddings read from them without training, such as PromptEOL [16], Echo embeddings [30] and Value Aggregation [57], remain well behind trained embedders. Nor does the LLM’s grasp of an instruction obviously carry over to an embedder, which differs from it in size, tokenizer and representation space.

We show that one part of an instruction-tuned LLM’s instruction following does carry over, without any training: where the LLM reads a text when it is about to answer, the attention it pays to the text’s tokens, which we call its reading weights (Figure 1). We propose Attention Relay, which hands these weights to the pooling of an instruction-agnostic embedder. The embedder never sees the instruction, and the embedding stays in the space the embedder was trained for.

Figure 1. One customer message read by Qwen3-1.7B under two questions, each token shaded by its reading weight.

We apply Attention Relay to instruction-tuned LLMs of the Qwen3, Llama 3.1 and OlMo 3 families ([48, 32] (Grattafiori et al. 2024)) and to widely used embedders, from the sentence-transformers models all-MiniLM-L6-v2 and all-mpnet-base-v2 ([28]) to BGE, GTE and E5 ([46, 20, 38]) and Qwen3-Embedding ([56]), which differ in tokenizer, size and kind of pooling. We show that Attention Relay makes the embedders instruction-aware in nearly every combination of LLMs and embedders, on the New York Times (NYT) and IntentEmotion datasets and on InBedder’s other sets ([27]).

Motivation

In this section, we show that an instruction-agnostic embedder holds what an instruction asks about but reads every text the same way, while an instruction-tuned LLM reads a text differently as the question changes.

An embedder holds what an instruction asks about but cannot weight it

An embedding is a weighted average over a text’s tokens. Mean pooling gives every token the same weight, and CLS or last-token pooling lets one token attend to the others with attention the embedder learned for similarity in general. In an embedder trained without instructions, nothing in these weights responds to a question, and a question placed in the input is only more text. Asked whether a customer message is closer to one that shares its emotion or one that shares its intent, such an embedder follows the question in about half of the cases, as often as one that ignores it, while Qwen3-Embedding, trained with instructions, follows it in nearly all (Figure 2). A news article about a business deal in Japan belongs with business news when articles are grouped by topic and with news from Japan when they are grouped by country, yet such an embedder gives it one vector for both, although generic embeddings do encode what an instruction asks about (GSTransform; [6]). The embedder holds what an instruction asks about but has no way to weight it by the instruction.

Figure 2. Question following in embedders without vs. with instruction training.

An instruction-tuned LLM reads the text for the question

An instruction-tuned LLM given a text followed by a question computes every state of the text before it sees the question. Because of the causal mask, the text’s states are the same under every question, and the question can act on the text only through where later positions attend. At the position where the LLM is about to answer, its attention over the text, summed over heads and renormalized over the text, is what we call its reading weights (Figure 1).

We measure how much the reading weights move with the question as the total variation distance between them under two questions about the same text, 12∑j∣wj(x,q1)−wj(x,q2)∣\frac{1}{2}\sum_j \lvert w_j(x,q_1)-w_j(x,q_2)\rvert, averaged over news articles asked for their topic or their location and customer messages asked for the customer’s feeling or need. In every instruction-tuned LLM we examine, this question sensitivity stays near zero through the first half of the network, rises between 40 and 70% of its depth, and falls again at the last block (Figure 3). Instruction tuning largely creates this reading: the base checkpoints’ weights move far less with the question at every block.

Figure 3. Question sensitivity at every block of each LLM (solid) and its base checkpoint (dashed).

As noted in § 1, what the LLM lacks is a representation made for similarity: its hidden states were never shaped for it. The two models therefore complement each other: the LLM knows which parts of a text matter for the question, and the embedder knows how to represent them.

Attention Relay

Attention Relay makes an instruction-agnostic embedder instruction-aware by giving it, for each text, the weights with which the LLM reads that text under the instruction (Figure 4).

Figure 4. Attention Relay: the LLM’s reading weights, carried through characters to the embedder’s tokens, pool the embedder’s own states.

Formulation

Reading weights. Let x=(x1,…,xn)x=(x_1,\ldots,x_n) be a text in the LLM’s tokens and qq an instruction. We give the LLM the text followed by the instruction in its chat template (Appendix § 7.§ 2) and take the last position of the prompt, where the model is about to answer, which we call the answer position. As in PromptEOL (Jiang et al., [16], the prompt asks for a one-word answer, so that the token the model is about to write is the answer itself rather than a lead-in such as “The”. At block ℓ\ell, let αjh(x,q)\alpha_j^h(x,q) be the attention from the answer position to text token xjx_j in head hh. The LLM’s reading weights are these attentions summed over the block’s HH heads and renormalized over the text:

wj(x,q)=∑h=1Hαjh(x,q)∑k=1n∑h=1Hαkh(x,q),j=1,…,n.(1)w_j(x,q)=\frac{\sum_{h=1}^{H}\alpha_j^h(x,q)}{\sum_{k=1}^{n}\sum_{h=1}^{H}\alpha_k^h(x,q)},\qquad j=1,\ldots,n. \tag*{(1)}

Because the text precedes the instruction, the causal mask keeps the text’s states identical under every instruction; the instruction changes only where the answer position looks. The block ℓ\ell is set once per LLM and is the same for every embedder and dataset.

From the LLM’s tokens to the embedder’s. The embedder splits xx into its own tokens, which need not match the LLM’s. We carry ww over through characters: each LLM token’s weight is spread evenly over its non-space characters, and each embedder token ii receives the weight of the characters it covers,

w~i∝∑j=1nwj∣Ci∩Cj∣∣Cj∣,(2)\widetilde{w}_i\propto\sum_{j=1}^{n}w_j\frac{\lvert C_i\cap C_j\rvert}{\lvert C_j\rvert}, \tag*{(2)}

where CjC_j and CiC_i are the non-space characters of LLM token jj and embedder token ii, and w~\widetilde{w} is renormalized over the embedder’s text tokens. Tokens outside the text, such as special tokens or a fixed prefix, cover none of its characters and receive no weight.

Relaying the weights. Let rr be the weights that the embedder’s pooling places on its tokens. In mean pooling, rr is uniform over the tokens and averages their final states. In CLS or last-token pooling, the embedding is the final state of one pooling token; at each layer, a head’s attention row aa from that token gives ri=ai/mr_i=a_i/m on the text tokens i∈Ti\in\mathcal{T}, where m=∑i∈Taim=\sum_{i\in\mathcal{T}}a_i is the head’s total attention on the text. Attention Relay multiplies rr by the LLM’s weights and renormalizes,

ri′∝riw~iβ,(3)r_i'\propto r_i\widetilde{w}_i^{\beta}, \tag*{(3)}

with strength β=1\beta=1 unless stated otherwise; β=0\beta=0 returns the released embedder, and a larger β\beta concentrates r′r' on the tokens the LLM weights most. The product keeps the embedder’s own preferences among the tokens the LLM reads and removes weight from the tokens it ignores. In mean pooling, r′r' becomes the pooling weights. In CLS or last-token pooling, every head at every layer spends its text attention mm as mr′m r', keeps its attention outside the text,1 and recomputes its output at the pooling token from the embedder’s own values.

An equivalent logit form. In CLS or last-token pooling, the same change can be made before the softmax. Let ss be the logits of a head’s attention row at the pooling token, so that a=softmax⁡(s)a = \operatorname{softmax}(s). For any bias bb over the positions,

softmax⁡(s+b)i=esiebi∑keskebk=aiebi∑kakebk,(4)\operatorname{softmax}(s+b)_i = \frac{e^{s_i}e^{b_i}}{\sum_k e^{s_k}e^{b_k}} = \frac{a_i e^{b_i}}{\sum_k a_k e^{b_k}}, \tag*{(4)}

so adding bib_i to a logit multiplies its weight by ebie^{b_i} and renormalizes. Choosing

bi={βlog⁡w~i+c,i∈T,0,i∉T,c=log⁡m∑k∈Takw~kβ(5)b_i = \begin{cases} \beta\log\widetilde{w}_i+c, & i\in\mathcal{T},\\ 0, & i\notin\mathcal{T}, \end{cases} \qquad c=\log\frac{m}{\sum_{k\in\mathcal{T}}a_k\widetilde{w}_k^\beta} \tag*{(5)}

makes the denominator ec∑k∈Takw~kβ+∑k∉Tak=m+(1−m)=1e^c\sum_{k\in\mathcal{T}}a_k\widetilde{w}_k^\beta+\sum_{k\notin\mathcal{T}}a_k=m+(1-m)=1, so each text token receives ecaiw~iβ=mri′e^c a_i\widetilde{w}_i^\beta=m r'_i by equation (3) and every other position keeps aia_i: the result is exactly the relayed row. The term βlog⁡w~\beta\log\widetilde{w} acts as a soft attention mask read from the LLM, and a token with w~i=0\widetilde{w}_i=0 is masked outright. The constant cc is the same for every text token in a head and holds the head’s attention on the text at mm; without it the bias would move attention from the text to the positions outside it, since w~i≤1\widetilde{w}_i\leq1.

Alternative: the plain bias. We call equation (5) the mass-preserving bias. The plain bias sets c=βlog⁡∣T∣c=\beta\log|\mathcal{T}| in every head instead, so that uniform weights change nothing: it multiplies a head’s attention on the text by (∣T∣w~i)β(|\mathcal{T}|\widetilde{w}_i)^\beta and renormalizes the whole row, where the mass-preserving bias renormalizes within the text. Both give each head the same distribution r′r' over the text and differ only in how much of its attention the head keeps there: under the plain bias, the odds m/(1−m)m/(1-m) are multiplied by

κ=∣T∣β∑i∈Triw~iβ,(6)\kappa=|\mathcal{T}|^\beta\sum_{i\in\mathcal{T}}r_i\widetilde{w}_i^\beta, \tag*{(6)}

which is 1 for uniform w~\widetilde{w}, above 1 when the head already attends to the tokens the LLM weights, and below 1 when it attends to others. A head that agrees with the LLM then writes more from the text, and one that disagrees moves attention outside the text and writes less from it. The mass-preserving bias leaves how much each head writes to the embedder, so that only a distribution over the text passes from the LLM.

Why attention

Only the weights can cross. Of what an instruction-tuned LLM computes while it reads a text under an instruction, an embedder could be handed either vectors or weights. Vectors, whether hidden states, values or the representation of an answer, live in the LLM’s own coordinates, with their own dimension and geometry, and cannot enter another model without a learned map. Weights over the text have no coordinates: they are a distribution over the text itself.

The weights carry the instruction. They are also where the instruction acts. In a Transformer, attention is the only operation that moves information between positions, and with the text before the instruction, the text’s values are the same under every instruction. The text’s share of a head’s output at the answer position, ∑j=1nαj(x,q)vj(x)\sum_{j=1}^{n} \alpha_j(x,q)v_j(x), therefore depends on the instruction only through its weights, so passing the weights passes everything the instruction changes in how the LLM reads the text, and nothing else.

The embedder already reads through weights. An embedder pools its text with a distribution over its tokens: uniform in mean pooling, its pooling token’s attention in CLS or last-token pooling. Once the two tokenizations are aligned through characters, the LLM’s weights mean the same thing in the embedder, how much each part of the text matters for the question, and they enter the embedder where its own weights already are. Which parts of a text matter for a question is a property of the text and the question, not of the model that reads them; how to represent those parts stays with the embedder.

Experiments

We evaluate Attention Relay across LLMs, embedders and kinds of instruction, then change one ingredient at a time and ask what the relay passes, what it can select and what it changes.

Setup

Models. We take the reading weights of six instruction-tuned LLMs: Qwen3 at 0.6B, 1.7B, 4B and 8B [48], Llama-3.1-8B-Instruct (Grattafiori et al., 2024) and OLMo-3-7B-Instruct [32]. Four of their base checkpoints serve as controls. We relay the weights into ten embedders that take no instruction: Qwen3-Embedding in its document mode [56], BGE [46], GTE [20], E5 [38] and two sentence-transformers models [28] (Appendix A.1). They span tokenizers, sizes and three kinds of pooling: the last token, [CLS] and the mean. We read each LLM at one block, chosen without labels where its weights move most with the question, and keep one setting per pair on every task. Unless stated otherwise, we relay Qwen3-1.7B’s weights.

Tasks. We use InBedder’s evaluation sets [27]. NYT holds 2,144 news articles, labeled by topic and by the country where the news happened. We embed every article once under the topic question and once under the location question, cluster each set of embeddings by the aspect its question asks about, and report the harmonic mean of the two V-measures. IntentEmotion (IE) holds customer messages, labeled by how the customer feels and by what the customer needs, and arranges them in triplets. Each triplet asks whether a message is closer to one that shares its emotion or one that shares its intent; an embedding that ignores the question scores 100, and one that always follows it scores 200. Four more sets carry instructions of other kinds. FewRel, FewNerd and FewEvent ask every text for the type of a marked relation, entity or event, and InstructSTSB gives every pair of sentences its own instruction. We run them with Qwen3-1.7B here and with Llama and OLMo in Appendix § 9.§ 1. Every gain comes with a 95% paired bootstrap interval (Appendix B).

Main results

Table 1 and Figure 5 show the main result: embedders that never see the question now embed a text according to it. Every embedder in Table 1 gains on NYT and IE, and nearly every pair of an LLM and an embedder gains in Figure 5. The relay also raises the scores on FewRel, FewNerd, FewEvent and InstructSTSB, where the instruction does not pick one of two aspects. Only e5-large-v2’s gains on FewRel and FewEvent have intervals that include zero (Appendix B, Table 9). Qwen3-Embedding, trained with instructions and given the task, still scores higher on IE and the type sets but falls slightly below zero on InstructSTSB. We speculate that instruction training, in which one instruction serves a whole task, teaches an embedder to shift every embedding of the task rather than to pick out the words a question asks about.

EmbedderNYTFewRelFewNerdFewEventInstructSTSBIE
Qwen3-Embedding-0.6B (document mode)55.954.442.759.10.0100.0
+ relay64.657.649.563.518.2142.6
Gain+8.7+3.2+6.8+4.5+18.2+42.6
bge-large-en-v1.556.755.443.359.00.0100.0
+ relay67.258.848.064.320.3157.8
Gain+10.6+3.4+4.7+5.3+20.3+57.8
gte-large-en-v1.556.854.142.356.80.0100.0
+ relay68.858.445.861.117.9142.3
Gain+12.0+4.3+3.5+4.3+17.9+42.3
all-mpnet-base-v256.752.140.955.50.0100.0
+ relay66.355.845.961.711.6135.6
Gain+9.6+3.7+5.0+6.2+11.6+35.6
e5-large-v254.356.441.461.10.0100.0
+ relay67.157.743.264.07.4125.3
Gain+12.8+1.2+1.8+2.8+7.4+25.3
Qwen3-Embedding-0.6B (instruction mode)68.463.458.167.3−1.7190.0

Table 1. Five embedders that take no instruction, alone and relayed from Qwen3-1.7B (+ relay), and Qwen3-Embedding-0.6B trained with instructions (bottom row). IE is 100 when the question is ignored and 200 when it is always followed.

Figure 5. The gain of relaying for every pair of an instruction-tuned LLM and an embedder.

Ablations

On instruction tuning. Base checkpoints relay much less into the five embedders of Table 1 than their instruction-tuned siblings do (Figure 6). Read at their siblings’ blocks, the weights of the four base checkpoints barely move with the question. The one case where a base’s weights do move, Llama’s on NYT, is also the one where a base relays nearly as much as its sibling.

Figure 6. The gain of relaying from each instruction-tuned LLM and from its base checkpoint.

On the LLM block. The gain tracks the question sensitivity through the LLM’s depth (Figure 7 and Figure 3). We relay the weights of every block of each LLM into the two embedders that pool by the mean, all-mpnet-base-v2 and e5-large-v2. Blocks where the question has not yet moved the weights give nothing, and the gain appears where the weights start to move, earliest in Llama. We can therefore choose the block without labels, as the one where the weights move most with the question; this choice loses little against the best block for every LLM but OLMo.

Figure 7. The gain of relaying from each block of each LLM; dots mark the blocks we read.

On the embedder’s side. Relaying into the embedder’s later layers gives nearly all of the gain, and into its earlier layers almost none (Appendix § 9.§ 2). Replacing the mass-preserving bias with the plain bias moves the scores by about a point (Appendix § 9.§ 3).

Interpretability of Attention Relay

What the relay passes. The gain comes from the words of each text that the LLM reads (Figure 8). Weights with the LLM’s shape but the wrong words keep at most about a third of it, whether they are shuffled within the text, taken from another text or reduced to a profile of positions. Removing the tenth of words the LLM weights most takes away most of the gain, while removing a random tenth takes at most a quarter.

Figure 8. The share of the gain kept when the weights or the text change (bge-large).

What the relay can select. The relay gains more when the text names what the question asks about. We split NYT’s articles into those that name one of the ten countries or its people and those that do not, and cluster each set on its own. Where an article names the country, the location gain is two to six times larger than where the place is only implied, for four of the five embedders (Figure 9). Qwen3-Embedding, the one embedder built on an LLM, gains about as much in both.

Figure 9. The location gain where an article names the country and where it does not.

What the relay changes. Relaying makes the asked aspect count in one of two ways: it surfaces an aspect the embedding held but did not cluster by, or makes an aspect more readable in the first place. A linear probe reads whether an embedding holds an aspect at all, and the V-measure whether the embedding clusters by it. An NYT article runs to hundreds of words, and most articles name the country or its people. Every embedding alone already holds the location, which a probe reads with 94 to 96% accuracy; relaying leaves the probe within a point but raises location V-measure by 15 to 27 points. A FewNerd text is one sentence of about 30 words, and its label is the type of one marked entity, often among entities of other types. Pooled over the whole sentence, that entity takes a small share of the embedding; relaying moves the pooling onto it and raises the probe’s accuracy by 3 to 11 points. Figure 10 shows the difference under these two scenarios.

Figure 10. Probe accuracy and V-measure of the asked aspect, from each embedder alone to relayed.

Related Work

Instruction-aware text embeddings. A text can be grouped or compared in several valid ways, as studied in alternative clustering [8, 24] and conditional similarity [35], as in C-STS [5]. Instruction-aware embedders let an instruction choose the way and learn to follow it in training: InstructOR [31], E5-Mistral [39], GritLM [23] and Qwen3-Embedding [56] through contrastive training with instructions, InBedder by learning to answer a question about the text [27], and GSTransform through a transformation of a generic embedder’s outputs, trained for each instruction [6]. Even so, retrieval models trained with instructions use them mostly as keywords (FollowIR; [42]). Attention Relay trains nothing: the instruction following comes from an LLM at inference, and the embedder is used as released.

Training-free embeddings from LLMs. An LLM’s hidden state at the end of a prompt that asks for a text in one word serves as the text’s embedding (PromptEOL; [16]); later methods average several prompts (MetaEOL; [17]) or generated rewrites (GenEOL; [33]), repeat the text (Echo embeddings; [30]), or pool the value vectors (Value Aggregation; [57]). With a condition in the prompt, such readouts become conditional (PonTE; [47]), and self-contrastive steering improves them (Focusing Condition; [4]). All of them represent the text in the LLM’s own space; Attention Relay takes only the LLM’s attention and keeps the space the embedder was trained for.

Attention as a question-conditioned signal. At the last position, attention heads fetch what a prediction needs from earlier tokens [7, 37, 44]. As a score, this attention re-ranks passages in ICR [3] and QRHead [55], ranks documents once calibrated for position (Found in the Middle; [13]), decides which cached tokens to keep (SnapKV; [19]), and, taken from a small model, which tokens a larger model reads (SpecPrefill; [21]). Attention weights are not explanations in general [15, 43], so we test the reading weights against shuffled, other-text and uniform weights. These uses stay within one model or one tokenizer family; Attention Relay carries the weights through characters into a different model.

Changing attention at inference. Attention steering scales a model’s attention on one span, marked by the user (PASTA; Zhang et al., [53]), found by the model (AutoPASTA; Zhang et al., [54]) or holding the instruction, as in SpotLight (Venkateswaran & Contractor, [36]) and InstA-Boost (Guardieiro et al., [10]), by one factor. Image editing, as in Prompt-to-Prompt (Hertz et al., [12]) and Plug-and-Play (Tumanyan et al., [34]), injects the attention maps of one generation into another, which keeps its own values, and attention transfer ([51, 18]) and MiniLM (Wang et al., [40]) train a student with a teacher’s attention maps, also across tokenizers through character offsets (MATT; Haltiuk & Smywinski-Pohl, [11]).

Discussion

It selects; it cannot add. Relaying changes only the text’s share of a head’s output. At the pooling token, a head’s output becomes

o′=m∑i∈Tri′vi+∑j∉Tajvj(7)o' = m \sum_{i \in T} r'_i v_i + \sum_{j \notin T} a_j v_j \tag*{(7)}

with the embedder’s own values and the same weight mm on the text; in mean pooling, the embedding is ∑iri′ui\sum_i r'_i u_i over the embedder’s own final states uiu_i. Each relayed output is thus a convex combination of vectors the embedder computed itself: the instruction decides which of the embedder’s content dominates, and only a distribution over the text, never a vector, passes from the LLM. What the embedder does not compute cannot be relayed: knowledge the LLM draws on to answer, such as the country a city lies in, and anything an instruction asks beyond which tokens matter, such as how two entities relate.

A shared backbone. Many embedders built on an LLM keep its weights and add a small fine-tuning change, often a LoRA adapter (Hu et al., [14]). If the LLM’s instruction tuning were an adapter too, one backbone could serve as both models: with one adapter it would read the text for the question, and with the other it would embed it. The two would share their tokens, their heads and a single copy of the weights. Modern post-training, however, changes every weight of the model rather than training an adapter.

Open questions. The relay needs attention whose weights form a distribution over the text, as softmax attention does. Sparse attention, such as NSA (Yuan et al., [50]), reads only part of the text at full resolution, and linear attention, such as Gated DeltaNet (Yang et al., [49]), keeps a state instead of weights; whether their implicit attention (Ali et al., [1]) can be relayed, from such an LLM or into such an embedder, is open. Nothing in the method is specific to text either: a vision-language model’s attention over an image follows the question (Zhang et al., [52]), and aligning image patches by area instead of characters would relay it into an image encoder’s pooling; whether this makes image embeddings instruction-aware, and embeddings of other modalities after them, is the next test.

AI use statement

In this work, we used generative AI tools to write the code for the experiments and the analyses, to produce the figures and tables from the results files, to search and check the literature, and to draft sections of the paper. The research questions and the central idea of the method came from the authors. We have reviewed all AI-assisted work, and we take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.

Implementation details

Settings

Every number in the paper comes from one setting per pair of an LLM and an embedder, used unchanged on every task. Table 2 and Table 3 point to every model and dataset, and Table 5 gives each pair’s setting.

ModelHugging Face
Instruction-tuned LLMs
Qwen3-0.6BQwen/Qwen3-0.6B
Qwen3-1.7BQwen/Qwen3-1.7B
Qwen3-4BQwen/Qwen3-4B
Qwen3-8BQwen/Qwen3-8B
Llama-3.1-8B-Instructmeta-llama/Llama-3.1-8B-Instruct
OLMo-3-7B-Instructallenai/Olmo-3-7B-Instruct
Base checkpoints
Qwen3-1.7B-BaseQwen/Qwen3-1.7B-Base
Qwen3-8B-BaseQwen/Qwen3-8B-Base
Llama-3.1-8Bmeta-llama/Llama-3.1-8B
OLMo-3-7Ballenai/Olmo-3-1025-7B
Embedders, used without an instruction
Qwen3-Embedding-0.6BQwen/Qwen3-Embedding-0.6B
bge-large-en-v1.5BAAI/bge-large-en-v1.5
gte-large-en-v1.5Alibaba-NLP/gte-large-en-v1.5
all-mpnet-base-v2sentence-transformers/all-mpnet-base-v2
e5-large-v2intfloat/e5-large-v2
all-MiniLM-L6-v2sentence-transformers/all-MiniLM-L6-v2
bge-small-en-v1.5BAAI/bge-small-en-v1.5
bge-base-en-v1.5BAAI/bge-base-en-v1.5
Qwen3-Embedding-4BQwen/Qwen3-Embedding-4B
Qwen3-Embedding-8BQwen/Qwen3-Embedding-8B

Table 2. Every model in the paper.

DatasetHugging Face
Used throughout
NYTBrandonZYW/NYTClustering
IntentEmotion (IE)BrandonZYW/IntentEmotion
Used in § 4
FewRelBrandonZYW/FewRelClustering
FewNerdBrandonZYW/FewNerdClustering
FewEventBrandonZYW/FewEventClustering
InstructSTSBBrandonZYW/InstructSTSB

Table 3. Every dataset, from InBedder’s evaluation [27].

EmbedderPoolingRelayed intoMax. tokens
Qwen3-Embedding-0.6Blast tokenattention–
Qwen3-Embedding-4Blast tokenattention–
Qwen3-Embedding-8Blast tokenattention–
bge-large-en-v1.5[CLS]attention512
bge-small-en-v1.5[CLS]attention512
bge-base-en-v1.5[CLS]attention512
gte-large-en-v1.5[CLS]attention512
all-mpnet-base-v2meanpooling weights512
e5-large-v2meanpooling weights512
all-MiniLM-L6-v2meanpooling weights512

Table 5. The setting of each embedder, the same with every LLM.

The LLMs. Each text is cut to its first 400 tokens in the LLM’s tokenizer and given to the LLM in its chat template (Appendix § 7.§ 2); a base checkpoint is given its instruct sibling’s template. The reading weights are taken at the block of Table 4, counting from 0: the block with the highest question sensitivity (§ 2.2) in the second half of the network, excluding the last block, with the sensitivity averaged over the texts of NYT and IE and no labels read. A base checkpoint is read at its sibling’s block.

LLMBlocksBlock read
Qwen3-0.6B2824
Qwen3-1.7B2824
Qwen3-4B3629
Qwen3-8B3629
Llama-3.1-8B-Instruct3224
OLMo-3-7B-Instruct3223
Qwen3-1.7B-Base2824
Qwen3-8B-Base3629
Llama-3.1-8B3224
OLMo-3-7B3223

Table 4. Each LLM, the block its reading weights are taken at.

The embedders. Each embedder reads the same text, cut as above, and no instruction. All relay the LLM’s weights in the multiply form with β=1\beta= 1 (equation (3)), and those that pool with attention do so with the mass-preserving bias in every head of every layer. The weights reach the embedder’s tokens through characters (equation (2)); the first token of Qwen3-Embedding, the attention sink of its document mode, is counted outside the text. e5-large-v2 reads every text after the prefix "query: ", the input format its model card prescribes for clustering and classification; like the special tokens, the prefix lies outside the text and gets no relayed weight.

Chat template

Every LLM reads every text in its own chat template as released, with the template’s default system message, if any, and thinking turned off where the template offers it. The text and the task’s instruction (Table 6) fill the user turn, and the answer position is the final token of the sequence. For Qwen3, whose template is shown below, that token is the line break after </think>.

DatasetInstruction
NYT, topicWhat is the topic of news?
NYT, locationWhere did the news happen?
IntentEmotion, emotionHow does the customer feel?
IntentEmotion, intentWhat does the customer need?
FewRelHere is a sentence. Please tell me the relation type between two specified entities appended after the sentence.
FewNerdHere is a sentence. Please tell me the type of the specified entity appended after the sentence.
FewEventHere is a sentence. Please tell me the type of the specified event according to the trigger words appended after the sentence.
InstructSTSBeach pair’s own instruction, from the dataset

Table 6. The instruction each dataset puts in the template’s instruction slot.

<|im_start|>user
Text:
{text}
{instruction}
Answer in one word.<|im_end|>
<|im_start|>assistant
<think>
</think>

The sequence is tokenized piece by piece (the template up to Text:, the text, the instruction, the closing sentence and the template’s end), so that no token crosses the text’s boundaries.

Embedder inputs

Every embedder reads the text as its own tokenizer splits it, with its own special tokens. Table 7 gives what each embedder reads around the text in each condition, where {text} is the text, {question} the question or the set’s instruction of Table 6, and {task} a task description of Table 8.

EmbedderConditionInput
Every embedder but e5-large-v2alone and relayed{text}
e5-large-v2alone and relayedquery: {text}
all-mpnet-base-v2, bge-large, gte-largethe question in the input, before or after the text (Figure 2){question} {text}<br>{text} {question}
e5-large-v2the samequery: {question} {text}<br>query: {text} {question}
bge-large, gte-large, all-mpnet-base-v2the set’s instruction in the input (Table 10){question} {text}
e5-large-v2the samequery: {question} {text}
Qwen3-Embedding-0.6B, instruction modethe other sets’ instructions (Table 1 and Table 10)Instruct: {question}\n<br>Query:{text}
Qwen3-Embedding-0.6B, instruction modeNYT and IE (Table 1 and Figure 2)Instruct: {task}\n<br>Query:{text}

Table 7. What each embedder reads around the text; \n is a line break.

QuestionTask description
NYT, topicIdentify the topic of the given news article
NYT, locationIdentify the location where the given news article happened
IE, emotionIdentify the emotion the customer expresses in the given message
IE, intentIdentify what the customer needs in the given message

Table 8. Task descriptions Qwen3-Embedding-0.6B reads in its instruction mode for NYT and IE.

Controls

Figure 8 asks whether the gain needs the LLM’s weights on the text’s own words. Three controls keep the shape of the weights but cut their tie to the words. Shuffled within the text permutes the text’s weights at random over its own tokens. Another text’s weights gives the text, token by token, the weights of a random text of the same length, or the nearest length. A profile of positions gives each token the LLM’s average weight at the same relative position, under the same question, over all the other texts, with relative position split into twenty bins. It keeps where in a text the LLM tends to look, but not which words this text holds. The shuffled and other-text controls average three random draws. Two more controls remove words from each text before the embedder reads it: the tenth of its words that the LLM weights most under the question, or a random tenth. On the shortened texts, we relay the LLM’s weights on the remaining words and compare with the embedder alone on the same texts.

Evaluation metrics

Let eq(x)e_q(x) be an embedder’s embedding of the text xx under the question qq; the embedder alone gives the same embedding under every question.

V-measure. For the class labels YY and a clustering KK of the same texts [29],

h=1−H(Y∣K)H(Y),c=1−H(K∣Y)H(K),V=100⋅2hch+c.(8)\begin{aligned} h &= 1 - \frac{H(Y \mid K)}{H(Y)}, \qquad c = 1 - \frac{H(K \mid Y)}{H(K)}, \qquad V = 100 \cdot\frac{2hc}{h+c}. \tag*{(8)} \end{aligned}

where HH is the entropy of the empirical distribution. KK is kk-means with as many clusters as classes, on the centered, unit-length embeddings, and VV is averaged over ten initializations.

NYT. With VtopicV_{\mathrm{topic}} the V-measure of the topic labels on the embeddings under the topic question, and VlocV_{\mathrm{loc}} that of the country labels on the embeddings under the location question,

NYT=2VtopicVlocVtopic+Vloc.(9)\mathrm{NYT} = \frac{2V_{\mathrm{topic}}V_{\mathrm{loc}}}{V_{\mathrm{topic}} + V_{\mathrm{loc}}}. \tag*{(9)}

IntentEmotion. For each question q∈{emotion,intent}q \in\{\mathrm{emotion},\mathrm{intent}\}, a triplet (a,x+,x−)∈Tq(a, x^+, x^-) \in T_q holds an anchor message aa, a message x+x^+ that shares only the anchor’s answer to qq, and a message x−x^- that shares only its answer to the other question:

IE=100∑q1∣Tq∣∑(a,x+,x−)∈Tq1[cos⁡(eq(a),eq(x+))>cos⁡(eq(a),eq(x−))].(10)\mathrm{IE} = 100 \sum_q \frac{1}{\lvert T_q\rvert} \sum_{(a,x^+,x^-)\in T_q} \mathbf{1}\left[\cos(e_q(a),e_q(x^+)) > \cos(e_q(a),e_q(x^-))\right]. \tag*{(10)}

The two sets hold the same messages with x+x^+ and x−x^- swapped, so an embedding that ignores the question scores 100, and one that always follows it scores 200. Figure 2 reports IE/2, the share of triplets that follow the question. We use the triplets of the first 2,000 anchors in sorted order, 2,038 per question.

InBedder’s other sets. FewRel, FewNerd and FewEvent report the V-measure of their type labels. InstructSTSB reports 100ρ100\rho, where ρ\rho is the Spearman correlation, over the sentence pairs (s1,s2)(s_1, s_2) with instruction qq and binary label yy, between cos⁡(eq(s1),eq(s2))\cos(e_q(s_1), e_q(s_2)) and yy.

Linear probe. The probe accuracy is the five-fold stratified cross-validated accuracy of a logistic regression (C=1C = 1; Pedregosa et al. [26]) on the centered, unit-length embeddings; its chance level is the share of the largest class.

Gains and intervals. A gain is Δ=Srelay−Salone\Delta= S_{\mathrm{relay}} - S_{\mathrm{alone}}, a score of the relayed embedder minus the same score of the embedder alone. The share of the gain that a control of Figure 8 keeps is 100Δcontrol/Δ100\Delta_{\mathrm{control}}/\Delta, where Δcontrol\Delta_{\mathrm{control}} is the gain under the control (Appendix § 7.§ 4). Each bootstrap replicate resamples the items (texts, triplets or sentence pairs) with replacement and scores both embeddings on the same resample, giving a replicate gain Δ∗\Delta^*; the 95% interval runs from the 2.5th to the 97.5th percentile of Δ∗\Delta^* over the replicates. Table 9 gives every gain of Table 1 with its interval.

EmbedderNYTFewRelFewNerdFewEventInstructSTSBIE
Qwen3-Embedding-0.6B+8.7 [2.9, 12.2]+3.2 [1.5, 5.0]+6.8 [4.4, 8.2]+4.5 [2.4, 6.4]+18.2 [16.6, 20.0]+42.6 [40.2, 45.1]
bge-large-en-v1.5+10.6 [7.5, 16.2]+3.4 [1.8, 5.0]+4.7 [2.1, 6.0]+5.3 [3.1, 6.7]+20.3 [18.5, 22.1]+57.8 [54.9, 60.6]
gte-large-en-v1.5+12.0 [6.7, 16.0]+4.3 [2.4, 5.8]+3.5 [1.3, 4.9]+4.3 [2.3, 5.7]+17.9 [16.3, 19.5]+42.3 [39.7, 44.9]
all-mpnet-base-v2+9.6 [6.0, 14.8]+3.7 [1.8, 4.5]+5.0 [2.8, 6.2]+6.2 [3.4, 7.8]+11.6 [10.6, 12.7]+35.6 [33.2, 37.9]
e5-large-v2+12.8 [8.8, 20.2]+1.2 [−0.6, 3.2]+1.8 [0.1, 3.7]+2.8 [−0.3, 5.6]+7.4 [6.7, 8.1]+25.3 [23.2, 27.5]

Table 9. The gains of Table 1, with their 95% paired bootstrap intervals below them.

Additional experiments

InBedder’s other sets with other LLMs

Table 10 repeats InBedder’s other sets with the weights of Llama-3.1-8B-Instruct and OLMo-3-7B-Instruct beside Qwen3-1.7B’s, and adds each embedder given the instruction in its input.2 OLMo’s weights give the same picture as Qwen3-1.7B’s; with Llama’s, FewRel falls for every embedder. Given the instruction in its input, every embedder scores below zero on InstructSTSB.

EmbedderFewRelFewNerdFewEventInstructSTSB
Qwen3-1.7B
Qwen3-Embedding-0.6B54.4→57.654.4 \to57.642.7→49.542.7 \to49.559.1→63.559.1 \to63.50.0→18.20.0 \to18.2
bge-large-en-v1.555.4→58.855.4 \to58.843.3→48.043.3 \to48.059.0→64.359.0 \to64.30.0→20.30.0 \to20.3
gte-large-en-v1.554.1→58.454.1 \to58.442.3→45.842.3 \to45.856.8→61.156.8 \to61.10.0→17.90.0 \to17.9
all-mpnet-base-v252.1→55.852.1 \to55.840.9→45.940.9 \to45.955.5→61.755.5 \to61.70.0→11.60.0 \to11.6
e5-large-v256.4→57.756.4 \to57.741.4→43.241.4 \to43.261.1→64.061.1 \to64.00.0→7.40.0 \to7.4
Llama-3.1-8B-Instruct
Qwen3-Embedding-0.6B54.4→51.754.4 \to51.742.7→46.742.7 \to46.759.1→61.759.1 \to61.70.0→21.90.0 \to21.9
bge-large-en-v1.555.4→52.055.4 \to52.043.3→44.443.3 \to44.459.0→62.759.0 \to62.70.0→23.00.0 \to23.0
gte-large-en-v1.554.1→47.954.1 \to47.942.3→41.242.3 \to41.256.8→59.556.8 \to59.50.0→20.70.0 \to20.7
all-mpnet-base-v252.1→50.952.1 \to50.940.9→41.840.9 \to41.855.5→58.555.5 \to58.50.0→14.10.0 \to14.1
e5-large-v256.4→55.756.4 \to55.741.4→41.741.4 \to41.761.1→62.861.1 \to62.80.0→8.90.0 \to8.9
OLMo-3-7B-Instruct
Qwen3-Embedding-0.6B54.4→58.954.4 \to58.942.7→50.742.7 \to50.759.1→60.859.1 \to60.80.0→24.50.0 \to24.5
bge-large-en-v1.555.4→59.355.4 \to59.343.3→50.143.3 \to50.159.0→61.359.0 \to61.30.0→25.20.0 \to25.2
gte-large-en-v1.554.1→59.154.1 \to59.142.3→47.742.3 \to47.756.8→59.456.8 \to59.40.0→23.20.0 \to23.2
all-mpnet-base-v252.1→56.652.1 \to56.640.9→48.140.9 \to48.155.5→59.155.5 \to59.10.0→15.80.0 \to15.8
e5-large-v256.4→57.956.4 \to57.941.4→44.241.4 \to44.261.1→63.061.1 \to63.00.0→9.90.0 \to9.9
Given the instruction in its input (Qwen3-Embedding: its instruction mode)
Qwen3-Embedding-0.6B63.458.167.3−1.7
bge-large-en-v1.556.144.661.5−13.7
gte-large-en-v1.553.043.760.4−8.5
all-mpnet-base-v256.246.964.9−11.2
e5-large-v260.345.868.0−11.8

Table 10. InBedder’s other sets with the weights of Qwen3-1.7B, Llama-3.1-8B-Instruct and OLMo-3-7B-Instruct: each embedder alone, relayed, and given the instruction in its input.

On the embedder’s layers

The embedding keeps only what the embedder’s later layers read. Qwen3-Embedding-0.6B and gte-large pool with attention at every layer, so the weights can be relayed into some of their layers and not others: relayed into the second half alone, they give nearly the whole gain, and into the first half alone almost none (Figure 11), although the pooling token attends to the text at least as much in the first half as in the second. Averaged over the texts, the pooling token of the embedder alone puts 0.32 of its attention on the text in the first half of Qwen3-Embedding-0.6B’s layers and 0.30 in the second on NYT (IE: 0.24 and 0.23), and 0.81 and 0.71 in gte-large’s (IE: 0.53 and 0.42).

Figure 11. Relaying into half of the embedder’s layers, as a share of the every-layer gain.

On the text share

We compare the mass-preserving bias with the plain bias defined in § 3.1. What the LLM contributes is where each head reads within the text, not how much of its attention goes to the text. The mass-preserving bias holds each head’s attention on the text fixed, while the plain bias also lets it grow in the heads that agree with the LLM and shrink in the others; switching between them changes either score by about a point, a small fraction of the gain (Figure 12).

Figure 12. The plain bias minus the mass-preserving bias, with its 95% interval (bge-large).

Cost

Measured on one H100 at the runs’ batch sizes, over 256 NYT articles under the location question, a full pass of Qwen3-1.7B costs 4.6 ms per article and question, and relaying adds at most 0.3 ms to the embedder’s own pass, which takes 0.7 to 5.9 ms (Table 11).

Modelalonerelayed
Qwen3-1.7B, the full pass4.58
Qwen3-Embedding-0.6B2.282.61
bge-large-en-v1.50.700.98
gte-large-en-v1.51.131.40
all-mpnet-base-v22.582.56
e5-large-v25.885.99

Table 11. Milliseconds per text and question on one H100: the full pass of Qwen3-1.7B, and each embedder alone and relayed.

References

  1. [1]Ameen Ali, Itamar Zimerman, and Lior Wolf. The hidden attention of Mamba models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1516–1534, 2025. doi: 10.18653/v1/2025.acl-long.76.DOI
  2. [2]Parishad BehnamGhader, Vaibhav Adlakha, Marius Mosbach, Dzmitry Bahdanau, Nicolas Chapados, and Siva Reddy. LLM2Vec: Large language models are secretly powerful text encoders. In Conference on Language Modeling, 2024.arxiv.org/abs/2404.05961
  3. [3]Shijie Chen, Bernal Jiménez Gutiérrez, and Yu Su. Attention in large language models yields efficient zero-shot re-rankers. In International Conference on Learning Representations, 2025.arxiv.org/abs/2410.02642
  4. [4]Zifeng Cheng, Lingyun Qian, Zhiwei Jiang, Cong Wang, Yafeng Yin, Fei Shen, Ao Zhou, and Qing Gu. Focusing condition: Inference-time self-contrastive steering elicits better conditional text embeddings in LLMs. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1135–1147, 2026. doi: 10.18653/v1/2026.acl-long.50.DOI
  5. [5]Ameet Deshpande, Carlos Jimenez, Howard Chen, Vishvak Murahari, Victoria Graf, Tanmay Rajpurohit, Ashwin Kalyan, Danqi Chen, and Karthik Narasimhan. C-STS: Conditional semantic textual similarity. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 5669–5690, 2023. doi: 10.18653/v1/2023.emnlp-main.345.DOI
  6. [6]Yingchaojie Feng, Yiqun Sun, Yandong Sun, Minfeng Zhu, Qiang Huang, Anthony K. H. Tung, and Wei Chen. Don’t reinvent the wheel: Efficient instruction-following text embedding based on guided space transformation. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics, 2025.arxiv.org/abs/2505.24754
  7. [7]Mor Geva, Jasmijn Bastings, Katja Filippova, and Amir Globerson. Dissecting recall of factual associations in auto-regressive language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 12216–12235, 2023. doi: 10.18653/v1/2023.emnlp-main.751.DOI
  8. [8]David Gondek and Thomas Hofmann. Non-redundant data clustering. In Fourth IEEE International Conference on Data Mining (ICDM’04), pp. 75–82, 2004. doi: 10.1109/ICDM.2004.10104.DOI
  9. [10]Vitoria Guardieiro, Avishree Khare, Adam Stein, and Eric Wong. Instruction following by principled boosting attention of large language models. arXiv preprint arXiv:2506.17374, 2025.
  10. [11]Mykola Haltiuk and Aleksander Smywiński-Pohl. Model-aware tokenizer transfer. arXiv preprint arXiv:2510.21954, 2025.arxiv.org/abs/2510.21954
  11. [12]Amir Hertz, Ron Mokady, Jay Tenenbaum, Kfir Aberman, Yael Pritch, and Daniel Cohen-Or. Prompt-to-prompt image editing with cross-attention control. In International Conference on Learning Representations, 2023.arxiv.org/abs/2208.01626
  12. [13]Cheng-Yu Hsieh, Yung-Sung Chuang, Chun-Liang Li, Zifeng Wang, Long Le, Abhishek Kumar, James Glass, Alexander Ratner, Chen-Yu Lee, Ranjay Krishna, and Tomas Pfister. Found in the middle: Calibrating positional attention bias improves long context utilization. In Findings of the Association for Computational Linguistics: ACL 2024, pp. 14982–14995, 2024. doi: 10.18653/v1/2024.findings-acl.890.DOI
  13. [14]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022.arxiv.org/abs/2106.09685
  14. [15]Sarthak Jain and Byron C. Wallace. Attention is not explanation. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 3543–3556, 2019. doi: 10.18653/v1/N19-1357.DOI
  15. [16]Ting Jiang, Shaohan Huang, Zhongzhi Luan, Deqing Wang, and Fuzhen Zhuang. Scaling sentence embeddings with large language models. In Findings of the Association for Computational Linguistics: EMNLP 2024, 2024.arxiv.org/abs/2307.16645
  16. [17]Yibin Lei, Di Wu, Tianyi Zhou, Tao Shen, Yu Cao, Chongyang Tao, and Andrew Yates. Meta-task prompting elicits embeddings from large language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 10141–10157, 2024. doi: 10.18653/v1/2024.acl-long.546.DOI
  17. [18]Alexander C. Li, Yuandong Tian, Beidi Chen, Deepak Pathak, and Xinlei Chen. On the surprising effectiveness of attention transfer for vision transformers. In Advances in Neural Information Processing Systems, volume 37, pp. 113963–113990, 2024a. doi: 10.52202/079017-3619.
  18. [19]Yuhong Li, Yingbing Huang, Bowen Yang, Bharat Venkitesh, Acyr Locatelli, Hanchen Ye, Tianle Cai, Patrick Lewis, and Deming Chen. SnapKV: LLM knows what you are looking for before generation. In Advances in Neural Information Processing Systems, volume 37, pp. 22947–22970, 2024b.arxiv.org/abs/2404.14469
  19. [20]Zehan Li, Xin Zhang, Yanzhao Zhang, Dingkun Long, Pengjun Xie, and Meishan Zhang. Towards general text embeddings with multi-stage contrastive learning. arXiv preprint arXiv:2308.03281, 2023.arxiv.org/abs/2308.03281
  20. [21]Jingyu Liu, Beidi Chen, and Ce Zhang. Speculative prefill: Turbocharging TTFT with lightweight and training-free token importance estimation. In Proceedings of the 42nd International Conference on Machine Learning, 2025.arxiv.org/abs/2502.02789
  21. [22]Niklas Muennighoff, Nouamane Tazi, Loïc Magne, and Nils Reimers. MTEB: Massive text embedding benchmark. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, 2023.
  22. [23]Niklas Muennighoff, Hongjin Su, Liang Wang, Nan Yang, Furu Wei, Tao Yu, Amanpreet Singh, and Douwe Kiela. Generative representational instruction tuning. In International Conference on Learning Representations, 2025.arxiv.org/abs/2402.09906
  23. [24]Donglin Niu, Jennifer G. Dy, and Michael I. Jordan. Iterative discovery of multiple alternative clustering views. IEEE Transactions on Pattern Analysis and Machine Intelligence, 36(7):1340–1353, 2014. doi: 10.1109/TPAMI.2013.180.DOI
  24. [25]Long Ouyang, Jeff Wu, et al. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems, 2022.arxiv.org/abs/2203.02155
  25. [26]Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, Jake Vanderplas, Alexandre Passos, David Cournapeau, Matthieu Brucher, Matthieu Perrot, and Édouard Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12: 2825–2830, 2011.arxiv.org/abs/1201.0490
  26. [27]Letian Peng, Yuwei Zhang, Zilong Wang, Jayanth Srinivasa, Gaowen Liu, Zihan Wang, and Jingbo Shang. Answer is all you need: Instruction-following text embedding via answering the question. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 459–477, 2024. doi: 10.18653/v1/2024.acl-long.27.DOI
  27. [28]Nils Reimers and Iryna Gurevych. Sentence-BERT: Sentence embeddings using Siamese BERT-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 3982–3992, 2019. doi: 10.18653/v1/D19-1410.DOI
  28. [29]Andrew Rosenberg and Julia Hirschberg. V-measure: A conditional entropy-based external cluster evaluation measure. In Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP-CoNLL), pp. 410–420, 2007.
  29. [30]Jacob Mitchell Springer, Suhas Kotha, Daniel Fried, Graham Neubig, and Aditi Raghunathan. Repetition improves language model embeddings. In International Conference on Learning Representations, 2025.arxiv.org/abs/2402.15449
  30. [31]Hongjin Su, Weijia Shi, Jungo Kasai, Yizhong Wang, Yushi Hu, Mari Ostendorf, Wen-tau Yih, Noah A. Smith, Luke Zettlemoyer, and Tao Yu. One embedder, any task: Instruction-finetuned text embeddings. In Findings of the Association for Computational Linguistics: ACL 2023, 2023.arxiv.org/abs/2212.09741
  31. [32]Team Olmo. Olmo 3. arXiv preprint arXiv:2512.13961, 2025.
  32. [33]Raghuveer Thirukovalluru and Bhuwan Dhingra. GenEOL: Harnessing the generative power of LLMs for training-free sentence embeddings. In Findings of the Association for Computational Linguistics: NAACL 2025, pp. 2295–2308, 2025. doi: 10.18653/v1/2025.findings-naacl.122.DOI
  33. [34]Narek Tumanyan, Michal Geyer, Shai Bagon, and Tali Dekel. Plug-and-play diffusion features for text-driven image-to-image translation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1921–1930, 2023.arxiv.org/abs/2211.12572
  34. [35]Andreas Veit, Serge Belongie, and Theofanis Karaletsos. Conditional similarity networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1781–1789, 2017. doi: 10.1109/CVPR.2017.193.DOI
  35. [36]Praveen Venkateswaran and Danish Contractor. Spotlight your instructions: Instruction-following with dynamic attention steering. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3752–3770, 2026. doi: 10.18653/v1/2026.eacl-long.174.DOI
  36. [37]Kevin Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris, and Jacob Steinhardt. Interpretability in the wild: a circuit for indirect object identification in GPT-2 small. In International Conference on Learning Representations, 2023.arxiv.org/abs/2211.00593
  37. [38]Liang Wang, Nan Yang, Xiaolong Huang, Bixing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, and Furu Wei. Text embeddings by weakly-supervised contrastive pre-training. arXiv preprint arXiv:2212.03533, 2022.arxiv.org/abs/2212.03533
  38. [39]Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. Improving text embeddings with large language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2024.arxiv.org/abs/2401.00368
  39. [40]Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou. MiniLM: Deep self-attention distillation for task-agnostic compression of pre-trained transformers. In Advances in Neural Information Processing Systems, volume 33, pp. 5776–5788, 2020.arxiv.org/abs/2002.10957
  40. [41]Jason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V. Le. Finetuned language models are zero-shot learners. In International Conference on Learning Representations, 2022.arxiv.org/abs/2109.01652
  41. [42]Orion Weller, Benjamin Chang, Sean MacAvaney, Kyle Lo, Arman Cohan, Benjamin Van Durme, Dawn Lawrie, and Luca Soldaini. FollowIR: Evaluating and teaching information retrieval models to follow instructions. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pp. 11926–11942, 2025. doi: 10.18653/v1/2025.naacl-long.597.DOI
  42. [43]Sarah Wiegreffe and Yuval Pinter. Attention is not not explanation. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 11–20, 2019. doi: 10.18653/v1/D19-1002.DOI
  43. [44]Wenhao Wu, Yizhong Wang, Guangxuan Xiao, Hao Peng, and Yao Fu. Retrieval head mechanistically explains long-context factuality. In International Conference on Learning Representations, 2025.arxiv.org/abs/2404.15574
  44. [45]Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. In International Conference on Learning Representations, 2024a.arxiv.org/abs/2309.17453
  45. [46]Shitao Xiao, Zheng Liu, Peitian Zhang, Niklas Muennighoff, Defu Lian, and Jian-Yun Nie. C-Pack: Packed resources for general Chinese embeddings. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 641–649, 2024b. doi: 10.1145/3626772.3657878.DOI
  46. [47]Kosuke Yamada and Peinan Zhang. Out-of-the-box conditional text embeddings from large language models. arXiv preprint arXiv:2504.16411, 2025.arxiv.org/abs/2504.16411
  47. [48]An Yang et al. Owen3 technical report. arXiv preprint arXiv:2505.09388, 2025a.
  48. [49]Songlin Yang, Jan Kautz, and Ali Hatamizadeh. Gated delta networks: Improving Mamba2 with delta rule. In International Conference on Learning Representations, 2025b.arxiv.org/abs/2412.06464
  49. [50]Jingyang Yuan, Huazuo Gao, Damai Dai, Junyu Luo, Liang Zhao, Zhengyan Zhang, Zhenda Xie, Yuxing Wei, Lean Wang, Zhiping Xiao, Yuqing Wang, Chong Ruan, Ming Zhang, Wenfeng Liang, and Wangding Zeng. Native sparse attention: Hardware-aligned and natively trainable sparse attention. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 23078–23097, 2025. doi: 10.18653/v1/2025.acl-long.1126.DOI
  50. [51]Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. In International Conference on Learning Representations, 2017.arxiv.org/abs/1612.03928
  51. [52]Jiarui Zhang, Mahyar Khayatkhoei, Prateek Chhikara, and Filip Ilievski. MLLMs know where to look: Training-free perception of small visual details with multimodal LLMs. In International Conference on Learning Representations, 2025a.arxiv.org/abs/2502.17422
  52. [53]Qingru Zhang, Chandan Singh, Liyuan Liu, Xiaodong Liu, Bin Yu, Jianfeng Gao, and Tuo Zhao. Tell your model where to attend: Post-hoc attention steering for LLMs. In International Conference on Learning Representations, 2024a.arxiv.org/abs/2311.02262
  53. [54]Qingru Zhang, Xiaodong Yu, Chandan Singh, Xiaodong Liu, Liyuan Liu, Jianfeng Gao, Tuo Zhao, Dan Roth, and Hao Cheng. Model tells itself where to attend: Faithfulness meets automatic attention steering. arXiv preprint arXiv:2409.10790, 2024b.arxiv.org/abs/2409.10790
  54. [55]Wuwei Zhang, Fangcong Yin, Howard Yen, Danqi Chen, and Xi Ye. Query-focused retrieval heads improve long-context reasoning and re-ranking. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 23791–23805, 2025b. doi: 10.18653/v1/2025.emnlp-main.1214.
  55. [56]Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, Fei Huang, and Jingren Zhou. Qwen3 embedding: Advancing text embedding and reranking through foundation models. arXiv preprint arXiv:2506.05176, 2025c.arxiv.org/abs/2506.05176
  56. [57]Yeqin Zhang, Yunfei Wang, Jiaxuan Chen, Ke Qin, Yizheng Zhao, and Cam-Tu Nguyen. LLM-based embeddings: Attention values encode sentence semantics better than hidden states. In Proceedings of the 43rd International Conference on Machine Learning, 2026.arxiv.org/abs/2602.01572

Paper details

vlnc:W_ahfb7x3z
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents