Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Foresight × Jev: measuring Jev's overhead (jevbench)

One question, one command:

Does my technique make Jev cheaper (fewer calls, fewer input tokens) without making it less accurate?

./jb compare my_technique

This runs your technique and plain Jev on the same steps from Mind2Web, a widely used web-agent benchmark of recorded human sessions (real tasks on real websites). Accuracy is checked automatically against what the human actually did: no judge, no labelling, no live websites, no browser. The output is one table plus a verdict.

Setup (once)

bash scripts/setup.sh                       # Python env + the pinned, unmodified Jev agent; creates .env
brew install ollama && ollama pull gemma3:4b   # local text helper (types values into fields), per the team spec

In .env set:

  • TYPESAFE_API_KEY: your Jev key.
  • HF_TOKEN is only needed for the optional live benchmark.
  • The text helper is already configured: local Gemma, with TEXT_MODEL_REASONING=none.
./jb doctor                                 # checks key, text helper, data

The Mind2Web data (~1.5 GB) downloads automatically on the first compare.

Testing an idea

./jb new my_technique --group A             # or B; creates jevbench/techniques/my_technique.py + an experiment card
./jb compare my_technique --backend mock --tasks 3      # free: checks your code runs (numbers are meaningless)
./jb compare my_technique                   # real: 30 tasks (~220 steps), ~450 Jev calls
./jb compare my_technique --tasks 100 --noise-floor     # final numbers

How to write a technique: docs/TECHNIQUES.md. Two worked examples:

  • Group A, skip Jev calls: techniques/memory_replay.py
  • Group B, shrink Jev's input: techniques/prune_actions.py

External comparison (official Mind2Web numbers)

./jb compare --full --split test_task test_website test_domain --out results/m2w-official-baseline

This runs the full original test splits (the paper's) with the official scoring (macro average), and prints Jev next to the paper's published results (MindAct, GPT-4, GPT-3.5). The pipeline was checked by reproducing the paper's MindAct numbers with the authors' own model and evaluation code (results/calibration/). Details and caveats: docs/BENCHMARKS.md.

Reading the report (results/<run>/report.md)

Column Meaning
Step SR % of steps where the action matched the human's (right element and right operation/value). Main accuracy number.
Element Acc / Op F1 Right element / right operation and value (the standard Mind2Web metrics)
Agree w/ baseline % of steps where the technique chose exactly what plain Jev chose
Jev calls/step Fewer = Group A savings
Jev tokens/step Input tokens as billed by Jev (usage.input_tokens). Fewer = Group B savings
Aux tokens/step Tokens your technique's own helper models used (counted against you)
Jev-free steps % of steps decided without calling Jev
Verdict SUPPORTED = cheaper (CI excludes 0) and step SR not worse by more than 5 points (CI). Otherwise REJECTED / NOT SUPPORTED / INCONCLUSIVE. PRELIMINARY below 20 tasks.

Jev isn't deterministic. Two runs of plain Jev agree on about 91% of steps, and step success moves by a few points between runs. Use --noise-floor for final numbers: it runs plain Jev twice, so you can see how much difference is just chance. A technique's "agree w/ baseline" should be read against that ~91%, not 100%.

First real numbers (5-task pilot, jev-1.14.0; illustrative only)

Step SR Jev tokens/step Agree w/ Jev
Plain Jev 23–26% (two runs) ~12,000 91% (vs itself)
prune_actions (naive example) 26% ~4,300 (−67%) 71%

Real web pages cost Jev about 12k input tokens per decision, so there's real money to save. The naive pruner cuts 67% of tokens, but it changes Jev's decisions far more than chance does. The verdict was INCONCLUSIVE: run more tasks before concluding anything.

Team rules

  1. Develop on --split train, or on small test_task samples.
  2. Final numbers: --tasks 100 --noise-floor on test_task, ideally also on test_website and test_domain (the "new website" and "new domain" generalization splits).
  3. Write your hypothesis in experiments/<name>.md before the final run. If you change the technique after seeing final numbers, it's a new version.
  4. Training data for predictors: ./jb mind2web export --split train --out resources/mind2web/train.jsonl writes human steps in Jev's exact format. Never train on test splits.

Budget

About 1 Jev call per step per technique. 100 tasks ≈ 750 steps:

  • ~1,500 Jev calls for baseline + one technique
  • ~2,250 Jev calls with --noise-floor

Use --max-jev-requests N as a hard cap.

Optional extras (not needed for the main workflow)

  • Live end-to-end check on real websites: ./jb run --suite online_mind2web (Online-Mind2Web, 100-task frozen subset, scored by the benchmark's official AI judge). Needs HF_TOKEN and OpenAI billing. See docs/BENCHMARKS.md.
  • WebArena: if the team ever gets hosting. See docs/WEBARENA.md.
  • Built-in toy sites: --suite core, for plumbing tests only.

Details on exactly how Mind2Web is converted into Jev's format, and every deviation from the original benchmark, are in docs/BENCHMARKS.md. The statistics are described in docs/METHODOLOGY.md.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages