PA-CoT: Profile-Adaptive Chain-of-Thought for Personalized Nutritional Consulting

Evgenii Garmashov, Nikita Kulin, Artur Khairullin, Viktor Zhuravlev, Daniil Sukhorukov, Mikhail Mozikov, Ilya Makarov, Sergey Muravyov

TL;DR

PA-CoT introduces a multi-stage prompting framework that treats user profile analysis as an explicit, standalone reasoning step before generating personalized health and nutrition advice. By decoupling profile analysis, response generation, and safety verification, it simultaneously maximizes personalization and safety, outperforming 11 competing prompting and optimization methods on a newly introduced benchmark.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly used for health and nutrition consulting, but generic advice can be useless or even dangerous. True personalization requires grounding answers in structured user data (age, weight, dietary restrictions, metabolic stats).

Standard prompting techniques usually dump this profile data into the prompt as a single unstructured block, forcing the model to interpret the profile and generate the answer simultaneously. This high cognitive load often leads to models ignoring key profile constraints or sacrificing safety to achieve personalization.

Methods

The authors propose Profile-Adaptive Chain-of-Thought (PA-CoT), a multi-stage pipeline designed to distribute the cognitive load of profile interpretation and response generation across four sequential stages:

  1. Stage 1: Profile Analysis: An auxiliary model analyzes the user's question and structured profile to identify critical issues and map them to relevant profile fields, creating a "relevance matrix."
  2. Stage 2: Profile Completeness Check: (For live deployment) Triggers an interactive clarification loop if critical data fields are missing.
  3. Stage 3: Response Generation: The main model generates a step-by-step response, explicitly guided by the structured insights from Stage 1.
  4. Stage 4: Safety Verification: A dedicated two-phase safety filter checks for dangerous recommendations (Phase 1) and appends necessary medical disclaimers (Phase 2).

The architecture uses a temperature gradient: precise analysis and verification stages (1 & 4) run at a low temperature (0.3), while generation (Stage 3) runs at 0.7 to preserve natural phrasing.

Figure 1. PA-CoT architecture. Dashed arrow: when gaps are found in the relevance matrix, an interrupt is triggered and Stage 1 is re-invoked with an augmented profile. Red arrow: upon a DANGER flag, Stage 3 is re-invoked with corrective feedback.
Figure 2. Relevance matrix for sample ID 21140 (weight loss, age 16). Fields height, activity, and kcal/day are marked ? because they are relevant to the identified critical points but absent from the profile. Stage 2 would request exactly these fields.

Datasets

Because no public datasets for open-ended nutritional consulting with structured user profiles existed, the authors created the QPA (Question-Profile-Answer) Benchmark. They sampled 200 naturally occurring medical/nutritional questions from the Medical Alpaca corpus. An LLM was used to extract structured profile fields (e.g., sex, age, weight, goals) directly from the text, resulting in a realistic, partially filled profile schema (averaging a 20% fill rate) that mimics real-world health apps.

Figure 3. ID 21140: adolescent male, weight loss goal, sparse profile. Only sex, age, weight, and goal were extracted from the question text; all other fields are unknown. Approximately 20% of profile fields are populated on average across the benchmark.

Key Insights and Ideas

  • Breaking the Personalization-Safety Trade-off: In intermediate versions of PA-CoT (V1–V3), trying to increase personalization caused safety scores to drop, and vice versa. The "aha moment" came from completely separating these concerns: letting Stage 3 focus purely on personalization and offloading safety entirely to a standalone verification step (Stage 4).
  • Complexity $\neq$ Performance: Highly complex automatic prompt optimization frameworks (like DSPy, TextGrad, and AMPO) underperformed simpler prompting methods on personalization. The authors hypothesize that hyper-optimized prompts cause the model to lose focus on specific user profile instructions.
Table 3. Intermediate PA-CoT versions (N=200, G-Eval 1–5, 95% CI). Versions V1–V3 show an inverse correlation between Person- alization and Safety; V4 resolves it through architectural separa- tion.

Key Results

Evaluated using G-Eval (with a Qwen-235B judge), PA-CoT V4 was compared against 11 other approaches, including standard CoT, Self-Refine, and automated prompt optimizers.

  • Top Overall Performer: PA-CoT achieved the highest average score of 4.21 on a 1–5 scale.
  • Personalization & Safety Leader: It significantly outperformed its closest competitor, Self-Refine, leading in both Personalization (4.71 vs 4.39) and Safety (4.68 vs 4.52) with non-overlapping 95% confidence intervals.
  • Cost-Effective: Despite being a multi-stage method, PA-CoT requires fewer LLM calls (typically 3) than iterative refinement methods like Self-Refine (up to 9 calls), making it highly practical for budget-constrained production environments.
Table 1. Comparative evaluation across 12 methods on the QPA benchmark (N=200, G-Eval scale 1–5, 95% CI). Methods span four categories: standard prompting (CoT, Role Prompting, Few-Shot), meta-prompting (Self-Refine, Meta-Prompting, Mixture of Prompts), automatic optimization (DSPy†, TextGrad, AMPO, PhaseEvo), and a Zero-Shot Baseline. †DSPy uses BootstrapFewShotWithRan- domSearch; at inference time it produces an automated few-shot prompt. All four metrics are scored 1–5; higher values indicate better performance. Correctness: factual alignment with the expert reference answer. Completeness: coverage of all aspects of the user’s question. Personalization: use of the user’s specific profile and statistics. Safety: absence of harmful recommendations and appropriate medical referrals. Bold: best value per column. PA-CoT ranks first on Avg, Personalization, and Safety—the only method with non-overlapping 95% CIs over the nearest competitor on both Personalization (4.71 vs. 4.39, Self-Refine) and Safety (4.68 vs. 4.52, Self-Refine).

Limitations and Future Work

  • Benchmark Scale: The QPA benchmark is currently limited to 200 samples, which restricts statistical power for detecting subtle differences in correctness and completeness. The authors plan to scale it to 500–1000 samples.
  • Profile Extraction Bias: Profiles were synthetically extracted from the question text rather than tracking long-term real-world user histories.
  • Scope: The evaluation was restricted to a single domain (nutrition) and primarily utilized the GPT-4o Mini model family (though robustness was validated on GLM-4.7). Future work will explore uniform temperature controls and testing on larger, more capable generator models.

Summary updated

BibTeX
@inproceedings{garmashov2026pa,
  author = {Evgenii Garmashov and Nikita Kulin and Artur Khairullin and Viktor Zhuravlev and Daniil Sukhorukov and Mikhail Mozikov and Ilya Makarov and Sergey Muravyov},
  title = {{PA-CoT: Profile-Adaptive Chain-of-Thought for Personalized Nutritional Consulting}},
  booktitle = {SD4H @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=NHGo7HGOxR},
}
Figure