IP Library Granted Patent US 12,461,993
Granted Patent B2
US 12,461,993 · App. 18/738,628 · Granted Nov 4, 2025

Parameter utilization for language pre-training

Inventors: Chen Xing (Palo Alto, CA); Wenhao Liu (Redwood City, CA); Chu Hong Hoi (Singapore, SG); Nitish Shirish Keskar (San Francisco, CA); Caiming Xiong (Menlo Park, CA)
Assignee: Salesforce, Inc.
G06F18/2148G06F18/2163G06F40/00
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,461,993
App. No.
18/738,628
Granted
Nov 4, 2025
Kind
B2
Abstract

Embodiments are directed to pre-training a transformer model using more parameters for sophisticated patterns (PSP++). The transformer model is divided into a held-out model and a main model. A forward pass and a backward pass are performed on the held-out model, where the forward pass determines self-attention hidden states of the held-out model and the backward pass determines loss of the held-out model. A forward pass on the main model is performed to determine a self-attention hidden states of the main model. The self-attention hidden states of the main model are concatenated with the self-attention hidden states of the held-out model. A backward pass is performed on the main model to determine a loss of the main model. The parameters of the held-out model are updated to reflect the loss of the held-out model and parameters of the main model are updated to reflect the loss of the main model.

Claims (63)

1 . A method for training a neural network model, the method comprising:

dividing the neural network model stored in a memory into a held-out model and a main model;

during a first forward pass on the held-out model, determining, using a training dataset comprising words in a natural language, held-out model hidden states from attention heads of the held-out model;

determining, a first loss based on the first forward pass and a first backward pass on the held-out model;

during a second forward pass on the main model:

determining, using the training dataset, main model hidden states from attention heads of the main model;

concatenating the held-out model hidden states and the main model hidden states into concatenated hidden states; and

propagating the concatenated hidden states through a subset of layers of the main model, wherein the concatenated hidden states cause the main model to recognize language patterns different from the held-out model;

determining a second loss based on the second forward pass and a second backward pass on the main model;

updating parameters of the held-out model based on the first loss; and

updating parameters of the main model based on the second loss.

2 . The method of claim 1 , wherein:

the neural network model is a transformer model; and

the attention heads are of the transformer model and are from a portion of a number of lower layers of the transformer model, wherein the number of layers is set using a hyperparameter.

3 . The method of claim 2 , wherein the number of lower layers of the transformer model is less than a total number of layers in the transformer model.

4 . The method of claim 2 , wherein the held-out model includes a first portion of the number of lower layers and the main model includes a second portion of the number of lower layers, wherein the first portion is different from the second portion.

5 . The method of claim 1 , wherein a parameter size of the held-out model is smaller than a parameter size of the main model.

6 . The method of claim 1 , wherein:

the held-out model includes a plurality of held-out models; and

the first loss includes a plurality of first losses based on forward passes of the respective held-out models of the plurality of held-out models.

7 . The method of claim 6 , wherein updating the parameters of the held-out model based on the first loss includes updating parameters of the plurality of held-out models based on the respective losses of the plurality of first losses.

8 . A system for training a neural network model, the system comprising:

a non-transitory memory configured to store the neural network model as a held-out model and a main model; and

one or more processors coupled to the non-transitory memory and configured to read instruction from the non-transitory memory to cause the system to perform operations comprising:

during a first forward pass on the held-out model, determining, using a training dataset comprising words in a natural language, held-out model hidden states from attention heads of the held-out model;

determining, a first loss based on the first forward pass and a first backward pass on the held-out model;

during a second forward pass on the main model:

determining, using the training dataset, main model hidden states from attention heads of the main model;

concatenating the held-out model hidden states and the main model hidden states into concatenated hidden states; and

propagating the concatenated hidden states through a subset of layers of the main model, wherein the concatenated hidden states cause the main model to recognize language patterns different from the held-out model;

determining a second loss based on the second forward pass and a second backward pass on the main model;

updating parameters of the held-out model based on the first loss; and

updating parameters of the main model based on the second loss.

9 . The system of claim 8 , wherein:

the neural network model is a transformer model; and

the attention heads are of the transformer model and are from a portion of a number of lower layers of the transformer model, wherein the number of layers is set using a hyperparameter.

10 . The system of claim 9 , wherein the number of lower layers of the transformer model is less than a total number of layers in the transformer model.

11 . The system of claim 9 , wherein the held-out model includes a first portion of the number of lower layers and the main model includes a second portion of the number of lower layers, wherein the first portion is different from the second portion.

12 . The system of claim 8 , wherein a parameter size of the held-out model is smaller than a parameter size of the main model.

