IP Library › Granted Patent US 12,361,230
Granted Patent B2
US 12,361,230 · App. 18/074,153 · Granted Jul 15, 2025

Method and server for performing domain-specific translation

Inventors: Dmitry Viktorovich Emelyanenko (d. Goluboye, RU); Maksim Konstantinovich Ryabinin (Kirov, RU)
Assignee: Y.E. Hub Armenia LLC
G06F40/58G06F40/166G06F40/284G06N3/08
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,361,230
App. No.
18/074,153
Granted
Jul 15, 2025
Kind
B2
Abstract

Method and server for performing domain-specific translation of sentences. The method includes generating, by the server, an augmented sequence of input tokens based on an input sentence in the first language and a hint inserted into the input sentence. The method includes iteratively generating, using the NN, a sequence of output tokens based on the augmented sequence of input tokens. The method includes generating a second sentence in the second language using the sequence of output tokens, the second sentence including the domain-specific translation of the given input word.

Claims (33)

1. A method of training, by at least one server comprising at least one memory and at least one processor, a transformer model for performing translation from a first language to a second language, the transformer model having an encoder and a decoder, the at least one server executing the transformer model, the method comprising:

during a training phase:

generating, by the at least one server, an augmented sequence of first tokens based on a first sentence in the first language and a first hint inserted into the first sentence,

the first sentence having a first word, the first word being represented in the augmented sequence of first tokens as a given first token, the first hint being represented in the augmented sequence of first tokens as a first start token and a first end token,

the first start token being inserted at a position preceding the given first token and the first end token being inserted at a position following the given first token for identifying which first token in the augmented sequence of first tokens is the given first token;

generating, by the at least one server, an augmented sequence of second tokens based on a second sentence in the second language and a second hint inserted into the second sentence, the second sentence being a translation of the first sentence,

the second sentence having a second word, the second word being a domain-specific translation of the first word, the second word being represented in the augmented sequence of second tokens as a given second token, the second hint being represented in the augmented sequence of second tokens as a second start token and a second end token,

the second start token being inserted at a position preceding the given second token and the second end token being inserted at a position following the given second token for identifying which second token in the augmented sequence of second tokens is the given second token;

training, by the at least one server, the transformer model by providing the augmented sequence of first tokens to the encoder and the augmented sequence of second tokens to the decoder, so as to train the decoder to generate an output start token and an output end token at correct positions in a sequence of output tokens.

2. The method of claim 1 , wherein the method further comprises, during an in-use phase of the transformer model:

iteratively generating, by the at least one server using the transformer model, an augmented sequence of output tokens based on an augmented sequence of input tokens, and during the iteratively generating:

in response to generating an output start token in a sequence of output tokens during a given iteration, applying a constraining condition on a then-next output token to be generated by the transformer model for the augmented sequence of output tokens such that the then-next output token is a domain-specific translation represented as a token;

in response to generating the output end token during another given iteration, stopping the applying the constraining condition on a then-output next token to be generated by the transformer model; and

generating, by the at least one server, a sentence in the second language using the augmented sequence of output tokens.

3. The method of claim 2 , wherein

applying the constraining condition on the then-next output token comprises identifying a plurality of domain-specific translations of an input word corresponding to the augmented sequence of input tokens and wherein the then-next output token corresponds to one of the plurality of domain-specific translations.

4. The method of claim 3 , wherein the plurality of the domain-specific translations of the input word includes grammatical variants of the input word.

5. A server for training a transformer model for performing translation from a first language to a second language, the transformer model having an encoder and a decoder, the server running the transformer model, the server comprising at least one processor and memory comprising executable instructions, which, when executed by the at least one processor, cause the server to:

during a training phase:

generate an augmented sequence of first tokens based on a first sentence in the first language and a first hint inserted into the first sentence,

the first sentence having a first word, the first word being represented in the augmented sequence of first tokens as a given first token, the first hint being represented in the augmented sequence of first tokens as a first start token and a first end token,

the first start token being inserted at a position preceding the given first token and the first end token being inserted at a position following the given first token for identifying which first token in the augmented sequence of first tokens is the given first token;

generate an augmented sequence of second tokens based on a second sentence in the second language and a second hint inserted into the second sentence, the second sentence being a translation of the first sentence,

the second sentence having a second word, the second word being a domain-specific translation of the first word, the second word being represented in the augmented sequence of second tokens as a given second token, the second hint being represented in the augmented sequence of second tokens as a second start token and a second end token,

the second start token being inserted at a position preceding the given second token and the second end token being inserted at a position following the given second token for identifying which second token in the augmented sequence of second tokens is the given second token;

train the transformer model by providing the augmented sequence of first tokens to the encoder and the augmented sequence of second tokens to the decoder, so as to train the decoder to generate an output start token and an output end token at correct positions in a sequence of output tokens.

