Source-linked AI summary

LASER: LLM Agent with State-Space Exploration for Web Navigation

Kaixin Ma, Hongming Zhang, Hongwei Wang, Xiaoman Pan, Wenhao Yu, Dong Yu

arXiv:2309.08172v2cs.CL

TL;DR

Prior LLM navigation methods rely on forward-only oracle examples, with limited guidance for mistakes and costly coverage of possible scenarios. LASER instead uses predefined states and state-specific actions to navigate, and it reports outperforming baselines while approaching human performance on web navigation.

  • Problem

    Prior interactive-task methods use forward-only oracle trajectories as in-context examples, leaving agents without guidance for unexpected mistakes and making exhaustive scenario coverage costly or unrealistic.

    Source: §1 · p. 1
  • Method

    LASER models navigation as state-space exploration, giving the agent state-specific instructions and permissible actions so it can transition among states and backtrack.

    Source: §1 · p. 1, §2.3 · p. 2, §2.4 · p. 2
  • Results

    LASER outperforms all baselines on WebShop by large margins and closes the gap with human performance on the real-world shopping website.

    Source: §5 · p. 4
  • Takeaways & Limitations

    Using state-specific instructions without in-context examples, LASER handles novel situations, backtracks from mistakes, and performs valid actions in the evaluated web-navigation settings.

    Source: §5 · p. 4

    LASER requires manual annotation of possible states and their descriptions, which may make it suitable mainly for specific domains with only a handful of states rather than open-world web agents.

    Source: Limitations · p. 5

Abstract

from arXiv · show

Large language models (LLMs) have been successfully adapted for interactive decision-making tasks like web navigation. While achieving decent performance, previous methods implicitly assume a forward-only execution mode for the model, where they only provide oracle trajectories as in-context examples to guide the model on how to reason in the environment. Consequently, the model could not handle more challenging scenarios not covered in the in-context examples, e.g., mistakes, leading to sub-optimal performance. To address this issue, we propose to model the interactive task as state space exploration, where the LLM agent transitions among a pre-defined set of states by performing actions to complete the task. This formulation enables flexible backtracking, allowing the model to recover from errors easily. We evaluate our proposed LLM Agent with State-Space ExploRation (LASER) on both the WebShop task and amazon.com. Experimental results show that LASER significantly outperforms previous methods and closes the gap with human performance on the web navigation task.

1 Introduction

Prior LLM navigation methods rely on forward-only oracle examples, leaving agents ill-prepared for mistakes and potentially invalid actions. LASER models navigation as state-space exploration, enabling backtracking and state-specific action choices; it reports strong results on WebShop and amazon.com.

1 Introduction

  • Prior methods use oracle trajectories as in-context examples and assume the correct action is chosen at every step, limiting recovery from test-time mistakes.Covering every possible scenario with many examples is described as costly or unrealistic.Source: §1 · p. 1
  • LASER represents interaction as transitions among predefined states, allowing the agent to backtrack after a wrong action and choose actions associated with its current state.The state-transition diagram illustrates the formulation on WebShop.Source: §1 · pp. 1–2, Figure 1 · p. 1
  • LASER significantly outperforms previous baselines and closes the gap with human performance on web navigation.The paper evaluates the approach on WebShop and transfers it to amazon.com.Source: §1 · p. 2

2 Methods

LASER tracks the agent through a small set of environment states and supplies state-specific instructions and permissible actions. This formulation links observations, actions, and transitions, while supporting recovery and constraining choices to valid actions.

2.1 Problem Formulation

  • The task begins with an environment, user instruction, and initial observation; actions produce new observations until the agent reaches a stopping state or completes the task.The agent's output is compared with the target to compute metrics.Source: §2.1 · p. 2

2.2 LLM Agent

  • At each step, the agent receives the goal, state-specific instructions, the current observation, permissible actions, and prior thoughts and actions, then selects an action that changes or retains its state.It repeats this process until the stopping state or maximum step is reached.Source: §2.2 · p. 2

2.3 State Description

  • LASER distinguishes states only when the structure of the current environment observation differs, allowing a handful of states to support exploration.For WebShop, the authors manually categorize possible states and write generic instructions with placeholder-based observation layouts, a high-level goal, and action guidance; they define four states.Source: §2.3 · p. 2

2.4 Action Space

  • State-specific permissible actions rule out invalid choices; when the maximum steps force a stop, LASER can select an examined intermediate item as its final output.The authors also use a thought-and-action loop and a memory buffer for examined items considered non-matching.Source: §2.4 · pp. 2–3

3 Experiments

The experiments evaluate LASER on WebShop and on amazon.com, with additional WebShop ablation experiments. The supplied passages describe the evaluation setup and table scopes but do not provide the result values.

3 Experiments

  • On the WebShop task, LASER was powered by GPT-4-0613 and evaluated on 500 test set instructions using reward and success rate, with comparisons to ReAct, ASH, and WebGUM.Source: §3 · p. 3
  • Table 3 is labeled as WebShop ablation results with zero-shot GPT-4 LASER as the standard configuration.The supplied passages do not state the ablation table's outcome values.Source: Table 3 · p. 3
  • Amazon.com transfer evaluation applies LASER without modification to 100 WebShop test instructions and manually evaluates the results.Table 2 is labeled as Amazon.com results.Source: §3 · p. 3, Table 2 · p. 3

4 Results

LASER outperforms the baselines on WebShop and achieves results close to human performance on amazon.com. Its analysis examines in-context examples, function calling, trajectory length, and transfer to another LLM.

