MM-IssueLoc
收藏资源简介:
MM-IssueLoc是由清华大学与京东联合创建的一个受控多模态仓库级问题定位基准数据集,旨在系统评估视觉证据在软件工程问题定位中的作用。该数据集包含652个基于真实GitHub问题的实例,覆盖23种编程语言,涉及1050张标注图像,并提供文件级和函数级的黄金标签,数据来源于608个开源仓库的星标中位数为202的存储库。其构建过程结合了人工标注与AI辅助扩展,并引入了有害图像控制以增强鲁棒性测试。该数据集主要应用于多模态软件工程领域,旨在解决现有文本主导基准无法准确衡量视觉输入对代码定位贡献的问题,为开发更有效的多模态定位系统提供标准化评估工具。
MM-IssueLoc is a controlled multi-modal repository-level bug localization benchmark dataset jointly developed by Tsinghua University and JD.com, which aims to systematically evaluate the role of visual evidence in software engineering bug localization. This dataset consists of 652 instances derived from real GitHub issues, covering 23 programming languages, and includes 1050 annotated images. It provides gold-standard labels at both file-level and function-level, with data sourced from 608 open-source repositories that have a median star count of 202. The construction of this dataset combines manual annotation and AI-assisted expansion, and incorporates harmful image controls to enhance robustness testing. Primarily applied in the field of multi-modal software engineering, this dataset addresses the limitation that existing text-dominated benchmarks fail to accurately quantify the contribution of visual inputs to code localization, thus serving as a standardized evaluation tool for developing more effective multi-modal bug localization systems.
数据集概述
MM-IssueLoc 是一个用于评估多模态仓库级问题定位中视觉证据作用的受控基准数据集。该数据集旨在隔离视觉证据(如截图、错误对话框、渲染的UI界面和日志)在问题定位中的作用,检索需要修改的文件和函数,并与补丁合成过程解耦。
数据集规模与构成
- 总实例数:652 个问题-拉取请求实例
- 覆盖语言:23 种编程语言
- 标注粒度:
- 所有实例均提供文件级金标签
- 343 个实例额外提供函数级金标签
- 图像标注:每个图像包含 7 个证据类别和 4 个相关级别的标注
数据获取
数据集托管于 Hugging Face Hub,地址为:Jasaxion/MM-IssueLocBench。包含两个配置:
canonical:652 条实例function_level:343 条实例
首次加载时,问题图像会嵌入行中并缓存到本地。
数据加载示例
python from mm_issueloc import load_dataset, filter_instances
instances = load_dataset("canonical") # 652 个实例 with_images = filter_instances(instances, has_images=True)
inst = instances[0] inst.problem_statement # 问题标题和正文(查询) inst.edit_files # 需要定位的金文件 inst.edit_functions # 金函数(function_level 配置) inst.image_paths # 材料化截图的绝对路径
离线使用时,可指定包含 JSONL 分割文件和 images/ 目录的本地路径。
评估流程
-
生成预测文件:为每个实例输出一条 JSON 记录,格式如下: json {"instance_id": "owner__repo__123", "predicted_files": ["src/app.py"], "predicted_functions": ["src/app.py:App.run"]}
-
评分: bash mm-issueloc-eval --predictions preds.jsonl --config canonical --output metrics.json
函数级评估:
mm-issueloc-eval --predictions preds.jsonl --config function_level --level function
分层分析:
mm-issueloc-eval --predictions preds.jsonl --stratify image_category difficulty relevance_score
-
聚合结果: bash mm-issueloc-aggregate --results-dir results --out results/_summary
评估指标
在 K ∈ {1, 3, 5, 10} 下报告文件和函数粒度的指标:
| 指标 | 含义 |
|---|---|
*_mrr |
第一个正确命中的平均倒数排名 |
*_recall@K |
金项目在 Top-K 中的比例 |
*_hit@K |
Top-K 中是否包含任何金项目 |
*_accuracy@K |
Top-K 中是否包含所有金项目(严格 Acc@K) |
*_map@K |
Top-K 的平均精确率 |
*_ndcg@K |
Top-K 的归一化折损累计增益 |
路径比较已规范化;函数匹配为松弛匹配(file:func 匹配 file:Class.func)。修复中添加的文件和函数(base_commit 中不存在)不计入评分。函数级指标仅对具有金函数的实例取平均值。
引用
bibtex @article{zhan2026mm, title={MM-IssueLoc: A Controlled Benchmark for Evaluating Visual Evidence in Multimodal Repository-Level Issue Localization}, author={Zhan, Shaoxiong and Hu, Shi and Feng, Boyu and Lin, Hai and Gong, Andrew and Zhou, Zhengda and Zhou, Jiaying and Hou, Yunyun and Su, Hao and Zheng, Hai-Tao}, journal={arXiv preprint arXiv:2607.15205}, year={2026} }





