cannot reproduce results on MathVista-mini
Hi! Thanks for your great work! But I can't reproduce your results on MathVista. Qwen3-VL 4B got 57.5%(65.6% in your paper), and Qwen2.5-VL 7B got 44.7%(59.1% in your paper). This result is based on the fact that I have relaxed the criteria for the LLM's evaluation. (The prompt you use the LLM as judger, for example, for "C" and "C.154 °", it might be judged as False. I added this sentence:" Notice: Just compare whether the options in multiple-choice questions or the data in calculation questions are correct, rather than all the text being exactly the same", thus it can effectively improve the accuracy, but still does not reproduce in your paper. Here is my script:
#!/bin/bash
# set -euo pipefail
export HF_HOME=.cache
export CUDA_VISIBLE_DEVICES=0,1,2,3
export HUGGING_FACE_TOKEN=hf_123456
NUM_WORKERS=4
DATA_POINT=1000
DATASET=math_vista_updated (Here I just changed the path in json)
DATASET_FILE=data/${DATASET}.json
DATASET_DIR=/data/Datasets
OUTPUT_DIR=./output_vis/v8/${DATASET}/${DATA_POINT}/qwen_3_vl_4B_gpt_judge_updated
MODEL_NAME=/data/Models/Qwen3-VL-4B-Instruct
LOG_FILE="${OUTPUT_DIR}/log.txt"
mkdir -p "$(dirname "$LOG_FILE")"
if [ ! -e "$LOG_FILE" ]; then
: > "$LOG_FILE"
fi
python -m main \
--dataset $DATASET_FILE \
--dataset_dir $DATASET_DIR \
--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 2 \
--sigma 25.0 \
--sigma_decay 0.95 \
--lr 0.01 \
--verbose 1 \
--min_pixels 128 \
--max_pixels 256 \
--start_data_idx 0 \
--end_data_idx $DATA_POINT \
--use_llm_verify \
--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 "${LOG_FILE}" &
Here is the results.json
"model": "/data/Models/Qwen3-VL-4B-Instruct",
"dataset": "data/math_vista_updated.json",
"accuracy": 0.575,
"correct": 575,
"total": 1000,
"config": {
"max_new_tokens": 2048,
"solver_prompt_idx": 0,
"min_pixels": 128,
"max_pixels": 256
},
"args": {
"dataset": "data/math_vista_updated.json",
"dataset_dir": "/data/Datasets",
"model_name_or_path": "/data/Models/Qwen3-VL-4B-Instruct",
"output_dir": "./output_vis/v8/math_vista_updated/1000/qwen_3_vl_4B_gpt_judge",
"start_data_idx": 0,
"end_data_idx": 1000,
"max_new_tokens": 2048,
"device": "cuda",
"solver_prompt_idx": 0,
"seed": 42,
"num_thought_tokens": 2,
"sigma": 25.0,
"sigma_decay": 0.95,
"lr": 0.01,
"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": 0,
"disable_save_logistics": false,
"use_llm_verify": true,
"verify_only": false,
"min_pixels": 128,
"max_pixels": 256,
"num_workers": 4,
"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
},
Hope you could help me with this~Thanks a lot!
Are the VLAA-Thinking and R1-OneVision designed in the same way?
Are the VLAA-Thinking and R1-OneVision designed in the same way?
Hi! I tested R1-OneVision-7B under MathVista and MathVision. The scripts used are as follows (4 latent tokens), achieving 55.9%(58%) and 20.9%(23.3%) respectively. Using Qwen3VL-4B in MathVision got 29.8% (29.4%), and they all use the same script.
#!/bin/bash
# set -euo pipefail
export HF_HOME=.cache
export CUDA_VISIBLE_DEVICES=0,1
export HUGGING_FACE_TOKEN=hf_123456
NUM_WORKERS=2
DATA_POINT=3040
DATASET=math_vision
DATASET_FILE=data/${DATASET}.json
DATASET_DIR=/data/Datasets
OUTPUT_DIR=./output_vis/v8/${DATASET}/${DATA_POINT}/qwen_3_vl_4B_gpt_judge
# OUTPUT_DIR=./output_vis/v8/${DATASET}/${DATA_POINT}/R1_OneVision_7B_gpt_judge
MODEL_NAME=/data/Models/Qwen3-VL-4B-Instruct
# MODEL_NAME=/data/Models/R1-Onevision-7B
LOG_FILE="${OUTPUT_DIR}/log.txt"
mkdir -p "$(dirname "$LOG_FILE")"
if [ ! -e "$LOG_FILE" ]; then
: > "$LOG_FILE"
fi
python main.py \
--dataset $DATASET_FILE \
--dataset_dir $DATASET_DIR \
--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 25.0 \
--sigma_decay 0.95 \
--lr 0.01 \
--verbose 1 \
--min_pixels 128 \
--max_pixels 256 \
--start_data_idx 0 \
--end_data_idx $DATA_POINT \
--use_llm_verify \
--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 "${LOG_FILE}" &
In addition, as described in your paper, I used 2 initial_patch_count, but the result was slightly lower (compared to initial_patch_count=1), while the result of using --visual_only was slightly higher.
Sorry for the delayed response. I was on holiday recently and just saw your message.
I was wondering if you could share the evaluation prompts or your testing script. Also, I noticed that many papers report higher MathVista scores than ours. This might be because we ran our experiments in float32 mode for attention extraction, and the overall performance can differ from float16.
In addition, could you let me know what results you obtained when reproducing the baselines?