Skip to content

Latest commit

Β 

History

8 Commits

Folders and files

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

Repository files navigation

AutoV: Loss-Oriented Ranking for Visual Prompt Retrieval in LVLMs

Yuan Zhang1,2, Chun-Kai Fan1, Sicheng Yu2, Junwen Pan2,

Tao Huang3, Ming Lu1, Kuan Cheng1, Qi She2, Shanghang Zhang1βœ‰οΈ

1School of Computer Science, Peking University, 2ByteDance, 3Shanghai Jiao Tong University

Paper Code Data

News

  • πŸ”₯ 2026-09-01: Code and data are released.
  • πŸ”₯ 2025-09-07: AutoV is accepted by ECCV 2026.

AutoV architecture

Overview

Motivation of AutoV. (a) Performance saturation. Existing visual prompts approach benchmark ceilings, limiting further gains from prompt engineering. (b) Labeling difficulty and task diversity. Optimal prompts vary across tasks, and the crown denotes the one leading to the correct answer. While the optimal prompt is easy to identify in the top example, it is much harder to determine in the bottom one.

AutoV motivation

Installation

git clone https://github.com/Gumpest/AutoV.git
cd AutoV

conda create -n autov python=3.10 -y
conda activate autov

cd LLaVA
python -m pip install --upgrade pip
python -m pip install -e ".[train]"
python -m pip install flash-attn==2.3.3 --no-build-isolation
cd ..

Data

The public dataset is hosted at Gumpest/AutoV-data. Its top-level directories have distinct roles:

Path Role
archives/ and metadata/ Training data
inference-data/mmvet/ Inference data

Training data

Download the 100K reward annotations and the 20 attention-map archives from the repository root:

hf download Gumpest/AutoV-data \
  metadata/llava_v1_5_mix100k_reward.json \
  --repo-type dataset \
  --local-dir ./autov-data

hf download Gumpest/AutoV-data \
  --repo-type dataset \
  --include "archives/attnmap100K/*.tar" \
  --local-dir ./autov-data

mkdir -p data/attnmap100K
cp autov-data/metadata/llava_v1_5_mix100k_reward.json data/
for archive in autov-data/archives/attnmap100K/*.tar; do
  tar -xf "$archive" -C data/attnmap100K
done

Demo Inference data

Download only the demo inference data from the repository root:

hf download Gumpest/AutoV-data \
  --repo-type dataset \
  --include "inference-data/mmvet/**" \
  --local-dir ./autov-data

mkdir -p LLaVA/playground/data/api_eval/mmvet
cp -a autov-data/inference-data/mmvet/. \
  LLaVA/playground/data/api_eval/mmvet/

The resulting directory must contain these four subdirectories:

LLaVA/playground/data/api_eval/mmvet/
β”œβ”€β”€ APICLIP_mmvet_ViT-L-14-336_15/
β”œβ”€β”€ APICLIP_mmvet_ViT-L-14-336_20/
β”œβ”€β”€ APICLIP_mmvet_ViT-L-14-336_22/
└── APICLIP_mmvet_ViT-L-14-336_23/

Training

Run it from the LLaVA directory:

cd LLaVA
bash scripts/v1_5/AutoV_train.sh

The script reads:

  • Annotations: ../data/llava_v1_5_mix100k_reward.json
  • Attention maps: ../data/attnmap100K
  • Base model: ./checkpoints/llava-v1.5-7b
  • Vision tower: ./checkpoints/clip-vit-large-patch14-336

Training outputs are written to:

LLaVA/checkpoints/autov_llava-v1.5-7b-reward-100k/

Released checkpoint layout

Place the trained AutoV checkpoint at:

LLaVA/checkpoints/llava-v1.5-7b-reward-100k/
β”œβ”€β”€ config.json
β”œβ”€β”€ model.safetensors.index.json
β”œβ”€β”€ model-*.safetensors
β”œβ”€β”€ tokenizer.model
└── selector_23000steps.pth

The AutoV checkpoint is not included in the dataset repository; provide it locally using the layout above.

Demo Inference

1. Prepare the official questions

Download the official mm-vet.zip and extract it under LLaVA/playground/data/eval/:

2. Run AutoV

Run the command from the LLaVA directory so that all relative checkpoints and data paths resolve correctly:

cd LLaVA
bash scripts/v1_5/eval/autov_mmvet.sh

The script uses one GPU by default and writes:

  • Raw answers: playground/data/eval/mm-vet/answers/llava-v1.5-7b-reward-100k.jsonl
  • MMVet submission: playground/data/eval/mm-vet/results/llava-v1.5-7b-reward-100k.json

Evaluate the converted JSON with the official MM-Vet evaluation procedure.

Citation

If you find AutoV useful, please cite:

@inproceedings{zhang2026autov,
  title     = {{AutoV}: Loss-Oriented Ranking for Visual Prompt Retrieval in {LVLMs}},
  author    = {Zhang, Yuan and Fan, Chun-Kai and Yu, Sicheng and Pan, Junwen and Huang, Tao and Lu, Ming and Cheng, Kuan and She, Qi and Zhang, Shanghang},
  booktitle = {European Conference on Computer Vision},
  year      = {2026}
}

License

The AutoV code is released under the MIT License.

Acknowledgments

We thank the open-source projects Attention Prompting on Image, LLaVA, and Frame-Voyager.

About

[ECCV'26] Official implementation of paper "AutoV: Loss-Oriented Ranking for Visual Prompt Retrieval in LVLMs".

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages