mosaic-cdsr-eval
MOSAIC: Multi-Domain Orthogonal Session Adaptive Intent Capture for Prescient Recommendations — Bahi et al. (2026) (arXiv:2604.10147, 2026)
What this evaluates
Evaluates a model's ability to perform next-item recommendation in cross-domain sequential settings by decomposing user intent into orthogonal preference components. It probes how well the model leverages shared and domain-specific signals across multiple item categories to predict future interactions.
Datasets
- Amazon Reviews (Movie–Book) — total 2625327; splits: train (-1), val (-1), test (-1)
- Amazon Reviews (Movie–Music) — total 1138302; splits: train (-1), val (-1), test (-1)
- Douban (Movie–Book) — total 2070463; splits: train (-1), val (-1), test (-1)
Metrics
HR@10 — range: [0, 1]
- Hit Ratio at rank K: returns 1.0 if the ground-truth item appears in the top-K ranked list, else 0.0. Computed over the full item vocabulary.
NDCG@10 (primary) — range: [0, 1]
- Normalized Discounted Cumulative Gain at rank K: (1/Z) * Σ_{i=1}^K (rel_i / log2(i+1)), where rel_i=1 if the item at rank i is the ground truth, else 0. Z is the ideal DCG (1.0 for a single relevant item). Rewards higher placements of the correct item.
Input / output format
Input: Chronologically sorted user interaction history (per-domain and merged cross-domain sequences) up to timestep t-1.
Output: A ranked list of items from the entire item vocabulary, with the ground-truth next item expected at rank 1.
Scoring recipe
def compute_metrics(ranked_list, gold_item, K=10):
rank = ranked_list.index(gold_item) + 1
hr = 1.0 if rank <= K else 0.0
ndcg = 0.0
for i in range(1, K + 1):
if i == rank:
ndcg += 1.0 / math.log2(i + 1)
ndcg /= 1.0 # IDCG for single relevant item
return hr, ndcg
Common pitfalls
- Using sampled negative items for ranking instead of the full item vocabulary, which introduces sampling bias and inflates metrics.
- Ignoring the leave-one-out split protocol where the last interaction is strictly held out for testing and the second-to-last for validation.
- Failing to report mean and standard deviation over five independent random seeds with paired t-test significance checks.
Evidence (verbatim from paper)
Following standard practice in the sequential recommendation literature, we adopt Hit Ratio at rank $K$ (HR@$K$) and Normalized Discounted Cumulative Gain at rank $K$ (NDCG@$K$), with $K\in{5,10,20}$. HR@$K$ measures whether the ground-truth item appears in the top-$K$ ranked list, while NDCG@$K$ additionally rewards higher placements. All metrics are computed in the full-ranking protocol, i.e., each test item is ranked against the entire item vocabulary, to avoid sampling bias.
Citation
@misc{bahi2026mosaic,
title={MOSAIC: Multi-Domain Orthogonal Session Adaptive Intent Capture for Prescient Recommendations},
author={Bahi et al. (2026)},
year={2026},
note={arXiv:2604.10147}
}
1---2name: mosaic-cdsr-eval3description: Evaluates a model's ability to perform next-item recommendation in cross-domain sequential settings by decomposing user intent into orthogonal preference components. It probes how well the model leverages shared and domain-specific signals across multiple item categories to predict future interactions. Use when the user wants to benchmark on Amazon Reviews (Movie–Book), Amazon Reviews (Movie–Music), Douban (Movie–Book), or asks about evaluating this task. Reports NDCG@10.4---56# mosaic-cdsr-eval78> MOSAIC: Multi-Domain Orthogonal Session Adaptive Intent Capture for Prescient Recommendations — Bahi et al. (2026) (arXiv:2604.10147, 2026)910## What this evaluates1112Evaluates a model's ability to perform next-item recommendation in cross-domain sequential settings by decomposing user intent into orthogonal preference components. It probes how well the model leverages shared and domain-specific signals across multiple item categories to predict future interactions.1314## Datasets1516- **Amazon Reviews (Movie–Book)** — total 2625327; splits: train (-1), val (-1), test (-1)17- **Amazon Reviews (Movie–Music)** — total 1138302; splits: train (-1), val (-1), test (-1)18- **Douban (Movie–Book)** — total 2070463; splits: train (-1), val (-1), test (-1)1920## Metrics2122- `HR@10` — range: [0, 1]23 - Hit Ratio at rank K: returns 1.0 if the ground-truth item appears in the top-K ranked list, else 0.0. Computed over the full item vocabulary.24- `NDCG@10` **(primary)** — range: [0, 1]25 - Normalized Discounted Cumulative Gain at rank K: (1/Z) * Σ_{i=1}^K (rel_i / log2(i+1)), where rel_i=1 if the item at rank i is the ground truth, else 0. Z is the ideal DCG (1.0 for a single relevant item). Rewards higher placements of the correct item.2627## Input / output format2829**Input**: Chronologically sorted user interaction history (per-domain and merged cross-domain sequences) up to timestep t-1.3031**Output**: A ranked list of items from the entire item vocabulary, with the ground-truth next item expected at rank 1.3233## Scoring recipe3435```python36def compute_metrics(ranked_list, gold_item, K=10):37 rank = ranked_list.index(gold_item) + 138 hr = 1.0 if rank <= K else 0.039 ndcg = 0.040 for i in range(1, K + 1):41 if i == rank:42 ndcg += 1.0 / math.log2(i + 1)43 ndcg /= 1.0 # IDCG for single relevant item44 return hr, ndcg45```4647## Common pitfalls4849- Using sampled negative items for ranking instead of the full item vocabulary, which introduces sampling bias and inflates metrics.50- Ignoring the leave-one-out split protocol where the last interaction is strictly held out for testing and the second-to-last for validation.51- Failing to report mean and standard deviation over five independent random seeds with paired t-test significance checks.5253## Evidence (verbatim from paper)5455> Following standard practice in the sequential recommendation literature, we adopt Hit Ratio at rank $K$ (HR@$K$) and Normalized Discounted Cumulative Gain at rank $K$ (NDCG@$K$), with $K\in{5,10,20}$. HR@$K$ measures whether the ground-truth item appears in the top-$K$ ranked list, while NDCG@$K$ additionally rewards higher placements. All metrics are computed in the full-ranking protocol, i.e., each test item is ranked against the entire item vocabulary, to avoid sampling bias.5657## Citation5859```bibtex60@misc{bahi2026mosaic,61 title={MOSAIC: Multi-Domain Orthogonal Session Adaptive Intent Capture for Prescient Recommendations},62 author={Bahi et al. (2026)},63 year={2026},64 note={arXiv:2604.10147}65}66```6768- arXiv: 2604.10147