EXP-001: Week 1 baselines¶
- Date: 2026-11-27
- Code:
python -m recsys.evaluate --all· models inrecsys/baselines/popularity.pyandrecsys/models/item_to_item.py - Data: Video_Games 5-core (ADR-001), split by time (ADR-002)
- Seed: 42 (no model in this run uses randomness; ties break by item id)
- Run time: 76 s for all 11 runs, 1.9 GB peak memory, laptop CPU
Question¶
Does Amazon-style item-to-item CF beat recommending popular items?
Protocol¶
- Validation: fit on everything before 2022-10-01, score Oct–Nov 2022 (3,331 users). Used to pick each model's setting.
- Test: refit on everything before 2022-12-01, score December 2022 once (2,650 users).
- Only users with history are scored; items never seen before the cutoff are dropped from the answers (572 test interactions). Already-seen items are never recommended.
- Metrics: Recall@10, Recall@50, NDCG@10, averaged over users.
Validation (Oct–Nov 2022)¶
| Model | Recall@10 | Recall@50 | NDCG@10 |
|---|---|---|---|
| Popularity, all time | 0.0049 | 0.0139 | 0.0030 |
| Popularity, last 7 days | 0.0215 | 0.0770 | 0.0104 |
| Popularity, last 30 days | 0.0354 | 0.0922 | 0.0164 |
| Popularity, last 90 days | 0.0313 | 0.0994 | 0.0157 |
| Item-to-item, 10 neighbours | 0.0156 | 0.0415 | 0.0092 |
| Item-to-item, 50 neighbours | 0.0159 | 0.0396 | 0.0094 |
| Item-to-item, 200 neighbours | 0.0162 | 0.0432 | 0.0096 |
| Item-to-item, all neighbours | 0.0179 | 0.0455 | 0.0104 |
Test (December 2022), best validation setting per family¶
| Model | Recall@10 | Recall@50 | NDCG@10 |
|---|---|---|---|
| Popularity, all time | 0.0032 | 0.0113 | 0.0017 |
| Popularity, last 30 days | 0.0280 | 0.0691 | 0.0186 |
| Item-to-item, all neighbours | 0.0187 | 0.0541 | 0.0101 |
Paired bootstrap over users (2,000 resamples), item-to-item minus the other model:
| Comparison | NDCG@10 difference | 95% CI | Recall@50 difference | 95% CI |
|---|---|---|---|---|
| vs all-time popularity | +0.0084 | [+0.0059, +0.0113] | +0.0427 | [+0.0345, +0.0514] |
| vs 30-day popularity | −0.0085 | [−0.0135, −0.0039] | −0.0151 | [−0.0263, −0.0037] |
Neither interval crosses zero, so both gaps are real for this test month.
Result¶
- Gate, as written (beat popularity): met against all-time popularity, about 6× better NDCG@10.
- Against recent popularity: item-to-item loses. A 30-day popularity list beats it on every metric.
Why¶
33% of December interactions are with items first seen in the 60 days before the cutoff, yet those items are only 2.2% of the catalogue. Video games sell in launch waves. Item-to-item scores an item by how often it was co-bought with the user's past games, so a game released three weeks ago has almost no co-purchases yet and can't rank. A recent-popularity list picks it up immediately.
So under a time-based split, all-time popularity is too easy a bar. Recent popularity is the honest one to beat.
Next¶
- Keep 30-day popularity as the Week 1 baseline to beat, not all-time popularity.
- P2 (MF/BPR) faces the same new-item problem; check whether it beats 30-day popularity.
- A simple blend (item-to-item + recency) is a cheap follow-up, but it isn't part of the paper, so it stays out of P1.
- Raw run files:
artifacts/runs/*.json(not committed), produced at commitad409f1plus this change.
Reproducibility (added 1 Dec 2026): the intervals above can be recomputed with python -m recsys.compare item_to_item_nall popularity --stage test (and recent_popularity_30d). The saved code reproduces them within ±0.0007, which is resampling noise.