# US 2021/0081728 A1 · Contextual grounding of natural language phrases in images

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

- Number: US 2021/0081728 A1
- Document ID: US20210081728A1
- Status: Published application
- Kind: A1
- Application number: 17/014,984
- Filed: 2020-09-08
- Published: 2021-03-18
- Earliest claimed: 2019-09-12
- Assignees: NEC Laboratories America, Inc.
- Applicants: NEC Laboratories America, Inc.
- Inventors: Farley LAI; Asim KADAV; Ning XIE
- Web page: https://patentgrep.com/patent/US20210081728A1

## CPC

- G06F 40/205: Parsing
- G06F 16/583: using metadata automatically derived from the content
- G06F 18/21: Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06V 10/255: {Detecting or recognising potential candidate objects based on visual cues, e.g. shapes}
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/768: {using context analysis, e.g. recognition aided by known co-occurring patterns}
- G06V 10/82: using neural networks
- G06V 20/00: Scenes; Scene-specific elements (control of digital cameras H04N23/60)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Aspects of the present disclosure describe systems, methods and structures providing contextual grounding—a higher-order interaction technique to capture corresponding context between text entities and visual objects.

## Claims

### Claim 1

A method for text-image retrieval including text and image branches, said method comprising:
receiving as input a text query and an image;
parsing the input text query into tokens and converting them to entity embedding vectors;
locating visual object candidates in the input image.
scoring correspondences between the entity embeddings and visual object candidates;
providing, visualized in a bounding box, the object corresponding to the query text entity with the highest probability score, to a user of the system.
wherein no specific embedding or object feature extraction is used in the method.

### Claim 2 (depends on 1)

The method of system of claim 1 further comprising:
pre-training the text branch utilizing a BERT, Bidirectional Encoder Representations from Transformers, base model.

### Claim 3 (depends on 2)

The method of claim 2 further comprising:
receiving, by the image branch, region of interest (RoI) features as input objects from an object detector.

### Claim 4 (depends on 3)

The method of claim 3 further comprising:
training, a two-layer multi-layer perceptron (MLP) to generate spatial embedding given absolute spatial information of the RoI location and size normalized to the entire image.

### Claim 5 (depends on 4)

The method of claim 4 further comprising:
adding, by both branches, positional and spatial embedding to tokens and RoIs respectively as input to a first interaction layer of the MLP.

### Claim 6 (depends on 5)

The method of claim 5 further comprising:
performing, at each layer of the MLP, self-attenuation by each hidden representation to each other to generate a new hidden representation as layer output.

### Claim 7 (depends on 6)

The method of claim 6 further comprising:
providing, at the end of each branch, a final hidden state to a ground head to provide cross-modal attention responses with text entity hidden states as queries and image object hidden representations as keys.

### Claim 8 (depends on 7)

The method of claim 7 wherein matching correspondences are determined from the attention responses.

### Claim 9 (depends on 8)

The method of claim 8 further comprising
back propagating a mean binary cross entropy loss per entity if the correspondence(s) does not match a ground truth.
