Investigating the Ability of Large Language Models to Analyze Recipes for Diabetes
cs.CL, cs.AI
Submitted: 2026-09-03
Updated: 2026-09-03
Code: https://github.com/revathyramanan/LLMs-Diabetes-Recipes
License: http://creativecommons.org/licenses/by/4.0/
The gist: Several studies have evaluated the ability of Large Language Models (LLMs) for meal planning, yielding positive outcomes.
Terminology
Abstract
Several studies have evaluated the ability of Large Language Models (LLMs) for meal planning, yielding positive outcomes. These models can process natural language inputs and leverage learned knowledge from their pretraining to generate meal plans. In this work, we investigate the ability of LLMs to analyze the suitability of given recipes for diabetes. The primary challenge for LLMs is to retrieve relevant dietary guidelines for diabetes, decompose recipes into ingredients and cooking methods, and apply these guidelines to determine the recipe's suitability. To study these challenges, we employ three kinds of prompts namely, (i) Direct Query Prompt (ii) Context-Guided Prompt, and (iii) Exemplary Context Prompt that incorporate different levels of diabetes dietary guidelines from medical sources. We introduce a benchmark dataset curated for this investigation consisting of 7607 recipes that include 3807 recipes suitable for diabetes and 3800 recipes not suitable for diabetes. Our results demonstrate that most LLMs are cautious in predicting recipes as suitable to prevent detrimental outcomes. Further, the models that can reason using the dietary guidelines performed better in predicting the suitability of recipes for diabetes. Overall, Mistral-7B and Llama 70B showed superior performance to their counterparts.
Sources
- FoodSky: A Food-oriented Large Language Model that Passes the Chef and Dietetic Examination
- Knowledge-Infused LLM-Powered Conversational Health Agent: A Case Study for Diabetes Patients
- Mistral 7B
- Gemma 2: Improving Open Language Models at a Practical Size
- LLaMA: Open and Efficient Foundation Language Models
- Evaluating the External and Parametric Knowledge Fusion of Large Language Models
- Tool Calling: Enhancing Medication Consultation via Retrieval-Augmented Large Language Models
- A Survey of Hallucination in Large Foundation Models
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering