GUI-R1 icon indicating copy to clipboard operation
GUI-R1 copied to clipboard

评测代码问题

Open Iron-Boyy opened this issue 1 year ago • 23 comments

作者你好,使用评测代码直接评测qwen2.5vl发现android control high low都比guir1模型高,也和qwen2.5vl官方给出的评测结果不一样,这里评测代码有什么问题吗,文中的qwen2.5vl模型也是用同一个方法测的吗

Iron-Boyy avatar May 24 '25 10:05 Iron-Boyy

你好,我评测并没有发现这个问题,可能是环境不一致

RainBowLuoCS avatar May 24 '25 13:05 RainBowLuoCS

我刚刚重新用inference和eval评测qwen2.5vl 7b,ac high 的sr有0.56,环境应该只和能否运行有关,和评测结果指标无关吧

Iron-Boyy avatar May 24 '25 14:05 Iron-Boyy

################Qwen2.5-VL-7B-Instruct ################androidcontrol_high_test.json True Type android-click Length 4598 : 0.7938234014789038 Type android-click-grounding Length 4598 : 0.6224445411048282 Type android-scroll Length 1138 : 0.6001757469244289 Type android-scroll-text Length 1138 : 0.4648506151142355 Type android-type Length 569 : 0.9121265377855887 Type android-press_back Length 315 : 0.3238095238095238 Type android-wait Length 527 : 0.3225806451612903 Type android-open_app Length 554 : 0.2870036101083033 Type android-type-text Length 569 : 0.6942003514938488 Type android-open_app-text Length 554 : 0.2075812274368231 Type android-long_press Length 7 : 0.42857142857142855 Type android-long_press-grounding Length 7 : 0.42857142857142855 ALL Type : 0.6857810067462377 ALL Step : 0.5685988930964171 ALL GR : 0.6221498371335505

Iron-Boyy avatar May 24 '25 14:05 Iron-Boyy

我们使用的环境是vllm=0.8.2 torch为2.6.0,环境影响对结果影响比较大,可以在同样环境下尝试进行GRPO训练,结果会比baseline更好,我们的实验是没有任何参数选择的normal结果

RainBowLuoCS avatar May 24 '25 15:05 RainBowLuoCS

我用了您论文里同样的数据进行了grpo训练,训练10个epoch的结果是下降的: ################guir1 ################androidcontrol_high_test.json Type android-click Length 4598 : 0.8895171813832101 Type android-click-grounding Length 4598 : 0.619182253153545 Type android-scroll Length 1138 : 0.4279437609841828 Type android-scroll-text Length 1138 : 0.08347978910369068 Type android-type Length 569 : 0.8014059753954306 Type android-type-text Length 569 : 0.6766256590509666 Type android-wait Length 527 : 0.43453510436432635 Type android-press_back Length 315 : 0.10158730158730159 Type android-open_app Length 554 : 0.24368231046931407 Type android-open_app-text Length 554 : 0.17509025270758122 Type android-long_press Length 7 : 0.42857142857142855 Type android-long_press-grounding Length 7 : 0.42857142857142855 ALL Type : 0.7047223663725999 ALL Step : 0.4991261287503641 ALL GR : 0.6188925081433225 ################guir1 ################androidcontrol_low_test.json Type android-click Length 4598 : 0.9960852544584602 Type android-click-grounding Length 4598 : 0.8323183993040453 Type android-type Length 569 : 0.6695957820738138 Type android-type-text Length 569 : 0.6783831282952548 Type android-scroll Length 1138 : 0.9253075571177505 Type android-scroll-text Length 1138 : 0.20738137082601055 Type android-wait Length 527 : 0.2637571157495256 Type android-open_app Length 554 : 0.3664259927797834 Type android-open_app-text Length 554 : 0.1407942238267148 Type android-press_back Length 315 : 0.07301587301587302 Type android-long_press Length 7 : 0.7142857142857143 Type android-long_press-grounding Length 7 : 0.7142857142857143 ALL Type : 0.8282304099636741 ALL Step : 0.66006408389164 ALL GR : 0.8321389793702497 ################guir1 ################guiact_web_test.json Type web-click Length 1089 : 0.970615243342516 Type web-click-grounding Length 1089 : 0.8852157943067034 Type web-complete Length 110 : 0.5545454545454546 Type web-scroll Length 211 : 0.7819905213270142 Type web-scroll-text Length 211 : 0.6682464454976303 ALL Type : 0.9099290780141844 ALL Step : 0.85 ALL GR : 0.8852157943067034 ################guir1 ################guiodyssey_test.json Type web-click Length 11453 : 0.7095957391076574 Type web-click-grounding Length 11453 : 0.4129922291102768 Type web-complete Length 982 : 0.840122199592668 Type web-type Length 2198 : 0.6237488626023658 Type web-type-text Length 2198 : 0.25477707006369427 Type web-scroll Length 1624 : 0.2512315270935961 Type web-scroll-text Length 1624 : 0.2062807881773399 Type web-press_home Length 1464 : 0.11133879781420765 Type web-press_back Length 30 : 0.36666666666666664 Type web-long_press-grounding Length 129 : 0.07751937984496124 Type web-long_press Length 129 : 0.023255813953488372 ALL Type : 0.6100671140939598 ALL Step : 0.3658140742664243 ALL GR : 0.4092557416681057

所以我有点疑惑是不是测试代码有问题,还是测试数据集有问题?

Iron-Boyy avatar May 24 '25 16:05 Iron-Boyy

感谢你的反馈 最近的多个研究表明都是有提升的,也许是测试数据集有一些问题 ,我将检查一下

RainBowLuoCS avatar May 24 '25 23:05 RainBowLuoCS

我看qwen官方的评测指标在ac_high是有60.1,和文中的47差别也很大,我想知道您这里具体normal的方式是如何呢,可不可以给一版测试qwen2.5VL的代码?或者还是就是用的这里release出来的评测代码,测试数据应该是没有问题的

Iron-Boyy avatar Jun 01 '25 08:06 Iron-Boyy

为了保证公平,我们是使用release的代码直接进行测试,需要注意的是prompt中修改为关闭think模式让模型直接给出结果方便格式控制。关于官方测试结果一般都是偏高,需要仔细选择prompt,我们是更一般的结果

RainBowLuoCS avatar Jun 01 '25 09:06 RainBowLuoCS

哦哦,就是在测试qwen2.5vl的时候,是直接输出结果,不输出思考进行测试的?

Iron-Boyy avatar Jun 01 '25 09:06 Iron-Boyy

不思考效果更好 格式更易提取出有效预测

RainBowLuoCS avatar Jun 01 '25 09:06 RainBowLuoCS

好的感谢作者,我尝试修改prompt复现一下

Iron-Boyy avatar Jun 01 '25 09:06 Iron-Boyy

action:{'action': 'click', 'point': [546, 1731], 'input_text': 'no input text'}, ground_truth:{'action': 'click', 'point': [788, 739], 'input_text': 'no input text'} action:{'action': 'open_app', 'point': [150, 150], 'input_text': 'no input text'}, ground_truth:{'action': 'open_app', 'point': [-100, -100], 'input_text': 'Fitbit'} action:{'action': 'click', 'point': [409, 2269], 'input_text': 'no input text'}, ground_truth:{'action': 'scroll', 'point': [-100, -100], 'input_text': 'down'} action:{'action': 'click', 'point': [504, 1116], 'input_text': 'no input text'}, ground_truth:{'action': 'click', 'point': [882, 475], 'input_text': 'no input text'}

我采用GUI-R1发布的数据集和模型进行测试的。上面我测试的log,似乎一个都不能做对。

CTZhou-byte avatar Jun 04 '25 01:06 CTZhou-byte

你能提供更多的细节嘛,我这边测试是可复现和没有这种问题的

RainBowLuoCS avatar Jun 04 '25 03:06 RainBowLuoCS

我是直接拿数据集,构造prompt,然后在GUI-R1-7B上推理,然后提取成action:的格式,再把ground_truth也构造成这种。打印log,对比下准确性的。显然,前几个是不太一样的。这个是ac_low数据集。

CTZhou-byte avatar Jun 04 '25 04:06 CTZhou-byte

