# US 2021/0334628 A1 · Reinforcement learning techniques for selecting a software policy network and autonomously controlling a corresponding software client based on selected policy network

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

- Number: US 2021/0334628 A1
- Document ID: US20210334628A1
- Status: Published application
- Kind: A1
- Application number: 16/617,949
- Filed: 2019-03-06
- Published: 2021-10-28
- Earliest claimed: 2019-02-26
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Victor Carbune; Thomas Deselaers
- Web page: https://patentgrep.com/patent/US20210334628A1

## CPC

- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06N 3/045: Combinations of networks
- G06N 3/00: Computing arrangements based on biological models
- G06N 3/02: Neural networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0499: Feedforward networks
- G06N 3/08: Learning methods
- G06N 3/092: Reinforcement learning
- G10L 15/00: Speech recognition (G10L17/00 takes precedence)
- G10L 15/20: Speech recognition techniques specially adapted for robustness in adverse environments, e.g. in noise, of stress induced speech (G10L21/02 takes precedence)
- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- G10L 15/222: {Barge in, i.e. overridable guidance for interrupting prompts}
- G06F 2209/482: Application
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 5/027: {Frames}
- G10L 2015/223: {Execution procedure of a spoken command}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

Techniques are disclosed that enable automating user interface input by generating a sequence of actions to perform a task utilizing a multi-agent reinforcement learning framework. Various implementations process an intent associated with received user interface input using a holistic reinforcement policy network to select a software reinforcement learning policy network. The sequence of actions can be generated by processing the intent, as well as a sequence of software client state data, using the selected software reinforcement learning policy network. The sequence of actions are utilized to control the software client corresponding to the selected software reinforcement learning policy network.

## Claims

### Claim 1

A method implemented by one or more processors, comprising:
receiving user interface input provided by a user of a client device via one or more user interface input devices of the client device;
selecting a particular software policy neural network from a plurality of candidate software policy neural networks, wherein selecting the particular policy neural network comprises selecting the particular policy neural network based on output generated by processing one or more features of the user interface input using a holistic policy neural network,
wherein the holistic policy neural network represents a holistic reinforcement learning policy,
wherein the one or more features of the user interface input include an intent identified based on analyzing the user interface input, and
wherein the particular software policy neural network represents a reinforcement learning policy of a particular software client;
in response to selecting the particular software policy neural network:
using the particular software policy neural network in generating a sequence of particular actions and controlling the particular software client based on the sequence of particular actions,
wherein generating the sequence of particular actions comprises:
processing a sequence of state data for the particular software client and the intent using the particular software policy neural network,
wherein the sequence of state data is based on states of the particular software client during controlling of the particular client based on the sequence of particular actions; and
causing the client device to render output that is based on content generated by the particular software client responsive to controlling the particular software client based on the sequence of particular actions.

### Claim 2 (depends on 1)

The method of claim 1, wherein the particular software policy neural network is used to generate outputs in an action space, wherein generating the sequence of particular actions comprises:
identifying available actions for given state data of the sequence of state data;
generating a given action in the sequence of particular actions based on processing the given state data and based on the identified available actions for the given state data.

### Claim 3 (depends on 2)

The method of claim 2, wherein generating the sequence of particular actions comprises:
identifying portions of the action space that do not correspond to the available actions for the given state data.

### Claim 4 (depends on 2)

The method of claim 2, wherein generating the given action based on processing the given state data and based on the identified available actions comprises:
masking, in the action space, any portions of the action space that do not correspond to the available actions for the given state data; and
selecting the given action from the portions of the action space that are not masked by the masking.

### Claim 5 (depends on 2)

The method of claim 2, wherein generating the given action based on processing the given state data and based on the identified available actions comprises:
processing the available actions, using the particular software policy neural network, along with the given state data and the intent to constrain the action space to the available actions.

### Claim 6 (depends on 5)

The method of claim 5, wherein the particular software policy neural network comprises a pointer network configured to determine a variable length output used in generating the given action.

### Claim 7 (depends on 1)

