1. Introduction
Choice of diet has a strong influence on health, yet changing general nutrition guidelines into concrete, healthy dishes is still a hard thing for many people. When users look for recipes, they are inclined to put forward their requirements with ambiguous expressions like “something light but filling,” “a quick family dinner,” or “a dish that supports immune health.” These question requests carry many different dimensions together: nutritional goals (low calorie, high satiety), practical constraints (cooking time, servings), and sensory preferences (texture, flavor). Constructing systems that can steadily explain this uncertainty and give nutritionally healthy suggestions is a key difficulty at the crossing point of food science and artificial intelligence [
1]. Despite growing interest in this area, no existing open-source framework simultaneously handles fuzzy intent interpretation, verifiable nutritional grounding, and strict constraint enforcement within a single lightweight pipeline.
The current methods for giving food suggestions, in a big way, can be divided into three types, each of which has obvious shortcomings. Knowledge Graph (KG) approaches [
2,
3] make use of structured culinary connections to promote explainability; however, they usually require well-formed inputs like precise ingredient lists and process open-ended natural language in a bad way. Generative systems constructed upon Large Language Models (LLMs) [
4,
5] have conversational smoothness but often “hallucinate” cooking methods that break strict dietary restrictions because they have no foundation in checkable food component data. Retrieval-Augmented Generation (RAG) [
5,
6] in part solves this gap through looking up external documents, yet the majority of RAG-based food systems [
7] take retrieval as simple text matching, and neglect the abundant relational data which can be obtained in food knowledge bases. Frameworks such as DietQA [
8] manifest the worth of combining KGs with LLMs for multi-diet question answering, but these frameworks are not designed for open-ended, fuzzy recommendation tasks.
The problem of recipe recommendation based on fuzzy intention has several challenges that existing models have not solved. The first one is the ambiguity of intention, which produces a semantic gap [
9]: a query such as “light but filling” needs fine-grained comprehension that is beyond keyword matching, hence the system must coordinate low-calorie restrictions with high-satiety food materials. The second difficult problem is that carrying out nutritional restrictions needs provable basic support, hence this means suggested plans must match real food ingredient information instead of experiential text making. The third item is explainability: in applications related to health, users need to understand why a specific recipe has been recommended, especially when strict dietary limitations, such as allergies, are present.
To answer these challenges, we put forward CARE. We carry out the division of system development into two phases in order to clearly manifest the value of each architectural innovation. CARE version 1.0 acts as the basic foundation baseline through using one standard hybrid RAG framework that has no graph-based knowledge or adaptive weight distribution. To address the semantic gaps in v1.0, we have introduced CARE v2.0, which is a recommendation engine that combines structured food knowledge with constraint-driven retrieval. CARE version 2.0 adopts a modular construction which takes parameter efficiency as the core. Instead of putting faith in large-scale, non-transparent LLMs, for example, GPT-4 or Llama-3, it utilizes a light-weight 1.5 B-parameter model (Qwen2.5-1.5B-Instruct).
The core creative points of v2.0 are: (i) one query-to-constraint translation module which changes blurry user inputs into clear nourishment goals; (ii) one food knowledge graph that connects abstract healthy concepts to actual materials for cooking; (iii) one adaptive retrieval mechanism which carries out the balance between keyword accuracy and semantic recall; and (iv) one optional step of automatic verification which is for requests that are critical to safety. These constituent parts make up a four-step flow process that we name Refine, Retrieve, Rerank, and Reason (4R).
The present investigation is directed by three research questions (RQs):
RQ1 (Semantic Reasoning): Can structured food knowledge graphs, which are combined with adaptive retrieval, bridge the semantic gap for vague dietary intents in a more effective way than traditional sparse and dense retrieval?
RQ2 (Verifiable Safety): When we augment a parameter-efficient 1.5 B language model with rule-based hard filtering and one agent-based verification module, can it meet strict dietary constraint satisfaction, including the avoidance of allergens?
RQ3 (User Satisfaction): Whether the combination of constraint-aware retrieval and verifiable reasoning promotes the entirety of nutrition appropriateness and satisfaction that users feel in the actual recommendation situations?
Our main contributions are as follows:
A Parameter-Efficient 4R Architecture. We put forward CARE v2.0, it makes probabilistic intent parsing separate from deterministic safety filtering by means of a Refine–Retrieve–Rerank–Reason working flow. This scheme enables a compact 1.5 B-parameter model to undertake complicated recommendation work in the absence of large-scale calculation resources.
Bridging the Semantic Gap with GraphRAG. We put forward an adaptive retrieval mechanism which dynamically keeps a balance between semantic dense embeddings and structured Food Knowledge Graph (Recipe1M+ and USDA) traversal, hence improving retrieval accuracy for fuzzy, implicit health intentions.
Verifiable Dietary Safety via Agentic Critic.. We have designed a dual safety mechanism that combines rigid rule-based hard filtering and an autonomous Agentic Critic. This thereby promotes the constraint satisfaction rate to 98.5% for safety-critical queries, therefore providing a dependable protection measure for the management of diet.
An Open-Source Benchmark. We have constructed and released CAREBench-150, which is a benchmark that possesses human-annotated relevance labels that allow standardized assessment of fuzzy dietary intents.
The outcomes of the experiment prove that CARE v2.0 has a good effect. Under fast working mode, it obtains the same result as BM25 in exact-match tasks, and at the same time it performs better than dense retrieval in fuzzy queries (SR@5 is 0.825 compared with 0.550). When the agentic verification module is opened, the constraint satisfaction can reach a relatively high safety level, which therefore shows that strong reasoning accuracy and dietary safety do not certainly need large-scale models with expensive computation costs.
3. Methodology
3.1. Motivation and System Positioning
Before describing the architecture in detail, it is useful to understand the limitations of current approaches.
Table 1 positions our framework against representative systems in the field. Unlike prior work that specializes narrowly in structured QA (FoodKG, DietQA) or unstructured conversational agents (ChatDiet), the proposed system provides a unified, parameter-efficient solution for fuzzy-intent recommendation.
We introduce CARE v2.0 as an upgrade over the foundational hybrid RAG by integrating adaptive retrieval weighting, knowledge graph expansion (GraphRAG), and an Agentic Critic. As shown in
Table 1, rather than relying on large-scale computation, CARE brings together multi-diet reasoning, explainability, and verifiable safety in a single pipeline.
The systems listed in
Table 1 were chosen to represent the methodological evolution in food computing over the period 2019 to 2025. The selection criteria cover three core paradigms: (1) Symbolic and graph-based methods (e.g., FoodKG, P-Companion, GISMo), which offer structure but lack fuzzy intent comprehension; (2) Pure LLM methods (e.g., FoodGPT, ChatDiet), which provide conversational flexibility but struggle with deterministic safety; and (3) Emerging hybrid/neuro-symbolic architectures (e.g., DietQA, HealthGenie), which represent the current frontier in mitigating hallucinations. Benchmarking against this spectrum clarifies the positioning of CARE v2.0 in balancing semantic flexibility with strict constraint satisfaction.
3.2. Problem Formulation
Let denote the space of natural language user queries. A query is often vague, embedding implicit nutritional and culinary constraints (e.g., “muscle building dinner” implies high protein, low fat, and evening suitability). We assume a corpus of recipes , where each recipe r contains structured attributes , a nutritional vector (calories, protein, fat, carbohydrates, fiber) derived from USDA FoodData Central, and unstructured text (title, instructions). The objective is to learn a ranking function that maximizes semantic relevance and rigorous constraint satisfaction.
3.3. Overall Architecture: The 4R Framework
In order to handle the complex property which frequently exists in hybrid recommendation systems, CARE uses a module-based Refine–Retrieve–Rerank–Reason (4R) structure (
Figure 1). We do not use one single big model to hold the whole task, we divide the recommendation procedure into four specially used steps. This decomposition is motivated by a key observation: fuzzy dietary recommendation requires both probabilistic understanding (interpreting vague intents) and deterministic verification (enforcing hard nutritional constraints), and no single model can reliably do both at once. By isolating these two types of reasoning into separate stages, the pipeline can use a lightweight LLM where flexibility is needed while applying rigid rule-based checks where safety is required. The said pipeline carries out its work in the following manner:
- 1.
Refine (Intent Refinement): A light-weight LLM changes fuzzy natural language questions into clear, organized constraint objects (e.g., one calorie upper limit and one list of prohibited allergens). This step builds the protection boundaries for the remaining parts of the working flow.
- 2.
Retrieve (Adaptive GraphRAG): The system connects the semantic gap through traversing a food knowledge graph, mapping abstract intents (e.g., “immune-boosting”) to concrete ingredients (e.g., ginger, garlic). It carries out dynamic balance between keyword accuracy and semantic search for getting related candidate materials.
- 3.
Rerank (Semantic and Hard Constraint Filtering): One cross-encoder gives marks to deep semantic relevance, and one deterministic rule engine throws away every recipe that breaks the negative constraints which are found in the Refine stage.
- 4.
Reason (Agentic Critic): In regard to requests of safety-critical type, this module performs the function of a post-retrieval reviewer. It carries out inspection on the final candidates’ preparation steps and ingredient lists for catching hidden constraint violations, and therefore it produces a pass/fail verdict that has natural language justification.
3.4. Stage 1: Intent Refinement (Query-to-Constraint Translation)
Raw user queries are typically unstructured. We utilize an intent refiner to extract a structured object . This module operates in two modes:
LLM Extraction (Primary): A lightweight language model (Qwen2.5-1.5B-Instruct) parses the query into a JSON object detailing dietary tags (), mandatory and forbidden ingredients (), nutritional targets (), and meal category ().
Semantic Fallback (Robustness): If the LLM service is offline, the query embedding is mapped to pre-computed centroids of common intents using cosine similarity.
As illustrated in
Figure 2, the query “something light but filling for dinner” reliably yields a structured JSON defining the course, a calorie ceiling (<600 kcal), and a protein floor (>20 g).
3.5. Stage 2: Adaptive Retrieval and Knowledge Graph Expansion
The structured constraint object produced in Stage 1 serves as input to Stage 2, where it guides both the adaptive weighting decision and the graph traversal direction. This explicit data flow from intent refinement to retrieval is what connects vague user language to concrete recipe candidates.
3.5.1. Adaptive Retrieval Weighting
Different intents necessitate different retrieval strategies. We dynamically compute a base hybrid retrieval score
, balancing dense embeddings
and keyword matching
via a weighting factor
:
where
is determined by a rule-based classifier based on query structure:
With Equation (
2), the system relies on lexical precision for concrete nouns and on semantic density for abstract goals (
Figure 3).
3.5.2. Food Knowledge Graph Expansion
Standard retrieval falters when query terms do not explicitly appear in target recipes. We construct a food knowledge graph
integrating Recipe1M+ with USDA nutrient data. For a query
q (e.g., “immune boosting”), we map
q to relevant concept nodes
, and perform a two-hop traversal:
. Recipes reached via this conceptual bridge receive a graph expansion score
:
where
and
is the path length. During retrieval, candidate recipes are sourced by maximizing the joint signal
.
3.6. Stage 3: Semantic Reranking and Hard Constraint Filtering
Retrieved candidates (top-200) undergo dual filtering for relevance and safety.
- 1.
Cross-Encoder Reranking: A BERT-based cross-encoder (ms-marco-MiniLM-L-6-v2) calculates , scoring the full semantic interaction between q and recipe text . This refined score replaces the coarser for final ranking.
- 2.
Hard Constraint Filtering: Constraints from Stage 1 are applied deterministically. Any recipe violating a negative constraint (e.g., containing peanuts when ) is discarded immediately. This rule-based culling provides a reliable safety guarantee.
One key difference in the CARE framework lies in its strict following of empirical data. Different from pure generative LLMs, which may heuristically hallucinate recipe ingredients or nutritional profiles, our pipeline works totally as a retrieval and reasoning engine on a deterministic database. The nutritional vector for each checked recipe is mapped from the USDA FoodData Central database, and is not estimated through the LLM. The function of the language model is limited within the work of intent parsing (Stage 1) and logical verification (Stage 4). As a result, all recommended meals and their nutritional assessments are physically verifiable and grounded in empirical data.
3.7. Stage 4: Reasoning via Optional Verification (High-Precision Mode)
For safety-critical queries such as medical diets, CARE activates an agentic verification module (the “critic”). The critic uses an LLM to methodically check the top-5 candidates’ ingredient lists and preparation steps against implicit constraints. It produces a formal pass/fail verdict supported by a natural language explanation.
Fast Mode (Default): Bypasses the critic for low-latency delivery (∼180 ms).
Strict Mode: Engages the critic, pushing constraint satisfaction to 98.5% while increasing latency to ∼3 s.
Figure 4 depicts this double-checking mechanism.
In applications that concern health, algorithm ranking alone is not enough; the property of being explainable has great importance. The Agentic Critic does not simply give out a binary pass/fail decision. To each suggested recipe, particularly in strict dietary circumstances (e.g., allergen avoidance or medical diets), the critic produces a user-facing natural language explanation. This explanation lays its foundation on empirical evidence: it does cross-reference between the user’s constraints and the exact retrieved ingredient list and the mathematically derived USDA nutritional vector . As an example, when a user puts forward a request for a “dairy-free, high-protein” meal, the system not only places the recipe on a high rank but also highlights the verified absence of dairy derivatives in the source text and shows the accurate protein gram count. This evidence-based transparency may assist users in building trust, and hence lets all dietary claims be auditable.
3.8. Nutritional Suitability Modeling
Beyond boolean constraint satisfaction, we quantitatively model meal-level nutritional quality.
3.8.1. Absolute Nutrient Adequacy
Assuming three meals daily, we derive per-meal targets from Recommended Dietary Allowances (RDA):
. Adequacy for nutrient
m is capped at 1.0 to prevent penalizing moderate excess:
The aggregate absolute adequacy averages across all modeled nutrients
:
3.8.2. Macronutrient Energy Ratio
Using Atwater factors, we calculate the energy contribution of protein, carbohydrates, and fat. The energy ratio
measures proportion against total energy. A deviation-based balance score evaluates alignment with standard dietary targets (e.g., 30% protein, 40% carbs, 30% fat):
3.8.3. Energy Density
Energy density
(kcal/g) serves as a proxy for satiety. Recipes exceeding a reasonable threshold
face exponential penalization, nudging recommendations toward lighter, more filling options:
3.8.4. Composite Nutritional Score
The overall nutritional quality score is a weighted sum:
The weights were set as empirical hyperparameters reflecting the hierarchical priorities of general dietary planning. Absolute nutrient adequacy () receives the highest weight (0.5) because meeting baseline RDA thresholds is the most fundamental physiological requirement. The macronutrient energy ratio () follows at 0.3 to promote structural metabolic balance based on established guidelines (e.g., Atwater factors). Energy density () is weighted at 0.2, serving as a soft penalty that steers the system toward higher-satiety, less calorie-dense options without overly restricting culinary diversity.
It should be noted that this scoring model is designed as a general-purpose computational proxy for population-level dietary guidelines, not as a substitute for individualized clinical nutrition assessment. The equal per-meal RDA distribution (
) represents a simplified baseline that works well for the general healthy adult population but does not capture meal-specific timing needs (e.g., post-exercise protein loading) or condition-specific adjustments (e.g., glycemic index management for diabetic patients). We adopt this simplification intentionally to keep the framework lightweight and broadly applicable as a technology layer. Integration with personalized clinical nutrition models, such as those incorporating basal metabolic rate, activity level, and biomarker data, is left to future interdisciplinary work (see
Section 7).
3.9. Final Ranking Function
For the candidates that survive the hard filtering, the final ranking score
unifies the deep semantic relevance (
), the conceptual expansion boost (
), and the nutritional quality (
) into a single objective function:
Under this formulation, the top recommended recipes are semantically aligned, conceptually enriched, deterministically safe, and nutritionally balanced. Algorithm 1 details the complete pseudocode.
| Algorithm 1 CARE Recommendation Pipeline |
| Require: User query q, recipe corpus , knowledge graph , constraints |
| Ensure: Ranked list of recipes |
| 1: Intent Refinement:
|
| 2: | ▷ LLM extraction or semantic fallback |
| 3: Adaptive Retrieval: |
| 4:
| ▷ Equation (2) |
| 5:
| ▷ Sparse + Dense, Equation (1) |
| 6: Graph Expansion: |
| 7:
| ▷ Equation (3) |
| 8:
|
| 9:
Reranking and Hard Filtering: |
| 10:
| ▷ Yields |
| 11:
|
| 12:
Nutritional Scoring: |
| 13:
for each do |
| 14:
|
| 15:
|
| 16:
|
| 17:
|
| 18:
end for |
| 19:
Final Ranking: |
| 20:
for each do |
| 21:
| ▷ Equation (9) |
| 22:
end for |
| 23:
|
| 24:
Optional Reasoning (High-Precision Mode): |
| 25:
if strict mode enabled then |
| 26:
|
| 27:
end if |
| 28:
return |
4. Experiments
4.1. Experimental Setup
Dataset: We utilize a rigorously filtered subset of Recipe1M+ containing 400,000 recipes, mutually enriched with USDA FoodData Central nutritional profiles.
Evaluation Tasks and Metrics: We evaluate our framework across three distinct retrieval scenarios:
Standard Retrieval: 1000 explicit queries (e.g., “Chicken Parmesan recipe”). The ground truth is established via exact title matching, evaluated using standard Recall@5.
Fuzzy Intent (CAREBench-150): 150 vague queries evaluating the system’s ability to bridge semantic gaps (e.g., “post-workout meal”). Evaluated via Semantic Recall@5 (SR@5).
Complex Constraints: 50 safety-critical queries mandating strict negative constraints (e.g., “No nuts”). Evaluated via Constraint Satisfaction Rate (CS-Rate).
CAREBench-150 Construction and Ground Truth Annotation: To evaluate performance on ambiguous user queries and address the lack of standard datasets for vague dietary intents, we curated the CAREBench-150 dataset. Queries were extracted from common search patterns observed in real-world dietary forums and nutritional Q&A platforms. For broad coverage, the queries are stratified into four semantic categories (as shown in
Figure 5): Health Goal (30%, e.g., “weight loss”), Taste/Craving (26%, e.g., “spicy”), Occasion/Context (24%, e.g., “quick dinner”), and Hybrid/Complex (20%, e.g., “healthy & spicy”).
Because fuzzy queries lack exact-match ground truths in the database, we established relevance labels using a standard pooling methodology from the information retrieval literature. We aggregated the top-k retrieved recipes from all evaluated baselines (BM25, DPR, Qwen2.5, CARE v1.0, and CARE v2.0) to form a unified, anonymized candidate pool. Three independent annotators graded each query-recipe pair blindly for semantic relevance and implicit constraint satisfaction. Final relevance judgments were determined by majority voting, with high inter-annotator agreement (Fleiss’ ). By this process, the SR@5 metric reflects genuine human-perceived utility rather than algorithmic bias.
Figure 5 visualizes the composition of the CAREBench-150 dataset.
4.2. Baselines
We compare our proposed framework against the following baselines, selected to cover different paradigms of recipe retrieval and generation:
BM25 (Sparse Retrieval): A traditional lexical matching model based on TF-IDF. It performs well on exact keyword matching (e.g., specific ingredient names) but cannot bridge semantic gaps or understand implicit health intents.
DPR (Dense Passage Retrieval): A semantic retrieval baseline using a bi-encoder (BAAI/bge-small-en). It maps user queries and recipe texts into a shared dense vector space. While effective at capturing broad semantic similarities, it struggles with precise entity-level negative constraints (e.g., “no dairy”).
Qwen2.5 (1.5 B): A pure generative baseline where the user’s raw query is directly fed into the lightweight LLM in a zero-shot setting. This setup isolates the model’s internal parametric knowledge, establishing a critical baseline to measure how frequently ungrounded LLMs hallucinate or violate safety constraints without the 4R framework.
4.3. Proposed Model Variants
To demonstrate the performance gains from our architectural innovations, we evaluate the system across two phases and two operational modes:
CARE v1.0 (Base RAG): Our foundational hybrid retrieval pipeline lacking GraphRAG, adaptive weighting, and the agentic critic. It represents a standard modern RAG implementation and serves as an internal benchmark.
CARE v2.0: The fully upgraded 4R framework integrating GraphRAG, adaptive weighting, and cross-encoder reranking. We evaluate it under two modes:
- –
Fast Mode: The agentic critic is disabled, optimizing for low-latency delivery (∼180 ms). This mode suits real-time, interactive meal recommendation where medical-grade precision is not strictly needed.
- –
High Precision Mode: The agentic critic is fully engaged to verify constraint compliance. Latency increases to ∼3 s, but safety reaches near-perfect levels, targeting scenarios such as strict allergy avoidance or specialized medical diets.
4.4. Main Results
To address RQ1 and RQ2,
Table 2 reports comparative performance. Experiments were conducted across five random seeds, providing means, standard deviations, and 95% confidence intervals. Significance testing (paired
t-test) against DPR on SR@5 confirmed a substantial improvement (
,
, Cohen’s
). We applied a Bonferroni correction for multiple comparisons (
).
The results confirm the effectiveness of CARE v2.0 and expose the weaknesses of purely generative approaches. Three findings stand out: (1) pure LLMs are unsafe for constrained dietary recommendation without external grounding; (2) knowledge graph expansion is the single most important factor for fuzzy-intent retrieval; and (3) the agentic verification module closes the remaining safety gap at acceptable latency cost.
Pure LLM Safety. The standalone Qwen2.5 (1.5 B) baseline reached a CS-Rate of only 32.9%, showing that without hard filtering and structured grounding, direct LLM generation is prone to safety-critical hallucinations and tends to ignore dietary restrictions.
Hallucinations in Target Matching. The pure LLM baseline failed on standard exact-match retrieval (Recall@5 of 0.157) because it tends to produce plausible-sounding but unverifiable recipe names rather than matching real database entries.
Graph Expansion Bridges Semantic Gaps. While the standalone LLM shows basic semantic understanding on fuzzy intents (SR@5 of 0.461, slightly above BM25), CARE v2.0 (Fast) reaches 0.825. This indicates that traversing the food knowledge graph connects abstract health intents to concrete culinary ingredients, addressing the limitations of pure generation and naive vector search.
High Constraint Satisfaction. Our query-to-constraint hard filtering raises CS-Rate to 85.0%. Activating the Agentic Critic further pushes it to 98.5%, greatly reducing unsafe recommendations.
Latency Trade-off. Fast mode (∼180 ms) suits real-time environments without sacrificing core reasoning, while High-Precision mode (∼3 s) provides an additional safety layer for offline meal planning or strict medical dietary needs.
Evolution from v1.0 to v2.0. CARE v1.0 (standard hybrid RAG) reaches SR@5 of 0.680, which falls short on complex queries. Integrating GraphRAG and adaptive weighting, CARE v2.0 (Fast) reaches 0.825, a 14.5 percentage point improvement. This confirms that simply attaching vector search to an LLM is not enough for nuanced dietary reasoning and that structured knowledge expansion is needed.
Figure 6 visualizes the performance gap on standard and fuzzy tasks.
4.5. Ablation Study
We conducted an ablation study by removing one component at a time and measuring the effect on fuzzy-intent performance (
Table 3). Removing any single component produces a noticeable performance drop, confirming the need for the integrated 4R framework. The largest drop (17.6%) comes from removing GraphRAG, showing that it is the main driver for resolving fuzzy queries.
Figure 7 illustrates the contribution of each component.
4.6. Latency Analysis
In Fast Mode, total latency averages ∼180 ms (
Figure 8): Intent Refinement (25 ms), Hybrid Retrieval (45 ms), Graph Expansion (15 ms), and Cross-Encoder Reranking (85 ms).
4.7. Human Evaluation
To go beyond automated metrics and test real-world usefulness (addressing RQ3), we ran a blind human evaluation. We recruited 20 participants from university mailing lists and local cooking interest groups, picking people with varied demographic and culinary backgrounds.
As
Table 4 shows, participants (mean age = 32.4, SD = 6.2) have a balanced gender split and range from beginner-level to experienced home cooks. To test how well the system handles constraints, 40% of the participants had specific dietary restrictions or health-related goals (e.g., vegetarianism, lactose intolerance, or calorie-deficit diets).
Each participant used a custom A/B testing interface. For a given fuzzy query from the CAREBench dataset, they saw the top-1 recipe from a baseline (BM25 or CARE v1.0) and from CARE v2.0, placed side by side with model identities hidden and randomized. They rated outputs on a 5-point Likert scale for Semantic Relevance and Dietary Safety. All participants gave informed consent; data were collected and analyzed anonymously.
Across eight representative fuzzy queries, CARE v2.0 scored higher than traditional baselines on Relevance, Healthiness, Feasibility, Creativity, and Overall Satisfaction, confirmed by a Friedman test (
,
Table 5).
Table 6 shows specific recommendation differences between systems, illustrating CARE’s ability to produce context-aware culinary suggestions.
Figure 9 displays the results graphically.
6. Discussion
6.1. Limitations
Although the CARE v2.0 has good performance in all the evaluated tasks that we do, it still has some limitations which are worthy of our note.
Coverage of non-Western cuisines is limited because Recipe1M+ has a shortage of deep cultural detail in certain areas. Regional spice profiles and traditional functional food properties are underrepresented.
Running the High-Precision verification loop increases about 3 s of latency for each query. Model distillation or other techniques could cut down this overhead for real-time chat deployment.
CARE works as a zero-shot framework, and it does not contain long-term memory. It is not able to track how a user’s taste or nutritional needs change over time.
With regard to nutritional modeling, the scoring system (Equations (4)–(8)) adopts USDA FoodData Central metrics and formal RDA targets. Splitting the daily RDA into three equal meals () is a heuristic proxy that cannot take individual variation into account. In practice, nutrient distribution across meals varies by population: pregnant women need higher folate and iron intake concentrated in specific meals, athletes need post-exercise protein timing that differs from resting periods, and individuals managing chronic conditions such as diabetes require carbohydrate distribution calibrated to glycemic response patterns. The current model treats all users uniformly and cannot accommodate such differences. We emphasize that CARE v2.0 is positioned as a general-purpose technology framework for safe recipe retrieval rather than a clinical nutrition prescription tool. Its primary contribution lies in the constraint-aware retrieval architecture (the 4R pipeline), not in the nutritional scoring model itself. The scoring component serves as a pluggable module: in a clinical deployment, it could be replaced with a validated, patient-specific nutritional model developed in collaboration with registered dietitian nutritionists (RDNs) without altering the rest of the pipeline. The hard-constraint dietary rules were qualitatively reviewed by a clinical medical expert from West China Hospital, Sichuan University, who confirmed the structural validity of the safety constraints. The full scoring system has not yet passed large-scale clinical validation with RDNs, and it does not include variables like basal metabolic rate or real-time biometric feedback. A concrete next step is to partner with clinical nutrition teams to replace the heuristic RDA proxy with individualized models and conduct controlled dietary intervention studies to measure real-world health outcomes.
6.2. Cultural Context
Although CARE v2.0 shows strong algorithmic constraint satisfaction, dietary choices are shaped by social, psychological, and cultural factors that go beyond nutritional biochemistry. Our current knowledge graph depends on Recipe1M+ and USDA FoodData Central, both of which mainly reflect Western culinary habits and ingredient profiles, introducing geographic and cultural bias into the recommendation space.
As a result, the system meets difficulty when it handles traditional functional foods, regional flavor profiles, and diets aligned with holistic philosophies such as Traditional Chinese Medicine food therapy or Ayurvedic principles. Complex religious dietary frameworks (e.g., Halal, Kosher, or Jain vegetarianism) ask for detailed ontological definitions that cover food sourcing, preparation methods, and cross-contamination, which go well beyond binary ingredient exclusion. Overcoming these limitations requires not only enlarging the dataset but fundamentally enriching the knowledge graph with cultural ontologies. Recognizing and reducing these biases will be needed for future versions of CARE to serve a globally diverse user base.
6.3. Comparison with Recent Hybrid Frameworks
To contextualize the contributions of CARE v2.0, we compare our results with recent hybrid RAG and neuro-symbolic systems.
Research on dynamic context retrieval in RAG dialogue systems [
15] has shown that dynamically adjusting retrieval parameters based on conversation history improves semantic fluidity and contextual relevance. Semantic relevance alone, however, does not guarantee dietary safety. CARE v2.0 goes further by coupling an adaptive retrieval weighting mechanism (Equation (
2)) with a deterministic hard-constraint filter, so that semantic adaptability does not compromise safety (e.g., allergen avoidance).
In the food computing domain, DietQA [
8] uses neuro-symbolic reasoning over KGs for multi-diet question answering with high accuracy. CARE v2.0 differs in that it targets end-to-end recipe recommendation rather than QA alone. The Agentic Critic verifies not only ingredient compliance but also actionable culinary steps (preparation methods, cross-contamination risks), bridging the gap between nutritional theory and practical meal execution.
Knowledge-enhanced reasoning frameworks like KERL [
16] show that fusing LLMs with structured graphs reduces hallucinations in general domains. In health-critical dietary management, however, reducing hallucinations is not enough; the system must meet constraints with near-absolute reliability. CARE v2.0 differs from KERL by enforcing a rule-based veto at Stage 3 before the LLM reasoning phase at Stage 4. This ordering is a key factor behind the 98.5% CS-Rate, a level of verifiable safety that purely probabilistic hybrid models do not reach.
6.4. Efficiency and Parameter Trade-Offs
One core feature of CARE v2.0 is its reliance on parameter efficiency rather than model scale. Recent food recommendation systems such as ChatDiet and FoodGPT typically use models with tens or hundreds of billions of parameters (e.g., GPT-4 or LLaMA-65B/70B) to handle complex dietary logic. These models incur high inference latency, operational cost, and are difficult to deploy on resource-constrained devices such as smart kitchen appliances.
Our results show that large parametric memory is not strictly necessary for safe dietary recommendations if the architecture is modular. By delegating deterministic nutritional verification to a rule engine and semantic mapping to a food knowledge graph, CARE v2.0 limits the LLM’s role to intent translation and final verification. The resulting 1.5 B-parameter pipeline reaches a 98.5% CS-Rate on complex queries with ∼180 ms latency in Fast Mode. This performance is comparable to or exceeds the zero-shot safety constraints of much larger proprietary LLMs reported in the literature, at a fraction of the computational cost. The finding supports the view that orchestrating small models with structured symbolic logic is a more practical paradigm for digital health applications than simply scaling up parameters.
6.5. Generalizability of the 4R Framework
Although CARE v2.0 was evaluated on meal recommendation, the 4R pipeline can be adapted to other safety-related recommendation tasks. The separation of vague intent interpretation, knowledge-grounded candidate generation, and strict safety verification is broadly transferable. In personalized fitness planning, for instance, the framework could navigate constraints such as joint injuries by traversing an anatomical knowledge graph. In pharmaceutical recommendation, the same pipeline could parse patient symptoms into structured drug constraints, retrieve candidates from a medication database, and verify against drug interaction rules. The modular design means that each stage can be replaced or updated independently: a different knowledge graph for a different domain, a different rule engine for different safety requirements. By separating probabilistic understanding from deterministic reasoning, the 4R framework provides a reference architecture for any task involving vague user intents and hard constraint enforcement.
6.6. Broader Impact
CARE provides an open-source, mathematically grounded framework to support further research in food- and nutrition-oriented AI. By lowering the computational barrier through its lightweight architecture, it makes constraint-aware dietary recommendations accessible to research groups without large-scale GPU infrastructure. At the same time, certain risks must be acknowledged. Users may place excessive trust in automated dietary suggestions, particularly when the system produces confident-sounding explanations through the Agentic Critic. Automated systems cannot replace professional dietary consultation. For individuals with complex medical conditions, food allergies, or eating disorders, the system should be positioned as a supplementary screening tool rather than a primary advisor. Transparent guardrails such as the Agentic Critic help reduce harm, but they do not eliminate it entirely.
6.7. Practical Implications
The CARE v2.0 framework has practical value in digital health and daily dietary services.
From a preventive health perspective, the Agentic Critic’s ability to enforce strict dietary constraints (e.g., absolute allergen exclusion) provides a reliable safeguard. While it does not replace professional dietitians, it can serve as a scalable screening tool to help health coaches and nutrition platforms generate safe, baseline meal templates for users with complex dietary restrictions.
In the consumer technology sector, the framework’s use of a parameter-efficient 1.5 B model rather than large closed-source LLMs reduces computational overhead and operating costs. The resulting low latency (∼180 ms in Fast Mode) makes the system suitable for deployment in smart kitchen appliances, edge-computing mobile applications, and personalized grocery delivery platforms.
By bridging the gap between vague health goals and concrete culinary steps, CARE lowers the barrier for individuals to maintain scientifically grounded, personalized nutrition management in daily life.
8. Conclusions
This study presents CARE v2.0, a parameter-efficient recommendation framework designed to bridge the gap between vague dietary intents and strict nutritional safety. The proposed Refine–Retrieve–Rerank–Reason (4R) architecture separates probabilistic intent parsing from deterministic constraint verification. By combining a lightweight 1.5 B-parameter language model with an adaptive food knowledge graph and a rule-based Agentic Critic, the framework reaches a 98.5% Constraint Satisfaction Rate on fuzzy queries. With respect to the three research questions posed in the Introduction: RQ1 is answered by the 14.5 percentage point SR@5 improvement over the base RAG (v1.0), confirming that structured knowledge graph expansion bridges the semantic gap more effectively than dense or sparse retrieval alone; RQ2 is answered by the 98.5% CS-Rate in High-Precision mode, showing that a 1.5 B-parameter model can meet strict dietary constraints when augmented with hard filtering and agentic verification; and RQ3 is answered by the human evaluation results (
Table 5), where CARE v2.0 scored higher than all baselines across all five evaluation dimensions (
). These results support a practical paradigm for food recommendation in digital health: verifiable dietary safety can be obtained through structured semantic orchestration without relying on the scale and latency of closed-source generative models.
The current framework has specific limitations that point to clear future directions. The nutritional scoring uses a heuristic proxy (equal RDA distribution across meals) that lacks the dynamic individualization needed for clinical prescriptions, such as real-time basal metabolic rate integration. We stress that CARE v2.0 is positioned as a general-purpose technology framework for safe recipe retrieval; its nutritional scoring module is intentionally designed as a pluggable component that can be upgraded with clinically validated, patient-specific models in future interdisciplinary work. The underlying knowledge databases (Recipe1M+ and USDA) reflect Western dietary paradigms, limiting adaptability to diverse global culinary philosophies and religious dietary frameworks. The end-to-end framework requires large-scale validation with registered dietitians before deployment in critical healthcare settings. Future work will focus on expanding the cultural ontology of the knowledge graph, integrating dynamic biometric data, and partnering with clinical nutrition teams to conduct controlled dietary intervention studies.