# US 2021/0334320 A1 · Automatic navigation of interactive web documents

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0334320 A1
- Document ID: US20210334320A1
- Status: Published application
- Kind: A1
- Application number: 17/280,027
- Filed: 2019-09-27
- Published: 2021-10-28
- Earliest claimed: 2018-09-27
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Aleksandra Faust; Dilek Hakkani-Tur; Izzeddin Gur; Ulrich Rueckert
- Web page: https://patentgrep.com/patent/US20210334320A1

## CPC

- G06F 16/954: Navigation, e.g. using categorised browsing
- G06F 40/174: Form filling; Merging
- G06F 16/953: Querying, e.g. by the use of web search engines
- G06F 40/30: Semantic analysis
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/092: Reinforcement learning
- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The present disclosure is generally directed to methods, apparatus, and computer-readable media (transitory and non-transitory) for learning to automatically navigate interactive web documents and/or websites. More particularly, various approaches are presented for training various deep Q network (DQN) agents to perform various tasks associated with reinforcement learning, including hierarchical reinforcement learning, in challenging web navigation environments with sparse rewards and large state and action spaces. These agents include a web navigation agent that can use learned value function(s) to automatically navigate through interactive web documents, as well as a training agent, referred to herein as a “meta-trainer,” that can be trained to generate synthetic training examples. Some approaches described herein may be implemented when expert demonstrations are available. Other approaches described herein may be implemented when expert demonstrations are not available. In either case, dense, potential-based rewards may be used to augment the training.

## Claims

### Claim 1

A method implemented using one or more processors, comprising:
determining a natural language input, wherein the natural language input comprises a command to perform a task;
analyzing the natural language input to identify one or more key-value pairs;
retrieving an interactive web document that is operable via a graphical user interface (“GUI”) to perform the task, wherein the interactive web document includes one or more constituent interactive elements that are operable to input one or more values of the one or more key-value pairs;
encoding the one or more parameters key-value pairs into one or more instruction feature vectors;
encoding overlapping content between the one or more key-value pairs and the one or more interactive elements into one or more overlap feature vectors;
encoding the one or more interactive elements of the interactive web document into one or more interactive element feature vectors;
conditioning the one or more interactive element feature vectors based on the one or more overlap feature vectors;
generating, based on the one or more conditioned interactive element feature vectors and the one or more instruction feature vectors, one or more Q-values for each of the one or more interactive elements; and
facilitating automated navigation through the interactive web document in response to the natural language input based at least in part on the Q values.

### Claim 2 (depends on 1)

The method of claim 1, wherein the one or more interactive elements comprise document object model (“DOM”) nodes.

### Claim 3 (depends on 2)

The method of claim 2, further comprising linearizing a tree structure that represents the DOM nodes.

### Claim 4 (depends on 1)

The method of claim 1, wherein a long-short term memory (“LSTM”) network is used to encode the one or more interactive element feature vectors.

### Claim 5 (depends on 4)

The method of claim 4, wherein the LSTM network comprises a bidirectional LSTM network.

### Claim 6 (depends on 1)

The method of claim 1, wherein each of the one or more parameters comprises a key-value pair.

### Claim 7 (depends on 1)

The method of claim 1, wherein the one or more Q values generated for a given interactive element of the one or more constituent interactive elements comprises a composite Q value.

### Claim 8 (depends on 7)

The method of claim 7, wherein the composite Q value comprises an interactive element Q value, a click-or-type Q value, and a type Q value.

### Claim 9

A method implemented using one or more processors, comprising:
determining a set of keys that are applicable to an interactive web document that is operable via a graphical user interface (“GUI”) to perform a task, wherein the interactive web document includes a plurality of constituent interactive elements that are operable to input a corresponding plurality of values;
automatically populating at least some of the plurality of constituent interactive elements with arbitrary values to generate a target state of the interactive web document;
encoding at least the populated interactive elements of the plurality of interactive elements into a plurality of interactive element feature vectors;
selecting a key from the set of keys;
encoding at least the selected key into a key feature vector;
based on the key feature vector and the plurality of interactive element feature vectors, calculating Q values for at least the populated interactive elements;
selecting an interactive element from the populated interactive elements based on the Q values; and
generating an instruction based on the selected key and the arbitrary value used to populate the selected interactive element.

### Claim 10 (depends on 9)

The method of claim 9, wherein the instruction comprises one or more fields, each of the one or more fields comprising a key-value pair.

### Claim 11 (depends on 9)

The method of claim 9, wherein a long-short term memory (“LSTM”) network is used to encode the plurality of interactive element feature vectors.

### Claim 12 (depends on 11)

The method of claim 11, wherein the LSTM network comprises a bidirectional LSTM network.

### Claim 13 (depends on 9)

The method of claim 9, wherein the plurality of interactive elements comprise document object model (“DOM”) elements.

### Claim 14 (depends on 13)

The method of claim 13, wherein the Q values for at least the populated interactive elements comprise a Q value for each DOM element and a Q value for each attribute of each DOM element.

### Claim 15 (depends on 9)

The method of claim 9, wherein the arbitrary values comprise random values.

### Claim 16

A system comprising one or more processors and memory storing instructions that, in response to execution of the instructions by the one or more processors, cause the one or more processors to:
determine a natural language input, wherein the natural language input comprises a command to perform a task;
analyze the natural language input to identify one or more key-value pairs;
retrieve an interactive web document that is operable via a graphical user interface (“GUI”) to perform the task, wherein the interactive web document includes one or more constituent interactive elements that are operable to input one or more values of the one or more key-value pairs;
encode the one or more parameters key-value pairs into one or more instruction feature vectors;
encode overlapping content between the one or more key-value pairs and the one or more interactive elements into one or more overlap feature vectors;
encode the one or more interactive elements of the interactive web document into one or more interactive element feature vectors;
condition the one or more interactive element feature vectors based on the one or more overlap feature vectors;
generate, based on the one or more conditioned interactive element feature vectors and the one or more instruction feature vectors, one or more Q-values for each of the one or more interactive elements; and
facilitate automated navigation through the interactive web document in response to the natural language input based at least in part on the Q values.

### Claim 17 (depends on 16)

The system of claim 16, wherein the one or more interactive elements comprise document object model (“DOM”) nodes.

### Claim 18 (depends on 17)

The system of claim 17, further comprising instructions to linearize a tree structure that represents the DOM nodes.

### Claim 19 (depends on 16)

The system of claim 16, wherein a long-short term memory (“LSTM”) network is used to encode the one or more interactive element feature vectors.

### Claim 20 (depends on 19)

The system of claim 19, wherein the LSTM network comprises a bidirectional LSTM network.
