IP Library Granted Patent US 12,412,563
Granted Patent B2
US 12,412,563 · App. 17/988,125 · Granted Sep 9, 2025

Path dropout for natural language processing

Inventors: Thanh Tien Vu (Brisbane, AU); Tuyen Quang Pham (Melbourne, AU); Mark Edward Johnson (Sydney, AU); Thanh Long Duong (Melbourne, AU)
Assignee: Oracle International Corporation
G10L15/063G06F40/279G06F40/30G10L15/1815G10L15/22
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,412,563
App. No.
17/988,125
Granted
Sep 9, 2025
Kind
B2
Abstract

Techniques are provided for improved training of a machine-learning model that includes multiple layers and is configured to process textual language input. The machine-learning model includes one or more blocks in which each block includes a multi-head self-attention network, a first connection for providing input to the multi-head self-attention network, and a second (residual) connection for providing the input to a normalization layer, bypassing the multi-head self-attention network. During training, the second connection is dropped out according to a dropout parameter. Additionally, or alternatively, an attention weight matrix is used for dropout by blocking diagonal entries in the attention weight matrix. As a result, the machine-learning model increasingly focuses on contextual information, which provides more accurate language processing results.

Claims (60)

1. A computer-implemented method for training a machine learning model to process audio or textual language input, the method comprising:

accessing a machine-learning model, the machine-learning model including one or more blocks in which each block includes a multi-head self-attention network, a first connection for providing input to the multi-head self-attention network, and a second connection for providing the input to a normalization layer, bypassing the multi-head self-attention network;

accessing a training data set;

identifying a dropout parameter, wherein the dropout parameter is a dropout rate;

applying the dropout parameter to the second connection, wherein the second connection is a residual connection, and wherein applying the dropout parameter comprises dropping out the residual connection according to the dropout rate;

training the machine-learning model using the training data set to generate a trained machine-learning model, wherein the second connection is dropped out according to the dropout parameter;

inputting an utterance to the trained machine-learning model to identify an entity; and

based on the identified entity, preparing and providing a response to the utterance.

2. The method of claim 1 , wherein:

the machine learning model includes a plurality of attention heads, each attention head providing an output that is concatenated and multiplied by an attention weight matrix; and

the method further comprising dropping out diagonal entries in the attention weight matrix.

3. The method of claim 1 , wherein the dropout parameter is a hyperparameter of the machine-learning model, the method further comprising:

performing hypertuning to identify the dropout parameter.

4. The method of claim 1 , wherein, when the second connection is dropped out, the machine-learning model is caused to learn contextual information through multi-headed self-attention.

5. The method of claim 4 , wherein:

the training data set comprises one or more utterances, each utterance comprising one or more words that are labeled as an entity and one or more words that are not labeled as entities; and

the contextual information is determined based on the one or more words that are not labeled as entities.

6. The method of claim 1 , wherein providing the response to the utterance comprises providing audio output, via a speaker, responsive to the utterance.

7. The method of claim 1 , wherein providing the response to the utterance comprises providing text output, via a display, responsive to the utterance.

8. A system comprising:

one or more processors; and

a memory coupled to the one or more processors, the memory storing a plurality of instructions executable by the one or more processors, the plurality of instructions comprising instructions that when executed by the one or more processors cause the one or more processors to perform operations comprising:

accessing a machine-learning model, the machine-learning model including one or more blocks in which each block includes a multi-head self-attention network, a first connection for providing input to the multi-head self-attention network, and a second connection for providing the input to a normalization layer, bypassing the multi-head self-attention network;

accessing a training data set;

identifying a dropout parameter, wherein the dropout parameter is a dropout rate;

applying the dropout parameter to the second connection, wherein the second connection is a residual connection, and wherein applying the dropout parameter comprises dropping out the residual connection according to the dropout rate;

training the machine-learning model using the training data set to generate a trained machine-learning model, wherein the second connection is dropped out according to the dropout parameter;

inputting an utterance to the trained machine-learning model to identify an entity; and

based on the identified entity, preparing and providing a response to the utterance.

9. The system of claim 8 , wherein:

the machine learning model includes a plurality of attention heads, each attention head providing an output that is concatenated and multiplied by an attention weight matrix; and

the operations further comprise dropping out diagonal entries in the attention weight matrix.

10. The system of claim 8 , wherein:

the dropout parameter is a hyperparameter of the machine-learning model, and

the operations further comprise performing hypertuning to identify the dropout parameter.

11. The system of claim 8 , wherein:

when the second connection is dropped out, the machine-learning model is caused to learn contextual information through multi-headed self-attention.

12. The system of claim 11 , wherein:

the training data set comprises one or more utterances, each utterance comprising one or more words that are labeled as an entity and one or more words that are not labeled as entities; and

