# US 2025/0378339 A1 · Self-Supervised Learning for User Modeling

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

- Number: US 2025/0378339 A1
- Document ID: US20250378339A1
- Status: Published application
- Kind: A1
- Application number: 18/737,670
- Filed: 2024-06-07
- Published: 2025-12-11
- Earliest claimed: 2024-06-07
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Lin Ning; Zhengyi Wu; Karan Singhal; Philip Andrew Mansfield; Devora Berlowitz; Sushant Prakash; Bradley Ray Green; Yuhan Liu
- Web page: https://patentgrep.com/patent/US20250378339A1

## CPC

- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/045: Combinations of networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Provided are systems and methods for performing self-supervised learning (SSL) of user sequence representations. In particular, an example method can include obtaining sequences of user feature data, applying various augmentation techniques such as random masking or permutation, and then processing these through a user sequence model to generate embeddings. These embeddings can be further transformed by a projection network, and a correlation-based loss function, such as the Barlow Twins loss, can be used to refine the model parameters.

## Claims

### Claim 1

A computer-implemented method to perform self-supervised learning of user representations, the method comprising:
obtaining, by a computing system comprising one or more computing devices, a sequence of feature data associated with a user;
performing, by the computing system, one or more first augmentation operations on the sequence of feature data to generate a first augmented sequence of feature data;
performing, by the computing system, one or more second augmentation operations on the sequence of feature data to generate a second augmented sequence of feature data;
respectively processing, by the computing system, the first augmented sequence and the second augmented sequence with a user sequence model to respectively obtain a first sequence embedding and a second sequence embedding as respective outputs of the user sequence model;
respectively processing, by the computing system, the first sequence embedding and the second sequence embedding with a projection network to respectively obtain a first projected representation and a second projected representation as respective outputs of the projection network;
evaluating, by the computing system, a loss function that measures a correlation between the first projected representation and the second projected representation; and
modifying, by the computing system, one or more values of one or more parameters of at least the user sequence model based on the loss function.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein respectively processing, by the computing system, the first augmented sequence and the second augmented sequence with the user sequence model comprises:
respectively converting, by the computing system using an embedding layer of the user sequence model, the first augmented sequence and the second augmented sequence into a first embedding vector and a second embedding vector; and
respectively processing, by the computing system, the first embedding vector and the second embedding vector with a representation network of the user sequence model to respectively obtain the first sequence embedding and the second sequence embedding as the respective outputs of the user sequence model.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the sequence of feature data associated with the user comprises a sequence of actions taken by the user.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the sequence of feature data associated with the user comprises a content items viewed by the user.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the at least one of the one or more first augmentation operations or the one or more second augmentation operations comprises a random masking operation in which at least one item in the sequence of feature data is replaced with a mask token.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the at least one of the one or more first augmentation operations or the one or more second augmentation operations comprises a segment masking operation in which a subsequence of at least two adjacent items in the sequence of feature data is replaced with mask tokens.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the at least one of the one or more first augmentation operations or the one or more second augmentation operations comprises a permutation operation in which at least two items in the sequence of feature data are permuted.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the loss function comprises a Barlow Twins loss function.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, further comprising, after said modifying, deploying the user sequence model to generate sequence-level embeddings for other sequences of user data for a downstream task.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein the downstream task comprises sequence-level classification.

### Claim 11 (depends on 9)

The computer-implemented method of claim 9, wherein the downstream task comprises next item prediction.

### Claim 12

A computing system configured to perform self-supervised learning of a user sequence model, the computing system comprising one or more processors and one or more non-transitory computer-readable media that store instructions for performing operations, the operations comprising:
obtaining, by the computing system, a sequence of feature data associated with a user;
performing, by the computing system, one or more first augmentation operations on a sequence of feature data to generate a first augmented sequence of feature data;
performing, by the computing system, one or more second augmentation operations on the sequence of feature data to generate a second augmented sequence of feature data;
respectively processing, by the computing system, the first augmented sequence and the second augmented sequence with the user sequence model to respectively obtain a first sequence embedding and a second sequence embedding as respective outputs of the user sequence model;
respectively processing, by the computing system, the first sequence embedding and the second sequence embedding with a projection network to respectively obtain a first projected representation and a second projected representation as respective outputs of the projection network;
evaluating, by the computing system, a loss function that measures a correlation between the first projected representation and the second projected representation; and
modifying, by the computing system, one or more values of one or more parameters of at least the user sequence model based on the loss function.

### Claim 13 (depends on 12)

The computing system of claim 12, wherein respectively processing, by the computing system, the first augmented sequence and the second augmented sequence with the user sequence model comprises:
respectively converting, by the computing system using an embedding layer of the user sequence model, the first augmented sequence and the second augmented sequence into a first embedding vector and a second embedding vector; and
respectively processing, by the computing system, the first embedding vector and the second embedding vector with a representation network of the user sequence model to respectively obtain the first sequence embedding and the second sequence embedding as the respective outputs of the user sequence model.

### Claim 14 (depends on 12)

The computing system of claim 12, wherein the sequence of feature data associated with the user comprises a sequence of actions taken by the user.

### Claim 15 (depends on 12)

The computing system of claim 12, wherein the sequence of feature data associated with the user comprises a content items viewed by the user.

### Claim 16 (depends on 12)

The computing system of claim 12, wherein the at least one of the one or more first augmentation operations or the one or more second augmentation operations comprises a random masking operation in which at least one item in the sequence of feature data is replaced with a mask token.

### Claim 17 (depends on 12)

The computing system of claim 12, wherein the at least one of the one or more first augmentation operations or the one or more second augmentation operations comprises a segment masking operation in which a subsequence of at least two adjacent items in the sequence of feature data is replaced with mask tokens.

### Claim 18 (depends on 12)

The computing system of claim 12, wherein the at least one of the one or more first augmentation operations or the one or more second augmentation operations comprises a permutation operation in which at least two items in the sequence of feature data are permuted.

### Claim 19 (depends on 12)

The computing system of claim 12, wherein the loss function comprises a Barlow Twins loss function.

### Claim 20

One or more non-transitory computer-readable media that collectively store a user sequence model, wherein the user sequence model has previously been machine-learned via performance of training operations, the training operations comprising:
obtaining, by a computing system comprising one or more computing devices, a sequence of feature data associated with a user;
performing, by the computing system, one or more first augmentation operations on a sequence of feature data to generate a first augmented sequence of feature data;
performing, by the computing system, one or more second augmentation operations on the sequence of feature data to generate a second augmented sequence of feature data;
respectively processing, by the computing system, the first augmented sequence and the second augmented sequence with the user sequence model to respectively obtain a first sequence embedding and a second sequence embedding as respective outputs of the user sequence model;
respectively processing, by the computing system, the first sequence embedding and the second sequence embedding with a projection network to respectively obtain a first projected representation and a second projected representation as respective outputs of the projection network;
evaluating, by the computing system, a loss function that measures a correlation between the first projected representation and the second projected representation; and
modifying, by the computing system, one or more values of one or more parameters of at least the user sequence model based on the loss function.
