# US 2021/0174193 A1 · Slot filling with contextual information

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

- Number: US 2021/0174193 A1
- Document ID: US20210174193A1
- Status: Published application
- Kind: A1
- Application number: 16/706,180
- Filed: 2019-12-06
- Published: 2021-06-10
- Earliest claimed: 2019-12-06
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: AMIR POURAN BEN VEYSEH; FRANCK DERNONCOURT
- Web page: https://patentgrep.com/patent/US20210174193A1

## CPC

- G06F 3/167: {Audio in a user interface, e.g. using voice commands for navigating, audio feedback}
- G06F 18/2113: by ranking or filtering the set of features, e.g. using a measure of variance or of feature cross-correlation
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 18/241: relating to the classification model, e.g. parametric or non-parametric approaches
- G06F 18/253: {of extracted features}
- G06F 40/30: Semantic analysis
- 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/0499: Feedforward networks
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 3/094: Adversarial learning
- G06N 5/046: Forward inferencing; Production systems
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06N 20/20: Ensemble learning
- G06T 11/60: Creating or editing images; Combining images with text
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/806: {of extracted features}
- G06V 10/82: using neural networks
- G06N 3/042: Knowledge-based neural networks; Logical representations of neural networks
- G06N 5/027: {Frames}
- G10L 15/1822: {Parsing for meaning understanding}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

A system, method and non-transitory computer readable medium for editing images with verbal commands are described. Embodiments of the system, method and non-transitory computer readable medium may include an artificial neural network (ANN) comprising a word embedding component configured to convert text input into a set of word vectors, a feature encoder configured to create a combined feature vector for the text input based on the word vectors, a scoring layer configured to compute labeling scores based on the combined feature vectors, wherein the feature encoder, the scoring layer, or both are trained using multi-task learning with a loss function including a first loss value and an additional loss value based on mutual information, context-based prediction, or sentence-based prediction, and a command component configured to identify a set of image editing word labels based on the labeling scores.

## Claims

### Claim 1

A system including an artificial neural network (ANN) for image editing, the system comprising:
a word embedding component configured to convert text input into a set of word vectors;
a feature encoder of the ANN configured to create a combined feature vector for the text input based on the word vectors;
a scoring layer of the ANN configured to compute labeling scores based on the combined feature vectors, wherein the feature encoder, the scoring layer, or both are trained using multi-task learning with a loss function including a first loss value and an additional loss value, wherein the additional loss value is based on mutual information, context-based prediction, or sentence-based prediction;
a command component configured to identify an image editing command based on the labeling scores; and
an image editing application configured to edit an image based on the image editing command.

### Claim 2 (depends on 1)

The system of claim 1, wherein:
the set of word vectors comprise semantic information and Part-of-Speech (POS) information.

### Claim 3 (depends on 1)

The system of claim 1, wherein the feature encoder further comprises:
a word encoder configured to compute a word-based feature vector; and
a structural encoder configured to compute a structure-based feature vector, wherein the combined feature vector comprises the word-based feature vector and the structure-based feature vector.

### Claim 4 (depends on 3)

The system of claim 3, wherein:
the word encoder comprises a 2-layer bi-directional Long Short Term Memory (LSTM).

### Claim 5 (depends on 3)

The system of claim 3, wherein:
the structural encoder comprises a Graph Convolutional Network (GCN).

### Claim 6 (depends on 1)

The system of claim 1, wherein the scoring layer further comprises:
a feed forward scoring layer configured to compute class scores based on the combined feature vector; and
a Conditional Random Field (CRF) scoring layer configured to compute the labeling scores based on the class scores.

### Claim 7

A method for training a neural network, comprising:
receiving a training set comprising a plurality of text inputs and a set of target labels for each of the plurality of text inputs;
generating a combined feature vector for each of the plurality of text inputs;
generating a set of output labels for each of the combined feature vectors;
computing a first loss value by comparing the set of output labels and the set of target labels;
computing at least one additional loss value based on context information; and
updating the neural network based on computed first loss value and the at least one additional loss value.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
embedding each word of the plurality of text inputs into a word embedding space;
identifying a Part-of-Speech (POS) tag for each of the words;
computing a word-based feature vector using a word encoder based on the embedded words and the identified POS tags;
computing a structure-based feature vector using a structural encoder; and
combining the word-based feature vector and context-based feature vector to produce the combined feature vector.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
computing class scores for each combined feature vector using a feed forward layer; and
applying a Conditional Random Field (CRF) to the class scores to compute the set of output labels.

### Claim 10 (depends on 9)

The method of claim 9, wherein:
the feed forward neural network comprises a 2-layer feed forward neural network and a logistic regression model.

### Claim 11 (depends on 10)

The method of claim 10, wherein:
the first loss value is computed using a Viterbi loss algorithm.

### Claim 12 (depends on 7)

The method of claim 7, further comprising:
identifying a context-based feature vector for each word of a first subset of text inputs;
identifying a random vector for each word of a second subset of text inputs; and
training a binary mutual information classifier based on the context-based feature vectors for each word of a first subset of text inputs and the random vectors,
wherein the mutual information loss value is computed using the binary mutual information classifier.

### Claim 13 (depends on 7)

The method of claim 7, further comprising:
training a feed forward neural network;
identifying context labels for the plurality of text inputs; and
computing the output labels using the feed forward neural network based on the context labels.

### Claim 14 (depends on 7)

The method of claim 7, further comprising:
computing a sentence vector for each text input of the plurality of text inputs by max pooling over words in the text input; and
applying a feed forward neural network to the sentence vectors to compute predicted label sets present in each of the text inputs, wherein each of the predicted label sets comprises a multi-label classification representing which labels are present in the corresponding text input.

### Claim 15 (depends on 7)

The method of claim 7, wherein the at least one additional loss value comprises:
a mutual information loss value based on comparing mutual information between the combined feature vectors and corresponding context-based feature vectors;
a context-based prediction loss value based on comparing context-based output labels and the target labels; or
a sentence-level prediction loss value based on comparing predicted label sets present in each of the text inputs with known label sets based on the target labels.

### Claim 16

A method for image editing, comprising:
receiving an audible input for editing an image;
converting the audible input to a text input;
computing a feature vector for the text input using a neural network;
computing a set of word labels based on the feature vector using the neural network, wherein the neural network is trained using multi-task learning with a loss function including a first loss value and an additional loss value based on mutual information, context-based prediction, or sentence-based prediction;
identifying an image editing command based on the set of word labels; and
editing the image based on the image editing command.

### Claim 17 (depends on 16)

The method of claim 16, wherein:
the set of word labels includes an action label, an object label, an attribute label, or a value label.

### Claim 18 (depends on 16)

The method of claim 16, wherein:
the mutual information represents a loss value based on mutual information between word-based feature vectors and context-based feature vectors.

### Claim 19 (depends on 16)

The method of claim 16, wherein:
the context-based prediction represents a loss value based on max pooling over words in a text.

### Claim 20 (depends on 16)

The method of claim 16, wherein:
the sentence-based prediction represents a loss value based on a multi-label classification representing which labels are present in a text.
