File size: 6,703 Bytes
49be079
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
---
license: apache-2.0
pretty_name: ProfileOpt
language:
- en
task_categories:
- text-retrieval
- question-answering
tags:
- recommendation
- sequential-recommendation
- personalization
- user-profiling
- amazon-reviews
- google-local-reviews
size_categories:
- 100K<n<1M
---

<div align="center">

# πŸ”΅ ProfileOpt

**The data of *Bridging Textual Profiles and Latent User Embeddings for Personalization* (BLUE)**

<p><a href="https://arxiv.org/abs/2605.06981"><img alt="arXiv" src="https://img.shields.io/badge/arXiv-2605.06981-b31b1b?style=flat-square&logo=arxiv&logoColor=white"></a> <a href="https://github.com/TamSiuhin/BLUE"><img alt="Code" src="https://img.shields.io/badge/code-BLUE-181717?style=flat-square&logo=github"></a> <img alt="NeurIPS 2026" src="https://img.shields.io/badge/NeurIPS-2026-6f42c1?style=flat-square"></p>

</div>

User histories, next items and candidate items from **Amazon Reviews 2023** and **Google Local Reviews (New York)**. Models are trained on Amazon Clothing and evaluated zero-shot on the other four domains, in two tasks:

- 🎯 **Sequential recommendation:** rank the next item of a user among 100 candidates.
- πŸ’¬ **Personalized question answering:** pick the next item among 4 options, and predict the rating of an item.

## πŸ“Š Domains

| Domain | In the paper | `{stem}` | Test users | Training examples in the paper |
| :-- | :-- | :-- | --: | --: |
| Amazon Clothing | training domain | `5core_Clothing_Shoes_and_Jewelry` | 1,209 | 106,946 |
| Amazon Books | zero-shot | `5core_Books` | 1,252 | 44,420 |
| Amazon Electronics | zero-shot | `5core_Electronics` | 1,256 | 58,422 |
| Amazon Sports | zero-shot | `5core_Sports_and_Outdoors` | 1,295 | 22,673 |
| Google Local (New York) | zero-shot | `10core_New_York` | 1,338 | 100,000 |

All the files are in `processed/`; their names start or end with the `{stem}` of a domain.

## πŸš€ Quick start

Download what the paper uses (4.2 GB): the test sets, the item texts and the training set of Clothing.

```bash
hf download Zhaoxuan/ProfileOpt --repo-type dataset --local-dir ProfileOpt \
  --include "processed/test_*core_*_99neg_multipossplit_ids.json" \
  --include "processed/*_short_id2doc.json" \
  --include "processed/train_5core_Clothing_Shoes_and_Jewelry_500neg_multipossplit_ids.json"
```

Or read a single file:

```python
import json
from huggingface_hub import hf_hub_download

def load(name):
    path = hf_hub_download("Zhaoxuan/ProfileOpt", f"processed/{name}", repo_type="dataset")
    with open(path) as f:
        return json.load(f)

test = load("test_5core_Sports_and_Outdoors_99neg_multipossplit_ids.json")
id2doc = load("5core_Sports_and_Outdoors_short_id2doc.json")

user = test[0]["multi_input"]
print(user["query"][:200])                   # the history
print(id2doc[user["positive_document"]])     # the next item
print(len(user["negative_document"]))        # 99 negatives
```

To train and evaluate the models of the paper, see [BLUE](https://github.com/TamSiuhin/BLUE#data), which reads these files directly.

## πŸ—‚ Files

### Sequential recommendation

| File | Content |
| :-- | :-- |
| `test_{stem}_99neg_multipossplit_ids.json` | One example per test user: 1 positive and 99 random negatives |
| `train_{stem}_500neg_multipossplit_ids.json` | Training examples with 500 negatives each |
| `{stem}_short_id2doc.json` | Item id β†’ item text, **as used in the paper** |
| `{stem}_id2doc.json` | Item id β†’ item text, with every field and the full descriptions |

The training files are larger than the training sets of the paper, except for Sports. The paper trains on a random subset of the size in the table above.

An example of the test and training files:

```jsonc
{
  "data_source": "supervised",
  "extra_info": {
    "split": "test",
    "user_id": "AH3SJIFR5DGA3CHUQRKACMIA23VQ",
    "source": "amazon_reviews_2023_Sports_and_Outdoors"
  },
  "multi_input": {
    "query": "[G4Free 15 PCS Camping Cookware ... | 5.0], [Coleman Compression Sack | 1.0], ...",
    "positive_document": "B01NCYC9QJ",
    "negative_document": ["B007SC1A0M", "B000Z325QO", "..."]
  }
}
```

- `query` is the history, oldest first, as `[title | rating]` joined by `, `. On Google Local, an interaction is `[name | address | rating]`.
- `positive_document` is the next item, and `negative_document` the candidates to rank it against. Both are keys of `id2doc`.

The item texts follow these templates, with the fields separated by blank lines. The short version leaves out empty fields and cuts long descriptions.

```text
Product Item Title: ...           Location Name: ...
Product Item Description: ...     Location Address: ...
Product Item Features: ...        Location Description: ...
                                  Location Category: ...
```

### Personalized question answering

| File | Content |
| :-- | :-- |
| `test_{stem}_mcq.json` | One next-item question with 4 options per test user |
| `test_{stem}_rating_prediction.json` | Rating questions (1 to 5) for 2,000 users, all the test users among them; a user can have several |

Each row has `id`, `user_id`, `user_history_str`, `question` and `answer`; the multiple choice questions also have `choices`.

```jsonc
{
  "id": 0,
  "user_id": "AGDNZ2STYWB5XHYGBX7DPIHS6TFQ",
  "user_history_str": "[PAKULA Scoop Neck ... | 1.0], [PUMA Women's Roma Slim Nylon Shoe | 3.0], ...",
  "question": "Based on this information, what is the user's rating on the following product? ...",
  "answer": 5.0
}
```

### Other files

These are not read by BLUE:

- `test_{stem}_unfiltered_user_history.json`: the histories of 2,000 users per domain, all the test users among them, without candidates.
- `test_{stem}_category_prediction.json` and `test_{stem}_review_generation.json`: two more question answering tasks.
- Clothing only, from other experiments: `*_wodesc*`, `*_history_split_*`, `test_5core_Clothing_Shoes_and_Jewelry_500neg.json`, `test_5core_Clothing_Shoes_and_Jewelry.json` and `test_Clothing_Shoes_and_Jewelry.json`.

## πŸ“œ Source data

The interactions come from [Amazon Reviews 2023](https://amazon-reviews-2023.github.io/) and [Google Local Reviews](https://mcauleylab.ucsd.edu/public_datasets/gdrive/googlelocal/). Please also follow the terms of these datasets. Section 3.1 of the paper describes how users and target items were selected.

## πŸ“š Citation

```bibtex
@misc{tan2026bridging,
  title         = {Bridging Textual Profiles and Latent User Embeddings for Personalization},
  author        = {Tan, Zhaoxuan and Zhai, Xiang and Zhu, Yan and Jiang, Meng and Hammad, Mohamed},
  year          = {2026},
  eprint        = {2605.06981},
  archivePrefix = {arXiv},
  primaryClass  = {cs.IR}
}
```