Training methods for language models using data generation and reinforcement learning
Abstract
The disclosed method generates helpful training data for a language model, for example, a model implementing a punctuation restoration task, for real-world ASR texts. The method uses a reinforcement learning method using a generative AI model to generate additional data to train the language model. The method allows the generative AI model to learn from real-world ASR text to generate more effective training examples based on gradient feedback from the language model.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method, comprising: sampling seed text from a topic-specific unsupervised dataset; receiving the seed text by a generative model as input; producing generated text using the generative model based on the seed text to control a topic of the generated text; combining the generated text with training text sampled from a training dataset to form combined text; updating a language model with the combined text, wherein the language model is a punctuation restoration model to generate punctuated text from an input of unpunctuated text; obtaining a first gradient from the updated language model based on test text sampled from a development dataset; obtaining a second gradient from the updated language model based on the generated text; computing, based on a similarity comparison of the first gradient and the second gradient, a reward based on effectiveness of the generated text as training data for the updated language model indicated by alignment of the first gradient with the second gradient; and adjusting the generative model using the reward.
- Claim 2Depends on #1
The method of claim 1, wherein the generated text is synthetic labeled data comprising punctuated text in a style of spoken speech.
- Claim 3Depends on #1
The method of claim 1, further comprising training the language model with the combined text based on a cross-entropy loss function.
- Claim 4Depends on #1
The method of claim 1, wherein the reward is computed by combining the first gradient and the second gradient using cosine similarity scores.
- Claim 5Depends on #1
The method of claim 1, wherein the reward is computed for each of a plurality of test texts sampled from the development dataset to create a respective reward for each of the plurality of test texts.
- Claim 6Depends on #1
The method of claim 1, wherein the first gradient represents an average gradient of the updated language model over a sampled subset of the development dataset and the second gradient represents an average gradient of the updated language model over the generated text for each training iteration.
- Claim 7Depends on #1
The method of claim 1, further comprising augmenting the training dataset by adding noise indicative of spoken text to the training dataset.
- Claim 8Depends on #1
The method of claim 1, further comprising performing punctuation restoration operations for text generated by an automatic speech recognition system using the language model.
- Claim 9Depends on #1
The method of claim 1, wherein the language model and the generative model are iteratively updated over a plurality of iterations, and the updated language model from a current iteration is used as the language model in a next iteration.
- Claim 10Depends on #1
The method of claim 1, wherein the generative model is trained to generate punctuated text in a style of spoken speech, and the generated text is converted to labeled data for training the language model.
- Claim 11Independent Claim
A system, comprising: a memory component; and one or more processing devices coupled to the memory component, the one or more processing devices to perform operations comprising: input a seed text to a generative model from a topic-specific unsupervised dataset; receive generated text produced by the generative model based on the seed text to control a topic of the generated text; combine the generated text with training text sampled from a training dataset; update a language model with a combination of the generated text and the training text, wherein the language model is a punctuation restoration model to generate punctuated text from an input of unpunctuated text; obtain a first gradient from the updated language model based on one or more samples of text extracted from a development dataset; obtain a second gradient from the updated language model based on the generated text; compute, based on a similarity comparison of the first gradient and the second gradient, a reward based on effectiveness of the generated text as training data for the updated language model indicated by alignment of the first gradient with the second gradient; and adjust the generative model using the reward.
- Claim 12Depends on #11
The system of claim 11, wherein the generated text is synthetic labeled data comprising punctuated text in a style of spoken speech.
- Claim 13Depends on #11
The system of claim 11, the one or more processing devices to combine the training text and the generated text in equal portions.
- Claim 14Depends on #11
The system of claim 11 wherein the reward is computed for each of the one or more samples of text extracted from the development dataset to create a respective reward for each sample.
- Claim 15Depends on #11
The system of claim 11, wherein the generative model comprises a generative pre-trained transformer model that generates the generated text by predicting a next word following the seed text.
- Claim 16Independent Claim
A non-transitory computer-readable medium storing executable instructions, which when executed by one or more processing devices, cause the one or more processing devices to perform operations comprising: sample seed text from a topic-specific unsupervised dataset; receive the seed text by a generative model as input; produce generated text using the generative model based on the seed text to control a topic of the generated text; update a language model with a combination of the generated text and training text sampled from a training dataset, wherein the language model is a punctuation restoration model to generate punctuated text from an input of unpunctuated text; obtain a first gradient from the updated language model based on one or more samples of text extracted from a development dataset; obtain a second gradient from the updated language model based on the generated text; compute, based on a similarity comparison of the first gradient and the second gradient, a reward based on effectiveness of the generated text as training data for the updated language model indicated by alignment of the first gradient with the second gradient; and adjust the generative model using the reward.
- Claim 17Depends on #16
The non-transitory computer-readable medium of claim 16, wherein the reward is based on a cosine similarity of the first gradient and the second gradient.
- Claim 18Depends on #16
The non-transitory computer-readable medium of claim 16, wherein the first gradient and the second gradient are each based on a cross-entropy loss of the updated language model.
- Claim 19Depends on #16
The non-transitory computer-readable medium of claim 16, comprising instructions, which when executed by one or more processing devices, cause the one or more processing devices to augment the training dataset by adding noise indicative of spoken text to the training dataset.
- Claim 20Depends on #16
The non-transitory computer-readable medium of claim 16, wherein the language model implements punctuation restoration as a sequence labeling task in which each punctuation symbol is a label predicted by the language model.
Technical Overview & Description
BACKGROUND To improve the readability of text generated by automatic speech recognition (ASR) systems both for human consumption and for downstream natural language processing tasks, punctuation restoration (PR) is often used as an ASR post-processing step. Punctuation restoration is typically implemented using a deep learning artificial intelligence (AI) or machine learning (ML) model to restore the syntactic structure of ASR text to improve its readability. One problem with models implementing the punctuation restoration function is the lack of effective training data for use in training the model. While punctuated texts are abundant from written documents, discrepancies between written punctuated text and golden ASR text limits the usability of written texts for purposes of training punctuation restoration models for ASR texts. SUMMARY Exemplary embodiments are generally directed to improvements in training methods for PR models. The improvements are realized by improving the training data used to train the PR models. The training data comprises punctuated text similar to text that would be generated by a PR model on an input of unpunctuated text from an ASR model. In an exemplary embodiment, the PR task is implemented using a sequence labeling language model. Using sequence labeling, each punctuation symbol becomes a label (e.g., period, comma, question mark) that is predicted by the trained sequence labeling model. The sequence labeling model is typically trained using unpunctuated text passages, wherein a loss is calculated based on a difference between the unpunctuated text passages and ground truth, punctuated versions of the text passages. Publicly available corpora of training texts are used to pretrain the PR model. In other embodiments, other types of AI/ML models are used to predict the placement of punctuation. A generative AI model, for example, generative pre-trained transformer (GPT) such as GPT2, generates additional training text to augment the se
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (4)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Radford et al.,
- “
- Improving Language Understanding by Generative Pre-Training
- ”
- 2018.
- Shi et al.,
- “
- Incorporating External POS Tagger for Punctuation Restoration
- ”
- arXiv:2106.06731v1 [cs.CL] Jun. 12, 2021.