music-off-policy-evaluation-benchmark
收藏资源简介:
Amazon Music 离策略评估数据集是一个专门为离策略评估研究设计的数据集,它包含了来自 Amazon Music 主页的日志交互记录。该数据集旨在用于基准测试离策略评估估计器以及离线评估反事实排序策略。数据规模属于中等,样本量在10万到100万之间。数据集包含两个主要部分(D1 和 D2),其核心模式由五个关键字段构成:1) `actions`:一个列表的列表,每个内部列表是一个长度为129的上下文向量,代表一个可用的动作(例如,一个音乐项目),每个观测中可用的动作数量 L 可能不同;2) `rewards`:一个浮点数列表,表示每个动作观察到的二元奖励(例如,点击或未点击),按日志策略选择的动作顺序排列;3) `logging_selected_actions`:一个整数列表,表示日志策略 π₀ 选择的动作索引及其排序位置;4) `target_selected_actions`:一个整数列表,表示目标策略 π 选择的动作索引及其排序位置;5) `propensities`:一个二维的倾向性矩阵,描述了在日志策略 π₀ 下,动作被排在不同位置的概率。该数据集适用于推荐系统、学习排序等领域中离策略评估和反事实评估方法的研究与验证。
The Amazon Music Off-Policy Evaluation Dataset is a dataset specifically designed for off-policy evaluation research. It contains log interaction records from the Amazon Music homepage. The dataset is intended for benchmarking off-policy evaluation estimators and offline evaluation of counterfactual ranking policies. The data scale is medium, with sample sizes ranging from 100,000 to 1,000,000. The dataset consists of two main parts (D1 and D2). Its core schema is composed of five key fields: 1) `actions`: a list of lists, where each inner list is a context vector of length 129, representing an available action (e.g., a music item). The number of available actions L per observation may vary. 2) `rewards`: a list of floating-point numbers representing the observed binary rewards (e.g., click or no-click) for each action, ordered by the actions selected by the logging policy. 3) `logging_selected_actions`: a list of integers indicating the action indices and their ranking positions selected by the logging policy π₀. 4) `target_selected_actions`: a list of integers indicating the action indices and their ranking positions selected by the target policy π. 5) `propensities`: a two-dimensional propensity matrix describing the probability of actions being ranked at different positions under the logging policy π₀. Rows correspond to actions in ranking order, and columns correspond to ranking positions. This dataset is suitable for research and validation of off-policy evaluation and counterfactual evaluation methods in fields such as recommender systems and learning to rank.
数据集概述
数据集名称:Amazon Music Off-Policy Evaluation Dataset
许可证:CC BY-NC 4.0(仅限非商业用途)
数据规模:100,000 < 样本量 < 1,000,000
配置:包含 D1 和 D2 两个数据分片,以 Parquet 格式存储
用途
- 离线策略评估(Off-Policy Evaluation, OPE)方法的基准测试
- 离线评估反事实排序策略(Counterfactual Ranking Policies)
数据来源
来自 Amazon Music 首页的日志交互数据。
数据集模式(Schema)
每条观测包含以下字段(其中 k 为可用动作数,L 为实际动作数,d = min(L, 50)):
| 字段名 | 类型 | 维度 | 描述 |
|---|---|---|---|
| actions | List[List[float]] | L × 129 | 每个动作的 129 维上下文向量 |
| rewards | List[float] | d | 每个动作观测到的二进制奖励(0/1),按 logging_selected_actions 顺序排列 |
| logging_selected_actions | List[int] | d | 日志策略 π₀ 选出的动作索引(按展示顺序) |
| target_selected_actions | List[int] | d | 目标策略 π 选出的动作索引(按展示顺序) |
| propensities | List[List[float]] | d × d | 倾向性矩阵,描述日志策略 π₀ 下动作被排在不同位置的概率 |
各字段详细说明
- actions:每个动作对应一个 129 维向量,表示其上下文特征;一个观测中可用的动作数 L 会随观测变化。
- logging_selected_actions:日志策略 π₀ 对动作的排序(索引顺序),例如
[2, 1, 0]表示动作 2 排首位、动作 1 排次位、动作 0 排第三位。 - target_selected_actions:目标策略 π 对动作的排序,可与 logging_selected_actions 不同,用于对比策略差异。
- rewards:按 logging_selected_actions 排序的二进制奖励,例如
[1.0, 0.0, 0.0]表示排在首位的动作(索引 2)获得了正奖励。 - propensities:一个 d×d 的矩阵,行对应实际排序中的动作,列对应可能排到的位置;对角线上元素 P_{ii} 是动作 i 被排在实际位置 i 的似然,非对角线元素 P_{ij}(i≠j)是动作 i 被排在位置 j 的似然(即原本排在位置 i 的动作实际被排到了位置 j)。
代码与引用
- 基准测试复现代码详见 GitHub 仓库(注意:需手动访问)
- 相关论文目前正在审稿中




