arXiv:2610.18047cs.AIOct 2026

Manuscript Offprint

arXiv:2610.18047

Beyond Black Boxes: Visual Grounding for Text Embeddings

Slimane Larabi

Abstract

In this paper, our goal is to represent text embeddings as sketches for three main reasons. First, to visualize text representation and to explore their potential for AI explainability. Second, to investigate the potential benefits of the sketch-based representation for information retrieval. Third, to explore their potential for reasoning, drawing inspiration from the concept of mental imagery. We propose a sketch-based visual grounding framework that transforms text representations into visual topographic sketches. Our approach aims to emphasise the semantics content encoded in the text embeddings through the corresponding sketch.

Evaluations are conducted on the MS-COCO dataset to examine the utility of these sketches for text retrieval. The comparative study of SBERT and Sketch-based method reveals that SBERT retains an advantage in strict top-1 retrieval accuracy while achieving comparable performance to the sketch-based method in top-5 retrieval. A cascaded approach combining SBERT and the sketch-based method outperforms SBERT alone, suggesting that the Sketch-based representation could offer significant potential for information retrieval if trained directly on text.

1 Introduction

Recent computer vision models and text embedding frameworks, such as Sentence-BERT (SBERT) [1], employ high-dimensional vector spaces to rep-resent the semantics of images, videos, and their captions. To generate this fixed-size representation, SBERT, for instance, adapts pre-trained Transformer architectures using Siamese and triplet network structures. These representations enables efficient assessment of semantic similarity using cosine similarity. However, while these representations excel at their respective tasks, they remain difficult to interpret that hinders efforts to improve model explainability.

Fixed-size embeddings can lose fine-grained semantic information as text length increases. They may be also sensitive to minor natural variations or adversarial perturbations [4] [2] [3]. It is also worth noting their difficulty in conveying granular semantic details or capturing long-range dependencies [6] [5]. To the best of our knowledge, standard text encoders have not been used to project linguistic descriptions onto topographic sketches. In the present work, the sketch is derived from the SBERT vector; consequently, these limitations are inherited rather than resolved. Investigating these aspects will be the subject of future work, in which the sketch would be generated directly from the text by an end-to-end trained model, rather than from SBERT representations. The fundamental challenge, therefore, lies in bridging the gap between abstract mathematical representations and intuitive human understanding. This requires a mechanism capable of transforming opaque vector spaces into explicit, visually analyzable artifacts (such as sketches) that preserve rich semantic relationships while offering greater transparency.

In this paper, we propose a novel framework that transforms the vector representations of a sentence (e.g. an image or video caption) into structured topographic sketch. Figure 1 illustrates sketches generated for two captions describing the same visual content. Unlike conventional text-embedding models, our approach provides an explicit visual representation of the embedding, which can be used to improve the SBERT performance in various applications (e.g. sentence retrieval, reasoning). Our comprehensive evaluations reveal important performance trade-offs: while pure SBERT maintains an advantage in strict top-1 precision, the sketch-based representation closely approaches SBERT performance at top-5 retrieval under comparable settings and combining SBERT and Sketch improves overall performance.

This paper is organized as follows: Section 2 reviews SBERT embeddings. Section 3 presents our framework for mapping SBERT caption embeddings to topographic sketches via joint contrastive and spatial regularization. Section 4 provides an extensive evaluation and comparative study of sketch

Figure

Figure

Sketches generated for two similar captions.

(Left) "The plate is filled with meat and vegetables.",

(Right) A piece of chicken diced potatoes and some broccoli on a plate."

Figure 1: Sketches generated for two similar captions.(Left) "The plate is filled with meat and vegetables.", (Right) A piece of chicken diced potatoes and some broccoli on a plate."

representations against standard SBERT. Finally, Section 5 concludes with a summary of finding and future perspectives.