MD-C2C-ScienceQA-KV
收藏资源简介:
MD-C2C ScienceQA KV Cache 数据集是为多模态直接缓存到缓存(MD-C2C)研究设计的键值(KV)缓存数据集。数据集包含两个子集:Z_full 和 Z_blk。Z_full 是从 ScienceQA 中提取的真实图像视觉语言模型(VLM,Qwen3-VL-2B-Thinking)KV 缓存,包含训练集(45 个分片,共 2,221 个样本)和测试集(16 个分片,共 770 个样本)。每个样本的形状为 `think_kv` = `(28, 2, 8, N, 128)`(bfloat16 格式),并包含多个键如 `think_kv`、`think_len`、`prefill_len`、`vlm_text` 等。Z_blk 是使用黑色(空白)图像提取的反事实基线 KV 缓存,其结构与 Z_full 对齐,包含相同的键但增加了 `is_counterfactual` 标识。该数据集的主要用途是通过比较 Z_full 和 Z_blk 来隔离 KV 缓存中的视觉信息,从而分析哪些层携带视觉或文本信息。数据集适用于视觉问答(VQA)和多模态研究任务。
The MD-C2C ScienceQA KV Cache dataset is a key-value (KV) cache dataset designed for multimodal direct cache-to-cache (MD-C2C) research. The dataset contains two subsets: Z_full and Z_blk. Z_full is a real-image visual language model (VLM, Qwen3-VL-2B-Thinking) KV cache extracted from ScienceQA, which includes a training set (45 shards, totaling 2,221 samples) and a test set (16 shards, totaling 770 samples). The shape of each sample is `think_kv` = `(28, 2, 8, N, 128)` (in bfloat16 format), and it contains multiple keys such as `think_kv`, `think_len`, `prefill_len`, `vlm_text`, etc. Z_blk is a counterfactual baseline KV cache extracted using black (blank) images, whose structure is aligned with Z_full, containing the same keys but with an added `is_counterfactual` flag. The primary purpose of this dataset is to isolate visual information in KV caches by comparing Z_full and Z_blk, thereby analyzing which layers carry visual or textual information. This dataset is applicable to visual question answering (VQA) and multimodal research tasks.
MD-C2C ScienceQA KV Cache Dataset 概述
数据集基本信息
- 许可证: Apache 2.0
- 任务类别: 视觉问答
- 标签: kv-cache, cache-to-cache, multimodal, scienceqa
- 数据规模: 1K<n<10K
数据集内容与结构
本数据集为多模态直接缓存到缓存研究提供KV缓存数据。
Z_full (z_full/)
包含使用ScienceQA中真实图像从VLM模型提取的KV缓存。
- 训练集: 45个分片 × 50个样本 = 2,221个样本
- 测试集: 16个分片 × 50个样本 = 770个样本
- 每个样本形状:
think_kv=(28, 2, 8, N, 128),数据类型为bfloat16 - 包含键:
think_kv,think_len,prefill_len,vlm_text,vlm_answer_idx,question,hint,choices,answer_idx,sample_idx
Z_blk (z_blk/)
包含使用黑色(空白)图像从VLM模型提取的KV缓存,作为反事实基线。
- 训练集: 45个分片,测试集: 16个分片(通过
sample_idx与Z_full完全对齐) - 包含键:
think_kv,think_len,prefill_len,is_counterfactual,sample_idx
使用目的
通过计算Z_full与Z_blk之间的差异,可以隔离KV缓存中的视觉信息,从而支持对哪些层携带视觉信息与文本信息进行反事实分析。
相关模型
| 模型 | 角色 |
|---|---|
| Qwen3-VL-2B-Thinking | VLM源(KV提取) |
| Qwen3-0.6B | LLM接收器(KV注入目标) |