4 Results

  • LASER outperforms baselines by large margins on both WebShop metrics and achieves results very close to human performance on amazon.com.The authors suggest amazon.com’s stronger search engine may explain why performance there exceeded WebShop.Source: §4 · p. 3

4.1 Analysis

  • Adding one in-context example worsened performance, while removing function calling led to slightly worse results in the 200-instruction ablations.The authors hypothesize that examples can distract an agent that already performs valid actions 100% of the time.Source: §4.1 · p. 4
  • Most tasks took three state transitions, while performance generally declined with longer trajectories and was much lower for length-15 episodes.Length-15 episodes required selecting from browsing history; the group still had a nonzero success rate.Source: §4.1 · p. 4, Figure 2 · p. 4
  • With text-davinci-003, performance dropped substantially but remained above the baselines, showing transfer across LLMs with different capabilities.Source: §4.1 · p. 4

5 Conclusions

LASER frames interactive web navigation as state-space exploration, enabling the agent to handle novel situations and backtrack from mistakes. Guided by state-specific instructions without in-context examples, it outperforms WebShop baselines and approaches human performance on a real shopping website.

  • LASER models interactive web navigation as state-space exploration, with state tracking that supports handling novel situations and backtracking from mistakes.Source: §5 · p. 4
  • Using state-specific instructions without in-context examples, LASER outperforms all WebShop baselines by large margins and closes the gap with human performance on a real-world shopping website.Source: §5 · p. 4
  • The analysis reports greater robustness to longer trajectories and generalization to other LLMs.Source: §5 · p. 4

Limitations

The evaluation covers finding target items in shopping, not the full range of e-commerce tasks. The authors also note manual state annotation and deployment risks as boundaries on LASER’s use.

  • Experiments cover finding target items only, leaving tasks such as order tracking and checking order history untested.Source: Limitations · p. 5
  • LASER requires manual annotation of possible states and descriptions, which may make it suitable mainly for specific domains with only a handful of states.The authors name e-commerce and travel booking as examples.Source: Limitations · p. 5
  • Real-world deployment calls for extra testing; the authors stopped LASER before purchases on amazon.com and say high-stakes actions may need human verification.They cite LASER’s still-imperfect success rate and the potentially hard-to-recover consequences of actions such as buying an item.Source: Limitations · p. 5

A Related Works

Prior LLM web agents use prompting, action decomposition, or planning; Synapse is the closest comparison through state-conditional prompts. The authors distinguish LASER by relying on state-specific instructions without in-context examples and suggest its state-transition framing could also fit multimodal agents.

B Experimental Details

The experiments evaluate LASER on WebShop and transfer it directly to amazon.com, with human annotation used for transfer scoring. The comparison contrasts LASER’s manual instructions with baselines using human demonstrations or trajectories.

B Experimental Details

  • WebShop evaluation used 500 test instructions and reward plus success rate, with success requiring an exact target-item match and partial reward for partial matches.Partial reward reflects price, category, hidden attributes, and customization options.Source: B Experimental Details · p. 7
  • LASER used GPT-4-0613 for action selection through function calling and allowed at most 15 state transitions, enforcing the budget after 13 if needed.Source: B Experimental Details · p. 7
  • Amazon.com transfer applied LASER to the first 100 WebShop test instructions after converting pages to WebShop format, then used human annotations to score item matches.Price-match results were omitted because both human and LASER achieved 100% on that dimension.Source: B Experimental Details · pp. 7–8
  • ReAct and ASH used manually written instructions and annotated trajectories, while WebGUM used 1k gold trajectories; LASER relied solely on manual instructions.The paper frames these as low-level task-specific knowledge versus LASER’s high-level generalizable instructions, which the authors consider more efficient when human effort is similar or lower.Source: B Experimental Details · p. 8

C Case Studies

The authors manually categorized 30 development-set errors into three types: retrieval failures, cases judged good enough by the authors, and missing item details.

C Case Studies

  • Retrieval failure was the largest category, with 12 of 30 cases in which no returned item met the requirement despite a suitable query.The authors hypothesize that a more effective retriever or search engine could address these cases.Source: C Case Studies · p. 8
  • Nine of 30 cases were “Item good enough”: the selected item met the instruction from the authors’ perspective but did not receive full score.The example was a green living-room table lamp within budget that was nevertheless considered incorrect.Source: C Case Studies · p. 8
  • Nine of 30 cases involved missing details, where the selected item mismatched a specific instruction despite matching other attributes.In the example, the shoes matched the requested color and size but were not high heels; the authors suggest self-feedback or verification as a possible avenue.Source: C Case Studies · p. 8

E Licenses

The supplied material states the licenses and intended research use of WebShop and ReAct, alongside prompt and action-space materials for the shopping agent.

E Licenses

  • WebShop and ReAct are released under the MIT License for research purposes, and the experiments are described as consistent with that intended use.Source: E Licenses · p. 9
  • The accompanying materials identify system instructions for search, result, and item states, plus instructions for generating actions and a state-specific action space.Source: Table 4 · p. 10, Table 5 · p. 10, Table 6 · p. 12
  • The shopping-agent prompt presents the current observation, item information, target keywords, and maximum price, then instructs the agent to assess customization and inspect available details.The prompt directs the agent to buy a match, inspect more details, or return to earlier results when needed.Source: E Licenses · p. 11
Loading 2309.08172v2…