CHEF: Cross-modal Hierarchical Embeddings for Food Domain Retrieval
About
Despite the abundance of multi-modal data, such as image-text pairs, there has been little effort in understanding the individual entities and their different roles in the construction of these data instances. In this work, we endeavour to discover the entities and their corresponding importance in cooking recipes automaticall} as a visual-linguistic association problem. More specifically, we introduce a novel cross-modal learning framework to jointly model the latent representations of images and text in the food image-recipe association and retrieval tasks. This model allows one to discover complex functional and hierarchical relationships between images and text, and among textual parts of a recipe including title, ingredients and cooking instructions. Our experiments show that by making use of efficient tree-structured Long Short-Term Memory as the text encoder in our computational cross-modal retrieval framework, we are not only able to identify the main ingredients and cooking actions in the recipe descriptions without explicit supervision, but we can also learn more meaningful feature representations of food recipes, appropriate for challenging cross-modal retrieval and recipe adaption tasks.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image-to-recipe retrieval | Recipe1M 10k setup (test) | Recall@120.9 | 125 | |
| Recipe-to-image retrieval | Recipe1M 10k setup (test) | R@121.9 | 120 | |
| Image-to-recipe retrieval | Recipe1M 1k setup (test) | Recall@149.4 | 116 | |
| Recipe-to-image retrieval | Recipe1M 1k setup (test) | Recall@149.8 | 110 | |
| Image-to-recipe retrieval | Recipe1M 1.0 (test) | Median Rank1.6 | 35 | |
| Recipe-to-image retrieval | Recipe1M 1.0 (test) | MedR1.6 | 30 | |
| Synthetic Image-to-Recipe Retrieval | Recipe1M 10 random 1K subsets | Median Rank1 | 6 | |
| Recipe-to-Image Synthesis | Recipe1M 10 random 1K subsets | FID23 | 4 | |
| Recipe-to-Synthetic Image Retrieval | Recipe1M 10 random 1K subsets | Median Rank (MedR)1 | 4 |