Skip to main content
QUICK REVIEW

[Paper Review] Cross-Modal Retrieval in the Cooking Context: Learning Semantic Text-Image Embeddings

Micael Carvalho, Rémi Cadène|arXiv (Cornell University)|Apr 30, 2018
Multimodal Machine Learning ApplicationsComputer Science38 references37 citations
TL;DR

This paper proposes AdaMine, a joint cross-modal retrieval and classification learning framework that improves semantic text-image embedding for cooking applications by combining instance-level and semantic-level losses via a double-triplet loss. Evaluated on the large-scale Recipe1M dataset, AdaMine achieves state-of-the-art performance with a median rank of 13.2 in image-to-recipe retrieval, demonstrating superior generalization and fine-grained semantic alignment compared to prior methods.

ABSTRACT

Designing powerful tools that support cooking activities has rapidly gained popularity due to the massive amounts of available data, as well as recent advances in machine learning that are capable of analyzing them. In this paper, we propose a cross-modal retrieval model aligning visual and textual data (like pictures of dishes and their recipes) in a shared representation space. We describe an effective learning scheme, capable of tackling large-scale problems, and validate it on the Recipe1M dataset containing nearly 1 million picture-recipe pairs. We show the effectiveness of our approach regarding previous state-of-the-art models and present qualitative results over computational cooking use cases.

Motivation & Objective

  • To address the challenge of semantic heterogeneity and cultural variability in recipe and image data for cooking applications.
  • To improve cross-modal retrieval performance in large-scale settings where traditional pair-matching fails to generalize to similar but non-identical dishes.
  • To enhance the structure of the shared latent space by integrating high-level semantic class information directly into the embedding learning process.
  • To develop a parameter-efficient method that avoids overfitting and maintains model efficiency by avoiding separate classification heads.
  • To enable practical downstream cooking applications such as ingredient-based image retrieval and recipe modification with dietary constraints.

Proposed method

  • Proposes a joint objective function combining instance-based retrieval loss (L_ins) and semantic-based classification loss (L_sem) to jointly optimize embedding space structure.
  • Introduces a double-triplet loss mechanism that simultaneously enforces: (1) matching image and recipe pairs to be closer than non-matching pairs, and (2) same-class items (e.g., all pizzas) to be closer than cross-class items (e.g., pizza vs. salad).
  • Employs an adaptive triplet mining strategy to select informative triplets during training, improving convergence and representation quality.
  • Uses a Siamese-like deep neural network architecture to encode images and text (ingredients and instructions) into a shared embedding space.
  • Leverages the full recipe structure—ingredients and instructions—by concatenating their embeddings to enrich textual representation.
  • Trains the model end-to-end on the Recipe1M dataset, which contains nearly 1 million image-recipe pairs, to learn robust, generalizable cross-modal embeddings.

Experimental results

Research questions

  • RQ1Can jointly learning retrieval and semantic classification improve the generalization of cross-modal embeddings in large-scale cooking retrieval?
  • RQ2How does injecting high-level semantic class information into the embedding space affect retrieval performance compared to using only instance-level matching?
  • RQ3To what extent can the learned embedding space support fine-grained, semantic-aware retrieval, such as finding recipes with specific ingredients or modified versions of dishes?
  • RQ4Does the proposed double-triplet loss with adaptive mining outperform standard contrastive or triplet loss in terms of median rank and recall metrics?
  • RQ5Can the model effectively support downstream cooking applications like ingredient-based image search or dietary-restriction-aware recipe modification?

Key findings

  • AdaMine achieves a median rank (MedR) of 13.2 in image-to-recipe retrieval, significantly outperforming previous state-of-the-art models on the Recipe1M dataset.
  • The model achieves a MedR of 12.2 in recipe-to-image retrieval, demonstrating strong performance across both retrieval directions.
  • Removing either ingredients or instructions from the input leads to a sharp performance drop, with MedR increasing to 52.8 and 53.8 respectively, proving both textual components are essential.
  • When searching for ingredients like pineapple or strawberries within the pizza class, the model retrieves visually and semantically relevant images, including fruit pizzas, showing fine-grained semantic organization.
  • After removing broccoli from a recipe’s ingredients and instructions, the model retrieves images without broccoli, confirming the latent space correctly encodes ingredient presence or absence.
  • The ablation study confirms that AdaMine_ingr and AdaMine_instr alone perform poorly (MedR 39.0 and 39.2), highlighting the complementary role of both textual components in accurate retrieval.

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.