6. The server of claim 5 , wherein the executable instructions further cause the server to, during an in-use phase of the transformer model:

iteratively generate, using the transformer model, an augmented sequence of output tokens based on an augmented sequence of input tokens, and during the iteratively generating:

in response to generating an output start token in the sequence of output tokens during a given iteration, apply a constraining condition on a then-next output token to be generated by the transformer model for the augmented sequence of output tokens such that the then-next output token is a domain-specific translation represented as a token;

in response to generating the output end token during another given iteration, stop the applying the constraining condition on a then-output next token to be generated by the transformer model; and

generate a second sentence in the second language using the augmented sequence of output tokens.

7. The server of claim 6 , wherein the instructions that cause the server to apply the constraining condition comprise instructions that cause the server to identify a plurality of domain-specific translations of an input word corresponding to the augmented sequence of input tokens.

8. The server of claim 7 , wherein the plurality of the domain-specific translations of the input word includes grammatical variants of the input word.

Assignments (5)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 9, 2024
From: DIRECT CURSUS TECHNOLOGY L.L.C
To: Y.E. HUB ARMENIA LLC
Reel/Frame 068534/0818 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 15, 2023
From: YANDEX EUROPE AG
To: DIRECT CURSUS TECHNOLOGY L.L.C
Reel/Frame 065692/0720 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 2, 2022
From: EMELYANENKO, DMITRY VIKTOROVICH; RYABININ, MAKSIM KONSTANTINOVICH
To: YANDEX.TECHNOLOGIES LLC
Reel/Frame 061960/0080 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 2, 2022
From: YANDEX.TECHNOLOGIES LLC
To: YANDEX LLC
Reel/Frame 061960/0155 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 2, 2022
From: YANDEX LLC
To: YANDEX EUROPE AG
Reel/Frame 061960/0336 →
Priority Claims (1)
RU RU2021135477 · Dec 2, 2021 · national
Continuity (1)
Related Publication 20230177282A1 · Jun 8, 2023
References Cited (26)
US 7680647B2 · Moore · 2010 [cited by applicant]
US 8825469B1 · Duddu et al. · 2014 [cited by applicant]
US 9311299B1 · Petrov et al. · 2016 [cited by applicant]
US 9552353B2 · Markman et al. · 2017 [cited by applicant]
US 9606987B2 · Bao et al. · 2017 [cited by applicant]
US 10635753B2 · Shin · 2020 [cited by examiner]
US 10769387B2 · Wang et al. · 2020 [cited by applicant]
US 20110137636A1 · Srihari et al. · 2011 [cited by applicant]
US 20140330551A1 · Bao et al. · 2014 [cited by applicant]
US 20170323203A1 · Matusov et al. · 2017 [cited by applicant]
US 20170364512A1 · Han et al. · 2017 [cited by applicant]
US 20180052829A1 · Lee · 2018 [cited by examiner]
US 20200117861A1 · Bradbury · 2020 [cited by applicant]
US 20200233927A1 · Berger et al. · 2020 [cited by applicant]
US 20210019373A1 · Freitag et al. · 2021 [cited by applicant]
JP 2019036093A · 2019 [cited by applicant]
RU 2357285C2 · 2009 [cited by applicant]
RU 2692049C1 · 2019 [cited by applicant]
Exel et al.,“Terminology-Constrained Neural Machine Translation at SAP”, Published in 2020, https://aclanthology.org/2020.eamt-1.29.pdf. [cited by applicant]
Dinu et al.,“Training Neural Machine Translation To Apply Terminology Constraints”, Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, Jul. 28-Aug. 2, 2019, pp. 306… [cited by applicant]
Alkhouli et al.,“On The Alignment Problem In Multi-Head Attention-Based Neural Machine Translation”, Proceedings of the Third Conference on Machine Translation (WMT), vol. 1: Research Papers, pp. 177-185, Belgium, Bruss… [cited by applicant]
Post et al.,“Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translation”, Proceedings of NAACL-HLT 2018, pp. 1314-1324, New Orleans, Louisiana, Jun. 1-6, 2018, https://aclanthology.o… [cited by applicant]
Kai et al.,“Alignment-Enhanced Transformer for Constraining NMT with Pre-Specified Translations”, The Thirty-Fourth AAAI Conference on Artificial Intelligence (AAAI-20), Published in 2020, https://ojs.aaai.org/index.php… [cited by applicant]
Lena Voita, “Sequence to Sequence (seq2seq) and Attention”, retrieved on the Internet on Dec. 30, 2021 https://lena-voita.github.io/nlp_course seq2seq_and_attention.html. [cited by applicant]
Russian Search Report dated Nov. 28, 2023 issued in respect of the counterpart Russian Patent Application No. RU 2021138713. [cited by applicant]
Office Action issued on Mar. 12, 2025 in respect of the related U.S. Appl. No. 18/087,110. [cited by applicant]