Manuscript Offprint
arXiv:2610.31506FairFRESH: A Neuro-Symbolic Framework for Fair and Explainable Household Food Recommendation
ABSTRACT
Recommender systems typically serve one user at a time. However in households, members share a finite pantry and follow different dietary rules, making independent recommendations prone to resource conflicts and dietary violations. We formulate household food recommendation as constrained fair division and present FairFRESH, a neuro-symbolic framework that learns per-member utilities, allocates foods under explicit welfare objectives, enforces dietary rules through a deterministic filter, and explains recommendations using Shapley and Banzhaf attributions. Theoretically, we show that no finite penalty guarantees compliance near a dietary-rule threshold, establish approximation guarantees for greedy allocation under utilitarian and smoothed Nash objectives in the stock-free model before filtering, and characterize the scale invariance of Nash welfare. We also use the minimax theorem to analyze rotating shared meals. On NHANES-derived data, the learned utility model achieves Recall@20 of 0.293, outperforming five learned recommenders (at most 0.244) but not a previous-day repetition heuristic (0.321). On held-out four-person households, Nash allocation reduces Gini disparity by 42% relative to conflict resolution while improving Recall@20 from 0.180 to 0.197. It comes within 2% of an upper bound on the smoothed Nash optimum, and rescaling one member's utilities changes at most 1.5% of assignments. All recommendations satisfy the encoded dietary rules, while attribution scores correlate with utility loss upon component removal (r = 0.76). In simulation, shared meals reduce pantry use by about one-third, and weekly rotation increases the worst-off member's utility by 38% over the best fixed meal.
Keywords food recommendation · fair division · multi-agent recommendation · pantry-aware recommendation · neuro-symbolic reasoning · Nash social welfare · envy-freeness
1 Introduction
Recommender systems usually model one user at a time. That assumption suits film or music, but not food: meals are planned around a shared pantry and shaped by the dietary needs of everyone at the table. When two members of a household are recommended the same scarce item, at most one of them can use it, however highly a per-user model scores it for both. When members follow different dietary rules, the same pantry supports different safe choices for each of them (Fig. 1). Household food recommendation is therefore not a ranking problem repeated for every member but an allocation problem over a shared, finite resource.
Existing systems address parts of this problem. Health-aware recommenders optimize nutrition jointly with preference, as in MOPI-HFRS [38], or reason over food knowledge graphs, as in SwissFKG [1], but they score each user against that user's own history. Caldeira et al. [9] bring pantry state into the model, but only as a per-user ranking feature,
Accepted and presented at the 8th International Conference on Communication and Intelligent Systems (ICCIS 2026), BITS Pilani, K K Birla Goa Campus, India; the conference version will appear in Springer's Lecture Notes in Networks and Systems. This arXiv version adds the analysis of the constraint penalty and of greedy allocation, the bargaining characterization of the allocation rules (Section 3.3, Appendix A), the extension to shared household meals and their rotation (Section 6), and the corresponding experiments.
which treats a shared, finite resource as if it were unlimited. Group recommenders aggregate preferences into one package that every member shares [28, 34], so they never divide a resource that one member's choice depletes for another. Dietary safety is typically encoded as a learned penalty or a soft objective, which a strong taste or popularity signal can outweigh, and explanations, where present, address one user's ranking rather than a household's allocation.
Fair division studies how to divide a finite set of goods among agents with different preferences so that the outcome is efficient and equitable [29], which is the situation of a household sharing one pantry. We introduce FairFRESH, a neuro-symbolic framework that treats household food recommendation as fair division of indivisible goods under per-member dietary rules.
A three-stage pipeline produces each household recommendation. In the first stage, a learned utility model combines taste, pantry, and retrieval-augmented dietary encoders to score every member–food pair. In the second stage, an explicit welfare rule (utilitarian, max-min, or Nash) allocates foods from the resulting utility matrix, so that no item is promised to two members. In the third stage, a deterministic symbolic filter removes any food that breaks a member's dietary rule. A post-hoc module then explains the verified recommendations with Shapley and Banzhaf attributions over the pipeline's components. This division of labor allows the learned components to rank, while the filter alone decides safety and the explanation module never feeds back into a decision. Every final recommendation therefore satisfies the encoded dietary rules, whatever the learned scores.
We evaluate FairFRESH on NHANES-derived households of two to six members, comparing it with five recommender baselines and five allocation strategies. The evaluation addresses four research questions. RQ-A: does a food's availability, measured by the member's previous-day consumption, carry predictive signal beyond taste? RQ-B: how does the allocation rule change equity when members compete for one pantry, and at what cost in accuracy? RQ-C: does retrieval-augmented encoding of dietary constraints cover members' requirements without weakening the safety guarantee? RQ-D: can cooperative-game attributions explain household recommendations faithfully, without changing the decisions they explain?
Contributions This paper makes the following contributions.
-
We introduce FairFRESH, which formulates household food recommendation as fair division of a shared, finite pantry: servings are private goods allocated under per-member safe sets and a cap of K items (Section 3.1). We prove that no finite penalty weight can certify safety near a rule threshold (Proposition 1), so FairFRESH enforces the rules with a deterministic filter, and we show that, at the optimum, allocating within safe sets dominates filtering afterwards (Proposition 4).
-
The key component of FairFRESH is an explicit allocation layer. One greedy procedure implements the utilitarian, max-min, and Nash rules; we bound it for the utilitarian and smoothed Nash objectives before filtering (Proposition 2), find it within 1–5% of exact optima in practice, and show through bargaining theory that only the exact Nash rule is invariant to how members' utilities are scaled (Proposition 3). Shapley and Banzhaf attributions then explain the household allocation, not one user's ranking (Section 3.5).
-
We extend FairFRESH to dishes cooked once and shared by the household. Using the minimax theorem, we show that rotating shared dishes over days can only help the worst-off member, and that a linear program computes the best rotation (Proposition 5).
-
We provide a detailed empirical evaluation on households of two to six members, with all allocation results on users disjoint from training. The utility model ranks above five learned recommenders, and a repeat heuristic shows that previous-day consumption carries most of the signal. Under exclusive household allocation, Nash allocation lowers Gini by 42% relative to conflict resolution with higher Recall@20 and changes at most 1.5% of its assignments when utilities are rescaled. Shared meals save about a third of the pantry (Sections 5 and 6).
Fairness in recommender systems usually concerns exposure across items or disparities across large user groups [8]. A household is instead a small, fully known group sharing one pool of resources. Group recommenders aggregate member preferences [28] or impose proportionality and envy-freeness on a shared package [34], but every member receives the

Figure 1: Motivation. One shared pantry yields different safe recommendations for members with different dietary rules, so household recommendation is an allocation problem rather than a ranking repeated for each member.
same items, so each item acts as a public good. These systems do not model private servings drawn from a common stock.
Fair division studies exactly this setting. For indivisible goods with additive valuations [29], envy-free allocations need not exist, but EF1 allocations do, and round robin finds one in polynomial time [10]. Without further constraints, every Nash-optimal allocation is Pareto-optimal and EF1 [10], but computing one is APX-hard [32, 25], and the max-min optimum is NP-hard to approximate within any factor below two [4]. Cardinality limits change which of these guarantees survive [36, 7].
Reviewer assignment poses a closely related constrained problem, where Stelmakh et al. maximize the quality of the most disadvantaged paper under load constraints [35]; members play the role of papers and foods that of reviewers. When every agent consumes an item, allocation becomes a public decision judged by how well the common choice serves each agent [12, 14]. This literature assumes known valuations and has not been connected to learned utilities or dietary constraints.
Neuro-symbolic methods such as logic tensor networks [11, 2] relax symbolic constraints into differentiable objectives, which a high taste or popularity score can outweigh. Post-hoc explanation methods such as the Shapley value [26] and the Banzhaf index [3], evaluated with the faithfulness correlation of Bhatt et al. [5], attribute a single prediction to its inputs. Neither line addresses a guarantee or an explanation at the level of a household allocation.
FairFRESH takes learned per-member utilities from the recommendation literature and passes them to a fair-division allocation layer, so the pantry is divided rather than scored separately for each member. Its soft penalty comes from the same symbolic rules as a deterministic filter, which alone decides compliance (Sections 3.2 and 3.4). Its attributions are defined over the household allocation rather than one user's ranking, and shared dishes enter as public goods (Section 6).
3 Methodology
Figure 2 shows the architecture of FairFRESH. The pipeline has four stages: (1) the utility model, (2) the allocation layer, (3) the symbolic safety filter, and (4) the post-hoc explainability module.
Household inputs feed the utility model, whose scores form the household utility matrix. The allocation layer assigns foods from that matrix under an explicit welfare rule, and the safety filter removes any food that breaks its member's dietary rules. The explainability module then explains the verified recommendations without feeding back into any earlier stage. We first define the problem and then describe each stage.
3.1 Preliminaries and Problem Definition
Model. A household is a set of members sharing a fixed pantry . Each member contributes stated preferences, an interaction history, and a health profile (conditions, dietary tags, and allergies) that determines a set of dietary rules . Over a food catalog , FairFRESH learns a utility for every member–food pair (Section 3.2) and recommends to each member a bundle . Bundles are disjoint, because an item allocated to one member is unavailable to another, and each holds at most items; Section 6 relaxes disjointness for dishes cooked once and shared by the household. Since is far smaller than , allocations are partial: most of the catalog stays unallocated. Utilities are additive, .

Figure 2: FairFRESH. Taste, retrieval-augmented dietary, and pantry encoders, fused by multi-head attention, produce a utility for every member–food pair. An allocation rule (utilitarian, max-min, or Nash) assigns foods from the utility matrix, a symbolic filter removes unsafe foods, and a post-hoc module turns Shapley and Banzhaf attributions into natural-language explanations without affecting any decision.
Dietary rules. Each rule is expressed as a normalized slack , with meaning that satisfies the rule. For a nutrient limit, , where is the amount of the limited nutrient in a serving of and is the per-serving limit; for an exclusion such as an allergen, if contains the excluded ingredient and otherwise. Food is safe for member if for every . We write for member 's safe set and for its complement.
Fairness and efficiency. We use the standard notions of fair division [29], adapted to safe sets. A member is never served an unsafe food, so when comparing bundles we value them by their safe part, . An allocation is envy-free (EF) if for all , and envy-free up to one good (EF1) if, for all with , some satisfies . It is Pareto-optimal (PO) if no feasible allocation makes some member better off and no member worse off. We compare three welfare objectives, the utilitarian, egalitarian (max-min), and Nash social welfare:
Matroid structure. Encode an allocation as a set of member–food pairs, with . Feasibility requires that (i) each food appears in at most one pair and (ii) each member appears in at most pairs. Each condition defines a partition matroid on , so the feasible allocations are exactly the common independent sets of two matroids. Section 3.3 uses this structure to bound the quality of greedy allocation.
3.2 Utility Model
The utility of food for member i combines three encoders.
Taste encoder. The user embedding is a TF-IDF weighted mean of sentence embeddings of the member's previous-day foods, so a user unseen in training is represented by the same function of their history. We concatenate it with the food embedding , the sentence embedding of the food's description, and pass the result through a small feedforward network with GELU activations and layer normalization, giving a taste representation that captures preference independently of pantry or dietary state.
Retrieval-augmented constraint encoder. We represent dietary requirements by retrieving evidence for a health query from a nutrition corpus , ranked by cosine similarity:
The retrieved passages are projected into the latent space and passed through self-attention, so that, for example, a note on potassium restriction can interact with one on kidney function, and are then pooled by learned attention into a constraint vector . Grounding this vector in retrieved evidence rather than in parameters alone allows the explanation module (Section 3.5) to cite the specific evidence behind a recommendation.
Pantry (availability) encoder. NHANES records no household inventory, so we use what a member ate the day before as a proxy for what is at hand. With the foods in member i's previous-day record,
which we project into the same latent space as and , giving the model a per-pair availability signal to weigh against taste and dietary fit.
Fusion and utility. We stack the three vectors and apply multi-head attention, so the model can learn how to weight each signal for a given pair. The result is flattened, combined with explicit recency and popularity features , and passed through an MLP that outputs a neural score . The utility combines this score with the raw pantry match and popularity and subtracts a soft constraint penalty:
where weight the neural, pantry, popularity, and penalty terms and denotes the unpenalized logit.
Soft constraint penalty. The penalty is built from the same rules that the safety filter enforces:
with rule weights and a temperature . Because , the penalty is a smoothed form of the exact penalty and converges to it as ; the hard filter is the all-or-nothing form of the same rules. With unit rule weights, , and logistic noise in the nutrient data, SCP is the log-probability that the food is safe, so the penalized utility approximates the probability that a food is both chosen and safe when (Appendix A.1); this reading is a special case and is not needed for Proposition 1. The penalty supplies gradients that a step-function rule cannot, but it cannot replace the filter.
Proposition 1 (Limits of a soft penalty). Fix member . Let for all , and let .
(a) Clear violations. Let . If
then every food that violates a rule of member i by at least ranks below every safe food.
(b) Near-threshold violations. Let be safe with , and let differ from only in rule c, with . For every finite , the unsafe ranks above whenever .
Part (a) shows that a learned penalty can push clear violations down the ranking, but only when the logit is bounded, and its condition fails as . Part (b) shows that, for any finite weight, foods just over a limit cannot be separated from foods just under it, since the required margin vanishes as . Certifying near-threshold foods therefore requires the deterministic filter of Section 3.4. Proofs are given in Appendix A.
3.3 Allocation Rules and Greedy Allocation
Independent top-K lists ignore that the pantry is shared, so FairFRESH selects a feasible allocation with one of the welfare rules of Eq. 1. The utilitarian rule maximizes total utility but may leave a member underserved; the egalitarian (max-min) rule protects the worst-off member at some cost in total utility; and the Nash rule balances the two, because the product falls sharply when any member's utility approaches zero. Proposition 3 below characterizes this balance.
Algorithm 1 Greedy household allocation as an adaptive picking sequence
Require: utilities ; cap ; rule ;
1: for every member ;
2: while and some member has do
3: ; for every
4:
▷ ties: lowest index
5: ;
6: end while
7: for every
8: return
▷ safety filter, Section 3.4
Greedy allocation. Exact optimization is intractable for the Nash and egalitarian rules (Section 2), so all three rules share one greedy procedure (Algorithm 1). Starting from empty bundles, each step gives one member its best remaining food, until every member holds items or no food remains; the rules differ only in which member moves next. The utilitarian rule picks the member whose best remaining food has the highest utility, which adds the feasible pair of largest marginal gain in . The Nash rule does the same for the smoothed objective
which keeps gains finite while bundles are empty; because the set of allocations is finite, for sufficiently small its maximizers also maximize the Nash product. The gain of giving to is , so the Nash rule picks the member with the largest ratio , where is that member's best remaining food.
The egalitarian rule gives the next food to the currently worst-off member, a max-min heuristic rather than a marginal-gain step. Greedy allocation is thus an adaptive picking sequence, of which round robin is the fixed-order counterpart. With each member's candidates sorted once, Algorithm 1 runs in time.
Proposition 2 (Greedy allocation). Consider Algorithm 1 on the feasible allocations of Section 3.1, before filtering and without a stock limit.
(a) Nash. is monotone and submodular, and greedy Nash allocation attains at least of its maximum [15].
(b) Utilitarian. Greedy utilitarian allocation attains at least of the optimum [24]. The optimum is a maximum-weight bipartite -matching, computable in polynomial time.
(c) Egalitarian. Approximating the egalitarian optimum within any factor below 2 is NP-hard [4]. We claim no guarantee for the greedy egalitarian rule.
Part (a) bounds the smoothed objective, not the Nash product. Neither bound carries over to the filtered output in general, since removing unsafe foods can lower utilities unevenly; in our experiments, however, the filter removes nothing (Section 3.4). The experiments also enforce a pantry stock (Section 4), a knapsack constraint outside the matroid model, so Appendix B compares greedy allocation with exact optima instead.
The EF1 guarantee of the exact Nash optimum [10] does not transfer either: it holds for complete allocations without constraints, whereas under our cap the Nash optimum is PO within the feasible set but not known to be EF1. Round robin over safe foods, stopped after rounds, is EF1 under safe-part valuations and is the natural benchmark for an EF1 audit (Appendix B).
A bargaining view of the three rules. Household allocation is an -person bargaining problem [30, Ch. 26]: is the set of utility vectors of feasible allocations, and the disagreement point is what every member receives if no allocation is agreed, an empty bundle. The utilitarian and egalitarian rules correspond to the utilitarian and egalitarian solutions of bargaining theory [30, Sec. 26.6], and the Nash rule to the Nash bargaining solution of [31], the only one of the three characterized by Nash's axioms. The smoothed objective is the Nash product with disagreement point , since . Nash's axioms assume a convex feasible set. Convexity arises here when the household rotates allocations over repeated meals: a rotation that uses allocation on a fraction of the meals yields expected utilities in the convex hull , which is the rationale for convexity in bargaining theory [30, Sec. 26.2].
Proposition 3 (Bargaining properties). Let be the set of utility vectors of feasible allocations.
(a) Scale covariance. For constants , replacing each by leaves the Nash-optimal allocations unchanged. The utilitarian and egalitarian rules lack this property, both exactly and greedily.
(b) Synthesis. Suppose contains a vector with positive entries, and let maximize over . With ,
Conversely, any positive with both properties for some is the Nash solution.
(c) Greedy step. Let . The Nash rule of Algorithm 1 selects the member maximizing . As , this choice is invariant to rescaling among members that already hold an item.
Part (a) matters because utilities are model estimates whose scale may differ across members, for instance when a longer history yields more confident scores. The Nash optimum does not depend on how utilities compare across members [22], whereas there are instances in which the utilitarian rule favors a member whose utilities are scaled up and the egalitarian rule one whose utilities are scaled down (Appendix A).
Part (b) extends Proposition 26.1 of [30] from two members to : the Nash rule is a utilitarian rule that weights each member by the inverse of its utility, and an egalitarian rule in those weighted units, which is why it lands between the other two rules in Table 2. Part (c) shows that greedy Nash allocation applies this reweighting one pick at a time, with weights for disagreement point ; rescaling can affect only the order in which members with empty bundles make their first pick. It is scale-free once every member holds an item, and fixing the order of first picks removes the remaining dependence as . Section 5.3 tests (a) and (c).
3.4 Symbolic Safety Filter
The penalty in Eq. 4 shapes the ranking but, by Proposition 1, cannot guarantee safety. After allocation, a deterministic verifier therefore removes from each bundle every food that breaks a rule of its member, regardless of score:
In the allocation experiments, the rules limit sodium to 500 mg per serving for members with hypertension and carbohydrates to 50 g per serving for members with diabetes; the coverage evaluation of Section 5.5 adds chronic kidney disease (CKD) and cardiovascular disease (CVD). The filter guarantees compliance with these encoded per-serving rules; it does not establish clinical safety, which would also depend on rule completeness, nutrient data, portion sizes, and whole-day intake.
We measure compliance with the constraint satisfaction rate of an allocation B,
Before filtering, measures what the learned components achieve alone; after filtering, whenever the filter has the full rule set. In the ablation of Section 5.6, rules are removed from the filter, and , still measured against the full rule set, can fall below one.
Filter placement. The filter runs after allocation so that it stays independent of the allocation rule and can audit any upstream policy. The cost is that removed foods are not replaced, so a verified bundle can hold fewer than K items, and the loss falls mostly on members with the most restrictive rules. The alternative is to allocate within the safe sets , which never does worse at the optimum:
Proposition 4 (Safe-set allocation at the optimum). For any welfare objective , let maximize over all feasible allocations, and let maximize over feasible allocations with for every . Then
where is after filtering.
In practice the filter has nothing to remove: across the 219,539 recommendations of the held-out allocation runs, the soft penalty already keeps every recommendation within the rules, so . The shared-meal extension of Section 6 allocates within the safe sets.
3.5 Post-Hoc Explainability Module
The verified recommendations feed a post-hoc explainability module, which computes attributions only after the utility, allocation, and safety decisions are final. FairFRESH explains why a food reaches a member by treating the pipeline as a cooperative game whose players K are the five components that shape a member's utility and allocation: Taste, Pantry, RAG, Popularity, and Fairness. Safety is not a player: the filter is a hard constraint that stays active in every coalition, since crediting it with utility would treat safety as something that can be traded off.
The value function is defined for each member–food pair that the full pipeline recommends. For a coalition , we recompute the utilities and rerun the allocation with only the components in active; with and the resulting utilities and allocation, the value of the pair is if and 0 otherwise.
Removing Taste sets the user embedding to zero, removing Pantry sets to zero, removing RAG replaces the retrieved evidence of Eq. 2 by padding, removing Popularity sets to zero, and removing Fairness replaces exclusive Nash allocation by independent top-K lists. The dietary rules stay active in every coalition, and unsafe foods are excluded before allocation. Thus is the utility that component adds once the components in are present, and attributions are averaged over pairs. Averaging this marginal over all orderings gives the Shapley attribution of component ,
and averaging it uniformly over coalitions gives the Banzhaf index,
Both indices are linear in [30, Ch. 29], so the mean attributions over households that Section 5.7 reports are the attributions of the household-averaged game. The Shapley value is efficient, ; the Banzhaf index is not.
The two indices also weight coalitions differently. The Shapley value gives each coalition size total weight 1/5, and the Banzhaf index gives size weight , so the coalitions with none or all of the other components count for 1/5 under Shapley but 1/16 under Banzhaf. Since every size receives Banzhaf weight at least 1/16, a component whose mean marginal contribution is non-negative at every coalition size satisfies .
We pass these attributions, together with the retrieved evidence, the pantry overlap, and allocation metadata, to a lightweight language model whose only task is to render them in natural language. The generated text is checked against the same evidence and rejected if it introduces a condition, ingredient, nutrient, or line of reasoning that was not used. The module can therefore explain the pipeline’s decisions but cannot change ranking, allocation, or safety.
4 Experimental Setup
We evaluate FairFRESH on households of two to six members built from a national health and diet survey. We first measure the individual accuracy of the utility model and then compare allocation strategies that share this model, so that differences between strategies come from the allocation layer alone.
4.1 Data
User profiles come from the National Health and Nutrition Examination Survey (NHANES), pooling public releases from cycle C through the March 2023 release (2003–2023). For each respondent, we join the demographic, medical-condition, body-measurement, blood-pressure, and two-day dietary-recall components by sequence number; BMI, diabetes status, and hypertension are read directly from these records. Each recall lists the USDA food codes the respondent consumed; together they form the 8,704-item catalog F. The first recall day is a respondent's history and the second the test interactions. The utility model is trained on 1,000 respondents, with each user's first-day foods as input and second-day foods as positives. The allocation experiments use 1,000 other respondents, drawn from the 60,814 eligible respondents not used in training, and the individual comparison of Section 5.2 uses 400 further test users.
Because NHANES records individuals rather than households, we form households of n = 2–6 by sampling respondents without replacement within each size (100 households per size); households of different sizes may share respondents. The utility model is trained once and held fixed across all allocation strategies.
Availability and stock. NHANES records no household inventory, so we use two proxies. In the utility model, a food is available to a member if the member reported it on the first recall day (Eq. 3). In allocation, each household receives a stock of 2 to 7 units of each of the 100 most frequent words in food descriptions, which stand in for ingredients; a food requires one unit of each of its description words, and strategies B–E allocate a food only if the remaining stock can supply it, deducting its requirements.
4.2 Baselines
For individual accuracy, we compare FairFRESH's utility model with BPRMF [33], NeuMF [19], LightGCN [20], GRU4Rec [21], and SASRec [23], and with two heuristics: Popularity, and Repeat-D1, which ranks a user's first-day foods by popularity ahead of all other foods. The ID-based models are trained with the test users' first-day interactions, so every test user has a trained embedding. For household allocation, five strategies share the same utility model: (A) independent top-K lists per member, which may give the same food to several members; (B) conflict resolution, which merges the members' top-K lists in order of utility and skips any food already held by another member; and the (C) utilitarian, (D) egalitarian (max-min), and (E) Nash rules of Section 3.3. Strategies B–E allocate each food to at most one member, as Section 3.1 requires; strategy A does not and serves only as an uncoordinated reference.
4.3 Evaluation Protocol and Metrics
We report accuracy against held-out interactions (Recall@20 and NDCG@20); the pantry utilization rate (PUR), the share of a member's recommendations drawn from the household's first-day foods, normalized by ; equity over members' utilities, namely the Gini coefficient, minimum utility, and Nash social welfare (NSW, the geometric mean of member utilities); and dietary coverage, namely retrieval success, evidence relevance, and CSR (Eq. 8). Each member receives items, matching the metric cutoff, and the Nash rule uses .
Minimum utility and NSW are the objectives of the egalitarian and Nash rules, so we compare rules mainly on the other metrics. Equity is computed on predicted utilities, which assumes they are comparable across members; Section 5.3 tests how much each rule depends on this assumption. We report 95% bootstrap confidence intervals (2,000 resamples over households, or over users for Table 1) and compare strategies with paired t-tests over households, reporting the paired effect size . Training and baseline settings are in Appendix B.
Tables 2 and 3 use the same 100 four-person households, so the full model in the ablation is Nash allocation in Table 2. The size sweep draws its own households; at n = 4, its Nash results (Recall@20 0.218, Gini 0.106) differ from Table 2 (0.197 and 0.112) within sampling variation, with overlapping confidence intervals. The attribution analysis uses 500 households of two to six members (2,000 members) from the same held-out pool.
5 Results
5.1 RQ-A: Does Availability Provide Useful Signal?
On the 400 test users, zeroing the availability input of the trained utility model, a state it sees for every food a member did not eat the day before, cuts Recall@20 from 0.293 to 0.083 and NDCG@20 from 0.311 to 0.091. Replacing each member's first-day foods with a random set of the same size gives 0.045 and 0.027. With the real input, 96.6% of the top 20 recommendations are first-day foods, against 8.5% when the input is zeroed. Most of the model's accuracy therefore comes from predicting that people eat again the foods they ate the day before.
5.2 Comparison with Recommender Baselines
Table 1 reports individual-level accuracy. Repeat-D1 is the most accurate method (Recall@20 0.321), which confirms how much of the signal lies in previous-day consumption. The utility model is second (0.293) and above every learned baseline; the strongest of these are LightGCN (0.244) and BPRMF (0.220), and Popularity alone reaches 0.235. Individual ranking is therefore not where FairFRESH's contribution lies. The allocation layer needs a utility for every member–food pair that combines availability with taste, popularity, and the dietary penalty, and the utility model supplies these at an accuracy close to the repeat heuristic.
To test what the learned utilities add, we allocate the held-out households of Table 2 with Repeat-D1 scores as utilities. Nash allocation then reaches a slightly higher Recall@20 (0.210 against 0.197) but leaves dietary compliance entirely to the filter: 2.7% of allocated foods break a member's rule, and after filtering, members with diabetes or hypertension hold 17.8 items instead of 20 ( , , paired over households). With learned utilities, the dietary penalty keeps every allocated food within the rules before filtering, at a small cost in accuracy.
Table 1: Individual-level accuracy on 400 test users (mean over five seeds for trained baselines; 95% user-bootstrap confidence intervals in brackets).
| Method | Recall@20 | NDCG@20 |
|---|---|---|
| Popularity | 0.235 [0.221, 0.248] | 0.253 [0.241, 0.265] |
| Repeat-D1 | 0.321 [0.304, 0.339] | 0.376 [0.358, 0.393] |
| BPRMF | 0.220 [0.206, 0.234] | 0.234 [0.220, 0.249] |
| NeuMF | 0.111 [0.105, 0.117] | 0.141 [0.133, 0.149] |
| LightGCN | 0.244 [0.231, 0.258] | 0.262 [0.250, 0.274] |
| GRU4Rec | 0.207 [0.195, 0.220] | 0.234 [0.220, 0.247] |
| SASRec | 0.012 [0.004, 0.022] | 0.005 [0.002, 0.008] |
| FairFRESH utility model | 0.293 [0.276, 0.311] | 0.311 [0.293, 0.331] |
| without availability input | 0.083 [0.074, 0.093] | 0.091 [0.080, 0.102] |
5.3 RQ-B: Does Fairness Improve Household Recommendation?
Table 2 compares the five strategies on 100 held-out four-person households. Conflict resolution (B) is the least equitable coordinated strategy on every equity metric. A member displaced from a contested food moves down their own list, and because the lists hold only each member's top 20 foods, displaced members can end with fewer than 20 items (Table 6, Appendix B). Among the three allocation rules, the egalitarian rule is the most equal, the utilitarian rule the least equal, and Nash allocation sits between them with the highest Recall@20 of any coordinated strategy.
Table 2: Household allocation on 100 held-out four-person households, with 95% household-bootstrap confidence intervals. Higher is better except for Gini. Bold marks the best coordinated strategy (B–E) in each column; A is an uncoordinated reference that may give the same food to several members.
| Strategy | Recall@20 | Min Util. | Gini | NSW |
|---|---|---|---|---|
| A) Independent | 0.266 [0.250, 0.282] | 9.79 [9.36, 10.21] | 0.109 [0.100, 0.118] | 12.76 [12.42, 13.09] |
| B) Conflict resolution | 0.180 [0.165, 0.194] | 5.35 [5.00, 5.70] | 0.192 [0.180, 0.205] | 8.54 [8.25, 8.81] |
| C) Utilitarian | 0.194 [0.180, 0.209] | 7.64 [7.31, 7.96] | 0.146 [0.136, 0.155] | 10.72 [10.45, 10.99] |
| D) Max-Min | 0.188 [0.173, 0.202] | 8.75 [8.41, 9.08] | 0.088 [0.079, 0.096] | 10.56 [10.27, 10.87] |
| E) Nash | 0.197 [0.182, 0.211] | 8.56 [8.23, 8.89] | 0.112 [0.103, 0.121] | 10.98 [10.70, 11.27] |
Strategy A is more accurate (Recall@20 0.266) only because it gives contested foods to several members at once, so its accuracy is a ceiling rather than a feasible baseline. Paired over the 100 households, Nash allocation lowers Gini relative to conflict resolution by 42%, from 0.192 to 0.112 (, ), raises NSW from 8.54 to 10.98 (, ), and raises Recall@20 from 0.180 to 0.197 (, ). Strategies C, D, and E are EF1 in every household, and conflict resolution in 92–99% depending on household size. Round robin over safe foods, the EF1 benchmark of Section 3.3, is a strong simple alternative: on a separate set of four-person households it matches Nash allocation on Recall@20 (0.216 against 0.218) with lower Gini (0.097 against 0.106) and lower NSW (10.47 against 10.63; Appendix B).
Robustness to utility scale. Proposition 3(a) predicts that the utilitarian and egalitarian rules respond to how one member's utilities are scaled, while the Nash rule does not. We multiply the utilities of one randomly chosen member of each household by and rerun allocation. Doubling a member's utilities changes 35% of utilitarian assignments and raises that member's true utility by 16%; halving them changes 41% of egalitarian assignments and raises it by 13%. Greedy Nash allocation changes 1.5% of assignments at and 0.2% at , and the rescaled member gains nothing (changes of -0.010 and +0.002 in utility). With the order of first picks fixed (Proposition 3(c)), no assignment changes. Round robin uses only each member's ranking and is invariant to rescaling by construction.
5.4 Scaling with Household Size
Fig. 3 plots Gini and minimum utility against household size for ; Table 6 in Appendix B reports all metrics.
Conflict resolution degrades steadily as households grow (Fig. 3): its minimum utility falls by 61% from n = 2 to n = 6 and its Gini more than doubles. Part of the loss is that displaced members run out of candidates: the merged lists hold only each member's top 20 foods, so members receive 15.1 items on average at n = 2 and 9.7 at n = 6. Nash allocation degrades more gently, its minimum utility falling by 33%, so its lead over conflict resolution on that measure widens from 1.84 at n = 2 to 3.76 at n = 6. The egalitarian rule shows the smallest Gini increase but ends with the
(a) Gini of member utility

(b) Minimum member utility
Figure 3: Scaling with household size, plotted from Table 6. (a) Gini of per-member utility (lower is more equal). (b) Minimum member utility (higher is better). Percentages mark the changes from to discussed in the text. Independent recommendation (dashed) is an uncoordinated reference (Section 5.3).
lowest Recall@20 of any coordinated strategy (0.160 at ). Nash allocation attains the highest NSW at every size, and its Recall@20 is within 0.002 of the most accurate coordinated strategy throughout. CSR remains 1.00 for every strategy and household size. The advantage of fair allocation therefore grows with household size.
5.5 RQ-C: Retrieval-Augmented Constraint Coverage
Retrieval for the constraint encoder succeeds for all four conditions tested. Before filtering, the retrieval-augmented encoder alone attains constraint satisfaction of 100% for diabetes and hypertension, 96% for CKD, and 98% for cardiovascular disease (CVD), with evidence-relevance scores of 0.95, 0.94, 0.88, and 0.91. These figures measure retrieval and evidence quality, not clinical validity.
5.6 Component Ablation
Table 3 compares the full model with four single-component ablations under the protocol of Table 2; removing the fairness optimizer means allocating by the utilitarian rule.
Table 3: Component ablation on the held-out four-person households of Table 2, under Nash allocation unless stated. The full model's Recall@20 (0.197) lies below its individual-level value in Table 1 (0.293) because each food goes to one member. CSR is measured against the full rule set.
| Model | Recall@20 | CSR | Gini | NSW |
|---|---|---|---|---|
| Full FairFRESH | 0.197 | 1.000 | 0.112 | 10.98 |
| w/o Pantry (availability) Encoder | 0.064 | 1.000 | 0.160 | 5.58 |
| w/o Medical Constraint | 0.194 | 0.856 | 0.124 | 9.23 |
| w/o Fairness Optimizer (utilitarian) | 0.194 | 1.000 | 0.146 | 10.72 |
| w/o RAG Constraint Encoder | 0.200 | 1.000 | 0.087 | 10.06 |
Removing the availability encoder cuts Recall@20 from 0.197 to 0.064 and NSW from 10.98 to 5.58, the largest loss of any component. Without the medical-constraint input, which removes the dietary rules from both the utility model and the filter, Recall@20 barely moves but 14.4% of recommendations break a member's dietary limit. Utilitarian allocation in place of the fairness optimizer lowers Recall@20 slightly (0.194) and raises Gini from 0.112 to 0.146. (In the attribution game of Section 3.5, removing Fairness instead means independent lists, which isolates its effect on utility.) Removing the retrieval-augmented encoder leaves CSR at 1.000, since the encoder supplies no rules to the filter; Recall@20 changes little (0.200), Gini falls to 0.087, and NSW falls to 10.06. With only diabetes and hypertension present, its role is the coverage of Section 5.5 and the evidence behind explanations.

