| # MAGIC: A Multi-Hop and Graph-Based Benchmark for Inter-Context Conflicts in Retrieval-Augmented Generation |
|
|
| <p align="center"> |
| <img src="https://img.shields.io/badge/MAGIC-v1.0-green"> |
| <img src="https://img.shields.io/badge/created-September%202025-blue"> |
| <img src="https://img.shields.io/badge/last%20commit-October-yellowgreen"> |
| <a href="https://aclanthology.org/2025.findings-emnlp.466.pdf"> |
| <img src="https://img.shields.io/badge/Paper-2412.12567-b31b1b.svg"> |
| </a> |
| </p> |
| |
| **Official Repository for "MAGIC: A Multi-Hop and Graph-Based Benchmark for Inter-Context Conflicts in Retrieval-Augmented Generation". [[π Paper (ACL Anthology)](https://aclanthology.org/2025.findings-emnlp.466.pdf)]** |
| <br/> |
|
|
| <!-- <small>**Jungyeon Lee**, **Kangmin Lee**, and **Taeuk Kim**. *Accepted to EMNLP 2025 Findings.*</small> --> |
| <small>Jungyeon Lee, Kangmin Lee and Taeuk Kim. ***Accepted to EMNLP 2025 Findings.***</small> |
|
|
| --- |
|
|
|
|
| ## OverView |
| **MAGIC** is a large-scale benchmark designed to evaluate **knowledge conflict detection and localization** in **Retrieval-Augmented Generation (RAG)** systems. It focuses on *multi-hop reasoning* and *graph-structured contexts*, where **inter-context knowledge conflicts** emerge between retrieved passages. |
|
|
|
|
| ## Repository Structure |
| ``` |
| .\ |
| βββ dataset |
| β βββ multi-hop/ |
| β β βββ 1-multi-hop_conflict.json/ |
| β β βββ 2-multi-hop_conflict.json/ |
| β β βββ 3-multi-hop_conflict.json/ |
| β β βββ 4-multi-hop_conflict.json/ |
| β βββ single-hop/ |
| β β βββ 1-single-hop_conflict.json/ |
| β β βββ 2-single-hop_conflict.json/ |
| β β βββ 3-single-hop_conflict.json/ |
| β β βββ 4-single-hop_conflict.json/ |
| ``` |
|
|
| ### Dataset Structure |
| - `ID`: Unique identifier for each sample. |
| - `rel_id`: Relation ID corresponding to the target knowledge relation (e.g. `P150` from Wikidata) |
| - `subgraph`: A set of surrounding triplets retrieved via DFS traversal from the source knowledge graph around the `original_triplet`. |
| - `original_triplet`: Randomly sampled **target triplet** from the source graph β serves as the anchor for conflict formation. |
| - `perturb_triplet`: Modified triplet(s) intentionally constructed to introduce a **knowledge conflict** with the `original_triplet`. |
| - `context1`, `context2`: Textual representations of the `original_triplet` and `perturb_triplet`, respectively. |
|
|