Some naive questions about Tab.1 and Tab.2
Hi @Chenngzz @TobyYang7 Thanks for your great project! I have some naive questions about Tab.2 of DMLR paper.
Q1: What is the experimental setting for Tab.2 (e.g., model and its config)? The results of "+DVI (Ours)" seem not to match those in Tab.1. I can only find that Qwen3-VL-4B also achieves 54.9% on ScienceQA in Tab.1.
Q2: What is the detailed process of "+ Injection (All)"? Does it refer to removing the constraint of "r > r_best" in Algorithm 1?
Q3: The provided script (https://github.com/eric-ai-lab/DMLR/blob/main/script/run.sh) mismatches the paper's Implementation Details (e.g., num_thought_tokens=4, sigma=10, lr=1e-3, ...). Kindly ask if you could provide a reproduction script of Qwen3-VL-8B (e.g., on MMStar).
Thank you very much!
By the way, I also try to reproduce the results of Qwen2.5-VL-7B on HallusionBench.
Here is the script (borrow the parameters from paper):
#!/bin/bash
set -euo pipefail
export HF_HOME=.cache
export CUDA_VISIBLE_DEVICES=3
NUM_WORKERS=1
DATA_POINT=951
DATASET=hallusion
DATASET_FILE=data/${DATASET}.json
OUTPUT_DIR=./output_vis/v8/${DATASET}/${DATA_POINT}/qwen_initpatch_passk
mkdir -p ${OUTPUT_DIR}
MODEL_NAME=/path/to/Qwen2.5-VL-7B-Instruct
uv run python main.py \
--dataset $DATASET_FILE \
--model_name_or_path $MODEL_NAME \
--output_dir $OUTPUT_DIR \
--device cuda \
--seed 42 \
--max_new_tokens 2048 \
--max_num_steps 15 \
--num_thought_tokens 4 \
--sigma 10.0 \
--sigma_decay 0.95 \
--lr 0.001 \
--verbose 1 \
--min_pixels 128 \
--max_pixels 256 \
--start_data_idx 0 \
--end_data_idx $DATA_POINT \
--num_workers $NUM_WORKERS \
--worker_device_round_robin \
--num_selected_patches 16 \
--initial_patch_count 1\
--patch_increment 1 \
--visual_insert_stride 1 \
--visual_injection_start_step 0 \
--visual_injection_interval 1 \
2>&1 | tee ${OUTPUT_DIR}/eval_log.txt
And here is the selected content from results.json:
{
"model": "/path/to/Qwen2.5-VL-7B-Instruct",
"dataset": "data/hallusion.json",
"accuracy": 0.5278654048370137,
"correct": 502,
"total": 951,
"config": {
"max_new_tokens": 2048,
"solver_prompt_idx": 0,
"min_pixels": 128,
"max_pixels": 256
},
"args": {
"dataset": "data/hallusion.json",
"model_name_or_path": "/path/to/Qwen2.5-VL-7B-Instruct",
"output_dir": "./output_vis/v8/hallusion/951/qwen_initpatch_passk",
"start_data_idx": 0,
"end_data_idx": 951,
"max_new_tokens": 2048,
"device": "cuda",
"solver_prompt_idx": 0,
"seed": 42,
"num_thought_tokens": 4,
"sigma": 10.0,
"sigma_decay": 0.95,
"lr": 0.001,
"max_num_steps": 15,
"reward_threshold": -1,
"top_k": 10,
"disable_conf_reward": false,
"disable_best_reward": false,
"resume": false,
"ckpt_suffix": "",
"use_auto_grad": false,
"verbose": 1,
"disable_save_logistics": false,
"use_llm_verify": true,
"verify_only": false,
"min_pixels": 128,
"max_pixels": 256,
"num_workers": 1,
"worker_device_round_robin": true,
"num_selected_patches": 16,
"visual_token_viz": false,
"visual_token_viz_dir": "visual_token_viz",
"visual_only": false,
"visual_insert_stride": 1,
"visual_injection_start_step": 0,
"visual_injection_interval": 1,
"initial_patch_count": 1,
"patch_increment": 1,
"save_reward_csv": true
},
"entries": [
{
"data_idx": 0,
"question": "Answer the question based on the image. Provide a clear Yes or No answer with proper reasoning, and make sure to put the FINAL ANSWER (Yes or No) inside \\boxed{}. \\n Question: Is China, Hongkong SAR, the leading importing country of gold, silverware, and jewelry with the highest import value in 2018?\n",
"image_path": "/path/to/dataset/hallusion_bench/VS/chart/0_1.png",
"sys_prompt": "",
"prompt": "<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n<|im_start|>user\n<|vision_start|><|image_pad|><|vision_end|>Please analyze the image carefully and solve this problem step by step.\nShow your reasoning process clearly, then put your final answer within \\boxed{}.\n\nQuestion: ['Answer the question based on the image. Provide a clear Yes or No answer with proper reasoning, and make sure to put the FINAL ANSWER (Yes or No) inside \\\\boxed{}. \\\\n Question: Is China, Hongkong SAR, the leading importing country of gold, silverware, and jewelry with the highest import value in 2018?\\n']<|im_end|>\n<|im_start|>assistant\n",
"model_output": "<think> The image is a bar chart showing the import values of gold, silverware, and jewelry in million U.S. dollars for various countries in 2018. The chart indicates that China, Hong Kong SAR, has the longest bar, which suggests it had the highest import value among the listed countries.\n\n</think>\n<answer> \\boxed{Yes} </answer>",
"answer": "\\boxed{Yes}",
"ground_truth": "\\boxed{No}",
"ground_truth_text": null,
"is_correct": false,
"best_reward": 11.036616325378418,
"best_reward_step": 9,
"stop_reason": "eos_token"
},
....
....
The script runs without error with verbose=1. However, I cannot obtain the reported accuracy (i.e., Tab.1's 65.8% vs. reproduced 52.8%). I think there is something wrong in my script. It would be great if you could clarify it. Thank you:)
Sorry for the delayed response. I was on holiday recently and just saw your message. I was wondering whether you could share your evaluation prompts or testing scripts. I am also interested in knowing the baseline results you obtained and whether you observed similarly low performance.
The results of HallBench on Qwen2.5-VL appear to be within a reasonable range, and the improvements from dataset optimization over the baseline are relatively limited, which may be influenced by the dataset characteristics.
Sorry for the delayed response. I was on holiday recently and just saw your message. I was wondering whether you could share your evaluation prompts or testing scripts. I am also interested in knowing the baseline results you obtained and whether you observed similarly low performance.
The results of HallBench on Qwen2.5-VL appear to be within a reasonable range, and the improvements from dataset optimization over the baseline are relatively limited, which may be influenced by the dataset characteristics.
Hi @Chenngzz. I directly use the provided DMLR/main.py without any modifications.
I only modify:
-
the bash script: use the parameters borrowed from your paper (the full script already provided).
-
fix package import errors, e.g.,
from prompts import SYSTEM_PROMPT
to
from .prompts import SYSTEM_PROMPT
- fix data path, e.g.,
[
{
"prompt": "Answer the question based on the image. Provide a clear Yes or No answer with proper reasoning, and make sure to put the FINAL ANSWER (Yes or No) inside \\boxed{}. \\n Question: Is China, Hongkong SAR, the leading importing country of gold, silverware, and jewelry with the highest import value in 2018?\n",
"solution": "\\boxed{No}",
"image_path": "/path/to/DMLR-881c21a/dataset/hallusion_bench/VS/chart/0_1.png",
"idx": 0
},
I would like to kindly ask if you could provide a reproduction script of Qwen3-VL-8B (e.g., on MMStar)?
I think the versions of packages are also important for reproduction (e.g., transformers version not provided in the requirements.txt). Could you also provide your "pip list"?
For your reference, I also attach the DMLR-881c21a/script/run_qwen25vl7b.sh DMLR-881c21a/output_vis/v8/hallusion/951/qwen_initpatch_passk/eval_log.txt DMLR-881c21a/output_vis/v8/hallusion/951/qwen_initpatch_passk/results.json for your reference.
eval_log.txt
results.json
run_qwen25vl7b.sh
Also provide my 'pip list' as follows:
Package Version Editable project location
--------------------------------- ------------- --------------------------------------
accelerate 1.11.0
aiohappyeyeballs 2.6.1
aiohttp 3.13.2
aiosignal 1.4.0
annotated-doc 0.0.3
annotated-types 0.7.0
antlr4-python3-runtime 4.7.2
anyio 4.11.0
astor 0.8.1
attrs 25.4.0
av 15.1.0
black 25.9.0
blake3 1.0.8
cachetools 6.2.1
cbor2 5.7.1
certifi 2025.10.5
cffi 2.0.0
cfgv 3.4.0
chardet 5.2.0
charset-normalizer 3.4.4
click 8.2.1
cloudpickle 3.1.2
colorama 0.4.6
compressed-tensors 0.11.0
cupy-cuda12x 13.6.0
DataProperty 1.1.0
datasets 4.4.0
decord 0.6.0
depyf 0.19.0
dill 0.4.0
diskcache 5.6.3
distlib 0.4.0
distro 1.9.0
dnspython 2.8.0
einops 0.8.1
email-validator 2.3.0
et_xmlfile 2.0.0
evaluate 0.4.6
fastapi 0.121.0
fastapi-cli 0.0.14
fastapi-cloud-cli 0.3.1
fastrlock 0.8.3
filelock 3.20.0
flash_attn 2.8.3
frozendict 2.4.6
frozenlist 1.8.0
fsspec 2025.10.0
ftfy 6.3.1
gguf 0.17.1
gitdb 4.0.12
GitPython 3.1.45
h11 0.14.0
hf_transfer 0.1.9
hf-xet 1.2.0
httpcore 0.16.3
httptools 0.7.1
httpx 0.23.3
huggingface-hub 0.36.0
identify 2.6.15
idna 3.11
interegular 0.3.3
isort 7.0.0
Jinja2 3.1.6
jiter 0.11.1
joblib 1.5.2
jsonlines 4.0.0
jsonschema 4.25.1
jsonschema-specifications 2025.9.1
lark 1.2.2
latex2sympy2 1.9.1
llguidance 0.7.30
llvmlite 0.44.0
lm-format-enforcer 0.11.3
loguru 0.7.3
lxml 6.0.2
markdown-it-py 4.0.0
MarkupSafe 3.0.3
mbstrdecoder 1.1.4
mdurl 0.1.2
mistral_common 1.8.5
mpmath 1.3.0
msgpack 1.1.2
msgspec 0.19.0
multidict 6.7.0
multiprocess 0.70.18
mypy_extensions 1.1.0
networkx 3.5
ninja 1.13.0
nltk 3.9.2
nodeenv 1.9.1
numba 0.61.2
numexpr 2.14.1
numpy 1.26.4
nvidia-cublas-cu12 12.8.4.1
nvidia-cuda-cupti-cu12 12.8.90
nvidia-cuda-nvrtc-cu12 12.8.93
nvidia-cuda-runtime-cu12 12.8.90
nvidia-cudnn-cu12 9.10.2.21
nvidia-cufft-cu12 11.3.3.83
nvidia-cufile-cu12 1.13.1.3
nvidia-curand-cu12 10.3.9.90
nvidia-cusolver-cu12 11.7.3.90
nvidia-cusparse-cu12 12.5.8.93
nvidia-cusparselt-cu12 0.7.1
nvidia-ml-py 13.580.82
nvidia-nccl-cu12 2.27.3
nvidia-nvjitlink-cu12 12.8.93
nvidia-nvtx-cu12 12.8.90
nvitop 1.5.3
openai 2.7.1
openai-harmony 0.0.4
opencv-python-headless 4.11.0.86
openpyxl 3.1.5
outlines_core 0.2.11
packaging 25.0
pandas 2.3.3
partial-json-parser 0.2.1.1.post6
pathspec 0.12.1
pathvalidate 3.3.1
peft 0.17.1
pillow 12.0.0
pip 25.2
platformdirs 4.5.0
portalocker 3.2.0
pre_commit 4.3.0
prometheus_client 0.23.1
prometheus-fastapi-instrumentator 7.1.0
propcache 0.4.1
protobuf 6.33.0
psutil 7.1.3
py-cpuinfo 9.0.0
pyarrow 22.0.0
pybase64 1.4.2
pybind11 3.0.1
pycocoevalcap 1.2
pycocotools 2.0.10
pycountry 24.6.1
pycparser 2.23
pydantic 2.12.3
pydantic_core 2.41.4
pydantic-extra-types 2.10.6
Pygments 2.19.2
pytablewriter 1.2.1
python-dateutil 2.9.0.post0
python-dotenv 1.2.1
python-json-logger 4.0.0
python-multipart 0.0.20
pytokens 0.2.0
pytz 2025.2
PyYAML 6.0.3
pyzmq 27.1.0
qwen-vl-utils 0.0.14
ray 2.51.1
referencing 0.37.0
regex 2025.11.3
requests 2.32.5
rfc3986 1.5.0
rich 14.2.0
rich-toolkit 0.15.1
rignore 0.7.4
rpds-py 0.28.0
sacrebleu 2.5.1
safetensors 0.6.2
scikit-learn 1.7.2
scipy 1.16.3
sentence-transformers 5.1.2
sentencepiece 0.2.1
sentry-sdk 2.43.0
setproctitle 1.3.7
setuptools 80.9.0
shellingham 1.5.4
six 1.17.0
smmap 5.0.2
sniffio 1.3.1
soundfile 0.13.1
soxr 1.0.0
sqlitedict 2.1.0
starlette 0.49.3
sympy 1.14.0
tabledata 1.3.4
tabulate 0.9.0
tcolorpy 0.1.7
tenacity 8.3.0
threadpoolctl 3.6.0
tiktoken 0.12.0
timm 1.0.21
tokenizers 0.22.1
torch 2.8.0
torchaudio 2.8.0
torchvision 0.23.0
tqdm 4.67.1
tqdm-multiprocess 0.0.11
transformers 4.57.1
transformers-stream-generator 0.0.5
triton 3.4.0
typepy 1.3.4
typer 0.20.0
typing_extensions 4.15.0
typing-inspection 0.4.2
tzdata 2025.2
urllib3 2.5.0
uvicorn 0.38.0
uvloop 0.22.1
virtualenv 20.35.4
vllm 0.11.0
wandb 0.22.3
watchfiles 1.1.1
wcwidth 0.2.14
websockets 15.0.1
wheel 0.45.1
xformers 0.0.32.post1
xgrammar 0.1.25
xxhash 3.6.0
yarl 1.22.0
yt-dlp 2025.10.22
zss 1.2.0
zstandard 0.25.0
@HenryHZY Hello, regarding the Qwen2.5-VL-7B on HallusionBench test, do you have a test about baseline(Vanilla Qwen2.5-VL-7B)? I referred to the VLMEvalKit leaderboard, and its metric is 51.9, which is different from the 65.4 in the paper.
Here we evaluate on the image-based subset of HallusionBench, rather than the overall setting. The original HallusionBench overall benchmark includes both image-based and non-image-based questions.
You can directly refer to the JSON files provided under DMLR/data/, and also cross-check with the official HallusionBench dataset on Hugging Face: https://huggingface.co/datasets/lmms-lab/HallusionBench/. In addition, I have uploaded the Qwen2.5-VL results that we obtained here for reference.
In addition, we noticed an issue where the current judge prompt is still relatively lenient, which can lead to some cases with minor character or string mismatches being judged as incorrect, as shown in the image below. We will update and release a revised version of the evaluation script shortly for reference.