Figure 4: Game-theoretic explainability on 500 held-out households of two to six members. (a) Attribution faithfulness: correlation r between each component's attribution and the utility drop observed when that component is removed. (b) Mean Shapley and Banzhaf attribution per component, sorted by Shapley value. Safety is not a player, since the filter is a hard constraint rather than a source of utility (Section 3.5).
5.7 RQ-D: Are Post-Hoc Explanations Faithful?
Fig. 4 reports attributions on 500 held-out households of two to six members (2,000 members, 40,000 member–food pairs). We measure faithfulness as the correlation between a component's attribution and the utility lost when that component is removed, the single-component case of the faithfulness correlation of Bhatt et al. [5]. Shapley attributions track these losses closely (r = 0.763) and Banzhaf attributions less closely (r = 0.597; Fig. 4a). The test removes components with the same operator as the value function v, so it shows that the attributions agree with the pipeline's own removal behavior, not causal faithfulness in a stronger sense.
By efficiency, the mean Shapley values sum to ; the Banzhaf indices sum to 0.378. Pantry receives the most credit under both indices (Shapley 0.246, Banzhaf 0.192), 40% of the Shapley total and about twice the credit of taste (0.121 and 0.071), in line with RQ-A and the ablation. RAG is third (0.103 and 0.066), followed by Popularity (0.082 and 0.042) and Fairness (0.064 and 0.007).
Fairness redistributes utility rather than creating it, so its effect shows in Gini and minimum utility (Tables 2 and 6) rather than in total utility. It is also the only component that violates (Section 3.5): its Shapley value of 0.064 would require a Banzhaf index of at least 0.020 if its mean marginal contribution were non-negative at every coalition size, against the observed 0.007. Fairness therefore lowers total utility in coalitions of some intermediate size and earns its Shapley credit in the smallest and largest coalitions, which the Shapley value weights more heavily.
Four automated checks of 1,000 generated explanations against the retrieved evidence give 98.7% text faithfulness, 100.0% evidence-citation accuracy, 99.8% completeness, and 99.1% attribution consistency.
6 Extension: Shared Household Meals
The formulation of Section 3.1 gives each member a disjoint bundle, which models meals assembled from individual servings. Household dining, however, often centers on dishes cooked once and eaten by everyone, such as a common pot of rice or dal. A shared dish is a public good, while the remaining slots stay private goods (Section 2), so we choose shared dishes by a max-min criterion over members rather than by envy, and evaluate the extension with simulated and with learned utilities.
Setting. As in the main experiments, the pantry is a stock vector over ingredients and, for each dish , a requirement vector , which is one serving for an individual item and one household batch for a shared dish. A dish is in stock if componentwise, and allocating it sets . We use two settings, each with 100 four-person households under five seeds, , and : 3,597 Indian recipes from RecipeNLG [6] with simulated utilities and randomly assigned exclusion rules, and the NHANES foods of the held-out evaluation pool with the trained model's utilities and dietary rules. Appendix B gives the details.
Two-stage allocation. Algorithm 2 (Appendix B) first chooses one grain and one dal that are cooked once and added to every member's bundle, so their ingredients are charged to the pantry a single time. Because every member eats a shared dish, it must lie in every member's safe set, , and the pair is chosen to maximize the utility of the worst-off member. The remaining slots of each bundle are then filled by the Nash rule of Algorithm 1, starting from the utility each member already receives from the shared dishes and skipping any item that is unsafe for its member or that the remaining pantry cannot supply.
If no safe grain–dal pair is in stock, Stage 1 is skipped and the procedure reduces to Nash allocation within the safe sets. As in Section 3.1, each dish is allocated to at most one member per meal, even when the stock could supply a second serving; the stock limits which dishes can be prepared, and the exclusivity rule keeps bundles distinct.
Stage 1 is exact: it enumerates all safe pairs in time. Stage 2 is the Nash step of Algorithm 1 with initialized to the utility of the shared dishes, and it ends after at most picks. Proposition 2 does not carry over: shared dishes break the disjointness of Section 3.1, and the stock constraint is a knapsack constraint rather than a matroid, so we claim no approximation guarantee for Stage 2. Both stages choose only from safe sets, so no post-hoc filter is needed, as Proposition 4 recommends.
Rotating shared meals. Stage 1 is a matrix game [30, Ch. 9] whose rows are the safe pairs , whose columns are the members, and whose payoff is : a planner chooses a pair and an adversary chooses the member on whom it is judged. Stage 1 returns the planner's maxmin value in pure strategies [30, Sec. 6.6]. A household that plans shared meals for days need not cook one pair every day, and in practice rarely does. A rotation that cooks pair on a fraction of the days is a mixed strategy of the planner, under which the worst-off member's average utility from the shared dishes is .
Proposition 5 (Rotating shared meals). Consider the rotation problem without stock limits. Let be the best worst-off utility from a single pair and the best from a rotation:
(a) Minimax. , and
An optimal rotation and member weighting solve a linear program and its dual.
(b) Support. Some optimal rotation uses at most n distinct pairs.
(c) Binding members. If , member receives exactly under . If , pair maximizes .
Part (a) follows from the minimax theorem [30, Thm. 9.2]: rotation can only help the worst-off member, and the best rotation is computed exactly. By (b), a four-person household needs at most four shared meals. By (c), names the members whose preferences bind the plan, which the explanation module can report. Every pair in is safe for every member, so every rotation is safe.
Without stock limits we round to a T-day plan by largest remainders. Stock limits over the plan, , are linear, so the problem remains a linear program, and each binding stock constraint adds at most one pair to the bound in (b). With stock limits, the linear program still gives the best fractional rotation, but rounding can violate the stock. We therefore compute the T-day plan exactly as an integer program and compare it with the best pair that can be cooked on all T days.
Results. Table 4 compares three strategies in each setting over 500 households. Per-item utilities are min-max normalized to , so a bundle's utility lies between 0 and 6. Unstructured allocation applies the single-serving procedure of Section 3.3 with no meal structure. Structured individual allocation gives each member, in index order, the safe and in-stock grain–dal pair with the highest utility for that member, cooked for that member alone, and fills the remaining slots by the Nash rule. Structured shared allocation is Algorithm 2. Full meal is the share of members whose bundle contains both a grain and a legume, and pantry used is the share of the pantry stock consumed.
Unstructured allocation attains the highest mean and minimum utility but rarely forms a complete meal: 28.6% of members receive both a grain and a legume with Indian recipes, and 0.6% with NHANES foods, where grains and legumes are a small part of the catalog. Individual servings complete every meal but raise pantry use, since each member's grain and dal are cooked separately. Shared meals also complete every meal and use the least stock: 32% less than individual meals with Indian recipes and 31% less with NHANES foods. They also lower Gini, from 0.030 to 0.024 and from 0.045 to 0.030, while mean utility falls by 4% and 3%, since a shared dish must suit every member. All three differences are significant in both settings ( , paired over 500 households; between 0.56 and 4.06). Without the all-member safety constraint of Stage 1, 11.8% of members are served a shared dish that violates one of
Table 4: Shared versus individual meals on four-person households (; 100 households under each of five seeds). Values are means over seeds; standard deviations across seeds are at most 0.05 for utilities, 0.003 for Gini, 2.3 points for full meal, and 0.12 points for pantry used. Per-item utilities are min-max normalized. Higher is better except for Gini and pantry used. Bold marks the best value in each column within a setting.
| Strategy | Mean Util. | Min Util. | Gini | Full Meal | Pantry Used |
|---|---|---|---|---|---|
| Indian recipes, simulated utilities | |||||
| Unstructured | 5.34 | 4.92 | 0.029 | 28.6% | 4.59% |
| Structured individual | 5.26 | 4.86 | 0.030 | 100% | 5.12% |
| Structured shared | 5.06 | 4.74 | 0.024 | 100% | 3.47% |
| NHANES foods, learned utilities | |||||
| Unstructured | 5.58 | 5.10 | 0.029 | 0.6% | 10.74% |
| Structured individual | 4.45 | 3.97 | 0.045 | 100% | 11.63% |
| Structured shared | 4.32 | 4.01 | 0.030 | 100% | 8.02% |
their rules with simulated utilities, against 0.0% with learned utilities, whose soft penalty already scores unsafe dishes low.
Appendix B (Table 7) shows both allocations for one held-out NHANES household. The shared white bread and pinto beans are safe for every member, including one with hypertension, every member gets a complete meal, and pantry use falls from 14.4% to 10.7%, at a cost of 0.6 to 1.6 in each member's utility.
Rotation. Over a seven-day plan in the Indian-recipe setting (68,523 to 464,610 safe pairs per household), the rounded optimal rotation raises the worst-off member's average utility from shared dishes from 1.329 to 1.365, improves on the fixed pair in 88.6% of households, and uses 2.6 distinct pairs on average; is positive for 3.2 of the 4 members.
Depletion matters more: cooking the Stage 1 pair every day exceeds the stock in 99.4% of households. Under the stock constraint, we compute the seven-day plan exactly as an integer program over the linear program's support and the 200 pairs with the highest minimum utility; every instance solves to optimality. The integer plan gives the worst-off member 1.334 against 0.978 for the best pair that can be cooked all week, a gain of 38%, improves on that pair in every household, and lies within 0.005 of the linear-programming bound. It uses 5.0 distinct pairs on average, more than , as the stock constraints allow. With NHANES foods, only 150 of 500 households have any pair that can be cooked all week; in those, the integer rotation improves on it by 43%, and every household has a feasible rotation. Under a finite pantry, rotation is usually the only feasible weekly plan.
7 Discussion
Because the utility model is fixed while the allocation rule varies, the equity differences we report come from allocation alone, and the default procedure, conflict resolution, is the least equitable rule we tested.
Nash allocation and round robin. Round robin performs almost as well as Nash allocation in our experiments and is EF1 by construction. The two rules use different information. Round robin uses only each member's ranking, so it is scale-free but cannot tell a strong preference from a weak one; the Nash rule uses utility intensities, its exact optimum is Pareto-optimal and maximizes NSW, and greedy Nash allocation attains higher NSW than round robin at the same accuracy (10.63 against 10.47). When utility differences are meaningful, the Nash rule trades them off across members and round robin cannot; when only rankings can be trusted, round robin is the safer simple choice.
Strategic reporting. Stated preferences enter the utility model, so a member could misreport them. Households do not use money, so VCG transfers are unavailable [30, Ch. 18], and by the Gibbard–Satterthwaite theorem [30, Ch. 17] a strategy-proof deterministic rule that can select every safe shared pair is dictatorial when preferences over three or more pairs are unrestricted. Pair utilities in Stage 1 are additive over a grain and a dal, which restricts the preference domain, so this is a conditional impossibility rather than a proof that Stage 1 can be manipulated. By Proposition 3(a), rescaling one's reported utilities can pay under the utilitarian rule (by exaggerating) and the egalitarian rule (by understating), but not under the exact Nash rule; scale invariance does not make the Nash rule strategy-proof against other misreports.
Limitations. Households are random groupings of NHANES respondents, availability is measured by previous-day consumption, and the allocation stock uses description words as ingredients, so households, availability, and stock are all proxies. The utility model was trained without a validation set, and the baselines were not tuned. In the shared-meal extension, pantry quantities are approximated, the Indian-recipe utilities are simulated, and Stage 2 has no approximation guarantee. Equity is measured on predicted rather than realized utilities. The greedy egalitarian rule has no guarantee. The main experiments filter after allocation; allocation within safe sets, which Proposition 4 favors, is evaluated only for shared meals. Dietary coverage is assessed through retrieval and evidence relevance rather than clinical review, the allocation experiments cover only diabetes and hypertension, and CKD and CVD coverage (96% and 98%) falls short of the 100% reached for those two conditions. The explanation metrics are automated checks, not human judgments.
8 Conclusion and Future Work
We introduced FairFRESH, a neuro-symbolic framework for household food recommendation. Existing food recommenders score each member in isolation, although a shared pantry turns independently high-scoring recommendations into competition for the same foods. FairFRESH instead treats household recommendation as constrained fair division. A learned utility model scores every member–food pair, an explicit welfare rule allocates foods from the resulting utility matrix, and a deterministic filter enforces dietary safety, which is needed because no finite penalty can certify foods near a rule threshold. Shapley and Banzhaf attributions then explain each allocation without changing it.
On NHANES-derived data, previous-day consumption carried most of the predictive signal: the utility model ranked above five learned recommenders but below a heuristic that repeats previous-day foods. On held-out households of two to six members with exclusive allocation, conflict resolution, the natural default, was the least equitable strategy, while Nash allocation removed most of that inequity with higher accuracy, came within a few percent of exact optima, and was EF1 in every household; round robin performed almost as well.
Bargaining theory explains this result: the Nash rule is utilitarian and egalitarian at once under natural weights and does not depend on how members' utilities are scaled. For dishes cooked once for the household, sharing saved about a third of the pantry, and a rotation of shared dishes was usually the only weekly plan a finite pantry could supply. These results come from households built from individual survey respondents, with predicted rather than observed utilities and dietary rules that have not been clinically reviewed; within that setting, they show that the allocation rule shapes the balance between accuracy and equity as much as the ranking model does.
Future work. We see several directions for extending this work. First, we will replace the fixed pantry of the main evaluation with an inventory that tracks depletion, and extend rotation from shared dishes to whole allocations, which realizes the convexified bargaining problem of Proposition 3(b). Second, we will move allocation within the safe sets so that verified bundles always hold K items. Third, we will compute the egalitarian rule with an assignment algorithm that carries a max-min guarantee and compare Nash allocation with round robin across more settings. Finally, we plan a blinded human evaluation of the explanations, a clinical review of the dietary rules, and validation of the cohorts against observed households.
Acknowledgments
The authors thank Vedant Balasubramaniam for his valuable suggestions and insights, and Jonnalagadda Kowshik and Gannem Sai Shankar Narayana for their contributions during the early stages of this work. AI-based language models, including GPT and Claude, were used for language refinement and source summarization. All AI-assisted content was reviewed and verified by the authors for accuracy and factual integrity.
References
[1] L. Abdur Rahman, I. Papathanail, and S. Mougiakakou. Introducing the Swiss food knowledge graph: AI for context-aware nutrition recommendation. arXiv:2507.10156, 2025.
[2] S. Badreddine, A. d'Avila Garcez, L. Serafini, and M. Spranger. Logic tensor networks. Artificial Intelligence, 303:103649, 2022.
[3] J. F. Banzhaf, III. Weighted voting doesn’t work: A mathematical analysis. Rutgers Law Review, 19:317–343, 1965.
[4] I. Bezáková and V. Dani. Allocating indivisible goods. ACM SIGecom Exchanges, 5(3):11–18, 2005.
[5] U. Bhatt, A. Weller, and J. M. F. Moura. Evaluating and aggregating feature-based model explanations. In Proc. IJCAI, pages 3016–3022, 2020.
[6] M. Bień, M. Gilski, M. Maciejewska, W. Taisner, D. Wisniewski, and A. Lawrynowicz. RecipeNLG: A cooking recipes dataset for semi-structured text generation. In Proceedings of the 13th International Conference on Natural Language Generation (INLG), pages 22–28, 2020.
[7] A. Biswas and S. Barman. Fair division under cardinality constraints. In Proc. IJCAI, pages 91–97, 2018.
[8] R. Burke. Multisided fairness for recommendation. In Workshop on Fairness, Accountability and Transparency in Machine Learning (FAT/ML), 2017.
[9] J. Caldeira, R. S. Oliveira, L. B. Marinho, and C. Trattner. Healthy menus recommendation: Optimizing the use of the pantry. In Proc. HealthRecSys at RecSys, volume 2216 of CEUR Workshop Proceedings, 2018.
[10] I. Caragiannis, D. Kurokawa, H. Moulin, A. D. Procaccia, N. Shah, and J. Wang. The unreasonable fairness of maximum Nash welfare. ACM Transactions on Economics and Computation, 7(3):1–32, 2019.
[11] T. Carraro, A. Daniele, F. Aiolli, and L. Serafini. Logic tensor networks for Top-N recommendation. In AIxIA 2022 – Advances in Artificial Intelligence, pages 110–123. Springer, 2022.
[12] V. Conitzer, R. Freeman, and N. Shah. Fair public decision making. In Proceedings of the 2017 ACM Conference on Economics and Computation (EC), pages 629–646, 2017.
[13] X. Deng and W. Tu. Personalized nutrition-aware dietary recommendation with multimodal large language models. IEEE Access, 14:21791–21804, 2026.
[14] B. Fain, K. Munagala, and N. Shah. Fair allocation of indivisible public goods. In Proceedings of the 2018 ACM Conference on Economics and Computation (EC), pages 575–592, 2018.
[15] M. L. Fisher, G. L. Nemhauser, and L. A. Wolsey. An analysis of approximations for maximizing submodular set functions—II. In Polyhedral Combinatorics, volume 8 of Mathematical Programming Studies, pages 73–87. Springer, 1978.
[16] J. Freyne and S. Berkovsky. Intelligent food planning: Personalized recipe recommendation. In Proc. ACM IUI, pages 321–324, 2010.
[17] M. Ge, F. Ricci, and D. Massimo. Health-aware food recommender system. In Proc. ACM RecSys, pages 333–334, 2015.
[18] S. Haussmann, O. Seneviratne, Y. Chen, Y. Ne'eman, J. Codella, C.-H. Chen, D. L. McGuinness, and M. J. Zaki. FoodKG: A semantics-driven knowledge graph for food recommendation. In Proc. ISWC, pages 146–162, 2019.
[19] X. He, L. Liao, H. Zhang, L. Nie, X. Hu, and T.-S. Chua. Neural collaborative filtering. In Proc. WWW, pages 173–182, 2017.
[20] X. He, K. Deng, X. Wang, Y. Li, Y. Zhang, and M. Wang. LightGCN: Simplifying and powering graph convolution network for recommendation. In Proc. ACM SIGIR, pages 639–648, 2020.
[21] B. Hidasi, A. Karatzoglou, L. Baltrunas, and D. Tikk. Session-based recommendations with recurrent neural networks. In Proc. ICLR, 2016.
[22] M. Kaneko and K. Nakamura. The Nash social welfare function. Econometrica, 47(2):423–435, 1979.
[23] W.-C. Kang and J. McAuley. Self-attentive sequential recommendation. In Proc. IEEE ICDM, pages 197–206, 2018.
[24] B. Korte and D. Hausmann. An analysis of the greedy heuristic for independence systems. Annals of Discrete Mathematics, 2:65–74, 1978.
[25] E. Lee. APX-hardness of maximizing Nash social welfare with indivisible items. Information Processing Letters, 122:17–20, 2017.
[26] S. M. Lundberg and S.-I. Lee. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems (NeurIPS), pages 4765–4774, 2017.
[27] W. Ma, M. Li, J. Dai, J. Ding, Z. Chu, and H. Chen. Nutrition-related knowledge graph neural network for food recommendation. Foods, 13(13):2144, 2024.
[28] J. Masthoff. Group modeling: Selecting a sequence of television items to suit a group of viewers. User Modeling and User-Adapted Interaction, 14(1):37–85, 2004.
[29] S. Mishra, M. Padala, and S. Gujar. Fair allocation of goods and chores: Tutorial and survey of recent results. arXiv:2307.10985, 2023.
[30] Y. Narahari. Game Theory and Mechanism Design, volume 4 of IISc Lecture Notes Series. World Scientific and IISc Press, Singapore, 2014.
[31] J. F. Nash. The bargaining problem. Econometrica, 18(2):155–162, 1950.
[32] T. T. Nguyen, N. D. Nguyen, M. Roos, and J. Rothe. Computational complexity and approximability of social welfare optimization in multiagent resource allocation. Autonomous Agents and Multi-Agent Systems, 28(2): 256–289, 2014.
[33] S. Rendle, C. Freudenthaler, Z. Gantner, and L. Schmidt-Thieme. BPR: Bayesian personalized ranking from implicit feedback. In Proc. UAI, pages 452–461, 2009.
[34] D. Serbos, S. Qi, N. Mamoulis, E. Pitoura, and P. Tsaparas. Fairness in package-to-group recommendations. In Proc. WWW, pages 371–379, 2017.
[35] I. Stelmakh, N. B. Shah, and A. Singh. PeerReview4All: Fair and accurate reviewer assignment in peer review. Journal of Machine Learning Research, 22(163):1–66, 2021.
[36] W. Suksompong. Constraints in fair division. ACM SIGecom Exchanges, 19(2):46–61, 2021.
[37] C. Trattner and D. Elsweiler. Investigating the healthiness of internet-sourced recipes: Implications for meal planning and recommender systems. In Proc. WWW, pages 489–498, 2017.
[38] Z. Zhang, Z. Wang, T. Ma, V. S. Taneja, S. Nelson, N. H. L. Le, K. Murugesan, M. Ju, N. V. Chawla, C. Zhang, and Y. Ye. MOPI-HFRS: A multi-objective personalized health-aware food recommendation system with LLM-enhanced interpretation. In Proc. ACM SIGKDD (KDD), 2025. arXiv:2412.08847.
A Derivations and Proofs
Throughout, is the logistic function. Each proof treats the parts of its proposition in order. Proposition 2, Proposition 3(a), and Proposition 5(a) specialize known results to our setting, and we cite the source in each case; the contribution there lies in the formulation and in the conditions under which each result applies.
A.1 The Soft Constraint Penalty
Lemma 1. For every , the function of Eq. 5 is convex, increasing, and 1-Lipschitz, and for all ,
Proof. The first two derivatives are
which give monotonicity, convexity, and the Lipschitz bound. For the sandwich bound,
Lemma 2 (Probabilistic reading of the penalty). Suppose the true slack of rule is , where the are independent logistic variables with location 0 and scale , and let . Then
Moreover, with , the utility of Eq. 4 satisfies
with near equality when relevance probabilities are small.
Proof. The logistic distribution with scale has distribution function , so each rule holds with probability . Since ,
and summing over the independent rules gives the identity.
For the bound, write , so that and . For all ,
because , and the ratio tends to 1 as .
If relevance and safety are treated as independent events, the right-hand side is the probability that the food is both relevant and safe, which is the reading given in Section 3.2.
A.2 Proof of Proposition 1
Since is increasing, ranking by is ranking by the penalized logit
Part (a). Let be safe, and let violate some rule by at least . Every slack of is non-positive, so Lemma 1 gives an upper bound on its penalty. Every term of the penalty is positive, so the violated rule alone gives a lower bound on the penalty of :
Since ,
under the condition of the proposition. As , , so the bracket tends to
and no finite satisfies the condition.
Part (b). The two foods differ only in rule c, so by the Lipschitz bound of Lemma 1,
Hence, if , then , and the unsafe ranks above .
A.3 Proof of Proposition 2
Let , and define
is a partition matroid with one block per food, a partition matroid with one block per member, and the feasible allocations are exactly .
Part (a). Write
The function is concave and increasing with . A concave, non-decreasing function of a non-negative additive set function is monotone and submodular, and so is a sum of such functions. Hence is normalized , monotone, and submodular. The marginal gain of adding is
so Algorithm 1 with the Nash rule adds, at each step, the feasible pair of largest gain, until no pair can be added. Fisher et al. [15] show that this greedy algorithm attains at least of the optimum of a normalized monotone submodular function over the intersection of matroids. Here .
Part (b). is additive with non-negative weights, and the utilitarian rule adds the feasible pair of largest weight. Over the intersection of p matroids, this greedy algorithm attains at least of the optimum [24]; here p = 2. The exact optimum assigns each food to at most one member and at most K foods to each member at maximum total weight. This is a maximum-weight bipartite b-matching, which minimum-cost flow computes in polynomial time.
Part (c). Setting recovers the unconstrained max-min allocation problem, which is NP-hard to approximate within any factor below two [4].
A.4 Proof of Proposition 3
Part (a). For constants ,
so the Nash product changes by a positive constant and its maximizers are unchanged. For the other two rules, two-member examples suffice; in each, the optimum is unique.
• Utilitarian. Let , , and over two foods. The exact and greedy rules both give member 1 the first food, worth 0.1. After member 1's utilities are doubled, both give it the second food, worth 0.3 to it.
• Egalitarian. Let , , and over three foods. The exact optimum gives member 1 utility 0.7, and the greedy rule gives it 0.5. After member 1's utilities are halved, both give it the first and third foods, worth 0.8.
Part (b). Let . The set is compact and convex and contains a point with positive entries, and is strictly concave, so has a unique maximizer over , which also maximizes the Nash product.
Necessity. For and , the point lies in . Optimality of gives a non-positive directional derivative,
With , this reads , and for every .
Sufficiency. Suppose maximizes over and for all . Then , so for every . For , concavity of gives
and if some . Hence is the Nash solution. For , this is Proposition 26.1 of [30].
Part (c). With , the gain of giving to member is . It increases in , and each member's best remaining food does not depend on , so the Nash rule selects . These are the weights of (b) at the point for disagreement point .
Rescaling member i's utilities by leaves unchanged and turns its score into
The first limit does not depend on . The second exceeds the score of every member holding an item for small , so members with empty bundles pick first, in decreasing order of , and only this order depends on the scaling. When it is fixed and there are no ties, induction over the finitely many steps shows that, for sufficiently small , every scaling produces the same allocation.
A.5 Proof of Proposition 4
Filtering only removes foods, so the bundles of remain disjoint, hold at most items, and satisfy . Hence is feasible for the problem that solves, and . The argument requires exact maximizers; with greedy allocation, the inequality is expected but not guaranteed instance by instance.
A.6 Proof of Proposition 5
Part (a). Each pure strategy is a vertex of , so . By the minimax theorem [30, Thm. 9.2],
For fixed , the linear function attains its minimum over the simplex at a vertex, which gives ; likewise, the inner maximum on the right is . The planner's problem and its dual [30, Sec. 9.4] are the linear programs
Part (b). Utilities are non-negative, so . If , every single pair is optimal. Otherwise the constraint does not change the optimum, and adding slack variables gives a program with equality constraints and non-negative variables. The program is feasible and bounded, so it has an optimal basic feasible solution with at most non-zero variables. One of them is , so at most components of are non-zero. With stock constraints, the slack of every non-binding stock constraint is also non-zero, so the support is at most plus the number of binding stock constraints.
Part (c). This is complementary slackness for the primal–dual pair in (a). If , member 's constraint binds, . If , pair 's dual constraint binds,
B Additional Results
Implementation details. The utility model uses 384-dimensional all-MiniLM-L6-v2 sentence embeddings for foods and evidence, a 128-dimensional latent space, a two-layer transformer encoder (4 heads) with attention pooling for the retrieved evidence, and 4-head attention for fusion. It is trained with binary cross-entropy on the training users' second-day foods as positives, with four negatives per positive sampled in proportion to first-day popularity raised to 0.75, using Adam (learning rate ) for 3 epochs with batch size 256; the last epoch is kept, without a validation set. User embeddings are TF-IDF weighted means of first-day food embeddings, with inverse document frequencies from the training users. The retrieval corpus consists of six dietary guideline statements, indexed by cosine similarity with top-, and each condition has a fixed health query. The baselines are in-house implementations with one setting each and no tuning: 64-dimensional embeddings, learning rate 0.005, 15 epochs, BPR with one uniform negative for BPRMF, NeuMF, and LightGCN, and cross-entropy for GRU4Rec and SASRec. SASRec returns the same rankings for every seed, so its training appears not to change its scores.
Exact optima and EF1. Table 5 compares greedy allocation with exact optima computed by integer programming on the union of the members' top 30 safe foods, for 100 held-out households per size; every instance solves to proven optimality. For the Nash rule we compare the smoothed objective with an upper bound from a piecewise-linear relaxation of the logarithm. Greedy allocation attains 95–99% of the optimum, far above the worst-case bounds of Proposition 2. The utilitarian, egalitarian, and Nash allocations and round robin are EF1 under safe-part valuations in every household; conflict resolution is EF1 in 99%, 98%, and 92% of households for , and 4. On these four-person households, round robin reaches a Recall@20 of 0.216, Gini 0.097, and NSW 10.47, against 0.218, 0.106, and 10.63 for Nash allocation.
Table 5: Greedy allocation relative to exact optima (mean over 100 held-out households per size, with 95% bootstrap intervals).
| Utilitarian: greedy/opt. | Max-min: greedy/opt. | Nash: /upper bound | |
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 |
Shared-meal settings. The pantry records ingredient quantities: a stock vector over ingredients, and for each dish a requirement vector , the quantity of each ingredient needed to prepare as allocated. For an individual item this is one serving; for a shared dish it is one batch cooked for the whole household. A dish is in stock if componentwise, and allocating it sets . We evaluate the extension in two settings, each with 100 four-person households under each of five seeds, , and .
Algorithm 2 Two-stage shared-meal allocation
Require: utilities ; safe sets ; stock ; requirements ; cap ;
Stage 1: max-min shared dishes
1: grains in ; dals in
2:
3: if then
4:
5: for every ; ;
6: else
7: for every ;
8: end if
Stage 2: Nash-greedy individual slots
9: for every ;
10: while do
11: for every
12:
13: ; ;
14: recompute for every and
15: end while
16: return
Indian recipes, simulated utilities. A corpus of 3,597 Indian recipes (911 grains and breads, 510 legumes and dals, and 2,176 sides and curries) selected from the RecipeNLG corpus [6]. Each member is vegetarian with probability 0.35, avoids nuts with probability 0.08, and avoids dairy with probability 0.10; a dish violates a rule when its title or ingredient list matches the excluded category. The corpus has no interaction histories, so the utility model of Section 3.2 cannot be trained on it; member utilities are simulated from random ingredient-affinity vectors, correlated across the members of a household with coefficient 0.5. The pantry stocks the 200 most frequent ingredients of the corpus with 2 to 7 units each, and a dish uses one unit of each of its ingredients.
NHANES foods, learned utilities. The households, utilities, and dietary rules of the main evaluation, so utilities come from the trained utility model. Keyword matching on food descriptions identifies 171 grains and breads and 114 legumes among the 8,704 foods. NHANES foods have no ingredient lists, so we approximate ingredients by the 100 most frequent words in food descriptions (2.9 per food on average) and stock each with 2 to 7 units.
In both settings, the rules are expressed as slacks as in Section 3.1, so a dish is safe for a member exactly when it would pass the filter of Section 3.4.
Table 6 reports all metrics of the household-size sweep plotted in Fig. 3, and Table 7 gives the household-level example referred to in Section 6.
Table 7 shows how the two allocations differ for one held-out NHANES household with learned utilities. Member 4 has hypertension and the others have no condition. Under single servings, no member receives both a grain and a legume; member 4 receives toasted wheat bread but no legume. Structured shared allocation cooks white bread and pinto beans once, both safe for every member including member 4's sodium limit, so every member gets a complete meal and pantry use falls from 14.35% to 10.71%. Each member's four individual foods are exactly their first four single-serving picks, so the shared dishes replace each member's two lowest-ranked foods. Members value the shared dishes at 0.14–0.23. Members 1, 2, and 4 lose 1.4–1.6 in utility, while member 3, whose two lowest-ranked foods were worth little (0.74 and 0.28), loses 0.65, so the spread of totals narrows from 4.74–5.85 to 4.09–4.33.
Table 6: Household allocation across household sizes (100 held-out households per size). CSR is 1.00 in every row. Items is the mean number of foods each member receives; strategies A and C–E always fill all slots. Bootstrap confidence intervals are released with the code.
| n | Strategy | Recall@20 | NDCG@20 | PUR | Min Util. | Gini | NSW | Items |
|---|---|---|---|---|---|---|---|---|
| 2 | A) Independent | 0.292 | 0.292 | 0.187 | 11.37 | 0.072 | 12.96 | 20.0 |
| 2 | B) Conflict resolution | 0.252 | 0.263 | 0.142 | 8.92 | 0.105 | 10.82 | 15.1 |
| 2 | C) Utilitarian | 0.264 | 0.270 | 0.184 | 10.34 | 0.086 | 12.16 | 20.0 |
| 2 | D) Max-Min | 0.260 | 0.268 | 0.185 | 10.84 | 0.061 | 12.13 | 20.0 |
| 2 | E) Nash | 0.267 | 0.273 | 0.185 | 10.75 | 0.072 | 12.30 | 20.0 |
| 3 | A) Independent | 0.283 | 0.291 | 0.279 | 10.36 | 0.096 | 12.87 | 20.0 |
| 3 | B) Conflict resolution | 0.203 | 0.232 | 0.182 | 6.81 | 0.152 | 9.47 | 13.1 |
| 3 | C) Utilitarian | 0.221 | 0.242 | 0.270 | 8.64 | 0.122 | 11.33 | 20.0 |
| 3 | D) Max-Min | 0.215 | 0.242 | 0.270 | 9.50 | 0.078 | 11.22 | 20.0 |
| 3 | E) Nash | 0.219 | 0.246 | 0.271 | 9.36 | 0.097 | 11.52 | 20.0 |
| 4 | A) Independent | 0.299 | 0.308 | 0.370 | 9.33 | 0.107 | 12.40 | 20.0 |
| 4 | B) Conflict resolution | 0.206 | 0.237 | 0.215 | 5.17 | 0.187 | 8.31 | 11.7 |
| 4 | C) Utilitarian | 0.219 | 0.245 | 0.355 | 7.38 | 0.140 | 10.43 | 20.0 |
| 4 | D) Max-Min | 0.207 | 0.239 | 0.358 | 8.42 | 0.082 | 10.23 | 20.0 |
| 4 | E) Nash | 0.218 | 0.248 | 0.359 | 8.22 | 0.106 | 10.63 | 20.0 |
| 5 | A) Independent | 0.274 | 0.283 | 0.466 | 9.05 | 0.116 | 12.62 | 20.0 |
| 5 | B) Conflict resolution | 0.171 | 0.204 | 0.250 | 4.18 | 0.217 | 7.73 | 10.8 |
| 5 | C) Utilitarian | 0.184 | 0.212 | 0.435 | 6.64 | 0.160 | 10.10 | 20.0 |
| 5 | D) Max-Min | 0.173 | 0.207 | 0.437 | 8.07 | 0.088 | 9.94 | 20.0 |
| 5 | E) Nash | 0.184 | 0.216 | 0.438 | 7.84 | 0.117 | 10.42 | 20.0 |
| 6 | A) Independent | 0.282 | 0.288 | 0.563 | 8.69 | 0.117 | 12.60 | 20.0 |
| 6 | B) Conflict resolution | 0.162 | 0.195 | 0.271 | 3.49 | 0.233 | 6.97 | 9.7 |
| 6 | C) Utilitarian | 0.171 | 0.201 | 0.508 | 6.00 | 0.174 | 9.51 | 20.0 |
| 6 | D) Max-Min | 0.160 | 0.195 | 0.512 | 7.50 | 0.082 | 9.25 | 20.0 |
| 6 | E) Nash | 0.171 | 0.204 | 0.513 | 7.25 | 0.120 | 9.86 | 20.0 |
Table 7: Worked example: one held-out NHANES household with learned utilities, . Single-serving allocation gives each member six foods; structured shared allocation cooks white bread and pinto beans once for all members and adds four individual foods. Totals are bundle utilities on the min-max-normalized scale. Both shared dishes are safe for every member.
| Member | Single-serving foods | Total | Shared dishes (utility) + individual foods | Total |
|---|---|---|---|---|
| 1 (none) | Baby oatmeal cereal, sweetened tea, fruit yogurt, coffee cake, barbecue chicken, corn puffs | 5.84 | Bread 0.20, beans 0.14; oatmeal cereal, tea, fruit yogurt, coffee cake | 4.28 |
| 2 (none) | Froot Loops, yeast doughnut, mozzarella, hamburger, cola, chocolate sandwich cookie | 5.57 | Bread 0.23, beans 0.16; Froot Loops, doughnut, mozzarella, hamburger | 4.19 |
| 3 (none) | Low-fat fruit yogurt, whole milk, salted pretzels, cheese pizza, French fries, banana | 4.74 | Bread 0.22, beans 0.16; yogurt, whole milk, pretzels, cheese pizza | 4.09 |
| 4 (hypertension) | Bacon, fried eggs, French dressing, tap water, toasted wheat bread, heavy cream | 5.85 | Bread 0.23, beans 0.17; bacon, fried eggs, French dressing, tap water | 4.33 |
Complete meals: 0 of 4 (single-serving) vs. 4 of 4 (shared). Pantry used: 14.35% vs. 10.71%.