`miniwob.find-greatest` can be marked successful after selecting a non-maximum card
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, python
- 領域
- ai, testing-qa
調査の方向性
Start with the attached source/browsergym_miniwob_base.py and trace how RAW_REWARD_GLOBAL becomes the reported reward and success value; compare that with the wrong-card branch in source/find-greatest.html. Check the linked pull request #396 and any relevant tests before choosing a fix. Done means submitting a non-maximum card no longer reports success, while selecting the greatest card still does.
索引モデルが issue の本文から書いたものです。
説明
Summary
There appears to be a success-threshold bug in the BrowserGym MiniWoB wrapper for miniwob.find-greatest.
The task text says:
Find and pick the card with the greatest number, then press submit.
However, a run can be marked successful after selecting a card that is not the greatest card.
In the attached concrete run, the page had cards with values 4, 7, and 2. The agent selected the card with value 2 and submitted. The final DOM still shows another card with value 7, so this should not satisfy the task. The native evaluator nevertheless reports success: true.
Why this happens
In MiniWoB++ find-greatest.html, selecting the correct card ends with reward 1.0, but selecting the wrong card and submitting still ends the episode with a positive partial reward:
if(userIndex === expectedIndex.toString()) core.endEpisode(1.0, true);
else core.endEpisode(0.1, true);
In BrowserGym's MiniWoB wrapper, AbstractMiniwobTask.validate() converts any positive raw reward into a full success reward:
reward = float(info["RAW_REWARD_GLOBAL"] > 0) # TODO: shouldn't it be 0.5?
As a result, the wrong-card partial reward 0.1 becomes reward: 1.0 and success: true in the run output.
Actual behavior in the attached run
The attached evidence/native_evaluator_output_agent_a.json shows:
"RAW_REWARD_GLOBAL": 0.1,
"reward": 1.0,
"success": true
It also shows the agent actions:
"action": "click('17')"
"action": "click('20')"
The attached final DOM snapshot evidence/final_dom_step_002_agent_a.html shows that bid 17 is the revealed selected card, with value 2:
<div class="card" data-index="2" ... bid="17">
<span class="card-value" ...>2</span>
</div>
The same DOM line also shows another card with value 7:
<div class="card hidden" data-index="1" ... bid="15">
<span class="card-value" ...>7</span>
</div>
So the submitted card was not the greatest card, but the run was still reported as successful.
Expected behavior
For find-greatest, BrowserGym should only report success when the selected card is actually the greatest card.
Possible fixes:
- change the MiniWoB success threshold so partial positive rewards such as
0.1do not count as success, for exampleRAW_REWARD_GLOBAL > 0.5orRAW_REWARD_GLOBAL >= 1.0; or - add task-specific handling where partial rewards are not treated as benchmark success; or
- if the intended fix belongs in MiniWoB++, make wrong-card submission produce a non-success raw reward rather than
0.1.
The issue seems most directly triggered by BrowserGym treating any RAW_REWARD_GLOBAL > 0 as success.
Attached evidence package
source/browsergym_miniwob_base.py: BrowserGym MiniWoB wrapper showingreward = float(info["RAW_REWARD_GLOBAL"] > 0).source/find-greatest.html: MiniWoB++ task source showing the task text and wrong-cardcore.endEpisode(0.1, true)branch.evidence/native_evaluator_output_agent_a.json: run output showingRAW_REWARD_GLOBAL=0.1,reward=1.0, andsuccess=true.evidence/final_dom_step_002_agent_a.html: final DOM showing selected card value2while another card value is7.evidence/final_screenshot_step_002_agent_a.png: final screenshot for the same run.evidence/validation_final_agent_a.jsonandevidence/task_info_final_agent_a.json: final validator/task state.evidence/miniwob_scores_flat.csv: score table; row 170 contains thisminiwob.find-greatest / Agent Arun.
- 主要言語
- Python
- スター
- 1.4k
- フォーク
- 202
- 平均マージ
- 6日 15時間
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ServiceNow/BrowserGym のほかの issue
-
[Feature Proposal]: Add experiment lifecycle callbacks to `ExpArgs` in `loop.py`対応中かも @sriram687 が 3 日前に担当しました。 オープン
ServiceNow/BrowserGym#417 · 担当者 1 名 ·
-
WebArena-Verified reward averages evaluator scores instead of using the benchmark's task score (partial credit for failed tasks)対応中かも @salma2vec が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 32/100
ServiceNow/BrowserGym#412 ·
-
AssistantBench scorer treats a thousands separator as a decimal point: "3,080,000" scores 0 against gold 3080000, while "1,000" scores 1.0 against gold 1対応中かも @Andiii208 が 29 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
ServiceNow/BrowserGym#404 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
ServiceNow/BrowserGym#401 ·
-
Issues with the coordinates action space対応中かも @FazeelUsmani が 187 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
ServiceNow/BrowserGym#375 · コメント 2 件 ·
ServiceNow/BrowserGym の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
namespace operations
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
EclipseFdn/open-vsx.org#15057 ·
メンテナーはふだん 1 日以内に返信
-
Mission statement: why this is free, in the README, Why This Exists and the wiki Home対応中かも @ChiefGyk3D が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ChiefGyk3D/Clouds-Against-Humanity#348 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
vllm-project/vime#508 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信