Skip to content

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

Oct 2026 · 0 citations · 56 references
Computer Science

TL;DR

Attention Relay is proposed, which passes the attention weights an LLM produces to the embedder's own attention, which selects which content in the text matters and makes the aspect of the text that the instruction asks about dominant in the embedding.

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.

View source

Similar papers

#machine learning Preprint Oct 2026

Two Vectors Replace In-Context Demos: Structured Task Adaptation via Embeddings

In-context learning (ICL) adapts frozen large multimodal models (LMMs) to new tasks from a few demonstrations (demos), but re-encodes them at every query, where each demo image adds up to hundreds of visual tokens. Demo-free methods remove this cost with a compact task state. However, they add it at locations searched...

Xin-Heng Ding, Nai-Chen Shi, Jia-Wei Zhang · 1 citation
Preprint Nov 2026

When Does Reusing Layers Help Multimodal Embeddings?

We ask whether a compact universal multimodal embedding models can produce better search embeddings by running the same layers again. Looped transformers add computation with nearly unchanged model size, making them an appealing alternative to a larger encoder. Their success in language-model reasoning and recent use f...

Zhi-Zhang Hu, Yue Zhang · 0 citations
Preprint Oct 2026

Encoder-Free Multimodal LLMs Learn Implicit Encoders

We empirically analyze two recently proposed encoder-free multimodal LLMs, Gemma-4 12B and Inkling-Small. Unlike previous multimodal LLMs, these models do not use modality-specific encoders to extract tokenized embeddings representing audio and image input; instead, they directly feed windows of samples, pixels, or spe...

David F. Harwath, Desh Raj, Xavier Velez et al. · 1 citation
Preprint Nov 2026

InCue: Making Better Use of What Multimodal LLMs Already See at Test Time

Even when multimodal large language models (MLLMs) answer incorrectly, their internal cues often point to the relevant region. A widely used remedy re-presents the cue-selected region as an enlarged crop to supply finer detail. However, we find that much of its gain requires no new detail: it largely survives when the...

Shu-Wei Wu, Si-Yue Yu, Longin Jan Latecki · 0 citations
#machine learning Preprint Oct 2026

Choosing the Number of Attention Heads from Intrinsic Dimension: A Small-Scale Study

The number of attention heads in a transformer is usually set by convention or grid search. We test a simple heuristic for setting it in advance: estimate the intrinsic dimension of token representations without labels, and use roughly that many heads. We estimate intrinsic dimension with a nested-dropout VAE trained o...

Arjun Boya, Charan Sai Bandaru, Masthanaiah Pillimetla et al. · 0 citations

Related blog posts

MIT News · Artificial Intelligence Nov 17, 2026

Learning the language of machine learning

By studying the computational foundations of language learning, Associate Professor Jacob Andreas builds intelligent systems that can communicate effectively with humans.

MIT News · Artificial Intelligence Aug 27, 2026

Looking beyond natural sequences

A new machine-learning framework aims to improve the success rate of computational protein design while moving away from results that reproduce sequences found in nature.

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