Multi-task nutrition-aware recipe generation network with hierarchical ingredient-nutrition attention and nutritional constraint decoding
Automatic recipe generation remains challenging because cooking instructions depend jointly on ingredient composition, preparation order, and nutritional context. This study proposes the Multi-Task Nutrition-Aware Recipe Generation Network (MNARG-Net), built on the Bidirectional and Auto-Regressive Transformer (BART), for recipe-instruction generation with an auxiliary target-conditioned nutrition-reconstruction objective. Experiments use 14,853 curated dessert records. In the information-matched zero-input setting, MNARG-Net obtains a Bilingual Evaluation Understudy (BLEU) score of 0.1761, a Recall-Oriented Understudy for Gisting Evaluation-Longest Common Subsequence (ROUGE-L) score of 0.2889, and teacher-forced reference-token perplexity of 60.4. BART-base obtains BLEU 0.1867, ROUGE-L 0.2938, and perplexity 67.2 under the same BART tokenizer; paired five-seed analysis shows that the BLEU difference favors BART-base after Holm correction, the ROUGE-L difference is not statistically significant, and the perplexity difference does not remain significant after Holm correction. Per-token perplexities from models using different tokenizers are reported descriptively rather than interpreted as directly comparable. Supplying each test record’s own nutrition metadata as an oracle conditioning vector increases MNARG-Net to BLEU 0.2158 and ROUGE-L 0.3422; this is interpreted as sensitivity to a record-derived conditioning signal, not as evidence of full nutritional controllability or an information-matched superiority claim. The auxiliary pathway has an arithmetic-mean conditioned coefficient of determination (R 2) of 0.9261 across seven nutrients; because its representation contains information derived from the target nutrition vector, this value is treated only as a conditioned reconstruction-consistency diagnostic. The results support nutrition-conditioned recipe generation within the evaluated dessert domain while motivating stronger future controls with user-specified counterfactual nutrient targets, leakage-free nutrition estimation, domain-specific recipe-generation baselines, instruction-tuned language models, and broader food categories.
Authors
- Adil Ali Saleem (ORCID: https://orcid.org/0000-0003-2468-8471)
- Shaha T. Al-Otaibi (ORCID: https://orcid.org/0000-0002-6720-9955)
- Humaira Anwer (ORCID: https://orcid.org/0000-0002-5223-8411)
- Noor Ayesha (ORCID: https://orcid.org/0009-0003-5711-7656)
- Roaa Khalil Mohamed Ali Abed
Institutions
- Princess Nourah bint Abdulrahman University (SA)
- Prince Sultan University (SA)
- Khwaja Fareed University of Engineering and Information Technology (PK)
Publication Details
- Journal
- PeerJ Computer Science
- Published
- 2026-12-01
- DOI
- https://doi.org/10.7717/peerj-cs.4186
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00