13 . The system of claim 8 , wherein:

the held-out model includes a plurality of held-out models; and

the first loss includes a plurality of first losses based on forward passes of the respective held-out models of the plurality of held-out models.

14 . The system of claim 13 , wherein updating parameters of the held-out model based on the first loss includes updating parameters of the plurality of held-out models based on the respective losses of the plurality of first losses.

15 . A non-transitory, machine-readable medium having stored thereon machine-readable instructions executable to cause a system to perform operations comprising:

dividing a neural network model stored in memory into a held-out model and a main model;

during a first forward pass on the held-out model determining, using a training dataset comprising words in a natural language, held-out model hidden states from attention heads of the held-out model;

determining, a first loss based on the first forward pass and a first backward pass on the held-out model;

during a second forward pass on the main model:

determining, using the training dataset, main model hidden states from attention heads of the main model;

concatenating the held-out model hidden states and the main model hidden states into concatenated hidden states; and

propagating the concatenated hidden states through a subset of layers of the main model, wherein the concatenated hidden states cause the main model to recognize language patterns different from the held-out model;

determining a second loss based on the second forward pass on the main model;

updating parameters of the held-out model based on the first loss; and

updating parameters of the main model based on the second loss.

16 . The non-transitory machine-readable medium of claim 15 , wherein:

the neural network model is a transformer model; and

the attention heads are of the transformer model from a portion of a number of lower layers of the transformer model, wherein the number of layers is set using a hyperparameter.

17 . The non-transitory machine-readable medium of claim 16 , wherein the number of lower layers of the transformer model is less than a total number of layers in the transformer model.

18 . The non-transitory machine-readable medium of claim 16 , wherein the held-out model includes a first portion of the number of lower layers and the main model includes a second portion of the number of lower layers, wherein the first portion is different from the second portion.

19 . The non-transitory machine-readable medium of claim 15 , wherein a parameter size of the held-out model is smaller than a parameter size of the main model.

20 . The non-transitory machine-readable medium of claim 15 , wherein:

the held-out model includes a plurality of held-out models; and

the first loss includes a plurality of first losses based on forward passes of the respective held-out models of the plurality of held-out models.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 26, 2025
From: XING, CHEN; LIU, WENHAO; HOI, CHU HONG; KESKAR, NITISH SHIRISH; XIONG, CAIMING
To: SALESFORCE.COM, INC.
Reel/Frame 071538/0891 →
CHANGE OF NAME Recorded Jun 26, 2025
From: SALESFORCE.COM, INC.
To: SALESFORCE, INC.
Reel/Frame 071737/0475 →
Continuity (3)
Continuation 17532851 · Nov 22, 2021
Provisional Application 63194141 · May 27, 2021
Related Publication 20240330409A1 · Oct 3, 2024
References Cited (22)
US 8306818B2 · Chelba · 2012 [cited by examiner]
US 9152623B2 · Wroczyński · 2015 [cited by examiner]
US 9563854B2 · Cruz Mota · 2017 [cited by applicant]
US 10740433B2 · Dehghani · 2020 [cited by examiner]
US 11521075B2 · Clement · 2022 [cited by examiner]
US 11900261B2 · Clement · 2024 [cited by examiner]
US 11922303B2 · Liu · 2024 [cited by examiner]
US 11922305B2 · Ramachandran · 2024 [cited by applicant]
US 11941356B2 · Liu · 2024 [cited by examiner]
US 11972232B2 · Clement · 2024 [cited by examiner]
US 12072955B2 · Xing · 2024 [cited by examiner]
US 20210150340A1 · Liu · 2021 [cited by examiner]
US 20220129626A1 · Liu · 2022 [cited by applicant]
US 20220391640A1 · Xing · 2022 [cited by examiner]
US 20230042327A1 · Liu · 2023 [cited by applicant]
US 20230067364A1 · Clement · 2023 [cited by examiner]
US 20230419027A1 · Pang · 2023 [cited by applicant]
Devlin et al., “Bert: Pre-training of deep bidirectional transformers for language understanding.” arXivpreprint, arXiv:1810.04805, 2018. [cited by applicant]
Clark et al., “Electra: Pre-training text encoders as discriminators rather than generators.” In International Conference on Learning Representations, 2019. [cited by applicant]
He et al. “Deep residual learning for image recognition.” In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 770-778, 2016. [cited by applicant]
Ba et al., “Layer normalization.” arXiv preprint arXiv:1607.06450, 2016. [cited by applicant]
Vaswani et al., “Attention is all you need.” In Advances in Neural Information Processing Systems, pp. 5998-6008, 2017. [cited by applicant]