The Multimodal And Modular Ai Chef: Complex Recipe Generation From Imagery

David Noever,Samantha Elizabeth Miller Noever
2023-03-20
Abstract:The AI community has embraced multi-sensory or multi-modal approaches to advance this generation of AI models to resemble expected intelligent understanding. Combining language and imagery represents a familiar method for specific tasks like image captioning or generation from descriptions. This paper compares these monolithic approaches to a lightweight and specialized method based on employing image models to label objects, then serially submitting this resulting object list to a large language model (LLM). This use of multiple Application Programming Interfaces (APIs) enables better than 95% mean average precision for correct object lists, which serve as input to the latest Open AI text generator (GPT-4). To demonstrate the API as a modular alternative, we solve the problem of a user taking a picture of ingredients available in a refrigerator, then generating novel recipe cards tailored to complex constraints on cost, preparation time, dietary restrictions, portion sizes, and multiple meal plans. The research concludes that monolithic multimodal models currently lack the coherent memory to maintain context and format for this task and that until recently, the language models like GPT-2/3 struggled to format similar problems without degenerating into repetitive or non-sensical combinations of ingredients. For the first time, an AI chef or cook seems not only possible but offers some enhanced capabilities to augment human recipe libraries in pragmatic ways. The work generates a 100-page recipe book featuring the thirty top ingredients using over 2000 refrigerator images as initializing lists.
Computation and Language,Computer Vision and Pattern Recognition,Machine Learning
What problem does this paper attempt to address?
The problem this paper attempts to solve is how to generate complex recipes from images of ingredients in a refrigerator. Specifically, the authors compare monolithic multimodal approaches with lightweight, modular API pipeline methods. By combining image recognition and text generation technologies, the paper aims to achieve the following goals: 1. **Improve ingredient recognition accuracy**: Use image detection models (such as YOLOv5) to accurately identify the available ingredients in the refrigerator and generate the correct ingredient list. 2. **Generate recipes that meet specific needs**: Submit the identified ingredient list to large language models (such as GPT-4) to generate recipes that meet the user's specific needs, including cost, preparation time, dietary restrictions, portion size, and multi-meal planning. 3. **Enhance modularity and flexibility**: Through a modular API pipeline approach, each stage focuses on what it does best, thereby improving the overall system's efficiency and performance. The paper demonstrates through experiments that the modular approach excels in generating complex recipes, maintaining context and format better, whereas the monolithic multimodal model performs poorly in this regard. Additionally, the latest language models (such as GPT-4) also show significant advantages in generating high-quality recipes.