Source-linked AI summary

Grounding Open-Domain Instructions to Automate Web Support Tasks

Nancy Xu, Sam Masling, Michael Du, Giovanni Campagna, Larry Heck, James Landay, Monica S Lam

arXiv:2103.16057v2cs.CLcs.LG

TL;DR

Open-domain web instructions could support accessible, automated completion of previously unseen support tasks, but require grounding language in executable web actions. RUSS uses ThingTalk as an intermediate representation between semantic parsing and webpage-element grounding, with a runtime for interaction and execution. It achieves 76.7% end-to-end accuracy, outperforms direct instruction-to-action grounding models, and is preferred by users over web navigation, while the authors identify small-scale evaluation and unresolved error-handling and high-stakes-use concerns.

  • Problem

    The paper addresses how agents can ground open-domain, step-by-step natural-language instructions to perform previously unseen web support tasks.

    Source: §1 · pp. 1–2
  • Method

    RUSS parses instructions into ThingTalk, grounds ThingTalk descriptions to webpage element IDs, and executes or discusses the resulting actions through a web runtime.

    Source: §1 · p. 2, §3.1 · p. 4
  • Results

    76.7% end-to-end accuracy was achieved on the RUSS Evaluation Dataset, with performance outperforming direct instruction-to-action models and users preferring RUSS over web navigation.

    Source: §1 · p. 2, §5.2 · p. 7, §6 · p. 9
  • Takeaways & Limitations

    The RUSS task, modular architecture, datasets, and user research provide a technical foundation for open-domain web agents grounded in real instructions.

    Source: §6 · p. 9

    The user study is small, runtime error handling is limited, and broader deployment raises unresolved concerns for user behavior and high-stakes transactions.

    Source: §5.4 · p. 8, §7 · p. 9

Abstract

from arXiv · show

Grounding natural language instructions on the web to perform previously unseen tasks enables accessibility and automation. We introduce a task and dataset to train AI agents from open-domain, step-by-step instructions originally written for people. We build RUSS (Rapid Universal Support Service) to tackle this problem. RUSS consists of two models: First, a BERT-LSTM with pointers parses instructions to ThingTalk, a domain-specific language we design for grounding natural language on the web. Then, a grounding model retrieves the unique IDs of any webpage elements requested in ThingTalk. RUSS may interact with the user through a dialogue (e.g. ask for an address) or execute a web operation (e.g. click a button) inside the web runtime. To augment training, we synthesize natural language instructions mapped to ThingTalk. Our dataset consists of 80 different customer service problems from help websites, with a total of 741 step-by-step instructions and their corresponding actions. RUSS achieves 76.7% end-to-end accuracy predicting agent actions from single instructions. It outperforms state-of-the-art models that directly map instructions to actions without ThingTalk. Our user study shows that RUSS is preferred by actual users over web navigation.

1 Introduction

RUSS frames open-domain web support as an interactive grounding problem and addresses it with a modular parser, grounding model, and runtime. The paper contributes ThingTalk, datasets, and an evaluation showing 76.7% end-to-end accuracy.

Task

  • RUSS targets previously unseen web tasks from open-domain instructions, including customer-service operations such as password resets and gift-card redemption.The task is motivated by conversational access to web knowledge and services without domain-specific APIs.Source: §1 · pp. 1–2

Approach

  • The system uses a BERT-LSTM pointer semantic parser to map each instruction to ThingTalk, then grounds requested elements to active-webpage IDs for execution.Its runtime supports both user interaction and webpage operations.Source: Figure 1 · p. 1, §1 · p. 2

ThingTalk

  • ThingTalk is a typed, expressive DSL designed as a target for natural-language semantic parsing and for synthesizing training data.The DSL provides the intermediate representation for web operations.Source: §1 · p. 2

Dataset

  • The RUSS Dataset contains 741 real-world step-by-step instructions with webpage DOMs, ThingTalk, and actions, plus 1.5M synthetic instructions mapped to ThingTalk.The dataset supports evaluation and training-data augmentation.Source: §1 · p. 2

Evaluation

  • 76.7% end-to-end accuracy was achieved on the RUSS evaluation dataset, while the semantic parser reached 85% and the grounding model 75%.A user study also found preference for RUSS’s natural-language interface over existing web UIs.Source: §1 · p. 2

2 Related Work

