Skip to content

feat(experiments): add webarena_verified_hard benchmark subset config - #416

Merged
Surya-5555 merged 2 commits into
ServiceNow:mainfrom
sriram687:feat/webarena-verified-hard-benchmark
Oct 27, 2026
Merged

Surya-5555 merged 2 commits into
ServiceNow:mainfrom
sriram687:feat/webarena-verified-hard-benchmark

Conversation

@sriram687

@sriram687 sriram687 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds "webarena_verified_hard" to DEFAULT_BENCHMARKS, filtering the 258 hard tasks from ServiceNow's official webarena-verified-hard.json subset.

Resolves the TODO at browsergym/experiments/src/browsergym/experiments/benchmark/configs.py:163.

Closes #415

Motivation

  • Cheaper iteration: 258 of 812 tasks cuts eval compute and runtime by ~68%.
  • Stress-testing: Easy navigation tasks saturate as agents improve; the hard subset targets planning, long-horizon tool use, and complex verification.
  • Drop-in preset: No ad-hoc filtering scripts needed:
    bgym.DEFAULT_BENCHMARKS["webarena_verified_hard"]()
  • No breaking changes: The existing 812-task "webarena_verified" benchmark is untouched.

Upstream Alignment

Item Detail
Source ServiceNow/webarena-verified/assets/dataset/subsets/webarena-verified-hard.json
Hard tasks 258
Non-hard tasks 554 (webarena-verified-non-hard.json)
Total 812

Changes

File Change
configs.py Added WEBARENA_VERIFIED_HARD_TASK_IDS; registered "webarena_verified_hard" using non-capturing regex filtering
test_benchmark.py Added "webarena_verified_hard": 258 to expected_bench_size in test_build_benchmarks
webarena_verified/README.md Documented how to instantiate the hard subset

Proof of work

Screenshot 2026-10-27 000558

Testing

  • Task IDs checked against the live upstream JSON: 100% match
  • Instantiation yields exactly 258 task runs (deterministic, seed=42)
  • Benchmark.from_json() serialization roundtrip passes
  • test_build_benchmarks passes

Copilot AI balanced review requested due to automatic review settings October 26, 2026 18:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@sriram687

Copy link
Copy Markdown
Contributor Author

Hi @Surya-5555,

Hope you're doing well!

I've opened a PR addressing the TODO in configs.py:163 by adding the "webarena_verified_hard" benchmark preset (DEFAULT_BENCHMARKS).

It filters the 258 hard tasks from ServiceNow's official webarena-verified-hard.json subset, enabling faster (~68% less compute) evaluations on challenging tasks without modifying the full 812-task benchmark. All unit tests and JSON roundtrips have been verified locally.

Whenever you have a chance, could you please take a look? I'd really appreciate your feedback!

@Surya-5555

Copy link
Copy Markdown
Collaborator

Hi @sriram687, thanks for the PR!

The Unit tests / code-format check is currently failing. Could you please look into it and fix the formatting for the files you changed only (configs.py, test_benchmark.py and the README)? Please don't reformat unrelated files or code, so the diff stays focused on your change.

You can run the repo's formatter (see the code-format job / .pre-commit-config.yaml for the exact tool and settings) on just your modified files, commit, and push. The checks will re-run automatically.

Once that's green, I'll review it. Thanks!

@sriram687
sriram687 requested a balanced review from Copilot October 27, 2026 17:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@sriram687

Copy link
Copy Markdown
Contributor Author

Hi @sriram687, thanks for the PR!

The Unit tests / code-format check is currently failing. Could you please look into it and fix the formatting for the files you changed only (configs.py, test_benchmark.py and the README)? Please don't reformat unrelated files or code, so the diff stays focused on your change.

You can run the repo's formatter (see the code-format job / .pre-commit-config.yaml for the exact tool and settings) on just your modified files, commit, and push. The checks will re-run automatically.

Once that's green, I'll review it. Thanks!

Hi @Surya-5555 , thanks for the feedback! I’ve fixed the formatting issues in configs.py, test_benchmark.py, and the README using the repo’s formatter, limited to only the files I changed. The code-format check and all other checks are now passing. Please take another look whenever you get a chance. Thanks!

@Surya-5555 Surya-5555 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Happy to merge!

@Surya-5555
Surya-5555 merged commit dbdc4dc into ServiceNow:main Oct 27, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add webarena_verified_hard benchmark subset configuration

3 participants