[Paper Review] The Art of Food: Meal Image Synthesis from Ingredients
This paper proposes a novel generative model that synthesizes photo-realistic meal images from textual ingredient descriptions using an attention-based ingredient-image association model combined with StackGAN-v2 and a cycle-consistency regularization. The method achieves state-of-the-art performance in image quality and retrieval accuracy, demonstrating effective disentanglement of ingredients and visual appearance through learned embeddings.
In this work we propose a new computational framework, based on generative deep models, for synthesis of photo-realistic food meal images from textual descriptions of its ingredients. Previous works on synthesis of images from text typically rely on pre-trained text models to extract text features, followed by a generative neural networks (GANs) aimed to generate realistic images conditioned on the text features. These works mainly focus on generating spatially compact and well-defined categories of objects, such as birds or flowers. In contrast, meal images are significantly more complex, consisting of multiple ingredients whose appearance and spatial qualities are further modified by cooking methods. We propose a method that first builds an attention-based ingredients-image association model, which is then used to condition a generative neural network tasked with synthesizing meal images. Furthermore, a cycle-consistent constraint is added to further improve image quality and control appearance. Extensive experiments show our model is able to generate meal image corresponding to the ingredients, which could be used to augment existing dataset for solving other computational food analysis problems.
Motivation & Objective
- To address the challenge of generating realistic, diverse meal images from ingredient lists, which is complicated by ingredient appearance changes due to cooking and visual dissolution of some ingredients.
- To improve image quality and disentangle ingredient-specific visual features from nuisance factors like viewpoint and lighting.
- To enable data augmentation for computational food analysis by generating realistic synthetic meal images with controlled ingredient composition.
- To model the complex, non-linear relationship between ingredient sets and their resulting visual appearance in prepared meals.
Proposed method
- An attention-based recipe association model is trained to map ingredient descriptions to image features in a shared embedding space (FoodSpace), learning to associate ingredients with their visual appearance.
- The model uses StackGAN-v2 as the generator, conditioned on the ingredient features extracted from the attention model, to synthesize images from random noise and ingredient embeddings.
- A cycle-consistency regularization is introduced by encoding generated images back into the ingredient space, enforcing that the reconstructed ingredients match the original input ingredients.
- The image encoder from the attention model is reused in the generator to ensure consistent feature representation across the image generation and reconstruction paths.
- The model processes ingredients through a canonical vocabulary to standardize input representation, improving generalization and disentanglement.
- Linear interpolation in FoodSpace is used to visualize gradual changes in image appearance as ingredients are added or removed.
Experimental results
Research questions
- RQ1Can a deep generative model synthesize photo-realistic meal images conditioned solely on a list of ingredients, capturing both visual appearance and spatial layout?
- RQ2How can ingredient-specific visual features be disentangled from nuisance factors such as viewpoint and lighting in generated images?
- RQ3To what extent does cycle-consistency regularization improve the quality and fidelity of generated meal images?
- RQ4Can the model generate images that are semantically aligned with the input ingredients, even when ingredients are visually ambiguous or absent in the final image (e.g., salt, oil)?
Key findings
- The proposed model achieves a Fréchet Inception Distance (FID) of 81.13 on the muffin subset, outperforming StackGAN-v2's FID of 104.73, indicating superior image quality.
- On the salad subset, the model achieves an Inception Score (IS) of 66.15, compared to StackGAN-v2’s 58.40, showing better diversity and quality in generated images.
- The median rank (MedR) for recipe retrieval using synthesized images is significantly lower with the proposed model (e.g., 103.3 for cookies) than with StackGAN-v2 (217.5), indicating better semantic alignment.
- Linear interpolation in FoodSpace successfully visualizes the gradual removal of target ingredients (e.g., tomato, blueberry), confirming the model’s ability to control appearance through the latent space.
- Generated images with the same random vector but different ingredients show consistent viewpoint and lighting, while images with the same ingredients but different random vectors vary in viewpoint, confirming disentanglement of content and style.
- The model demonstrates that processing ingredients into a canonical vocabulary is critical for effective image synthesis and disentanglement.
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.