Reinforcement Learning on Web Interfaces Using Workflow-Guided Exploration
Proposes Workflow-Guided Exploration (WGE) with DOMNET for web tasks, achieving 100x sample efficiency and high success rates with minimal demonstrations.
Key Findings
Methodology
This paper introduces a demonstration-based constrained exploration framework. It induces high-level workflows from expert demonstrations, which restrict the action space during exploration. A workflow policy πw, trained via REINFORCE, samples environment-blind action sequences based on demonstration similarity, guiding the agent toward promising trajectories. Successful episodes are stored in a replay buffer to train a neural policy πn, implemented with DOMNET—an architecture embedding HTML tree structures with multi-layer attention to model spatial and hierarchical relations. Experiments on MiniWoB, MiniWoB++, and Alaska Airlines tasks show that WGE dramatically improves success rates and reduces sample requirements by over 100 times compared to behavioral cloning.
Key Results
- On MiniWoB, WGE with DOMNET achieves over 90% success across tasks, outperforming pure RL by 30%, with only 3-10 demonstrations needed. The sample efficiency surpasses 100x, drastically reducing training data requirements.
- In complex environments like Alaska Airlines booking, just one demonstration yields an average reward of 0.97, far better than previous methods requiring dozens of demonstrations. The approach generalizes well to long-horizon, noisy, and multi-modal tasks.
- Ablation studies confirm that the constrained exploration via workflows prevents overfitting, accelerates learning, and enhances robustness, especially under sparse reward conditions.
Significance
This work addresses fundamental challenges in web interaction RL—namely, sparse rewards and high-dimensional state spaces—by introducing a scalable, sample-efficient framework. It enables agents to learn complex tasks with minimal supervision, paving the way for practical AI assistants capable of autonomous web navigation and automation. The environment-blind workflow strategy reduces exploration complexity, offering a new paradigm for RL in semi-structured environments. Its success demonstrates the potential for deep RL to operate effectively in real-world, high-variability settings, with broad implications for automation, human-computer interaction, and AI deployment.
Technical Contribution
The paper's key innovations include: (1) environment-blind workflow policy πw, learned via REINFORCE from demonstrations, constraining exploration without environment state dependence; (2) a novel DOMNET architecture that models HTML spatial and hierarchical relations with multi-layer attention; (3) a demonstration-driven sample-efficient training pipeline combining constrained exploration with deep neural policies. These contributions collectively enable high success rates with minimal data, outperforming prior methods in web tasks.
Novelty
This is the first work integrating environment-blind, demonstration-induced workflows with deep neural architectures for web interaction RL. Unlike prior approaches relying solely on behavioral cloning or pixel-based policies, this method constrains exploration via high-level, environment-agnostic action sequences, drastically improving sample efficiency and robustness. The DOMNET architecture further advances HTML structure understanding, setting a new standard for semi-structured environment modeling.
Limitations
- Workflow strategies lack environment awareness, limiting responsiveness to layout changes or dynamic content, which can hinder performance in highly variable web environments.
- Dependence on demonstration quality means poor or limited demonstrations can restrict exploration effectiveness.
- Scaling to highly complex or real-time web applications remains challenging, requiring integration of environment perception and language understanding for broader applicability.
Future Work
Future directions include integrating visual and natural language perception to enhance environment responsiveness, extending workflow expressivity to handle more complex semantic tasks, and applying this framework to other high-dimensional, sparse-reward domains like robotics or autonomous driving. Developing adaptive, environment-aware workflow policies will further improve robustness and generalization.
AI Executive Summary
Web-based tasks such as form filling, email replying, and flight booking pose significant challenges for reinforcement learning due to sparse rewards and vast action spaces. Traditional methods like behavioral cloning require extensive demonstrations and often overfit, limiting their scalability. This paper introduces Workflow-Guided Exploration (WGE), a novel framework that leverages expert demonstrations to induce high-level, environment-agnostic workflows. These workflows constrain the exploration process, guiding the agent toward promising action sequences while maintaining flexibility. The core of the approach is a workflow policy πw trained via REINFORCE, which samples sequences of actions based on demonstration similarity, and a neural policy πn built with DOMNET—an architecture designed to model the spatial and hierarchical structure of HTML documents through multi-layer attention. Experiments across multiple web interaction benchmarks, including MiniWoB, MiniWoB++, and the Alaska Airlines booking site, demonstrate that WGE achieves success rates exceeding 90% with only a handful of demonstrations, outperforming prior methods by over 100 times in sample efficiency. These results highlight the potential of combining demonstration-driven constraints with deep neural architectures to solve complex, real-world web tasks efficiently. The approach not only advances the state-of-the-art in web RL but also opens avenues for deploying autonomous agents in diverse high-dimensional environments, including automation, customer service, and beyond. Future work aims to incorporate richer environment perception and language understanding, further broadening the applicability and robustness of the framework.
Deep Analysis
Background
The evolution of web interaction reinforcement learning has transitioned from rule-based systems and imitation learning to deep RL approaches. Early works like program synthesis and behavioral cloning provided initial solutions but struggled with scalability and generalization. Shi et al. (2017) introduced MiniWoB, a benchmark for web tasks, highlighting the challenge of sparse rewards and high-dimensional state spaces. Recent efforts integrated neural architectures but still faced sample inefficiency and overfitting. The need for more scalable, data-efficient methods remains pressing, especially for real-world applications like automated form filling and web navigation. This paper builds on these foundations, proposing a novel combination of demonstration-based constraints and deep relational modeling to address these issues.
Core Problem
The core challenge in web RL is the sparse reward problem compounded by vast, unstructured action spaces and complex spatial relationships within web pages. Naive exploration often fails to discover rewarding trajectories, leading to prohibitively high sample costs. Behavioral cloning mitigates this but overfits and lacks generalization, especially in diverse layouts and natural language inputs. Existing methods struggle to balance exploration efficiency and policy flexibility. The key bottleneck is designing a mechanism that constrains exploration without sacrificing adaptability, enabling agents to learn effectively from limited demonstrations in noisy, high-dimensional environments.
Innovation
The paper introduces three main innovations: (1) environment-blind workflow policies πw, learned via REINFORCE from demonstration sequences, which impose high-level action constraints without environment state dependence; (2) the DOMNET architecture, embedding HTML elements with multi-layer attention to model spatial and hierarchical relations explicitly; (3) a demonstration-driven training pipeline that combines constrained exploration with deep neural policies, drastically reducing sample complexity. These innovations collectively enable efficient learning in web environments, overcoming traditional RL limitations in sparse reward and high-dimensional settings.
Methodology
- �� From expert demonstrations, extract action sequences and induce a lattice of possible workflows, representing high-level action constraints. • Train a workflow policy πw using REINFORCE, optimizing the likelihood of selecting demonstration-consistent workflows based on reward signals. • During exploration, sample a workflow z from πw, then select actions uniformly from the constrained set zt(st). • Successful episodes are stored in a replay buffer for training a neural policy πn, which employs DOMNET to embed and attend over HTML structures. • DOMNET embeds each DOM element via attributes, spatial neighbors, and tree relations, applying multi-layer attention to capture spatial and hierarchical dependencies. • Train πn with on-policy and off-policy (replay buffer) updates using A2C, enabling efficient policy learning with minimal demonstrations.
Experiments
Experiments conducted on MiniWoB, MiniWoB++, and Alaska Airlines web tasks involved training with as few as 3-10 demonstrations. Success rates were measured on test episodes, with WGE outperforming pure RL and behavioral cloning by significant margins. Ablation studies confirmed the importance of workflow constraints in reducing overfitting and improving exploration. The models demonstrated robustness to noisy environments, longer horizons, and natural language goals. Hyperparameters such as learning rate, discount factor, and demonstration count were tuned to optimize performance. Results consistently showed that WGE achieved over 90% success with minimal data, validating its sample efficiency and scalability.
Results
WGE combined with DOMNET achieved success rates exceeding 90% across multiple web tasks, outperforming baseline methods by over 30%. In the Alaska Airlines booking scenario, only one demonstration sufficed to reach an average reward of 0.97, far surpassing previous methods requiring dozens of demonstrations. On MiniWoB++, the approach effectively handled longer horizons and noisy inputs, with success improvements of 40-50%. The ablation analysis highlighted the critical role of demonstration-guided constraints in accelerating learning and avoiding overfitting, especially under sparse rewards. Overall, the results demonstrate that the proposed framework drastically reduces training data needs while maintaining high performance.
Applications
This approach is immediately applicable to automating web-based tasks such as form filling, email management, and online shopping. It requires minimal demonstrations and can adapt to diverse webpage layouts, making it suitable for deploying AI assistants and automation tools. In the long term, the methodology could extend to autonomous agents in robotics, customer service, and complex decision-making environments, where sparse rewards and high-dimensional states are prevalent. Its ability to learn efficiently from limited supervision makes it a promising foundation for scalable, real-world AI systems.
Limitations & Outlook
The workflow policy’s environment-blind nature limits responsiveness to layout changes or dynamic content, potentially reducing effectiveness in highly variable scenarios. Dependence on demonstration quality means poor or limited demonstrations can impair exploration. Scaling to highly complex or real-time web environments remains challenging, necessitating integration with environment perception and natural language understanding. Future work should address these limitations to enhance robustness and generalization.
Plain Language Accessible to non-experts
想象你在厨房里做饭,厨房里有很多工具和食材。每次做菜都需要按照一定的步骤,比如先切菜、再炒菜、最后装盘。传统的方法就像你每次都自己试,可能会浪费时间和食材。现在,有经验的厨师会给你示范一遍,告诉你大致的步骤,然后你可以根据示范中的流程自己操作。这个研究就像教机器人模仿厨师的步骤,但不是死记硬背,而是学会根据示范中的大致流程,自己灵活操作。通过学习这些“厨房工作流”,机器人可以在不同的厨房环境中快速找到正确的做菜方法,而不用每次都从零开始试错。它还能记住哪些步骤最有效,避免重复错误。这让机器人变得更聪明、更快,能帮你自动填写表格、预订机票,就像一个聪明的助手一样!
ELI14 Explained like you're 14
想象你在学校学做手工艺品,老师示范了一次:先剪纸、再粘贴、最后装饰。你学会后,可以用类似的方法做不同作品,但不用每次都完全照着老师的步骤。这个研究就像教机器人模仿老师的示范,但它还能自己决定哪些步骤最重要,哪些可以跳过。它会记住一些大致的流程,比如“先准备材料,再组装”,然后在不同网页上用类似的方法操作。这样,机器人学会了更快、更聪明地完成任务,不用反复试错,也不容易出错,就像你学会了做菜的秘诀一样,能在不同的环境中用得上。这个方法让机器人变得更聪明、更快,能帮你自动填写表格、预订机票,就像一个聪明的助手!
Abstract
Reinforcement learning (RL) agents improve through trial-and-error, but when reward is sparse and the agent cannot discover successful action sequences, learning stagnates. This has been a notable problem in training deep RL agents to perform web-based tasks, such as booking flights or replying to emails, where a single mistake can ruin the entire sequence of actions. A common remedy is to "warm-start" the agent by pre-training it to mimic expert demonstrations, but this is prone to overfitting. Instead, we propose to constrain exploration using demonstrations. From each demonstration, we induce high-level "workflows" which constrain the allowable actions at each time step to be similar to those in the demonstration (e.g., "Step 1: click on a textbox; Step 2: enter some text"). Our exploration policy then learns to identify successful workflows and samples actions that satisfy these workflows. Workflows prune out bad exploration directions and accelerate the agent's ability to discover rewards. We use our approach to train a novel neural policy designed to handle the semi-structured nature of websites, and evaluate on a suite of web tasks, including the recent World of Bits benchmark. We achieve new state-of-the-art results, and show that workflow-guided exploration improves sample efficiency over behavioral cloning by more than 100x.