Prior work grounds language in physical, visual, mobile, desktop, and web interfaces, while web dialogue systems often rely on demonstrations or heuristics. RUSS instead parses real-world instructions into executable web actions without requiring user demonstrations.

Grounding in the Visual and Physical Worlds

  • Prior grounding research spans physical environments, images and videos, mobile interfaces, desktop GUIs, and web elements.Examples include robot-human dialogue, visual question answering, Android, Adobe interfaces, and TV web elements.Source: Grounding in the Visual and Physical… · pp. 2–3

Natural Language Digital Interfaces

Dialogue Agents for The Web

  • Earlier web dialogue agents commonly use single-use heuristics or programming-by-demonstration, whereas RUSS operates from existing real-world instructions without user demonstration.The authors note that their intermediate representation and grounding model could also improve PBD robustness.Source: Grounding in the Visual and Physical… · p. 3

3 Task and Model

RUSS formulates web-task execution as six user or webpage actions grounded through ThingTalk, then combines semantic parsing, webpage-element grounding, and runtime execution. Its components support compositional retrieval, instruction parsing, DOM matching, and interactive browser operation.

3 Task and Model

  • RUSS models tasks as sequences of six actions, including navigation, text entry, clicking, user interaction, reading results, and requesting information.The task starts from natural-language instructions and a webpage, producing an action sequence executed against uniquely identified webpage elements.Source: §3 · p. 3

3.1 ThingTalk

  • ThingTalk is a compositional DSL in which @retrieve queries webpage elements and passes their IDs to actions such as @click, @read, or @enter.Queries can combine multiple retrieval operations and use descriptions, element types, absolute locations, and relative positions.Source: §3.1 · pp. 3–4

3.2 Semantic Parser Model

  • The semantic parser uses a BERT encoder, LSTM decoder, and pointer-generator to produce ThingTalk token by token from natural-language instructions.Entity placeholders for URLs, locations, and element types reduce tokenization and copying errors before values are restored in the parsed program.Source: §3.2 · p. 4

3.3 Grounding Model

  • The grounding model matches ThingTalk retrieval descriptions to DOM elements by filtering type and location, checking relations, and ranking Sentence-BERT text similarities.The highest-scoring candidate supplies the element ID required by the grounded action.Source: §3.3 · pp. 4–5

3.4 The Run-Time

  • The runtime executes grounded programs in automated Chrome sessions, uses Puppeteer for web actions, and supports voice-based asking, saying, and reading.For requested information, RUSS stores user responses under validated dictionary keys and later retrieves values for entry actions.Source: §3.4 · p. 5

4 Datasets

RUSS introduces complementary real-world and synthetic datasets for grounding open-domain support instructions, with ThingTalk annotations and web-interface context. The evaluation collection captures diverse tasks, action distributions, retrieval complexity, and dataset characteristics, while synthesis supplies large-scale training data.

4 Datasets

  • The paper contributes a real-world RUSS Evaluation Dataset and a synthetic dataset for training semantic parsers.The evaluation dataset contains annotated instructions, webpage DOMs, ThingTalk programs, and grounded actions; the synthetic dataset maps generated instructions to ThingTalk.Source: §4 · p. 5, §4.1 · p. 5

4.1 RUSS Evaluation Dataset

  • The evaluation data were collected from line-by-line help instructions, then executed, scraped, and annotated with ThingTalk and grounded actions; missing steps were inserted and multi-action instructions split.Human workers wrote instructions as if teaching another person and did not participate in ThingTalk’s design.Source: §4.1 · p. 5
  • The evaluation dataset contains 80 tasks and 741 instructions from 22 online help centers spanning domains including music, email, retail, and software.It is split into 304 development instructions from 30 tasks and 437 test instructions from 50 tasks, and is not used for training.Source: §4.1 · p. 5
  • 61.4% of natural-language instructions require retrieving a webpage element, while click, ask, and enter are the three most common actions.Click, enter, and read require webpage elements; the dataset also includes dialogue-oriented actions such as ask.Source: §4.1 · p. 5, Figure 5 · p. 5
  • RUSS instructions average 9.6 tokens, compared with 4.1 tokens for crowdsourced PhraseNode web instructions.The evaluation vocabulary contains 684 words, including domain-specific terms, and frequent vocabulary coverage is concentrated in the most common 300 words.Source: §4.1 · p. 5, Evaluation Dataset · p. 6