使用提供的推理的脚本测试一下ac_low看看指标是否异常吧,感觉像是没有对坐标做正常的scale

RainBowLuoCS avatar Jun 04 '25 04:06 RainBowLuoCS

但是openapp,scroll这些输出坐标就很诡异

CTZhou-byte avatar Jun 04 '25 04:06 CTZhou-byte

{ "image": "", "instruction": "Click on the podcasts", "gt_action": "click", "gt_bbox": [ 455, 1212 ], "gt_input_text": "no input text", "group": "android", "ui_type": "click", "scale": [], "image_size": [ 1092, 2408 ], "pred": " The goal is to click on the 'Podcasts' option in the menu. The 'Podcasts' option is clearly visible in the list under the 'Beyond Articles' section. To achieve the task, I need to identify the coordinates of the 'Podcasts' option and perform a click action at that location.\n[{'action': 'click', 'point': [194, 1220], 'input_text': ''}]", "pred_coord": [ 194.0, 1220.0 ], "pred_action": "click", "pred_input_text": "" } { "image": "", "instruction": "Click on the first result podcast", "gt_action": "wait", "gt_bbox": [ -100, -100 ], "gt_input_text": "no input text", "group": "android", "ui_type": "wait", "scale": [], "image_size": [ 1092, 2408 ], "pred": " The goal is to click on the first result podcast. The first result is "Open for Business - Episode 5 with Kunal..." which is clearly visible and has a play button next to it indicating it's ready to be clicked. This aligns with the task of selecting the first podcast listed.\n[{'action': 'click', 'point': [228, 1049], 'input_text': ''}]", "pred_coord": [ 228.0, 1049.0 ], "pred_action": "click", "pred_input_text": "" }这个是提供的推理脚步,在output下输出的json结果

CTZhou-byte avatar Jun 04 '25 05:06 CTZhou-byte

openapp,scroll 没有对point做reward监督 只有click的坐标输出point是rl监督训练过的

RainBowLuoCS avatar Jun 04 '25 05:06 RainBowLuoCS

为了保证公平,我们是使用release的代码直接进行测试,需要注意的是prompt中修改为关闭think模式让模型直接给出结果方便格式控制。关于官方测试结果一般都是偏高,需要仔细选择prompt,我们是更一般的结果

作者您好,我最近也在测试Qwen2.5-VL-7B base model的时候发现AndroidControl-High的SR指标为56.68,与论文中的47.06差距过大,同时GUI-Act-Web的SR测试结果为84.15,与论文中的78.63差距过大,以及AndroidControl-Low的SR指标为72.47,也与论文中的62.50相差较大。据我了解,Qwen2.5-VL系列并没有think的能力,base model应该是不存在think的输出。另外我使用的torch2.6+vllm0.8.2和您提供的配置是一样的,评测代码使用的release的代码。请问一下还有其他因素导致在论文中report的Qwen2.5-VL-7B的结果和我现在测出来的结果差距过大吗?

JianxXiong avatar Jul 06 '25 07:07 JianxXiong

为了保证公平,我们是使用release的代码直接进行测试,需要注意的是prompt中修改为关闭think模式让模型直接给出结果方便格式控制。关于官方测试结果一般都是偏高,需要仔细选择prompt,我们是更一般的结果

作者您好,我最近也在测试Qwen2.5-VL-7B base model的时候发现AndroidControl-High的SR指标为56.68,与论文中的47.06差距过大,同时GUI-Act-Web的SR测试结果为84.15,与论文中的78.63差距过大,以及AndroidControl-Low的SR指标为72.47,也与论文中的62.50相差较大。据我了解,Qwen2.5-VL系列并没有think的能力,base model应该是不存在think的输出。另外我使用的torch2.6+vllm0.8.2和您提供的配置是一样的,评测代码使用的release的代码。请问一下还有其他因素导致在论文中report的Qwen2.5-VL-7B的结果和我现在测出来的结果差距过大吗?

请问您可以提供您在AndroidControl-Low与AndroidControl-High上的评测代码吗,我最近也遇到了一系列的评测问题

simplelifetime avatar Sep 07 '25 08:09 simplelifetime