Shopping MMLU
收藏资源简介:
Shopping MMLU是一个大规模的多任务在线购物基准数据集,由亚马逊公司创建,旨在全面评估大型语言模型(LLMs)在在线购物领域的多任务处理能力。该数据集包含57个任务,涵盖概念理解、知识推理、用户行为对齐和多语言能力四大购物技能,共有20,799个问题。数据集的创建过程基于真实的亚马逊数据,并通过重新制定任务为文本生成任务来适应LLM的解决方案。Shopping MMLU的应用领域主要是在线购物助手,旨在通过减少任务特定的工程努力和提供用户互动对话来改善在线购物体验。
Shopping MMLU is a large-scale multi-task online shopping benchmark dataset developed by Amazon, which aims to comprehensively evaluate the multi-task processing capabilities of large language models (LLMs) in the online shopping domain. This dataset contains 57 tasks covering four core shopping skills: concept understanding, knowledge reasoning, user behavior alignment and multilingual capabilities, with a total of 20,799 questions. The dataset is constructed based on real Amazon data, and all tasks were reformulated into text generation tasks to adapt to the solution approaches of LLMs. The primary application scenarios of Shopping MMLU focus on online shopping assistants, with the goal of enhancing the online shopping experience by reducing task-specific engineering efforts and supporting user interactive conversations.
Shopping MMLU 数据集概述
数据集简介
- 名称: Shopping MMLU
- 描述: 一个用于大型语言模型(LLMs)的在线购物多任务基准测试,涵盖四个主要购物技能:购物概念理解、购物知识推理、用户行为对齐和多语言能力。
- 发布机构: 由 NeurIPS 2024 数据集和基准测试轨道接受,并用于 Amazon KDD Cup 2024。
数据集结构
- 数据文件夹:
data - 技能评估代码:
skill_wise_eval - 任务评估代码:
task_wise_eval
数据格式
- 任务类型: 包含五种不同类型的任务:
- 多选题:
.csv格式,包含三列:question、choices、answer。 - 其他任务:
.json格式,包含两个字段:input_field和target_field。
- 多选题:
数据下载
- 下载方式: 下载
data.zip文件,解压到data文件夹中。
评估方法
依赖库
- 主要依赖:
transformers==4.37.0torch==2.1.2+cu121pandas==2.0.3evaluate==0.4.1sentence_transformers==2.2.2rouge_scoresacrebleusacrebleu[jp]
单任务评估
- 示例: 评估
Vicuna-7B-v1.5模型在multiple_choice任务上的表现。 bash cd task_wise_eval/ python3 hf_multi_choice.py --test_subject asin_compatibility --model_name vicuna2
技能整体评估
- 示例: 评估
Vicuna-7B-v1.5模型在skill1_concept技能上的表现。 bash cd skill_wise_eval/ python3 hf_skill_inference.py --model_name vicuna2 --filename skill1_concept --output_filename <your_filename> python3 skill_evaluation.py --data_filename skill1_concept --output_filename vicuna2_<your_filename>
参考文献
- 论文: 详细信息可在 arXiv 链接 中找到。
- KDD Cup 挑战赛: 更多信息可在 KDD Cup 2024 网站 中找到。




