Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Multimodal RAG Position Bias

Official code for our EMNLP 2025 paper:
"Who is in the Spotlight: The Hidden Bias Undermining Multimodal Retrieval-Augmented Generation"
πŸ“„ Paper (arXiv)


πŸ” Overview

This project investigates position bias in Multimodal Retrieval-Augmented Generation (RAG) systems.
We find that model accuracy follows a U-shaped curve with respect to evidence order β€”
high at the beginning and end, but lowest in the middle.

We propose the Position Sensitivity Index (PSIβ‚š) to quantify this bias and visualize its attention-level causes.


πŸ“¦ Setup

git clone https://github.com/Theodyy/Multimodal-RAG-Position-Bias.git
cd Multimodal-RAG-Position-Bias
pip install -r requirements.txt

πŸš€ Run

🧩 Text-only (MS MARCO)

Evaluate position bias in text retrieval tasks.

cd exp/text-only
python ms-mini.py --output_dir ../../results/ms_mini

πŸ–ΌοΈ Image-only (ChartQA)

Evaluate position bias in chart reasoning.

cd exp/image-only
python chart-mini.py --dataset_name chart --output_dir ../../results/chart_mini

Or batch run 10 trials:

bash run_mini5.sh

πŸ“Š Visualization

Reproduce Figure 4 (attention heatmaps):

cd vis
jupyter notebook single_3_diff.ipynb

πŸ“š Citation

@article{yao2025spotlight,
  title={Who is in the Spotlight: The Hidden Bias Undermining Multimodal Retrieval-Augmented Generation},
  author={Yao, Jiayu and Liu, Shenghua and Wang, Yiwei and Mei, Lingrui and Bi, Baolong and Ge, Yuyao and Li, Zhecheng and Cheng, Xueqi},
  journal={arXiv preprint arXiv:2506.11063},
  year={2025}
}

πŸ“§ Contact: yaojiayu25@mails.ucas.ac.cn

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages