[Paper Review] GILT: Generating Images from Long Text
This paper introduces GILT, a novel task and baseline for generating high-resolution (256×256) food images from long, complex text descriptions such as full recipes, without direct visual descriptions. The method uses StackGAN-v2 conditioned on two recipe embedding types—cosine-similarity-based (NOREG) and semantic-regularized (REG)—and finds that NOREG outperforms REG in generating more diverse, photo-realistic images despite REG's better performance on classification tasks.
Creating an image reflecting the content of a long text is a complex process that requires a sense of creativity. For example, creating a book cover or a movie poster based on their summary or a food image based on its recipe. In this paper we present the new task of generating images from long text that does not describe the visual content of the image directly. For this, we build a system for generating high-resolution 256 $ imes$ 256 images of food conditioned on their recipes. The relation between the recipe text (without its title) to the visual content of the image is vague, and the textual structure of recipes is complex, consisting of two sections (ingredients and instructions) both containing multiple sentences. We used the recipe1M dataset to train and evaluate our model that is based on a the StackGAN-v2 architecture.
Motivation & Objective
- To establish a new task: generating high-resolution images from long, non-visual text descriptions such as full recipes.
- To develop a baseline system for image generation conditioned on complex, multi-section recipes (ingredients and instructions) using conditional GANs.
- To compare two recipe embedding methods—NOREG (no semantic regularization) and REG (with semantic regularization)—in the context of text-to-image generation.
- To evaluate image quality and diversity using both quantitative metrics (Inception Score, MS-SSIM) and human evaluation on image realism, recipe-image relevance, and visual plausibility.
Proposed method
- The model uses StackGAN-v2 to generate 256×256 images in a multi-stage process, starting from low-resolution noise vectors and refining through multiple generator and discriminator stages.
- The generator and discriminator are conditioned on a single embedding vector representing the entire recipe (excluding the title), derived from a joint embedding space learned via cosine similarity loss between recipe and image embeddings.
- Two embedding methods are used: NOREG, based solely on cosine similarity between recipe and image embeddings; and REG, which adds a high-level classification loss to regularize the embedding space.
- The recipe embeddings are computed via a two-step process: preliminary embeddings for ingredients and instructions are first learned, then concatenated and jointly embedded with the image in a shared semantic space.
- The training objective follows the standard minimax GAN loss, with conditional GAN formulation: min_G max_D E[log D(x)] + E[log(1 - D(G(z,c)))] where c is the recipe embedding.
- Evaluation includes Inception Score, MS-SSIM for diversity, and human ranking on three aspects: recipe-image relevance, image-realism, and image-recipe consistency.
Experimental results
Research questions
- RQ1Can a conditional GAN generate high-resolution, photo-realistic food images from long, non-visual text descriptions such as full recipes?
- RQ2How do different recipe embedding strategies—specifically with and without semantic regularization—affect image quality and diversity in text-to-image generation?
- RQ3Does a model trained on a low-quality, high-variability dataset like recipe1M still produce realistic and diverse outputs despite image noise and poor lighting?
- RQ4Is the performance of a recipe embedding method in classification tasks (e.g., 1048 food classes) predictive of its success in image generation?
- RQ5To what extent do human judgments of image realism and recipe relevance correlate with automated metrics like Inception Score and MS-SSIM?
Key findings
- The NOREG embedding method (without semantic regularization) achieved a higher Inception Score (4.55 ± 0.20) than REG (4.42 ± 0.17), indicating better image quality and diversity.
- Human evaluation showed that NOREG generated images were ranked significantly higher in realism (3.72) and recipe-image relevance (2.88) compared to REG (3.05 and 2.62, respectively).
- MS-SSIM scores confirmed that NOREG generated more diverse images (0.07) than REG (0.17), with lower scores indicating greater image diversity.
- Despite REG's superior performance in the original classification task (as reported in [11]), it underperformed in image generation, producing blurrier and less realistic outputs.
- The model successfully generated realistic images of porridge-like foods (e.g., soups, rice, pasta), but struggled with distinctively shaped foods (e.g., hamburgers, drinks), likely due to low image quality in the training dataset.
- In some cases, generated images were ranked higher than real images in human evaluations, indicating the model's ability to produce plausible, realistic outputs.
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.