This repository contains the official code for the paper: "ChartGaze: Enhancing Chart Understanding in LVLMs with Eye-Tracking Guided Attention Refinement".
We introduce a novel attention refinement method and a new eye-tracking dataset to improve the performance and interpretability of Large Vision-Language Models (LVLMs) on chart question answering (CQA). Our approach aligns model attention with human gaze patterns, leading to performance gains on non-instruction-tuned models.
https://huggingface.co/datasets/alisalam/ChartGaze
https://arxiv.org/pdf/2509.13282
Charts are a crucial visual medium for communicating and representing information. While Large Vision-Language Models (LVLMs) have made progress on chart question answering (CQA), the task remains challenging, particularly when models attend to irrelevant regions of the chart. In this work, we present ChartGaze, a new eye-tracking dataset that captures human gaze patterns during chart reasoning tasks. Through a systematic comparison of human and model attention, we find that LVLMs often diverge from human gaze, leading to reduced interpretability and accuracy. To address this, we propose a gaze-guided attention refinement that aligns image-text attention with human fixations. Our approach improves both answer accuracy and attention alignment, yielding gains of up to 2.56 percentage points across multiple models. These results demonstrate the promise of incorporating human gaze to enhance both the reasoning quality and interpretability of chart-focused LVLMs.
After downloading the dataset and models, please ensure your directory is structured as follows:
ChartGaze/
models/
ChartGemma/
model/finetune.pyTinyLLaVA/
my_modelling/
TinyLLaVA-OpenELM-450M-SigLIP-0.89B_wAttn/
model.safetensorsmy_scripts/
lora_finetune_human_wAttn.shtinyllava/InternVL/data/
train/
attn_maps/images/data.jsonval/
attn_maps/images/data.jsonFollow these steps to set up the project and finetune the models:
Download Models:
Download Dataset:
Our dataset is available on Hugging Face: https://huggingface.co/datasets/alisalam/ChartGaze
Note that to make things easier, you can just download the train and val folders here: https://huggingface.co/datasets/alisalam/ChartGaze/tree/main/data
Organize Files:
Run Finetuning Scripts:
ChartGaze/models/TinyLLaVA/my_scripts/lora_finetune_human_wAttn.sh
ChartGaze/models/ChartGemma/finetune.py
@inproceedings{
salamatian2025chartgaze,
title={ChartGaze: Enhancing Chart Understanding in {LVLM}s with Eye-Tracking Guided Attention Refinement},
author={Ali Salamatian and Amirhossein Abaskohi and Wan-Cyuan Fan and Mir Rayat Imtiaz Hossain and Leonid Sigal and Giuseppe Carenini},
booktitle={The 2025 Conference on Empirical Methods in Natural Language Processing},
year={2025},
url={https://openreview.net/forum?id=W1fNDoL7sv}
}
5 commits
4 commits
Python
99.5%
This repository contains the official code for the paper: "ChartGaze: Enhancing Chart Understanding in LVLMs with Eye-Tracking Guided Attention Refinement".
We introduce a novel attention refinement method and a new eye-tracking dataset to improve the performance and interpretability of Large Vision-Language Models (LVLMs) on chart question answering (CQA). Our approach aligns model attention with human gaze patterns, leading to performance gains on non-instruction-tuned models.
https://huggingface.co/datasets/alisalam/ChartGaze
https://arxiv.org/pdf/2509.13282
Charts are a crucial visual medium for communicating and representing information. While Large Vision-Language Models (LVLMs) have made progress on chart question answering (CQA), the task remains challenging, particularly when models attend to irrelevant regions of the chart. In this work, we present ChartGaze, a new eye-tracking dataset that captures human gaze patterns during chart reasoning tasks. Through a systematic comparison of human and model attention, we find that LVLMs often diverge from human gaze, leading to reduced interpretability and accuracy. To address this, we propose a gaze-guided attention refinement that aligns image-text attention with human fixations. Our approach improves both answer accuracy and attention alignment, yielding gains of up to 2.56 percentage points across multiple models. These results demonstrate the promise of incorporating human gaze to enhance both the reasoning quality and interpretability of chart-focused LVLMs.
After downloading the dataset and models, please ensure your directory is structured as follows:
ChartGaze/
models/
ChartGemma/
model/finetune.pyTinyLLaVA/
my_modelling/
TinyLLaVA-OpenELM-450M-SigLIP-0.89B_wAttn/
model.safetensorsmy_scripts/
lora_finetune_human_wAttn.shtinyllava/InternVL/data/
train/
attn_maps/images/data.jsonval/
attn_maps/images/data.jsonFollow these steps to set up the project and finetune the models:
Download Models:
Download Dataset:
Our dataset is available on Hugging Face: https://huggingface.co/datasets/alisalam/ChartGaze
Note that to make things easier, you can just download the train and val folders here: https://huggingface.co/datasets/alisalam/ChartGaze/tree/main/data
Organize Files:
Run Finetuning Scripts:
ChartGaze/models/TinyLLaVA/my_scripts/lora_finetune_human_wAttn.sh
ChartGaze/models/ChartGemma/finetune.py
@inproceedings{
salamatian2025chartgaze,
title={ChartGaze: Enhancing Chart Understanding in {LVLM}s with Eye-Tracking Guided Attention Refinement},
author={Ali Salamatian and Amirhossein Abaskohi and Wan-Cyuan Fan and Mir Rayat Imtiaz Hossain and Leonid Sigal and Giuseppe Carenini},
booktitle={The 2025 Conference on Empirical Methods in Natural Language Processing},
year={2025},
url={https://openreview.net/forum?id=W1fNDoL7sv}
}
5 commits
4 commits
Python
99.5%