SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.20309 · 2024

Large Language Models Can Self-Improve At Web Agent Tasks

arXiv · PDF · Open in the Atlas

Code that ran

3 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2405.20309.json · badge: /api/ran/2405.20309.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
AjayP13/webdreamer canonical (classifier label)
classifier basis: census
3 ran · 5 no recorded run
FunctionStatusWhere it lives
get_jax_device Ran
ran; our contract draft was wrong, not the code
AjayP13/webdreamer/src/project/devices.py
code served (permissive licence) · get_code("243dd0dde1f8275f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Device. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import jax

# Set up environment - no accelerators available in test environment
if 'PROJECT_ACCELERATOR_TYPE' in os.environ:
    del os.environ['PROJECT_ACCELERATOR_TYPE']

# The function get_jax_device takes the following parameters:
# - rank (int, optional): Which JAX accelerator device to get. Defaults to 0.
# - fallback_to_cpu (bool, optional): Whether to fall back to CPU. Defaults to True.

# Since we're in a CPU-only environment with no accelerators, we test with:
# 1. rank=0 with fallback_to_cpu=True (should return CPU device)
# 2. Different rank values to test the logic

ARGS = {
    'rank': 0,
    'fallback_to_cpu': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Device — a Device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Device output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_tf_device Ran
ran; our contract draft was wrong, not the code
AjayP13/webdreamer/src/project/devices.py
code served (permissive licence) · get_code("b3e7ae0bcff74b3f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned _EagerDeviceContext. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tensorflow as tf

# Set up environment for testing
os.environ['PROJECT_ACCELERATOR_TYPE'] = 'cpu'

# Define ARGS with all parameters for get_tf_device
ARGS = {
    'rank': 0,
    'fallback_to_cpu': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type _EagerDeviceContext — a _EagerDeviceContext output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _EagerDeviceContext output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_torch_device Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AjayP13/webdreamer/src/project/devices.py
code served (permissive licence) · get_code("722a305d9794bd53")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned device. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import torch

# Set environment to CPU (no accelerators)
os.environ['PROJECT_ACCELERATOR_TYPE'] = 'cpu'

# Define ARGS with all parameters for get_torch_device
ARGS = {
    'rank': 0,
    'fallback_to_cpu': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_xla — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type device — a device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a device output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
call_server Not yet run
unverified (harvested, no recorded run)
AjayP13/webdreamer/src/tasks/webarena_eval/_llm_server.py
code served (permissive licence) · get_code("c9b3c3d69b6ac466")
How it ran

no invocation recorded.

get_persistent_dir Not yet run
unverified (harvested, no recorded run)
AjayP13/webdreamer/src/project/persistent_storage.py
code served (permissive licence) · get_code("69c9d990fdc6e372")
How it ran

no invocation recorded.

run_cloudflared Not yet run
unverified (harvested, no recorded run)
AjayP13/webdreamer/src/project/serve.py
code served (permissive licence) · get_code("d6c69b8f8e7a68e9")
How it ran

no invocation recorded.

run_jupyter Not yet run
unverified (harvested, no recorded run)
AjayP13/webdreamer/src/project/serve.py
code served (permissive licence) · get_code("8be329d70b8a59e5")
How it ran

no invocation recorded.

run_ngrok Not yet run
unverified (harvested, no recorded run)
AjayP13/webdreamer/src/project/serve.py
code served (permissive licence) · get_code("d3305f44defae2cf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Training models to act as agents that can effectively navigate and perform actions in a complex environment, such as a web browser, has typically been challenging due to lack of training data. Large language models (LLMs) have recently demonstrated some capability to navigate novel environments as agents in a zero-shot or few-shot fashion, purely guided by natural language instructions as prompts. Recent research has also demonstrated LLMs have the capability to exceed their base performance through self-improvement, i.e. fine-tuning on data generated by the model itself. In this work, we explore the extent to which LLMs can self-improve their performance as agents in long-horizon tasks in a complex environment using the WebArena benchmark. In WebArena, an agent must autonomously navigate and perform actions on web pages to achieve a specified objective. We explore fine-tuning on three distinct synthetic training data mixtures and achieve a 31\% improvement in task completion rate over the base model on the WebArena benchmark through a self-improvement procedure. We additionally contribute novel evaluation metrics for assessing the performance, robustness, capabilities, and quality of trajectories of our fine-tuned agent models to a greater degree than simple, aggregate-level benchmark scores currently used to measure self-improvement.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2405.20309")
get_code_for_paper("2405.20309")
have("2405.20309")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2405.20309.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2405.20309.svg)](https://syntology.ai/paper/2405.20309)

Connect an agent — have() is free.