arXiv:2610.02969eess.SYOct 2026

Manuscript Offprint

arXiv:2610.02969

Profile-Aware Trustworthy Recipe Generation with Planner-Critic Agentic Remediation

Shanhong Liu, Pai Chet Ng, Konstantinos N. Plataniotis

ABSTRACT

Recipe generation from food images has practical value for intelligent cooking assistance, but traditional one-pass generation often overlooks user-specific safety requirements such as allergies, dietary restrictions, and preparation constraints. We propose PCAR, a Planner-Critic Agentic Remediation framework for trustworthy recipe generation. PCAR separates recipe planning from safety verification: a Planner Agent extracts ingredients and generates recipe drafts conditioned on the user profile, while a Safety Critic Agent audits each draft and provides structured feedback for remediation when violations are detected. This remediation loop enables unsafe recipes to be revised rather than directly returned or discarded. We evaluate PCAR on real food images with 100 benchmark user profiles across four backbone models, including proprietary and locally served open-source models. Results show that PCAR achieves strong safety and generation performance with capable backbone models, while preserving practical recipe quality.

Index Terms— recipe generation, agentic planning

1. INTRODUCTION

Food image understanding [1, 2, 3] has attracted increasing attention due to its potential applications in nutrition analysis and intelligent cooking assistance. Prior studies have explored food recognition and ingredient identification from visual inputs, including ingredient-aware recommendation systems [4, 5], dietary tracking [6, 7], recipe retrieval [8, 9], multi-task ingredient recognition [10, 11], recipe generation [12, 13] and region-wise ingredient modeling [14, 15]. These works have significantly advanced the ability to recognize food categories and infer ingredients from images. More recently, large language models have shown promise for food-related applications, including food entity extraction, fine-grained food recognition, and food-oriented reasoning and generation [16, 17]. However, existing works are still limited when deployed as personalized cooking assistants, as they pays less attention to whether the generated recipe is safe for a specific user.

Figure

Fig. 1: Traditional one-pass recipe generation maps a food image directly to a recipe without enforcing user-profile constraints or performing safety verification. In contrast, we propose a profile-aware planner–critic remediation loop, where the Planner Agent generates and revises recipe drafts, while the Safety Critic Agent audits each draft against allergy, dietary, and preparation-safety constraints before approval.

In practice, recipe generation is not merely a generative task; it is also a safety-sensitive decision process. A generated recipe may include allergens, violate dietary restrictions, or omit critical preparation-safety steps. For example, a visually plausible recipe may still be unsafe for a user with a nut allergy, incompatible with vegan or halal requirements, or inappropriate for vulnerable users such as infants or pregnant individuals. As illustrated in Fig. 1, a traditional one-pass generation maps a food image directly to a recipe, and does not explicitly enforce user-profile constraints, or verify safety, or provide a mechanism for revising unsafe outputs. Simply adding user information to the prompt is also insufficient, as the model may still overlook constraints or fail to detect hidden safety risks. Similarly, a post-hoc safety filter can reject unsafe recipes, but it does not recover a useful safe alternative.

To address these limitations, we propose PCAR, a Planner-Critic Agentic Remediation framework for profile-aware trustworthy recipe generation, casting recipe generation as a constrained generation process that balances practical recipe utility with profile-aware safety satisfaction. Specifically,

PCAR decomposes recipe generation into two interacting agents: (1) A Planner Agent performs visual ingredient understanding and generates recipe drafts conditioned on the food image and user profile; and (2) A Safety Critic Agent independently audits each draft against user-specific allergens, dietary constraints, and preparation-safety requirements. When a draft is unsafe, the critic returns structured feedback to the planner, enabling the recipe to be revised rather than simply rejected. The planner–critic loop continues until the recipe is approved or a bounded remediation limit is reached. Our contributions are summarized as follows:

• We formulate recipe generation as a constrained generation objective, where the generated recipe should remain useful and image-grounded while satisfying user-specific allergy, dietary, and preparation-safety constraints.

• Our PCAR enforces an agentic remediation mechanism in which unsafe recipe drafts are not merely rejected, but revised using structured feedback from an independent Safety Critic Agent.

• We evaluate PCAR across four backbone models, including proprietary and locally served open-source models, using real food images and 100 benchmark user profiles spanning baseline constraints, complex combinations, derivative risks, and high-risk scenarios.