D-pFoodReQ: Answer-Frequency-Aware Debiasing for Constrained Knowledge-Base Question Answering in Food Recommendation
Food recommendation systems must satisfy dietary preferences and nutritional, health, and ingredient constraints. In constrained food knowledge-base question answering, unequal positive training-answer frequency may influence ranking without necessarily reflecting query–recipe fit. We develop D-pFoodReQ by replacing the pFoodReQ answer ranker with BAMnet-D while retaining its food-knowledge and constraint-processing pipeline. BAMnet-D introduces a separate answer-frequency branch alongside semantic matching, applies candidate-set-relative loss reweighting, and uses a counterfactual-inspired intervention that sets the explicit frequency input to zero during validation and testing. Across three runs using the same protocol on the pFoodReQ benchmark, D-pFoodReQ achieved an F1 score of 62.96 ± 2.06%, compared with 61.33 ± 2.27% for pFoodReQ. Its mean average precision and mean average recall were 66.50 ± 0.54% and 65.38 ± 0.66%, respectively. On 1355 questions for which no gold answer appeared as a positive training label, D-pFoodReQ attained a mean answer-set F1 nearly identical to that of pFoodReQ while achieving higher Recall@5 and NDCG@5. Ablation and output-composition analyses indicated that loss reweighting alone did not account for the full improvement, while retaining the explicit frequency term was associated with a larger share of answers observed as positive training labels. These results support answer-frequency-aware ranking for constrained food knowledge-base question answering.
Authors
- Weiqing Min (ORCID: https://orcid.org/0000-0001-6668-9208)
- Shuqiang Jiang (ORCID: https://orcid.org/0000-0002-1596-4326)
- Guorui Sheng (ORCID: https://orcid.org/0000-0001-6790-0239)
- Zhifang Liu (ORCID: https://orcid.org/0000-0003-3270-2114)
- Yancun Yang
- Wenchao Liu
Institutions
- Ludong University (CN)
- Institute of Computing Technology (CN)
- University of Chinese Academy of Sciences (CN)
Publication Details
- Journal
- Foods
- Published
- 2026-09-24
- DOI
- https://doi.org/10.3390/foods15193418
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00