Skip to main content
QUICK REVIEW

[Paper Review] Recipe1M+: A Dataset for Learning Cross-Modal Embeddings for Cooking Recipes and Food Images

Javier Marín, Aritro Biswas|arXiv (Cornell University)|Oct 14, 2018
Nutritional Studies and DietMedicine14 citations
TL;DR

Recipe1M+ introduces a large-scale, structured dataset of over one million cooking recipes and 13 million food images, enabling training of deep neural networks to learn joint cross-modal embeddings for recipes and images. With semantic regularization via a high-level classification objective, the model achieves human-level performance on image-recipe retrieval and enables meaningful semantic vector arithmetic, such as generating 'lettuce wraps' from 'tacos' via concept substitution.

ABSTRACT

In this paper, we introduce Recipe1M+, a new large-scale, structured corpus of over one million cooking recipes and 13 million food images. As the largest publicly available collection of recipe data, Recipe1M+ affords the ability to train high-capacity modelson aligned, multimodal data. Using these data, we train a neural network to learn a joint embedding of recipes and images that yields impressive results on an image-recipe retrieval task. Moreover, we demonstrate that regularization via the addition of a high-level classification objective both improves retrieval performance to rival that of humans and enables semantic vector arithmetic. We postulate that these embeddings will provide a basis for further exploration of the Recipe1M+ dataset and food and cooking in general. Code, data and models are publicly available.

Motivation & Objective

  • To address the lack of large-scale, multimodal datasets for learning joint representations of cooking recipes and food images.
  • To enable high-capacity model training on aligned, structured recipe and image data for improved cross-modal understanding.
  • To develop a neural model that learns semantically regularized embeddings capable of supporting advanced tasks like semantic arithmetic and retrieval.
  • To demonstrate that regularization with high-level classification improves both retrieval accuracy and semantic compositionality in embedding space.
  • To release a public resource (code, data, models) to advance research in food understanding, recipe generation, and cross-modal learning.

Proposed method

  • The authors construct Recipe1M+, a dataset of 1M recipes and 13M food images collected from online sources, with structured annotations for ingredients, instructions, and image metadata.
  • They train a multimodal neural network to jointly embed recipes (text) and images into a shared semantic space using contrastive learning objectives.
  • A high-level classification head is added to the model to regularize the embedding space, improving semantic alignment and generalization.
  • The model is fine-tuned using a combination of contrastive loss for cross-modal alignment and cross-entropy loss for high-level food category prediction.
  • Semantic vector arithmetic is performed by manipulating vector representations in the embedding space, such as analogical reasoning (e.g., 'taco' - 'tortilla' + 'lettuce' → 'lettuce wrap').
  • Fractional arithmetic is applied by interpolating between two concept vectors (e.g., 'burrito' × x + 'sandwich' × (1−x)) to explore continuous transitions in recipe and image space.

Experimental results

Research questions

  • RQ1Can a large-scale, multimodal dataset of recipes and images enable training of deep models that achieve human-level performance on image-recipe retrieval?
  • RQ2Does adding a high-level classification objective to the training objective improve the semantic quality and generalization of cross-modal embeddings?
  • RQ3Can learned embeddings support meaningful semantic vector arithmetic, such as analogical reasoning and interpolation between food concepts?
  • RQ4How does the scale and structure of Recipe1M+ compare to prior datasets in terms of data quality and model performance?
  • RQ5To what extent can the learned embeddings support novel applications like recipe modification or cross-modal generation?

Key findings

  • The model trained on Recipe1M+ achieves retrieval performance comparable to human performance on the image-recipe retrieval task, as validated via Amazon Mechanical Turk (AMT) evaluation.
  • The addition of a high-level classification objective significantly improves retrieval accuracy and enables more semantically meaningful vector arithmetic, such as generating 'lettuce wrap' from 'taco' via substitution.
  • The model trained on Recipe1M+ produces distinct and interpretable results across fractional arithmetic coefficients, unlike the baseline model, which shows limited variation between coefficients.
  • The model successfully interpolates between food concepts (e.g., 'curry' and 'soup') in both image and recipe embedding spaces, producing visually and semantically coherent transitions.
  • The extended dataset (Recipe1M+) shows minimal noise increase compared to the original Recipe1M, and improves performance on the Food-101 benchmark, indicating strong generalization capacity.
  • The learned embeddings support compositional reasoning, such as generating new dish concepts through vector operations, suggesting potential for recipe modification and cross-modal generation.

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.