Evaluation Dataset.

  • The dataset supports complex web grounding: 76 of 455 element queries use two @retrieve functions, while 53.7%, 42.7%, and 3.6% of @retrieve functions use one, two, and three descriptors.Webpages contain 689 DOM elements on average, and possible action-element combinations number in the thousands.Source: Evaluation Dataset · pp. 5–6

4.2 Synthetic Dataset

  • The synthetic dataset uses typed templates for ThingTalk primitives and combinations, sampled DOM text, URLs, and variable-like phrases to generate 1.5M training instructions.The compositional synthesizer creates roughly 840 templates and a vocabulary of 9305 words.Source: §4.2 · p. 6

5 Evaluation

RUSS achieves strong performance across parsing, grounding, and end-to-end web-task execution, while user studies indicate higher task completion and preference than browser navigation. Evaluation also identifies limitations in ThingTalk coverage, webpage structure, and runtime robustness.

5 Evaluation

  • 76.7% overall accuracy was achieved on the RUSS Evaluation Dataset despite training entirely with synthetic data.The evaluation comprised three experiments covering parsing, grounding, and end-to-end user performance.Source: §5 · p. 6

5.1 Semantic Parsing Accuracy

  • 87.0% semantic-parsing accuracy was obtained, including 81.4% for instructions involving web elements and 94.6% for other instructions.The metric uses exact token-by-token matching against gold annotations.Source: §5.1 · pp. 6–7

5.2 Grounding Evaluation

  • RUSS achieved 63.6% grounding accuracy, while an end-to-end baseline performed 12.6% worse and PhraseNode reached 46.5%.The modular approach combines correct parsing with web-element grounding rather than mapping instructions directly to elements.Source: §5.2 · p. 7

5.3 Analysis

  • RUSS outperformed PhraseNode across reasoning types, although spatial instructions involving image features were not supported.Additional constraints in instructions can reduce the candidate element set, while ThingTalk remains expressive enough for many open-domain web instructions.Source: §5.3 · pp. 7–8, Table 5 · p. 7

5.4 User Study

  • 98% of tasks were completed with RUSS versus 85% on the web, and 69% of users preferred RUSS over online help pages.Completion times were generally similar, but RUSS was significantly faster on one unfamiliar complex task; users also cited ease of use, efficiency, and speed.Source: §5.4 · p. 8, Figure 7 · p. 8, Figure 8 · p. 9
  • The study was small-scale, while runtime failures could arise from limited conversational retries or webpages taking more than 60 seconds to load.Other limitations include six instructions with attributes poorly expressed in ThingTalk and webpage attributes hidden behind site-specific classes.Source: §5.4 · p. 8, §5.3 · p. 8

6 Conclusion

RUSS demonstrates that modular semantic parsing and grounding can execute unseen web tasks from natural-language instructions. The paper contributes an evaluation dataset and technical foundation for future open-domain web agents, while noting that substantial accuracy improvements remain necessary.

6 Conclusion

  • RUSS achieved 76.7% accuracy on the evaluation dataset and outperformed end-to-end neural models for grounding natural-language web instructions.PhraseNode achieved 46.5% grounding accuracy, indicating substantial room for further improvement toward 100%.Source: §6 · p. 9
  • The RUSS Evaluation Dataset provides real instructions paired with executable web actions for studying semantic parsing and web grounding.The dataset supports future work on new formal-language targets and grounding formal representations on webpages.Source: §6 · p. 9

7 Ethical Considerations

The user study received IRB Exempt status, used informed consent without deception, and compensated participants. The authors also describe privacy precautions and call for further research before deploying RUSS at scale, especially in high-stakes domains.

  • The study received IRB Exempt status, used informed consent without deception, lasted about 20 minutes, and compensated participants $10.Source: §7 · p. 9
  • The dataset used public webpages and non-identifying fake accounts to limit privacy risks when websites required access.Source: §7 · p. 9
  • The authors envision web agents improving access for visually impaired, less technologically advanced, or otherwise preoccupied individuals.Source: §7 · p. 9
  • Before scaling RUSS, the authors call for research on user behavior, system-error consequences, and information delivery in high-stakes health or finance transactions.Source: §7 · p. 9
Loading 2103.16057v2…