the contextual information is determined based on the one or more words that are not labeled as entities.

13. The system of claim 11 , wherein providing the response to the utterance comprises providing audio output, via a speaker, responsive to the utterance.

14. The system of claim 11 , wherein providing the response to the utterance comprises providing text output, via a display, responsive to the utterance.

15. A non-transitory computer-readable memory storing a plurality of instructions executable by one or more processors to cause the one or more processors to perform operations comprising:

accessing a machine-learning model, the machine-learning model including one or more blocks in which each block includes a multi-head self-attention network, a first connection for providing input to the multi-head self-attention network, and a second connection for providing the input to a normalization layer, bypassing the multi-head self-attention network;

accessing a training data set;

identifying a dropout parameter, wherein the dropout parameter is a dropout rate;

applying the dropout parameter to the second connection, wherein the second connection is a residual connection, and wherein applying the dropout parameter comprises dropping out the residual connection according to the dropout rate;

training the machine-learning model using the training data set to generate a trained machine-learning model, wherein the second connection is dropped out according to the dropout parameter;

inputting an utterance to the trained machine-learning model to identify an entity; and

based on the identified entity, preparing and providing a response to the utterance.

16. The non-transitory computer-readable memory of claim 15 , wherein:

the machine learning model includes a plurality of attention heads, each attention head providing an output that is concatenated and multiplied by an attention weight matrix; and

the operations further comprise dropping out diagonal entries in the attention weight matrix.

17. The non-transitory computer-readable memory of claim 15 , wherein:

the dropout parameter is a hyperparameter of the machine-learning model, and

the operations further comprise performing hypertuning to identify the dropout parameter.

18. The non-transitory computer-readable memory of claim 15 , wherein:

when the second connection is dropped out, the machine-learning model is caused to learn contextual information through multi-headed self-attention.

19. The non-transitory computer-readable memory of claim 15 , wherein providing the response to the utterance comprises providing audio output, via a speaker, responsive to the utterance.

20. The non-transitory computer-readable memory of claim 15 , wherein providing the response to the utterance comprises providing text output, via a display, responsive to the utterance.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 22, 2022
From: VU, THANH TIEN; PHAM, TUYEN QUANG; JOHNSON, MARK EDWARD; DUONG, THANH LONG
To: ORACLE INTERNATIONAL CORPORATION
Reel/Frame 061859/0579 →
Continuity (2)
Provisional Application 63280580 · Nov 17, 2021
Related Publication 20230154455A1 · May 18, 2023
References Cited (15)
US 20200034436A1 · Chen · 2020 [cited by examiner]
US 20220398434A1 · Lee · 2022 [cited by examiner]
US 20220405575A1 · Lee · 2022 [cited by examiner]
US 20230143484A1 · Zhuang · 2023 [cited by examiner]
CN 113139585A · 2021 [cited by applicant]
CN 110349676B · 2021 [cited by applicant]
Devlin et al., “Bert: Pre-training of Deep Bidirectional Transformers for Language Understanding”, Available online At: https://arxiv.org/abs/1810.04805, May 24, 2019, 16 pages. [cited by applicant]
Srivastava et al., “Dropout: A Simple Way to Prevent Neural Networks from Overfitting”, Journal of Machine Learning Research, vol. 15, Jun. 2014, pp. 1929-1958. [cited by applicant]
Vaswani et al., “Attention Is All You Need”, 31st Conference on Neural Information Processing Systems (NIPS 2017), Jun. 2017, 11 pages. [cited by applicant]
Venkatachalam , “Attention in Neural Networks”, Towards Data Science, Available online At: https://towardsdatascience.com/attention-in-neural-networks-e66920838742, Jul. 7, 2019, 15 pages. [cited by applicant]
Zhang et al., “Token Drop mechanism for Neural Machine Translation”, Proceedings of the 28th International Conference on Computational Linguistics, Dec. 8-13, 2020, pp. 4298-4303. [cited by applicant]
Larsson et al., FractalNet: Ultra-Deep Neural Networks without Residuals, 5th International Conference on Learning Representations (ICLR), Apr. 2017, 11 pages. [cited by applicant]
International Application No. PCT/US2022/050076, International Search Report and Written Opinion mailed on Mar. 15, 2023, 10 pages. [cited by applicant]
Wu et al., UniDrop: A Simple yet Effective Technique to Improve Transformer without Extra Cost, Available Online at: https://arxiv.org/abs/2104.04946, Apr. 2021, 14 pages. [cited by applicant]
Zhou et al., Scheduled DropHead: A Regularization Method for Transformer Models, Available Online at: https://arxiv.org/pdf/2004.13342v2.pdf, Nov. 2020, 10 pages. [cited by applicant]