Datasets:
user_id stringlengths 28 36 | parent_asin stringlengths 10 10 | rating float64 1 5 | timestamp int64 977B 1,695B |
|---|---|---|---|
AGKASBHYZPGTEPO6LWZPVJWB2BVA | B00V6R3R3S | 5 | 1,452,647,102,000 |
AGKASBHYZPGTEPO6LWZPVJWB2BVA | B00PA7VMD2 | 3 | 1,452,648,690,000 |
AGKASBHYZPGTEPO6LWZPVJWB2BVA | B00JIIUJ5Q | 4 | 1,454,675,735,000 |
AGKASBHYZPGTEPO6LWZPVJWB2BVA | B007Z2R15I | 3 | 1,458,094,710,000 |
AGKASBHYZPGTEPO6LWZPVJWB2BVA | B00YAZBWZI | 5 | 1,458,095,420,000 |
AGCI7FAH4GL5FI65HYLKWTMFZ2CQ | B00D5ZL83U | 5 | 1,384,912,377,000 |
AGCI7FAH4GL5FI65HYLKWTMFZ2CQ | B0C43HKQMM | 5 | 1,384,912,580,000 |
AGCI7FAH4GL5FI65HYLKWTMFZ2CQ | B000VT54QA | 3 | 1,408,993,548,000 |
AGCI7FAH4GL5FI65HYLKWTMFZ2CQ | B010TWN80W | 5 | 1,456,772,214,000 |
AGCI7FAH4GL5FI65HYLKWTMFZ2CQ | B0871SN6V5 | 5 | 1,637,522,137,428 |
AGBFYI2DDIKXC5Y4FARTYDTQBMFQ | B0019MT7SY | 5 | 1,361,240,647,000 |
AGBFYI2DDIKXC5Y4FARTYDTQBMFQ | B003V11QJO | 5 | 1,361,240,829,000 |
AGBFYI2DDIKXC5Y4FARTYDTQBMFQ | B00BLPXAO6 | 5 | 1,481,817,544,000 |
AGBFYI2DDIKXC5Y4FARTYDTQBMFQ | B00TQEZAHO | 5 | 1,481,817,706,000 |
AGBFYI2DDIKXC5Y4FARTYDTQBMFQ | B091GPF7YS | 5 | 1,549,383,515,613 |
AGBFYI2DDIKXC5Y4FARTYDTQBMFQ | B084R18M8L | 5 | 1,597,804,385,775 |
AFQLNQNQYFWQZPJQZS6V3NZU4QBQ | B0B8BVFJ6D | 5 | 1,606,084,291,571 |
AFQLNQNQYFWQZPJQZS6V3NZU4QBQ | B081RW1PLY | 5 | 1,608,426,146,024 |
AFQLNQNQYFWQZPJQZS6V3NZU4QBQ | B08CB76JGP | 5 | 1,609,322,424,771 |
AFQLNQNQYFWQZPJQZS6V3NZU4QBQ | B08GKV5J6C | 3 | 1,609,322,541,792 |
AFQLNQNQYFWQZPJQZS6V3NZU4QBQ | B093JXTTH7 | 1 | 1,617,128,618,900 |
AHITBJSS7KYUBVZPX7M2WJCOIVKQ | B00GH4ZDRI | 5 | 1,432,341,383,000 |
AHITBJSS7KYUBVZPX7M2WJCOIVKQ | B07HFKYDT5 | 5 | 1,560,013,407,595 |
AHITBJSS7KYUBVZPX7M2WJCOIVKQ | B0BT6L1M7N | 5 | 1,560,013,606,036 |
AHITBJSS7KYUBVZPX7M2WJCOIVKQ | B0BXGSVGFY | 5 | 1,560,013,888,506 |
AHITBJSS7KYUBVZPX7M2WJCOIVKQ | B09JN3S1X9 | 5 | 1,560,014,237,021 |
AHITBJSS7KYUBVZPX7M2WJCOIVKQ | B07MG7X771 | 5 | 1,603,299,479,129 |
AHITBJSS7KYUBVZPX7M2WJCOIVKQ | B0C7RZF6MR | 1 | 1,630,164,951,239 |
AHITBJSS7KYUBVZPX7M2WJCOIVKQ | B0BGNLBF8W | 2 | 1,630,165,089,593 |
AHITBJSS7KYUBVZPX7M2WJCOIVKQ | B07SPY1GJG | 4 | 1,630,165,281,860 |
AHGTHCERTEZUXNBLJ5SWHK2CDLXA | B002UFQHKK | 4 | 1,499,279,989,160 |
AHGTHCERTEZUXNBLJ5SWHK2CDLXA | B0BGQ83813 | 5 | 1,505,870,061,570 |
AHGTHCERTEZUXNBLJ5SWHK2CDLXA | B01BZV6VVY | 5 | 1,520,542,530,769 |
AHGTHCERTEZUXNBLJ5SWHK2CDLXA | B0C281DJP5 | 3 | 1,613,589,468,189 |
AHGTHCERTEZUXNBLJ5SWHK2CDLXA | B01I9TL9O4 | 5 | 1,624,330,587,914 |
AHGTHCERTEZUXNBLJ5SWHK2CDLXA | B0C777X1L4 | 4 | 1,656,042,203,353 |
AEWJXW46LKSW22FWTGRYTLNE7TGA | B015IHD0LK | 1 | 1,515,881,961,071 |
AEWJXW46LKSW22FWTGRYTLNE7TGA | B07C6Z2XLW | 5 | 1,515,883,186,314 |
AEWJXW46LKSW22FWTGRYTLNE7TGA | B08JTSVHBC | 1 | 1,523,438,513,104 |
AEWJXW46LKSW22FWTGRYTLNE7TGA | B00QAZ16DO | 4 | 1,590,965,693,506 |
AEWJXW46LKSW22FWTGRYTLNE7TGA | B0C2C5V3XH | 3 | 1,607,973,766,356 |
AEWJXW46LKSW22FWTGRYTLNE7TGA | B07TNXFVWS | 2 | 1,653,565,625,394 |
AEWJXW46LKSW22FWTGRYTLNE7TGA | B07HMP3CYT | 4 | 1,655,989,825,883 |
AHXBL3QDWZGJYH7A5CMPFNUPMF7Q | B086TTDM88 | 5 | 1,438,554,712,000 |
AHXBL3QDWZGJYH7A5CMPFNUPMF7Q | B00X3OKQ22 | 5 | 1,454,803,603,000 |
AHXBL3QDWZGJYH7A5CMPFNUPMF7Q | B07NX1QBRY | 3 | 1,459,174,010,000 |
AHXBL3QDWZGJYH7A5CMPFNUPMF7Q | B0000532A2 | 5 | 1,481,251,902,000 |
AHXBL3QDWZGJYH7A5CMPFNUPMF7Q | B01NH0GYC1 | 4 | 1,594,124,969,716 |
AHXBL3QDWZGJYH7A5CMPFNUPMF7Q | B0BDJ2M2HC | 1 | 1,667,002,894,153 |
AHOEIYJJHZ7ITX75BOFQYNXVVJQQ | B004E9HRNG | 5 | 1,619,117,466,127 |
AHOEIYJJHZ7ITX75BOFQYNXVVJQQ | B09YKQC5D7 | 4 | 1,663,262,991,971 |
AHOEIYJJHZ7ITX75BOFQYNXVVJQQ | B0BSPDF7T4 | 5 | 1,663,263,802,803 |
AHOEIYJJHZ7ITX75BOFQYNXVVJQQ | B084C56JBK | 5 | 1,666,451,595,407 |
AHOEIYJJHZ7ITX75BOFQYNXVVJQQ | B08GHCX6PT | 5 | 1,670,034,584,165 |
AHOEIYJJHZ7ITX75BOFQYNXVVJQQ | B0B8QXHJX4 | 5 | 1,671,288,550,526 |
AHOEIYJJHZ7ITX75BOFQYNXVVJQQ | B003ZW9LOQ | 5 | 1,677,845,864,919 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B09WJFPZMD | 3 | 1,441,727,451,000 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B0C2C5V3XH | 4 | 1,442,178,367,000 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B00KOW827M | 4 | 1,453,308,596,000 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B008V8PKK8 | 4 | 1,453,309,394,000 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B07ZKJTQNF | 3 | 1,454,600,993,000 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B004RRGXKI | 4 | 1,533,585,013,903 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B0727VKDVW | 4 | 1,538,879,406,390 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B0B7KW49DF | 4 | 1,561,179,962,417 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B000R93I76 | 3 | 1,569,529,081,038 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B095FL23YS | 3 | 1,569,529,957,051 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B0BRLTBX1N | 1 | 1,573,343,753,545 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B09BCJ1R3L | 3 | 1,573,344,480,758 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B09DYPZDQL | 3 | 1,658,345,056,574 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B092DVJN87 | 4 | 1,662,749,949,270 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B09TB6M4D9 | 5 | 1,668,064,780,064 |
AFNT6ZJCYQN3WDIKUSWHJDXNND2Q | B0BZ8GXYRJ | 4 | 1,676,512,744,553 |
AHREXOGQPZDA6354MHH4ETSF3MCQ | B075DT1C38 | 5 | 1,618,186,308,893 |
AHREXOGQPZDA6354MHH4ETSF3MCQ | B07LDZT9M2 | 2 | 1,619,449,886,149 |
AHREXOGQPZDA6354MHH4ETSF3MCQ | B08PC6BW2N | 2 | 1,623,676,913,785 |
AHREXOGQPZDA6354MHH4ETSF3MCQ | B08M3HKQFM | 3 | 1,633,530,847,365 |
AHREXOGQPZDA6354MHH4ETSF3MCQ | B00020E1P8 | 5 | 1,667,239,586,362 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B000FQMMSC | 5 | 1,381,530,090,000 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B07HGSSBZT | 5 | 1,442,074,965,000 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B00GJ1PYZ0 | 4 | 1,448,836,714,000 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B015QI8H6E | 3 | 1,448,836,767,000 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B0BKLMBFVB | 4 | 1,448,836,830,000 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B084RMJ7BP | 5 | 1,448,836,875,000 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B00KGO8XY0 | 5 | 1,449,107,398,000 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B00II7YPWQ | 3 | 1,466,010,112,000 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B01CTCDEFY | 1 | 1,489,342,612,000 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B07GS67QGL | 1 | 1,579,991,212,296 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B0B2Z78MZC | 1 | 1,597,722,397,122 |
AHSXXZHYMXDRVKC643TJZYQ7XGYA | B0B2BXD6ZF | 1 | 1,653,696,277,694 |
AH6CATODIVPVUOJEWHRSRCSKAOHA | B009QTDYYA | 5 | 1,398,818,562,000 |
AH6CATODIVPVUOJEWHRSRCSKAOHA | B00F0WSOWE | 5 | 1,399,073,752,000 |
AH6CATODIVPVUOJEWHRSRCSKAOHA | B00ACUACZ6 | 5 | 1,422,967,079,000 |
AH6CATODIVPVUOJEWHRSRCSKAOHA | B00GLE8SNK | 1 | 1,426,611,194,000 |
AH6CATODIVPVUOJEWHRSRCSKAOHA | B005G9EA9M | 5 | 1,432,563,884,000 |
AH6CATODIVPVUOJEWHRSRCSKAOHA | B00EI3JX08 | 5 | 1,450,354,154,000 |
AH6CATODIVPVUOJEWHRSRCSKAOHA | B07BVBJBZ9 | 5 | 1,450,354,221,000 |
AH6CATODIVPVUOJEWHRSRCSKAOHA | B004AIAVYS | 5 | 1,450,354,308,000 |
AH6CATODIVPVUOJEWHRSRCSKAOHA | B0BWNHG7MX | 5 | 1,463,153,764,000 |
AH6CATODIVPVUOJEWHRSRCSKAOHA | B001BRL6PE | 5 | 1,526,994,431,311 |
AH6CATODIVPVUOJEWHRSRCSKAOHA | B09M9F2DLN | 5 | 1,645,990,221,418 |
Amazon Reviews 2023 — User Interactions (5-core, leave-one-out, sequential)
User–item interaction data for five Amazon Reviews 2023 categories, processed into ready-to-use sequential / generative recommendation splits with the de-facto standard recipe (5-core filtering → chronological ordering → leave-one-out split).
Every record keeps the timestamp, and the splits are byte-for-byte reproducible from the official Amazon Reviews 2023 release; the statistics also match, exactly, numbers reported by multiple peer-reviewed papers (see § Validation).
Item content features (title, images, price, brand, …) are in the companion dataset
yufan/amazon2023-item-metadata, joined byparent_asin.
All files are JSON Lines (.jsonl).
Subsets (configs) & splits
Configs are named <processing>_<Category> and grouped by processing method;
each has train / validation / test splits (single train for
interactions_*). 5 categories × 4 processing variants = 20 configs.
| Processing variant (config prefix) | What it is |
|---|---|
seq_maxlen50_* |
leave-one-out sequential split, history ≤ 50 (ID-based / SASRec-style) |
seq_maxlen20_* |
leave-one-out sequential split, history ≤ 20 (semantic-ID / generative) |
last_out_* |
leave-one-out direct split (no history column; MF/BPR-style) |
interactions_* |
5-core interaction table (no split applied; single train) |
Categories: Video_Games, Industrial_and_Scientific,
Beauty_and_Personal_Care, Musical_Instruments, Books.
from datasets import load_dataset
# sequential split (history <= 50), Video Games
ds = load_dataset("yufan/amazon2023-user-interactions", "seq_maxlen50_Video_Games")
train, valid, test = ds["train"], ds["validation"], ds["test"]
# item content features (companion dataset), same category
meta = load_dataset("yufan/amazon2023-item-metadata", "Video_Games")["train"]
Which config do I use?
| If your model is … | Use |
|---|---|
| Sequential / ID-based (SASRec, GRU4Rec) | seq_maxlen50_<Category> |
| Generative / Semantic-ID (TIGER) | seq_maxlen20_<Category> |
| Non-sequential (MF, BPR, LightGCN) | last_out_<Category> |
| Custom (re-split yourself) | interactions_<Category> |
Repository layout
interactions/<Category>.jsonl
last_out/<Category>.{train,valid,test}.jsonl
seq_maxlen20/<Category>.{train,valid,test}.jsonl
seq_maxlen50/<Category>.{train,valid,test}.jsonl
stats.json stats.md
Record schemas
interactions_* and last_out_* — one interaction per line:
{"user_id": "AEVPP…N7WFQ", "parent_asin": "B09JY72CNG", "rating": 4.0, "timestamp": 1630594913298}
seq_maxlen20_* / seq_maxlen50_* — same, plus the chronological history
(list of parent_asin, most-recent-last, capped at the max length):
{"user_id": "AEVPP…N7WFQ", "parent_asin": "B09JY72CNG", "rating": 4.0,
"timestamp": 1630594913298, "history": ["B08R5B7YS4", "B0863MT183", "…"]}
parent_asin is the Amazon product (parent) id — the standard item id for the
Amazon Reviews 2023 benchmark, and the join key to the item-metadata dataset.
Data-processing protocol
Source: the official Amazon Reviews 2023 (McAuley-Lab/Amazon-Reviews-2023, website).
- Input: official de-duplicated raw interactions (
benchmark/.../rating_only). - 5-core filtering: iteratively drop users and items with < 5 interactions until every remaining user and item has ≥ 5.
- Chronological ordering: per user, sort ascending by
timestamp; keep the earliest occurrence of each(user, item)pair. - Leave-one-out split: per user, last →
test, second-to-last →validation, the rest →train. - Sequential history: attach each target's prior history, truncated to the most recent 20 or 50 items.
The 5-core and leave-one-out logic is borrowed verbatim from the official
benchmark scripts
(kcore_filtering.py, last_out_split.py),
so the splits reproduce the official 5core/last_out exactly. This recipe was
popularised by TIGER (Rajput et al., NeurIPS 2023,
arXiv:2305.05065).
Validation / double-check
Level 1 — exact match to the official benchmark. For every category, our
re-derived 5-core interaction count and number of test users are identical to
the official McAuley-Lab/Amazon-Reviews-2023 5core/rating_only and
5core/last_out files (asserted in the build script).
Level 2 — exact match to numbers reported in peer-reviewed papers. Under the
same conditions (Amazon Reviews 2023 · same category · 5-core · leave-one-out),
our (users / items / interactions) match to the digit the dataset
statistics reported by ~15 independent papers:
| Category | Ours — users / items / interactions | Reported identically by (same 5-core + LOO) |
|---|---|---|
| Musical_Instruments | 57,439 / 24,587 / 511,836 | 9 papers — UTGRec, MTGRec, LARES, CCFRec, Pctx, LLaDA-Rec, HSTU-BLaIR, Augment-or-Not, MLPs |
| Video_Games | 94,762 / 25,612 / 814,586 | 4 — GrIT, Not-Just-What-But-When, MLPs, HSTU-BLaIR |
| Industrial_and_Scientific | 50,985 / 25,848 / 412,947 | 4 — GrIT, MLPs, Augment-or-Not, Token-Weighted |
| Beauty_and_Personal_Care | 729,576 / 207,649 / 6,624,441 | 2 — AlphaFree, Closing-the-Gap |
| Books | 776,370 / 495,063 / 9,488,297 | 2 — Not-Just-What-But-When, Hi-SAM (≈, rounded) |
≈ 20 reported data points across ~15 independent papers, all matching exactly (a few differ by 1 from rounding, e.g. HSTU-BLaIR's 814,585 vs 814,586).
Cross-validation references (papers reporting identical statistics)
UTGRec (2504.04405) · MTGRec / Pre-training Generative Rec. (2504.04400) · LARES (2505.16865) · CCFRec / Bridging Textual-Collaborative (2503.12183) · Pctx (2510.21276) · LLaDA-Rec (2511.06254) · HSTU-BLaIR (2504.10545) · Augment-or-Not (2505.23053) · MLPs (2605.12617) · GrIT (2602.19728) · Not-Just-What-But-When (2507.23209) · Token-Weighted (2601.17787) · AlphaFree (2603.02653) · Closing-the-Gap (2508.14910) · Hi-SAM (2602.11799)
Near-matches confirm the same base. A few papers use the same 5-core + LOO
but report slightly smaller counts because they add one extra filter — e.g.
ReSID drops items lacking structured side-info (≈2–6 % smaller across every
category: VG 94,515; Musical 57,359; Books 775,503), Multimodal-GR drops items
without images (Beauty 724,796), SPARC keeps only rating ≥ 4 (Books 459,133).
Being only marginally smaller is itself evidence that the underlying 5-core + LOO
base is identical.
Larger differences only arise when the conditions differ (excluded by the precondition above): the old 2014 Beauty (22,363 users; BSARec, RecCocktail, Understanding-GR, Beyond-Unimodal), sub-sampling (Efficient-Responsible 2,289; Heterogeneous 10k/domain), or omitting 5-core / temporal-truncation (R²ec, Reinforced-PO) — these are the papers' own design choices, not discrepancies in this dataset.
Statistics (after 5-core)
| Category | #Users | #Items | #Interactions | Avg len | Median | Sparsity |
|---|---|---|---|---|---|---|
Video_Games |
94,762 | 25,612 | 814,586 | 8.5961 | 6 | 0.99966437 |
Industrial_and_Scientific |
50,985 | 25,848 | 412,947 | 8.0994 | 6 | 0.99968665 |
Beauty_and_Personal_Care |
729,576 | 207,649 | 6,624,441 | 9.0799 | 7 | 0.99995627 |
Musical_Instruments |
57,439 | 24,587 | 511,836 | 8.9109 | 7 | 0.99963757 |
Books |
776,370 | 495,063 | 9,488,297 | 12.2214 | 7 | 0.99997531 |
Leave-one-out split row counts
| Category | direct train | valid | test | seq20 train | seq50 train |
|---|---|---|---|---|---|
Video_Games |
625,062 | 94,762 | 94,762 | 530,300 | 530,300 |
Industrial_and_Scientific |
310,977 | 50,985 | 50,985 | 259,992 | 259,992 |
Beauty_and_Personal_Care |
5,165,289 | 729,576 | 729,576 | 4,435,713 | 4,435,713 |
Musical_Instruments |
396,958 | 57,439 | 57,439 | 339,519 | 339,519 |
Books |
7,935,557 | 776,370 | 776,370 | 7,159,187 | 7,159,187 |
(valid = test = #users by construction. Sequential train uses the rolling
next-item scheme; the 20/50 variants share the same row count, differing only in
history length.)
Intended uses & limitations
Next-item sequential recommendation, generative / semantic-ID recommendation,
content/multimodal recommendation (with the companion item-metadata dataset),
cold-start studies. Implicit feedback (all retained reviews are positives; use
rating for explicit labels). No leakage by construction. The two largest
categories (Books, Beauty) are processed from the official pre-filtered 5-core
data (verified equivalent).
License & citation
Derived from Amazon Reviews 2023 (McAuley Lab); for research use. Please cite:
Yupeng Hou, Jiacheng Li, Zhankui He, An Yan, Xiusi Chen, Julian McAuley. Bridging Language and Items for Retrieval and Recommendation. 2024. arXiv:2403.03952 · https://amazon-reviews-2023.github.io/
Shashank Rajput et al. Recommender Systems with Generative Retrieval (TIGER). NeurIPS 2023. arXiv:2305.05065
- Downloads last month
- 21