Translating speech in a gender-aware manner
Abstract
A technique translates speech in a first language to text in a second language manner in a manner that is appropriate for the gender of the speaker. In some implementations, the technique receives an input setting that specifies one of three translation modes: masculine mode, feminine mode, and auto mode. The first two modes produce translations in masculine and feminine modes by default, respectively, while the auto mode produces translations in forms that are based on the detected characteristics of audio signals. According to some implementations, the technique uses a training framework that automatically converts a corpus of training examples that exhibit gender bias (e.g., a male gender bias) to training examples having a reducing incidence of gender bias. In some implementations, the training framework updates weights of the machine-trained model based on a combination of two loss components: translation loss and gender loss.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method for training a machine-trained model for translating speech comprising: receiving original training examples that include audio signals containing speech in a first language by speakers, first-language textual transcripts of the audio signals, and second-language textual transcripts of translations of the audio signals in a second language that is different than the first language; producing converted training examples by detecting and then correcting instances of gender bias in the second-language textual transcripts, the instances of gender bias having second-language transcripts having gender forms that do not match audio characteristics of associated audio signals and genders of the speakers; and training parameters of the machine-trained model, based on the converted training examples, by minimizing loss that is a combination of translation loss that expresses accuracy at which the machine-trained model produces translations, and gender loss that expresses accuracy at which the machine-trained model detects a gender.
- Claim 2Depends on #1
The method of claim 1, wherein the producing converted training examples includes, for a particular original training example that includes an audio signal, a first-language textual transcript, and a second-language textual transcript that conveys an original translation of the audio signal: determining that the first-language textual transcript and/or the second-language textual transcript includes a characteristic that renders the particular first training example capable of gender bias; generating a modified translation using a machine-trained language model based on a gender assumption that is different than a gender assumption that is used to produce the original translation; detecting a gender associated with the audio signal; and producing a converted training example based on the modified translation and the gender that is detected.
- Claim 3Depends on #2
The method of claim 2, wherein the determining concludes that the first-language textual transcript and/or the second-language textual transcript is capable of gender bias because the first-language textual transcript and/or the second-language textual transcript includes a first-person pronoun.
- Claim 4Depends on #2
The method of claim 2, wherein the determining concludes that the first-language textual transcript and/or the second-language textual transcript is capable of gender bias based on analysis performed by the machine-trained language model or another machine-trained language model.
- Claim 5Depends on #2
The method of claim 2, wherein the converted training example includes a set of second-language textual transcripts, including: a male-masculine textual transcript that uses a masculine form for a state in which the audio signal has male characteristics; a male-feminine textual transcript that uses a feminine form for a state in which the audio signal has male characteristics; a female-feminine textual transcript that uses the feminine form for a state in which the audio signal has the female characteristics; and a female-masculine textual transcript that uses the masculine form for a state in which the audio signal has the female characteristics.
- Claim 6Depends on #1
The method of claim 1, wherein the producing converted training examples includes, for a particular original training example that includes an audio signal that expresses speech in the first language, a first-language textual transcript, and a second-language textual transcript that conveys an original translation of the audio signal: determining that the first-language textual transcript and/or second-language textual transcript has a characteristic that indicates that the particular first training example is free of gender bias; and producing a converted training example that includes: a male-neutral textual transcript that uses a gender-neutral form for a state in which the audio signal has male characteristics; and a female-neutral textual transcript that uses a gender-neutral form for a state in which the audio signal has female characteristics.
- Claim 7Depends on #1
The method of claim 1, wherein the training of the parameters of the machine-trained model comprises, for a particular converted training example having an audio signal that expresses speech in the first language, a ground-truth second-language textual transcript, and a ground-truth input gender: producing feature information associated with the audio signal; converting the feature information into a model-generated second-language textual transcript using the machine-trained model; comparing the model-generated second-language textual transcript with the ground-truth second-language textual transcript, to produce an instance of the translation loss; converting the feature information associated with the audio signal into a model-generated input gender; comparing the model-generated input gender with the ground-truth input gender, to produce an instance of the gender loss; and updating the parameters of the machine-trained model based on a combination of the translation loss and gender loss.
- Claim 8Depends on #1
The method of claim 1, wherein the machine-trained model includes an encoder for producing encoder output information, and a decoder for producing decoder output information based on the encoder output information, and wherein the translation loss is produced based on the decoder output information, and the gender loss is produced based on the encoder output information.
- Claim 9Depends on #8
The method of claim 8, wherein the gender loss is produced by a machine-trained classification model that operates on the encoder output information.
- Claim 10Depends on #1
The method of claim 1, wherein the training of the parameters of the machine-trained model comprises, for a particular converted training example having an audio signal and a gender preference signal that identifies a translation mode selected from among a set of translation modes: producing feature information based on the audio signal and the gender preference signal; and converting the feature information into a second-language textual transcript using the machine-trained model, the parameters of the machine-trained model being capable of producing translations in the different translation modes, including: a first translation mode for producing first translations in masculine form irrespective of characteristics of audio signals that are input to the machine-trained model; a second translation mode for producing second translations in feminine form irrespective of characteristics of the audio signals, and a third translation mode for producing a mix of masculine and feminine forms based on the characteristics of the audio signals.
- Claim 11Depends on #10
The method of claim 10, wherein the training of the parameters of the machine-trained model comprises processing a sequence of converted training examples that are associated with different translation modes.
- Claim 12Independent Claim
A computing system for translating speech, comprising: an instruction data store for storing computer-readable instructions; and a processing system for executing the computer-readable instructions in the data store, to perform operations including: receiving an audio signal from an audio signal source that captures speech in a first language; receiving a gender preference signal that identifies a translation mode selected from among a set of translation modes; producing feature information based on the audio signal and the gender preference signal; converting the feature information into a translation of the speech in the audio signal in a second language that is different than the first language using a machine-trained model; and generating output information that includes the translation, the machine-trained model including machine-trained parameters that are capable of producing translations in the different translation modes, including: a first translation mode for producing first translations in masculine form irrespective of characteristics of audio signals; a second translation mode for producing second translations in feminine form irrespective of characteristics of the audio signals, and a third translation mode for producing a mix of masculine and feminine forms based on the characteristics of the audio signals.
- Claim 13Depends on #12
The computing system of claim 12, wherein the audio signal source is a microphone that captures real-time audio signals from speech, or a media item that includes the audio signals as one component thereof.
- Claim 14Depends on #12
The computing system of claim 12, wherein the output information includes a modified media item that provides a second-language textual transcript of the translation as a caption to visual information.
- Claim 15Depends on #12
The computing system of claim 12, wherein the feature information includes plural frames of feature information, each frame having first feature information that expresses the audio signal combined with second feature information that expresses the gender preference signal.
- Claim 16Depends on #12
The computing system of claim 12, wherein the parameters of the machine-trained model are produced by minimizing loss that is a combination of translation loss that expresses accuracy at which the machine-trained model produces translations, and gender loss that expresses accuracy at which the machine-trained model detects a gender associated with a particular audio signal that has been received in the third translation mode.
- Claim 17Independent Claim
A computer-readable storage medium for storing computer-readable instructions, a processing system executing the computer-readable instructions to perform operations, the operations comprising: producing feature information associated with an audio signal that includes speech in a first language; converting the feature information into a model-generated second-language textual transcript using a machine-trained model, the model-generated second-language textual transcript being expressed in a second language that is different than the first language; comparing the model-generated second-language textual transcript with a ground-truth second-language textual transcript, to produce a translation loss; converting the feature information associated with the audio signal into a model-generated input gender; comparing the model-generated input gender with a ground-truth input gender, to produce a gender loss; and updating parameters of the machine-trained model based on a combination of the translation loss and gender loss.
- Claim 18Depends on #17
The computer-readable storage medium of claim 17, wherein the machine-trained model includes an encoder for producing encoder output information, and a decoder for producing decoder output information based on the encoder output information, and wherein the translation loss is produced based on the decoder output information, and the gender loss is produced based on the encoder output information.
- Claim 19Depends on #18
The computer-readable storage medium of claim 18, wherein the gender loss is produced by a machine-trained classification model that operates on the encoder output information.
- Claim 20Depends on #17
The computer-readable storage medium of claim 17, wherein the feature information includes first feature information that expresses the audio signal combined with second feature information that expresses a gender preference signal.
Technical Overview & Description
BACKGROUND Machine-trained models are now available for translating speech expressed in a first language to text or speech expressed in a second language. These kinds of machine-trained models, however, produce output results of uneven quality for different types of speakers. SUMMARY Many languages express the same message in different ways depending on the genders of the people who speak the message. Existing machine-trained models do not adequately handle these kinds of complications. A technique is described herein for addressing this shortcoming by translating speech in a first natural language to text in a second natural language in a manner that is appropriate for the gender of the speaker. The gender is either fixed by an input setting (in a masculine or feminine translation mode) or is automatically detected (in an auto translation mode). According to some implementations, the technique is used to translate speech based on audio signals captured by a microphone. In other implementations, the technique is used to translate speech based on recorded audio content in a media item (e.g., a video item), for instance, for use in producing a close captioned presentation. In either case, the technique is able to produce translations with low latency, enabling the real-time presentation of the translations as speech is captured or streamed. In some implementations, the technique uses a single end-to-end machine-trained model. The technique is more efficient to develop, maintain, and run compared to hybrid approaches that use a combination of different models. For example, the technique is more efficient than a cascaded approach that uses a speech recognition model in series with a translation model. The technique is also more efficient than a technique that relies on plural models dedicated to different translation modes. According to some implementations, the technique uses a training framework that automatically converts a corpus of training examples that exhibit ge
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 (12)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,254,271 B1 | Natural language processing using language neutral verb expression patterns | 2025 | 2 |
Non-Patent Literature (10)
- Zhang, et al.,
- “
- Transformer Transducer: A Streamable Speech Recognition Model with Transformer Encoders and RNN-T Loss,
- ”
- arXiv, arXiv:2002.02562v2 [eess.AS], Feb. 14, Feb. 2020, 5 pages.
- Elaraby, et al.,
- “
- Gender Aware Spoken Language Translation Applied to English-Arabic,
- ”
- arXiv, arXiv:1802.09287 [cs.CL], Feb. 26, 2018, 11 pages.