[Paper Review] Learning Cross-Modal Embeddings with Adversarial Networks for Cooking Recipes and Food Images
This paper proposes ACME, an end-to-end adversarial framework for learning cross-modal embeddings between cooking recipes and food images. By combining hard sample mining, adversarial modality alignment, and cross-modal translation consistency, ACME achieves state-of-the-art performance on the Recipe1M benchmark, significantly improving retrieval accuracy and semantic alignment across modalities.
Food computing is playing an increasingly important role in human daily life, and has found tremendous applications in guiding human behavior towards smart food consumption and healthy lifestyle. An important task under the food-computing umbrella is retrieval, which is particularly helpful for health related applications, where we are interested in retrieving important information about food (e.g., ingredients, nutrition, etc.). In this paper, we investigate an open research task of cross-modal retrieval between cooking recipes and food images, and propose a novel framework Adversarial Cross-Modal Embedding (ACME) to resolve the cross-modal retrieval task in food domains. Specifically, the goal is to learn a common embedding feature space between the two modalities, in which our approach consists of several novel ideas: (i) learning by using a new triplet loss scheme together with an effective sampling strategy, (ii) imposing modality alignment using an adversarial learning strategy, and (iii) imposing cross-modal translation consistency such that the embedding of one modality is able to recover some important information of corresponding instances in the other modality. ACME achieves the state-of-the-art performance on the benchmark Recipe1M dataset, validating the efficacy of the proposed technique.
Motivation & Objective
- To address the challenge of cross-modal retrieval between cooking recipes and food images, where modality distribution shifts and information loss hinder performance.
- To improve embedding quality by aligning heterogeneous feature distributions of recipes and images through adversarial training.
- To ensure semantic consistency by enforcing that one modality's embedding can reconstruct key information from the other modality.
- To overcome limitations of traditional triplet loss, such as slow convergence and poor hard negative mining, via a novel sampling strategy.
- To enable practical health and nutrition applications by learning a shared semantic space for recipe and image retrieval.
Proposed method
- Introduces a hard sample mining strategy within a triplet loss framework to improve convergence and retrieval performance.
- Employs an adversarial loss to align the marginal distributions of recipe and image embeddings, making them indistinguishable in the shared space.
- Implements cross-modal translation components: a recipe-to-image generator and an image-to-ingredients predictor to enforce consistency.
- Trains the entire framework end-to-end using a multi-task loss combining triplet loss, adversarial loss, and reconstruction losses.
- Uses a Siamese network architecture with shared weights for encoding recipes (LSTM) and images (CNN), followed by a shared embedding layer.
- Applies instance-level normalization and feature-level normalization to stabilize training and improve generalization.
Experimental results
Research questions
- RQ1Can adversarial training effectively align the feature distributions of heterogeneous modalities like recipes and food images?
- RQ2Does hard sample mining in a triplet loss framework improve convergence and retrieval accuracy in cross-modal learning?
- RQ3Can cross-modal translation consistency enhance semantic alignment and reduce information loss in shared embeddings?
- RQ4How does the proposed ACME framework compare to state-of-the-art methods on large-scale cross-modal retrieval benchmarks?
- RQ5To what extent can the learned embeddings support practical applications like recipe retrieval from food images?
Key findings
- ACME achieves state-of-the-art performance on the Recipe1M benchmark, outperforming existing methods in cross-modal retrieval accuracy.
- The ablation study confirms that all components—hard sampling, adversarial alignment, and cross-modal consistency—contribute significantly to performance gains.
- Qualitative results show that retrieved images are visually similar to ground truth, even when query images are ambiguous or low-resolution.
- The cross-modal translation components generate plausible food images from recipes and accurately predict ingredients from images, demonstrating semantic fidelity.
- The model generalizes well across diverse food categories, including complex dishes like chicken soup and fruit salad, where visual cues are subtle.
- The framework enables effective retrieval even when the query modality contains noisy or incomplete information, such as a recipe with missing ingredients or a blurred image.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.