Optimizing Ingredient Substitution Using Large Language Models to Enhance Phytochemical Content in Recipes
Luis Rita, Josh Southern, Ivan Laponogov, Kyle Higgins, Kirill, Veselkov

TL;DR
This paper demonstrates how large language models can be fine-tuned to optimize ingredient substitutions in recipes, enhancing phytochemical content and contributing to computational gastronomy and healthier eating practices.
Contribution
It introduces a method for fine-tuning LLMs to predict ingredient substitutions that increase phytochemical content, with improved accuracy and a large set of enriched recipes.
Findings
Improved Hit@1 accuracy from 34.53% to 38.03% on the original dataset.
Generated 1,951 phytochemically enriched ingredient pairs.
Created 1,639 unique recipes with enhanced phytochemical content.
Abstract
In the emerging field of computational gastronomy, aligning culinary practices with scientifically supported nutritional goals is increasingly important. This study explores how large language models (LLMs) can be applied to optimize ingredient substitutions in recipes, specifically to enhance the phytochemical content of meals. Phytochemicals are bioactive compounds found in plants, which, based on preclinical studies, may offer potential health benefits. We fine-tuned models, including OpenAI's GPT-3.5, DaVinci, and Meta's TinyLlama, using an ingredient substitution dataset. These models were used to predict substitutions that enhance phytochemical content and create a corresponding enriched recipe dataset. Our approach improved Hit@1 accuracy on ingredient substitution tasks, from the baseline 34.53 plus-minus 0.10% to 38.03 plus-minus 0.28% on the original GISMo dataset, and from…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNutrition, Genetics, and Disease
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · 15 Ways to Contact How can i speak to someone at Delta Airlines · Attention Is All You Need · Byte Pair Encoding · Softmax · Layer Normalization · Dropout · Residual Connection · Attention Dropout · Linear Layer
