[ICCV2025 Highlight] Where, What, Why: Towards Explainable Driver Attention Prediction
October 31, 2025 Β· View on GitHub
This repository contain the official code and dataset for the paper:
"Where, What, Why: Towards Explainable Driver Attention Prediction"
Yuchen Zhou*, Jiayu Tang*, Xiaoyan Xiao, Yueyao Lin, Linkai Liu, Zipeng Guo, Hao Fei, Xiaobo Xia, Chao Gouβ
(*Equal contribution, β Corresponding author)
π Sun Yat-sen University & National University of Singapore
π arXiv 2506.23088
π Overview
This work introduces Explainable Driver Attention Prediction (EDAP) β a novel task that jointly predicts:
- π§ Where: pixel-level driver attention maps
- π§© What: semantic understanding of attended regions
- π§ Why: cognitive reasoning behind the attention
We present:
- WΒ³DA: The first large-scale dataset with spatial, semantic, and causal annotations across normal, critical, and accident driving scenarios. Itβs available here.
- LLada: A multimodal large language model (MLLM)-driven architecture that unifies pixel prediction, semantic parsing, and causal reasoning in an end-to-end framework.
π οΈ To-Do List
We are actively building this repository. The full code and cleaned dataset will be released progressively. Stay tuned!
- [β] Initial Code Release
- Refactored & Cleaned Code
- [β] Cleaned WΒ³DA Dataset Release
Installation
pip install -r requirements.txt
sudo apt-get install openjdk-8-jdk
Training
Pre-trained weights
In LLada, we employ the pre-trained LLaVA weights LLaVA-Lightning-7B-v1-1 , which can be directly downloaded from this link. As to MLLMβs vision backbone, we adopt the clip-vit-large-patch14, which can obtained from link.
Data Preparation
WΒ³DA Dataset sources from 4 public datasets, BDDA, DR(eye)VE, LBW, DADA-2000.
It is available here. Upon downloading the WΒ³DA dataset, you need to organize it as follows:
βββ dataset
β βββ BDDA
β β βββ training
β β βββ 0001
β β βββ raw_frames
β β βββ gazemap_frames
β β βββ 000001.json
β β βββ 000002.json
β β βββ 000003.json
β β βββ ......
β β βββ 0002
β β βββ 0003
β β βββ ......
β β βββ validation
β β βββ test
β βββ DReyeVE
β β βββ training
β β βββ validation
β β βββ test
β βββ LBW
β β βββ training
β β βββ validation
β β βββ test
β βββ DADA
β β βββ training
β β βββ validation
β β βββ test
To train the model, please use the following instruction, where dataset designates the sub-dataset used for training; train_sample_rates specifies the sampling rate of training samples for each sub-dataset.
deepspeed --master_port=24999 train_ds.py \
--version="PATH_TO_LLaVA" \
--vision-tower="PATH_TO_CLIP" \
--dataset_dir="PATH_TO_W3DA" \
--log_base_dir="PATH_TO_LOG" \
--dataset="BDDA||DReyeVE||LBW||DADA" \
--train_sample_rates="8,5,2,7" \
--exp_name="Attn-7b"
When training is finished, you can obtain the full model using the zero_to_fp32.py script which is automatically generated by deepspeed engine within the folder ./runs/Attn-7b/ckpt_model.
cd ./runs/Attn-7b/ckpt_model && python zero_to_fp32.py . ../pytorch_model.bin
Merge LoRA weight
Merge the LoRA weights of pytorch_model.bin, save the resulting model into your desired path in the Hugging Face format:
CUDA_VISIBLE_DEVICES="" python3 merge_lora_weights_and_save_hf_model.py \
--version="PATH_TO_LLaVA" \
--vision-tower="PATH_TO_CLIP" \
--weight="Attn-7b/pytorch_model.bin" \
--save_path="./ATTN-7B"
Validation
To validate the finetuned model, please use the following instruction, where val_dataset designates the sub-datasets to evaluate. eval_only is required to enable the evaluation process.
deepspeed --master_port=24999 train_ds.py \
--version="PATH_TO_LLada" \
--vision-tower="PATH_TO_CLIP" \
--dataset_dir="PATH_TO_W3DA" \
--log_base_dir="PATH_TO_LOG" \
--val_dataset="BDDA||DReyeVE||LBW||DADA" \
--val_batch_size=1 \
--eval_only
π¦ Citation
If you find this work helpful, please cite:
@inproceedings{zhou2025where,
title={Where, What, Why: Towards Explainable Driver Attention Prediction},
author={Yuchen Zhou and Jiayu Tang and Xiaoyan Xiao and Yueyao Lin and Linkai Liu and Zipeng Guo and Hao Fei and Xiaobo Xia and Chao Gou},
year={2025},
eprint={2506.23088},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2506.23088},
}
Acknowledgement
π¦ Contact
Feel free to reach out for questions or collaborations:
π§ Yuchen Zhou: zhouych37@mail2.sysu.edu.cn