Text-Guided Semantic Image Encoder

Raghuveer Thirukovalluru, Xiaochuang Han, Bhuwan Dhingra, Emily Dinan, Maha ElbayadarXiv 2025 · DOI

Abstract

Standard vision-language models (VLMs) typically process images blindly, ignoring the user's question until the final language modeling stage. This query-agnostic approach creates information bottlenecks and computational inefficiencies. We introduce TIE (Text-Guided Semantic Image Encoder), which allows the image encoder to "see" the text query during the encoding process. By integrating one-way cross-attention within the Vision Transformer layers, TIE produces semantically enriched visual tokens. Our results show that TIE improves performance by up to 6 points on complex tasks while using 50% fewer image tokens, offering a more efficient and context-aware paradigm for multimodal understanding.

Introduction: The Problem of Query-Agnostic Encoding

Current state-of-the-art VLMs follow a paradigm where the image encoder processes the entire image into a fixed set of tokens without any knowledge of the downstream task. Whether the user asks about a small detail in the background or a prominent object in the foreground, the encoder produces the exact same representation.

This approach is inefficient for two primary reasons. First, it creates an information bottleneck; to ensure no details are missed, models often use a high number of image tokens, which increases computational costs for the Large Language Model (LLM). Second, the encoder lacks focus, spending equal effort on irrelevant regions as it does on the subject of the query.

Comparison between a standard query-agnostic image encoder and the proposed Text-Guided Semantic Image Encoder (TIE).

Methods: Text-Guided Semantic Image Encoder (TIE)

The core innovation of this work is the integration of text guidance directly into the encoder's layers, transforming image encoding into a dynamic, context-aware process.

Architecture and Text Integration

TIE takes a text query—processed either by a frozen external encoder or the VLM’s own input embeddings—and concatenates these text tokens with the image patch embeddings. Within the Vision Transformer (ViT) layers, visual patches attend to the text tokens via one-way cross-attention. This allows the image to refine its features based on the text while ensuring the text tokens remain unchanged.

Training and Inference Efficiency

By producing "query-conditioned" visual tokens, the encoder can prioritize relevant information. This semantic enrichment allows the model to achieve higher accuracy using significantly fewer image tiles (e.g., 4 tiles instead of 8), leading to faster inference. During training, the TIE layers are optimized while the LLM and text encoders typically remain frozen, as illustrated below.

The TIE framework during training and inference stages, highlighting the flow of information and frozen components.

Experimental Results

The authors evaluated TIE on a suite of 14 benchmarks focusing on OCR, document understanding, visual reasoning, and captioning.

  • Performance Boost: TIE-equipped models (PLM-TIE) improved average scores by +1.5 points at the 1B scale and +1.3 points at the 3B scale. On detail-heavy tasks like DocVQA and InfoVQA, gains reached up to +6 points.
  • Efficiency Gains: A TIE model using only 4 tiles outperformed a standard VLM using 8 tiles, demonstrating that context-aware encoding can compensate for lower visual resolution.
  • Visual Grounding: Qualitative analysis shows that TIE's attention shifts specifically to relevant image regions (e.g., a date field on a receipt) based on the question asked.

Conclusion

TIE proves that early fusion of text and vision within the encoder makes visual representations fundamentally more useful. While the study was limited to 1B and 3B parameter scales, the results suggest that text-conditioning helps encoders learn to identify salient features better than standard contrastive pretraining. Future work will explore deeper integration with LLM contextual representations to create even more tightly-coupled vision-language backbones.

Summary updated

BibTeX
@misc{thirukovalluru2025text,
  author = {Raghuveer Thirukovalluru and Xiaochuang Han and Bhuwan Dhingra and Emily Dinan and Maha Elbayad},
  title = {{Text-Guided Semantic Image Encoder}},
  year = {2025},
  eprint = {2511.20770},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.20770},
}
Figure