# US 2023/0274125 A1 · Learning observation representations by predicting the future in latent space

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

- Number: US 2023/0274125 A1
- Document ID: US20230274125A1
- Status: Published application
- Kind: A1
- Application number: 18/090,243
- Filed: 2022-12-28
- Published: 2023-08-31
- Earliest claimed: 2018-09-27
- Assignees: DeepMind Technologies Limited
- Applicants: DeepMind Technologies Limited
- Inventors: Aaron Gerard Antonius van den Oord; Yazhe Li; Oriol Vinyals
- Web page: https://patentgrep.com/patent/US20230274125A1

## CPC

- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F 18/2132: based on discrimination criteria, e.g. discriminant analysis
- G06F 18/22: Matching criteria, e.g. proximity measures
- 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/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 3/08: Learning methods
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/7715: {Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods}
- G06V 10/82: using neural networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for training an encoder neural network that is configured to process an input observation to generate a latent representation of the input observation. In one aspect, a method includes: obtaining a sequence of observations; for each observation in the sequence of observations, processing the observation using the encoder neural network to generate a latent representation of the observation; for each of one or more given observations in the sequence of observations: generating a context latent representation of the given observation; and generating, from the context latent representation of the given observation, a respective estimate of the latent representations of one or more particular observations that are after the given observation in the sequence of observations.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A method performed by one or more computers, the method comprising:
receiving an input observation; and
processing the input observation using an encoder neural network, in accordance with a plurality of encoder neural network parameters, to generate a latent representation of the input observation;
wherein the encoder neural network has been trained to optimize a loss function, wherein the loss function measures an error between:
(i) a latent representation of an observation that is after a first observation in a sequence of observations, wherein the latent representation of the observation is generated by processing the observation using the encoder neural network; and
(ii) a prediction for the latent representation of the observation;
wherein the prediction for the latent representation of the observation is generated based on a latent representation of a preceding observation that precedes the observation in the sequence of observations,
wherein the latent representation of the preceding observation is generated by processing the preceding observation using the encoder neural network.

### Claim 22 (depends on 21)

The method of claim 21, wherein the prediction for the latent representation of the observation is generated based on: (i) the latent representation of the preceding observation, and (ii) latent representations of one or more observations that are before the preceding observation in the sequence of observations.

### Claim 23 (depends on 22)

The method of claim 22, wherein the encoder neural network has been trained using gradients of the loss function with respect to the plurality of encoder neural network parameters.

### Claim 24 (depends on 23)

The method of claim 23, wherein the gradients of the loss function have been used to adjust values of the plurality of encoder neural network parameters.

### Claim 25 (depends on 21)

The method of claim 21, wherein the sequence of observations comprises a sequence of segments of an audio waveform.

### Claim 26 (depends on 21)

The method of claim 21, wherein the sequence of observations comprises a sequence of regions of a given image or a sequence of respective images.

### Claim 27 (depends on 21)

The method of claim 21, wherein the sequence of observations comprises a sequence of sentences in a natural language.

### Claim 28 (depends on 21)

The method of claim 21, wherein the encoder neural network is configured for use by a reinforcement learning system to generate latent representations of input observations of an environment which are used to select actions to be performed by a reinforcement learning agent to interact with the environment.

### Claim 29 (depends on 21)

The method of claim 21, wherein the encoder neural network comprises one or more convolutional neural network layers, and wherein a latent representation of an observation is a compressed representation of the observation.

### Claim 30 (depends on 21)

The method of claim 21, wherein the prediction for the latent representation of the observation is generated by determining a product between: (i) a context latent representation derived from the latent representation of the preceding observation, and (ii) a prediction parameter matrix.

### Claim 31 (depends on 30)

The method of claim 30, wherein the prediction parameter matrix is selected from among a plurality of prediction parameter matrices based on a number of observations separating: (i) the preceding observation, and (ii) the observation, in the sequence of observations.

### Claim 32 (depends on 21)

The method of claim 21, wherein the loss function comprises a noise contrastive estimation loss function.

### Claim 33 (depends on 21)

The method of claim 21, wherein the loss function measures an error between: (i) the latent representation of the observation, and (ii) the prediction for the latent representation of the observation, based on a similarity between the prediction for the latent representation of the observation and each of: (a) a positive example latent representation, and (b) one or more negative example latent representations;
wherein the positive example latent representation is a latent representation of a particular observation that is representative of the observation;
wherein the negative example latent representation is a latent representation of a specific observation that is not representative of the observation.

### Claim 34 (depends on 33)

The method of claim 33, wherein the loss function includes a ratio of:
the similarity between the prediction for the latent representation of the observation and the positive example latent representation, and
a sum of the respective similarities between the prediction for the latent representation of the observation and: (i) the positive example latent representation, and (ii) each of the one or more negative example latent representations.

### Claim 35 (depends on 34)

The method of claim 34, wherein:
the similarity between the prediction for the latent representation of the observation and the positive example latent representation comprises an exponential of a dot product between the prediction for the latent representation of the observation and the positive example latent representation; and
the similarity between the prediction for the latent representation of the observation and a negative example latent representation comprises an exponential of a dot product between the prediction for the latent representation of the observation and the negative example latent representation.

### Claim 36 (depends on 21)

The method of claim 21, wherein the prediction for the latent representation of the observation is generated by processing a context latent representation;
wherein the context latent representation is generated by processing the latent representation of the preceding observation and latent representations of one or more observations that are before the preceding observation in the sequence of observations using a context neural network in accordance with current values of context neural network parameters.

### Claim 37 (depends on 36)

The method of claim 36, wherein the context neural network has been jointly trained with the encoder neural network.

### Claim 38 (depends on 36)

The method of claim 36, wherein the context neural network comprises one or more recurrent neural network layers.

### Claim 39

A system comprising:
one or more computers; and
one or more storage devices communicatively coupled to the one or more computers, wherein the one or more storage devices store instructions that, when executed by the one or more computers, cause the one or more computers to perform operations comprising:
receiving an input observation; and
processing the input observation using an encoder neural network, in accordance with a plurality of encoder neural network parameters, to generate a latent representation of the input observation;
wherein the encoder neural network has been trained to optimize a loss function, wherein the loss function measures an error between:
(i) a latent representation of an observation that is after a first observation in a sequence of observations, wherein the latent representation of the observation is generated by processing the observation using the encoder neural network; and
(ii) a prediction for the latent representation of the observation;
wherein the prediction for the latent representation of the observation is generated based on a latent representation of a preceding observation that precedes the observation in the sequence of observations,
wherein the latent representation of the preceding observation is generated by processing the preceding observation using the encoder neural network.

### Claim 40

One or more non-transitory computer storage media storing instructions that when executed by one or more computers cause the one or more computers to perform operations comprising:
receiving an input observation; and
processing the input observation using an encoder neural network, in accordance with a plurality of encoder neural network parameters, to generate a latent representation of the input observation;
wherein the encoder neural network has been trained to optimize a loss function, wherein the loss function measures an error between:
(i) a latent representation of an observation that is after a first observation in a sequence of observations, wherein the latent representation of the observation is generated by processing the observation using the encoder neural network; and
(ii) a prediction for the latent representation of the observation;
wherein the prediction for the latent representation of the observation is generated based on a latent representation of a preceding observation that precedes the observation in the sequence of observations,
wherein the latent representation of the preceding observation is generated by processing the preceding observation using the encoder neural network.
