Skip to main content
QUICK REVIEW

[Paper Review] LEWIS: Latent Embeddings for Word Images and their Semantics

Albert Gordo, Jon Almazán|arXiv (Cornell University)|Sep 21, 2015
Multimodal Machine Learning ApplicationsComputer Science24 references6 citations
TL;DR

LEWIS proposes a CNN-based model that directly predicts semantic concepts from word images without transcription, using a weighted ranking loss to embed both images and concepts in a shared latent space. It achieves high accuracy (up to 95% mAP) in zero-shot generalization, outperforming transcription-based baselines by learning semantics end-to-end from pixels to concepts.

ABSTRACT

The goal of this work is to bring semantics into the tasks of text recognition and retrieval in natural images. Although text recognition and retrieval have received a lot of attention in recent years, previous works have focused on recognizing or retrieving exactly the same word used as a query, without taking the semantics into consideration. In this paper, we ask the following question: \emph{can we predict semantic concepts directly from a word image, without explicitly trying to transcribe the word image or its characters at any point?} For this goal we propose a convolutional neural network (CNN) with a weighted ranking loss objective that ensures that the concepts relevant to the query image are ranked ahead of those that are not relevant. This can also be interpreted as learning a Euclidean space where word images and concepts are jointly embedded. This model is learned in an end-to-end manner, from image pixels to semantic concepts, using a dataset of synthetically generated word images and concepts mined from a lexical database (WordNet). Our results show that, despite the complexity of the task, word images and concepts can indeed be associated with a high degree of accuracy

Motivation & Objective

  • To enable semantic understanding of word images beyond exact lexical matching, particularly in urban scene understanding.
  • To address the limitations of two-step approaches that rely on imperfect transcription and out-of-vocabulary word handling.
  • To learn a compact, shared embedding space where word images and semantic concepts are jointly represented.
  • To enable zero-shot generalization to unseen words by leveraging semantic similarity through shared representations.
  • To generate a large-scale, semantically annotated dataset of synthetic word images for future research.

Proposed method

  • A deep convolutional neural network (CNN) is trained with a weighted ranking loss to ensure relevant semantic concepts are ranked higher than irrelevant ones for a given word image.
  • The model learns two embedding functions: one for word images (via FC7 layer) and one for semantic concepts (via FC8 layer), both mapping to a shared D-dimensional Euclidean space.
  • The final layer’s weights serve as transductive embeddings for known concepts, while the FC7 layer provides inductive embeddings for unseen word images.
  • The network is trained end-to-end on synthetically generated word images paired with semantic concepts mined from WordNet.
  • Features are L2-normalized for similarity computation in retrieval tasks, using dot product for matching.
  • The approach supports semantic queries and operations like concept vector addition/subtraction for complex search.

Experimental results

Research questions

  • RQ1Can semantic concepts be predicted directly from word image pixels without explicit transcription?
  • RQ2Can a deep CNN learn a shared embedding space where word images and semantic concepts are semantically aligned?
  • RQ3How well does the model generalize to out-of-vocabulary words not seen during training?
  • RQ4Does learning semantics directly in the feature space outperform a two-step approach based on word transcription?
  • RQ5Can the model support complex semantic queries through vector arithmetic on concept embeddings?

Key findings

  • LEWIS achieves 95% mean average precision (mAP) on the image-to-concept task when trained with semantic objectives, compared to only 59% with a two-step baseline using CNN-Dict 7 features.
  • The model generalizes to unseen words with 56.1% mAP (K=128, l=7) and 61.9% mAP (K=256, l=7), demonstrating strong zero-shot capability.
  • Image-to-image retrieval shows that LEWIS maintains high performance at higher k-ranks, while CNN-Dict 7 features degrade rapidly beyond k=1 due to their focus on exact word matching.
  • Qualitative results show that semantically similar concepts are embedded in nearby regions of the latent space, even when not in ground truth.
  • Concept vector arithmetic (e.g., addition/subtraction) enables meaningful complex queries, such as retrieving images related to 'pizzeria' by combining 'restaurant' and 'food'.
  • The model successfully retrieves images with different transcriptions but shared semantics, demonstrating robustness to visual variation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.