The method of claim 1, wherein the user interface input provided by the user of the client device comprises natural language input spoken by the user and directed at an automated assistant application.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
analyzing the user interface input to identify the intent and an additional intent,
wherein the one or more features of the user interface input utilized in selecting the particular software policy neural network include the intent but do not include the additional intent;
selecting an additional software policy neural network, from the plurality of candidate software policy neural networks, by processing the additional intent using the holistic policy neural network,
wherein the additional software policy neural network represents a reinforcement learning policy of an additional software client, and
using the additional software policy neural network to generate an additional sequence of particular actions and controlling the additional software client based on the additional sequence of particular actions,
wherein generating the additional sequence of particular actions comprises:
processing an additional sequence of state data for the additional software client and the additional intent using the additional software policy neural network,
wherein the additional sequence of state data is based on additional states of the additional software client during controlling of the additional software client based on the additional sequence of particular actions; and
causing the client device to render additional output that is based on additional content generated by the additional software client responsive to controlling the additional software client based on the additional sequence of actions.

### Claim 9 (depends on 8)

The method of claim 8, wherein the additional software policy neural network is used to generate outputs in a further action space, wherein generating the additional sequence of actions comprises:
identifying available actions for given state data of the additional sequence of state data;
generating a given action in the additional sequence of actions based on processing the given state data of the additional sequence of state data and based on the identified available actions for the given state data of the additional sequence of state data.

### Claim at position 10

10-13. (canceled)

### Claim 14 (depends on 1)

The method of claim 1, wherein the client device includes an automated assistant client and wherein the automated assistant client uses the software policy neural network in generating the sequence of particular actions and controlling the particular software client based on the sequence of particular actions.

### Claim 15

(canceled)

### Claim 16 (depends on 1)

The method of claim 1, further comprising:
in response to causing the client device to render output that is based on the content generated by the particular software client responsive to being controlled based on the sequence of actions:
determining a holistic reward signal that provides an indication of the success of selecting the particular software policy neural network corresponding to the intent using the holistic policy neural network.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
determining, using the holistic reward signal, updated holistic policy parameters for the holistic policy neural network; and
updating the holistic policy neural network using the updated holistic policy parameters.

### Claim 18 (depends on 16)

The method of claim 16, wherein the holistic reward signal is based on the content generated by the particular software client and/or is based on one or more further actions performed by the user subsequent to causing the client device to render the output that is based on the content generated by the particular software client.

### Claim 19 (depends on 1)

The method of claim 1, further comprising:
in response to causing the client device to render output that is based on the content generated by the particular software client responsive to being controlled based on the sequence of actions,
determining a software reward signal which provides an indication of the success of generating the sequence of particular actions using the particular software policy neural network.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
determining, using the software reward signal, updated software client policy parameters for the software policy neural network; and
updating the software policy neural network using the updated software client policy parameters.

### Claim 21

(canceled)

### Claim 22 (depends on 1)

The method of claim 1, wherein processing the sequence of state data for the particular software client and the intent using the particular software policy neural network comprises:
determining the sequence of state data for the particular software client using an accessibility application programming interface.

### Claim 23

(canceled)

### Claim 24

(canceled)

### Claim 25

A method implemented by one or more processors, comprising:
receiving an episode of user interface input provided by a user of a client device via one or more user interface input devices of the client device, wherein the episode of user interface input includes a sequence of actions for a particular software client;
generating updated holistic policy parameters for a holistic policy neural network using the episode of user interface input, wherein the holistic policy neural network represents a reinforcement learning policy,
wherein the updated holistic policy neural network is used to select a particular software policy neural network corresponding to the particular software client;
updating the holistic policy neural network using the updated holistic policy parameters;
generating updated software policy parameters for the software policy neural network using the episode of user interface input; and
updating the software policy neural network using the updated software policy parameters.

### Claim 26 (depends on 25)

The method of claim 25, wherein receiving the episode of user interface input provided by the user of the client device is in response to an automated assistant client of the client device determining it is unable to select a particular software policy neural network using the holistic policy neural network.

### Claim 27 (depends on 25)

The method of claim 25, wherein receiving the episode of user interface input provided by the user of the client device is in response to the an automated assistant client of the client device determining it is unable to generate a sequence of actions using the software policy neural network.

### Claim 28 (depends on 25)

The method of claim 25, wherein the episode of user interface input provided by the user of the client device includes a plurality of instances of user interface input, wherein each instance of user interface input includes a beginning client device state, a subsequent client device state transitioned to from the beginning client device state, and a user action to transition from the beginning client device state to the subsequent client device state.

### Claim 29

(canceled)

### Claim 30

(canceled)
