steam-games-semanticIds-instructions
收藏资源简介:
Steam Games Semantic ID Instruction-Tuning Dataset是一个用于指令微调(SFT)的数据集,旨在将Steam游戏目录项与语义ID(即通过RQ-VAE在项目嵌入上训练得到的短离散代码)配对。该数据集用于微调模型,使其能够在语义ID空间中进行推理,而不是直接处理原始项目ID或嵌入,从而提升推荐系统等任务的效果。数据规模包括299,491个训练示例和16,118个验证示例,并包含1,026个特殊标记,用于表示语义ID词汇表(包括起始、结束标记以及每个层级和代码对的标记)。数据模式遵循Alpaca风格,每个示例包含instruction、input、output和task字段,其中task字段用于可追溯性,可根据需要省略。数据集支持多种任务:sequential(基于用户游戏历史预测下一项的语义ID)、grounding_name2id和grounding_id2name(实现游戏名称与语义ID之间的双向映射)、similar_item(基于用户共现行为推荐相似游戏)、asy(基于LC-Rec方法的变体,目标以游戏名称而非语义ID呈现)。在构建过程中,数据集仅包含约8,500个实际出现在用户游戏序列中的项目(而非完整约93k的目录),以确保每个项目有足够的重复曝光供学习;通过上下限重平衡任务来防止模型因流行度偏差而走捷径;训练/验证分割按目标组进行,避免重复目标泄漏。该数据集适用于文本生成、推荐系统和语义ID相关研究,特别是在游戏推荐和用户行为建模场景中。
The Steam Games Semantic ID Instruction-Tuning Dataset is a dataset for instruction fine-tuning (SFT), designed to pair Steam game catalog items with semantic IDs (i.e., short discrete codes trained via RQ-VAE on item embeddings). This dataset is used to fine-tune models to reason in semantic ID space rather than directly processing raw item IDs or embeddings, thereby improving the performance of tasks such as recommendation systems. The data scale includes 299,491 training examples and 16,118 validation examples, with 1,026 special tokens representing the semantic ID vocabulary (including start, end tokens, and tokens for each level and code pair). The data format follows the Alpaca style, with each example containing instruction, input, output, and task fields, where the task field is for traceability and can be omitted as needed. The dataset supports multiple tasks: sequential (predicting the semantic ID of the next item based on user game history), grounding_name2id and grounding_id2name (achieving bidirectional mapping between game names and semantic IDs), similar_item (recommending similar games based on user co-occurrence behavior), and asy (a variant based on the LC-Rec method, with targets presented as game names rather than semantic IDs). During construction, the dataset only includes approximately 8,500 items that actually appear in user game sequences (rather than the full catalog of about 93k), to ensure sufficient repeated exposure for learning each item; it uses upper-limit rebalancing tasks to prevent models from taking shortcuts due to popularity bias; and the training/validation split is performed by target group to avoid duplicate target leakage. This dataset is suitable for text generation, recommendation systems, and semantic ID-related research, particularly in scenarios such as game recommendation and user behavior modeling.
Steam Games — Semantic ID Instruction-Tuning 数据集
数据集概述
本数据集是一个用于指令微调(SFT)的配对数据集,将 Steam 游戏目录项与其语义 ID(基于 RQ-VAE 从物品嵌入中提取的短离散编码)配对。数据集用于微调模型,使其能够在语义 ID 空间中进行推理,而非使用原始物品 ID 或嵌入。
数据集规模
- 训练集:299,491 条示例(sft_train.jsonl)
- 验证集:16,118 条示例(sft_val.jsonl)
特殊标记
共 1,026 个特殊标记,包括:
<|sid_start|>:语义 ID 起始标记<|sid_end|>:语义 ID 结束标记<|sid_L{level}_{code}|>:每个(层级,编码)组合对应的标记
数据格式
每条数据为 Alpaca 风格的三元组,外加一个 task 字段:
instruction:指令input:输入output:输出task:任务类型(用于追溯,如框架要求严格三键格式可删除该字段)
任务类型
| 任务 | 描述 |
|---|---|
| sequential | 根据用户游玩历史(从最多到最少游玩),预测下一个物品的语义 ID |
| grounding_name2id | 从物品名称到语义 ID 的映射 |
| grounding_id2name | 从语义 ID 到物品名称的映射 |
| similar_item | 根据真实用户共同参与行为(共现关系),从一个物品推荐另一个物品 |
| asy(LC-Rec,arXiv 2311.09049) | 与 sequential 使用相同的游玩历史/目标配对,但目标以物品名称而非语义 ID 呈现 |
构建说明
- 物品筛选:仅包含实际出现在用户游玩序列中的约 8,500 个物品(而非完整目录的约 93,000 个),确保每个物品有足够高的重复曝光率以支持学习。
- 数据平衡:针对每个任务进行上下限再平衡。由于实际使用数据存在明显的流行度偏斜,通过限制任何单个目标的示例数量,避免模型总选择流行答案;对低频目标进行补足,使其获得足够的重复训练。
- 数据集划分:按目标组划分训练/验证集,而非按单条示例划分,防止同一目标的过采样近重复样本在划分间泄漏。




