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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Multi-task nutrition-aware recipe generation network with hierarchical ingredient-nutrition attention and nutritional constraint decoding

Adil Ali Saleem, Shaha T. Al-Otaibi, Humaira Anwer, Noor Ayesha et al.
PeerJ Computer Science
Topic Modeling
article

Multi-task nutrition-aware recipe generation network with hierarchical ingredient-nutrition attention and nutritional constraint decoding

Adil Ali Saleem, Shaha T. Al-Otaibi, Humaira Anwer, Noor Ayesha, Roaa Khalil Mohamed Ali Abed
article en

Abstract

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.

PeerJ Computer ScienceVol. 12
Princess Nourah bint Abdulrahman University (SA), Prince Sultan University (SA), Khwaja Fareed University of Engineering and Information Technology (PK)
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon