# Q-Insight
**Repository Path**: ByteDance/Q-Insight
## Basic Information
- **Project Name**: Q-Insight
- **Description**: Q-Insight: Understanding Image Quality via Visual Reinforcement Learning
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-06-01
- **Last Updated**: 2026-01-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Q-Insight: Understanding Image Quality via Visual Reinforcement Learning
[Weiqi Li](https://scholar.google.com/citations?user=SIkQdEsAAAAJ), Xuanyu Zhang, Shijie Zhao, Yabin Zhang, Junlin Li, Li Zhang and [Jian Zhang](https://jianzhang.tech/)
## 🚩 Updates
- 09.19 Q-Insight has been accepted at NeurIPS 2025 as a **spotlight** (Top 3%)!
- 05.30 Released training and testing code, along with the pretrained model.
- 05.26 Released our v2 paper.
- 03.28 Released the Q-Insight technical report.
## 🔥 Introduction
PLCC comparisons between our proposed Q-Insight and existing IQA metrics (left) and three example applications of our Q-Insight (right) are presented. Q-Insight demonstrates significantly improved performance compared to existing methods, especially on out-of-domain datasets. Additionally, Q-Insight effectively supports quality score regression, image degradation perception, and zero-shot image comparison reasoning tasks.
## 🔧 Dependencies and Installation
```bash
git clone https://github.com/bytedance/Q-Insight.git
bash setup.sh
```
## ⚡ Quick Inference
### Supported Tasks
#### Score Regression
```
cd src/eval/
python demo_score.py
```
#### Degradation Perception
```
cd src/eval/
python demo_dist.py
```
#### Image Comparison Reasoning
```
cd src/eval/
python demo_comparison.py
```
## 📖 Dataset Preparation for Training
#### Score Regression
Download meta files from [Data-DeQA-Score](https://huggingface.co/datasets/zhiyuanyou/Data-DeQA-Score/tree/main) and the source images from the [KONIQ](https://database.mmsp-kn.de/koniq-10k-database.html) dataset.
Arrange the folders in `./src/open-r1-multimodal/data`as follows:
```
|-- Data-DeQA-Score
|-- KONIQ
|-- images/*.jpg
|-- metas
```
#### Degradation Perception
Download the `refA_sd_brief` subset from [KADIS-700K](https://modelscope.cn/datasets/zhiyuanyou/DataDepictQA/files).
Arrange the folders in `./src/open-r1-multimodal/data` as follows:
```
|-- KADIS-700K
|-- refA_sd_brief
|-- dist_imgs/*.jpg
|-- metas/train_dist.json
```
#### Image Comparison Reasoning
Download the validation dataset of [DiffIQA](https://drive.google.com/drive/folders/1vZehlUPDyDfo6Mq1K8pAMe3pcjqdDRht).
Arrange the folders in `./src/open-r1-multimodal/data` as follows:
```
|-- DiffIQA
|-- ValidationImage
|-- images
|-- train_comparison.json
```
## Training
#### Score Regression and Degradation Perception
```
cd src/open-r1-multimodal/
bash run_qinsight_score_and_dist.sh
```
#### Image Comparison Reasoning
```
cd src/open-r1-multimodal/
bash run_qinsight_comparison.sh
```
## ✏️ To Do List
- [ ] Release the code and model of VQ-Insight
- [ ] Add support for LoRA fine-tuning
- [ ] Provide a Gradio demo
- [x] Release inference code and weights
- [x] Release training code
- [x] Release the paper
## Acknowledgement
We appreciate the releasing codes and data of [VLM-R1](https://github.com/om-ai-lab/VLM-R1), [DepictQA](https://github.com/XPixelGroup/DepictQA) and [DeQA-Score](https://github.com/zhiyuanyou/DeQA-Score).
## Citation
If Q-Insight is helpful, please help to ⭐ the repo.
If you find the code helpful in your research or work, please cite the following papers:
```
@article{li2025qinsight,
title={Q-Insight: Understanding Image Quality via Visual Reinforcement Learning},
author={Li, Weiqi and Zhang, Xuanyu and Zhao, Shijie and Zhang, Yabin and Li, Junlin and Zhang, Li and Zhang, Jian},
journal={Proceedings of the Advances in Neural Information Processing Systems (NeurIPS)},
year={2025}
}
```
```
@article{zhang2025vqinsight,
title={VQ-Insight: Teaching VLMs for AI-Generated Video Quality Understanding via Progressive Visual Reinforcement Learning},
author={Zhang, Xuanyu and Li, Weiqi and Zhao, Shijie and Li, Junlin and Zhang, Li and Zhang, Jian},
journal={arXiv preprint arXiv:2506.18564},
year={2025}
}
```