CUB (Context Utilisation Benchmark)
收藏资源简介:
CUB是一个用于评估和比较语境利用操纵技术(CMTs)的基准数据集。它包含三个不同的数据集:CounterFact、NQ和DRUID,分别代表不同的任务难度、真实和合成的RAG场景。CUB旨在帮助研究人员在检索增强生成(RAG)中识别最佳的CMT,以解决语言模型在处理外部知识时的挑战。数据集的创建过程包括对现有数据集的采样和合成,以确保数据集的多样性和代表性。CUB的应用领域是评估CMTs在不同语境类型下的性能,旨在解决语言模型在处理外部知识时的不足。
CUB is a benchmark dataset for evaluating and comparing Context Manipulation Techniques (CMTs). It includes three distinct datasets: CounterFact, NQ, and DRUID, which respectively represent real-world and synthetic RAG scenarios with varying task difficulties. CUB aims to assist researchers in identifying the optimal CMTs for Retrieval-Augmented Generation (RAG) to address the challenges faced by language models when processing external knowledge. The dataset creation process involves sampling and synthesizing existing datasets to ensure its diversity and representativeness. The application scope of CUB is to evaluate the performance of CMTs across different context types, with the goal of mitigating the limitations of language models when handling external knowledge.
DRUID数据集概述
数据集详情
- 许可证: MIT
- 语言: 英语 (en)
- 数据集名称: DRUID
- 来源: 基于Hagström et al. (2024)的DRUID数据集版本
- 样本数量: 4,500个DRUID条目,包含"true target"(事实核查结果)和"new target"(上下文立场)
数据集结构
- 配置:
gpt2-xlpythia-6.9bqwen-1.5bqwen-1.5b-instructqwen-7bqwen-7b-instructqwen-32bqwen-32b-instructcohere-command-a
- 数据文件:
- 每个配置包含
validation和test分割
- 每个配置包含
- 任务类别: 问答、文本生成
- 规模类别: 1K<n<10K
数据列说明
跨数据集版本相同的列:
id: 样本ID,与原始DRUID ID匹配context_type: 上下文类型("gold"、"edited"或"irrelevant")template: 用于生成提示的模板template_w_context: 包含上下文的提示模板target_true: 正确答案(基于原始事实核查结果," True"、" Half true"或" False")target_new: 根据上下文的正确答案(None、" None"、" False"或" True")prompt: 不含上下文的提示prompt_w_context: 包含上下文的提示claim: 样本声明claimant: 声明者evidence: 证据(上下文)relevant: 证据是否相关
依赖数据集版本的列(模型相关):
pred: 模型对提示的top-1预测pred_w_context: 模型对包含上下文的提示的top-1预测pred_prob:pred的模型概率pred_prob_w_context:pred_w_context的模型概率context_token_prob: 上下文token(target_new)的模型概率context_token_prob_w_context: 包含上下文的提示中上下文token的模型概率true_token_prob: 真实token(target_true)的模型概率true_token_prob_w_context: 包含上下文的提示中真实token的模型概率memory_token_prob_w_context: 包含上下文的提示中记忆token(pred)的模型概率
数据集创建过程
- 从copenlu/druid下载5,490个DRUID样本
- 保留具有适当事实核查结果的样本("True"、"False"或"Half true")
- 将证据立场映射到target_new
- 根据上下文与查询的相关性及与原始事实核查结果的一致性,将上下文分类为"gold"、"edited"或"irrelevant"
- 使用2-shot提示模板创建含和不含上下文的提示
- 收集数据样本的相应模型预测
- 将数据集分割为验证集和测试集(验证集包含200个样本,上下文类型均匀分布)

- 1CUB: Benchmarking Context Utilisation Techniques for Language Models哥德堡大学 · 2025年



