Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- recommendation
|
| 4 |
+
- generative-recommendation
|
| 5 |
+
- semantic-id
|
| 6 |
+
- diger
|
| 7 |
+
- rq-vae
|
| 8 |
+
- llama-embeddings
|
| 9 |
+
pretty_name: DIGER Processed Data and Embeddings
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# DIGER Processed Data and Embeddings
|
| 13 |
+
|
| 14 |
+
This dataset repository contains the processed artifacts used by **DIGER: Differentiable Semantic IDs for Generative Recommendation**.
|
| 15 |
+
|
| 16 |
+
The files are provided to make reproduction easier, since small differences in preprocessing or embedding generation may lead to different semantic IDs and recommendation results.
|
| 17 |
+
|
| 18 |
+
## Contents
|
| 19 |
+
|
| 20 |
+
The repository contains processed files for three datasets:
|
| 21 |
+
|
| 22 |
+
- `beauty/`
|
| 23 |
+
- `instruments/`
|
| 24 |
+
- `yelp/`
|
| 25 |
+
|
| 26 |
+
Each dataset directory contains:
|
| 27 |
+
|
| 28 |
+
- `*.train.jsonl`, `*.valid.jsonl`, `*.test.jsonl`: processed interaction splits used by DIGER.
|
| 29 |
+
- `*.emb_map.json`: mapping between processed item ids and embedding rows.
|
| 30 |
+
- `*.emb-llama.npy`: LLaMA-based item embeddings used for RQ-VAE checkpoint training and DIGER experiments.
|
| 31 |
+
- `*_stats.json` when available: summary statistics for the processed split.
|
| 32 |
+
|
| 33 |
+
## LLaMA Embeddings
|
| 34 |
+
|
| 35 |
+
The LLaMA embeddings follow the generation procedure described in:
|
| 36 |
+
|
| 37 |
+
https://github.com/honghuibao2000/letter
|
| 38 |
+
|
| 39 |
+
We include the processed embeddings here so that downstream users can reproduce the released DIGER artifacts without depending on small preprocessing or embedding-generation differences.
|
| 40 |
+
|
| 41 |
+
## Models
|
| 42 |
+
|
| 43 |
+
The corresponding released RQ-VAE checkpoints are available at:
|
| 44 |
+
|
| 45 |
+
- Beauty: https://huggingface.co/junchenfu/diger-rqvae-beauty
|
| 46 |
+
- Instruments: https://huggingface.co/junchenfu/diger-rqvae-instruments
|
| 47 |
+
- Yelp: https://huggingface.co/junchenfu/diger-rqvae-yelp
|
| 48 |
+
|
| 49 |
+
## Source Dataset Note
|
| 50 |
+
|
| 51 |
+
The underlying recommendation datasets are public datasets from their original sources. This repository hosts the processed DIGER artifacts and embeddings for reproducibility; it is not intended to replace or relicense the original datasets.
|
| 52 |
+
|
| 53 |
+
Please consult the original dataset sources and their terms before using these files.
|
| 54 |
+
|
| 55 |
+
## Loading
|
| 56 |
+
|
| 57 |
+
The split files can be read as JSON Lines. For example:
|
| 58 |
+
|
| 59 |
+
```python
|
| 60 |
+
import json
|
| 61 |
+
import numpy as np
|
| 62 |
+
|
| 63 |
+
with open("beauty/beauty.train.jsonl") as f:
|
| 64 |
+
first = json.loads(next(f))
|
| 65 |
+
|
| 66 |
+
emb = np.load("beauty/Beauty.emb-llama.npy")
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
You can download files with `huggingface_hub`:
|
| 70 |
+
|
| 71 |
+
```python
|
| 72 |
+
from huggingface_hub import hf_hub_download
|
| 73 |
+
|
| 74 |
+
path = hf_hub_download(
|
| 75 |
+
repo_id="junchenfu/diger-processed-data",
|
| 76 |
+
repo_type="dataset",
|
| 77 |
+
filename="beauty/Beauty.emb-llama.npy",
|
| 78 |
+
)
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
## Citation
|
| 82 |
+
|
| 83 |
+
If you use these processed artifacts, please cite the DIGER paper and the original dataset sources.
|