CHARM
收藏资源简介:
CHARM是一个多文化角色扮演基准数据集,由成均馆大学和Adobe研究院联合创建,涵盖40个来自五个文化语言区域(英语、西班牙、中国、韩国、印度尼西亚)的真实与虚构角色。数据集包含680个边界意识问题、1332个边界遵循问题和736个知识验证问题,总计2748个多选题,所有问题均采用弃权选项并经过本土审校员验证。数据通过构建时间边界(历史人物不应知晓现代概念)和跨宇宙边界(角色不应知晓其叙事宇宙外的实体)两类问题,分别评估模型对边界的识别与遵循能力。该数据集旨在诊断大语言模型在角色扮演中的知识边界违反问题,揭示角色幻觉主要源于遵循失败而非认知缺失,并系统分析文化差异对模型行为的影响。
CHARM is a multilingual cultural role-playing benchmark dataset co-created by Sungkyunkwan University and Adobe Research. It covers 40 real and fictional characters from five cultural and linguistic regions: English-speaking, Spanish-speaking, Chinese, South Korean, and Indonesian. The dataset contains 680 boundary-awareness questions, 1,332 boundary-following questions, and 736 knowledge validation questions, totaling 2,748 multiple-choice questions. All questions include an abstention option and have been verified by native reviewers. Two types of questions are constructed to respectively evaluate models' capabilities of boundary recognition and boundary adherence: temporal boundaries (e.g., historical figures should not be aware of modern concepts) and cross-universe boundaries (e.g., characters should not be aware of entities outside their narrative universe). This benchmark aims to diagnose knowledge boundary violations of large language models (LLMs) during role-playing, reveal that role hallucinations mainly stem from adherence failures rather than cognitive deficits, and systematically analyze the impact of cultural differences on model behavior.
CHARM 数据集详情
一、数据集简介
CHARM(Character Hallucination for Multicultural Role-Play Benchmark)是一个用于诊断角色扮演语言模型中角色幻觉问题的多文化基准数据集。该数据集将模型能力拆分为两个独立维度进行评估:
- 边界感知(Boundary-Awareness, BA)——模型是否知道某条信息超出其角色的知识边界。
- 边界遵从(Boundary-Compliance, BC)——模型是否基于该感知采取正确行为(如拒绝回答或适当回避),而非在角色内产生幻觉。
该数据集覆盖5个文化语言区域中的40个角色,评测范围包括6个大型语言模型(涵盖闭源与开源模型)。相关论文已被 EMNLP 2026 Findings 接收(将于 EMNLP 2026 布达佩斯会议展示)。
二、数据内容
基准数据存放于 data/CHARM/source_data/ 目录下。每个角色沿两个维度进行探测,评估过程将**感知(awareness)与行为(behavior)**区分开。数据类型包括:
- 多项选择感知探测数据(
*_mc.json、*_awareness_binary.json) - 行为/遵从数据(
2stage_dataset_refusable.json) - 覆盖五个区域的辅助问答(QA)及选项文件
评测数据集样例:data/CHARM/source_data/test_data_check_fin/2stage_dataset_refusable.json
三、评测模型
数据集评测了6个大型语言模型,涵盖闭源与开源两类:
| 类型 | 模型 |
|---|---|
| 闭源 | GPT-4o |
| 闭源 | GPT-5.5 |
| 闭源 | Gemini-3.5-flash |
| 开源 | Llama-3.1-8B-Instruct |
| 开源 | Gemma-3-12B-IT |
| 开源 | Qwen3-8B |
开源模型通过 vLLM 在本地提供服务,模型路由配置位于 src/evaluation/2stepMethod/config.py。
四、数据集构建流程
数据集构建流程存放于 src/construction/ 下,采用 2stepMethod 方法。该步骤为可选操作(数据已直接提供),可通过运行 bash src/construction/run_all_construction_sample.sh 执行完整构建流程。
五、评估方法与使用
1. 两阶段评估流程(BA → BC)
对单个模型/任务运行:
bash python src/evaluation/2stepMethod/2stage_run_experiment.py --model gpt-4o --task awareness --data data/CHARM/source_data/test_data_check_fin/2stage_dataset_refusable.json
或跨全部模型与任务运行完整批量测试:
bash bash src/evaluation/2stepMethod/2stage_run_all.sh
2. 结果分析
bash python src/evaluation/2stepMethod/2stage_analyze_results.py python src/evaluation/2stepMethod/2stage_analyze_by_culture.py
3. 辅助实验
仓库中还包含心智理论(Theory-of-Mind)补充实验,代码位于 src/evaluation/tom_experiment/。
六、许可证
- 代码:MIT License
- 数据:CC BY 4.0

- 1CHARM: Character Hallucination for Multicultural Role Play Benchmark成均馆大学; Adobe研究院 · 2026年




