# US 2025/0148224 A1 · Techniques and Models for Multilingual Text Rewriting

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0148224 A1
- Document ID: US20250148224A1
- Status: Published application
- Kind: A1
- Application number: 19/015,153
- Filed: 2025-01-09
- Published: 2025-05-08
- Earliest claimed: 2022-02-28
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Xavier Eduardo Garcia; Orhan Firat; Noah Constant; Xiaoyue Guo; Parker Riley
- Web page: https://patentgrep.com/patent/US20250148224A1

## CPC

- G06F 40/30: Semantic analysis
- G06F 40/58: Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F 40/197: Version control (for software G06F8/71)
- G06F 40/253: Grammatical analysis; Style critique
- G06F 40/44: Statistical methods, e.g. probability models
- G06F 40/51: Translation evaluation
- G06F 40/56: Natural language generation
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/096: Transfer learning
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/09: Supervised learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The technology provides a model-based approach for multilingual text rewriting that is applicable across many languages and across different styles including formality levels or other textual attributes. The model is configured to manipulate both language and textual attributes jointly. This approach supports zero-shot formality-sensitive translation, with no labeled data in the target language. An encoder-decoder architectural approach with attribute extraction is used to train rewriter models that can thus be used in “universal” textual rewriting across many different languages. A cross-lingual learning signal can be incorporated into the training approach. Certain training processes do not employ any exemplars. This approach enables not just straight translation, but also the ability to create new sentences with different attributes.

## Claims

### Claim 1

A system configured for a multilingual text rewriting model, the system comprising:
memory configured to store a set of rewritten texts in a plurality of languages different from a source language; and
one or more processing elements operatively coupled to the memory, the one or more processing elements implementing a multilingual text rewriter as a neural network having:
a corruption module configured to generate a corrupted version of an input text sequence, the corruption module employing a corruption function that uses negation of an attribute vector associated with the input text sequence;
an encoder module comprising an encoder neural network configured to generate a set of encoded representations of the corrupted version of the input text sequence; and
a decoder module comprising a decoder neural network configured to output, based on the set of encoded representations of the corrupted version of the input text sequence, the set of rewritten texts in the plurality of languages.

### Claim 2 (depends on 1)

The system of claim 1, wherein the memory stores a set of text exemplars in the source language.

### Claim 3 (depends on 1)

The system of claim 1, further comprising a style extractor module configured to extract a set of style vector representations associated with the input text sequence.

### Claim 4 (depends on 3)

The system of claim 3, wherein the encoder module, the style extractor module and the decoder module are configured as transformer stacks initialized from a common pretrained language model.

### Claim 5 (depends on 3)

The system of claim 3, wherein the style extractor module includes a set of style extractor elements including a first subset configured to operate on different style exemplars and a second subset configured to operate on the input text sequence prior to corruption by the corruption module.

### Claim 6 (depends on 3)

The system of claim 3, wherein a set of model weights is shared by the encoder module and the style extractor module.

### Claim 7 (depends on 6)

The system of claim 6, wherein the set of model weights is initialized with weights of a pretrained text-to-text model.

### Claim 8 (depends on 6)

The system of claim 6, wherein model weights for the style extractor module are not tied to model weights of the encoder module during training.

### Claim 9 (depends on 1)

The system of claim 1, wherein both the encoder module and the decoder module are attention-based neural network modules.

### Claim 10 (depends on 1)

The system of claim 1, wherein the corruption function is a corruption function C for a given pair of non-overlapping spans (s1, s2) of the input text sequence, so that the multilingual text rewriting model is capable of reconstructing span s2 from C (s2) and an attribute vector of span s1.

### Claim 11 (depends on 10)

The system of claim 10, wherein the corruption function C is a function of the attribute vector of span s1.

### Claim 12 (depends on 1)

The system of claim 1, wherein during training the corruption module is configured to employ at least one of token-level corruption or style-aware back-translation corruption.

### Claim 13 (depends on 1)

The system of claim 1, wherein the system is configured to extract pairs of non-overlapping spans of tokens from each line of text in a given text exemplar, and configured to use a first-occurring span in the line of text as an exemplar of attributes of a second span in the line of text.

### Claim 14 (depends on 1)

The system of claim 1, wherein a cross-lingual learning signal is added to a training objective for training the multilingual text rewriting model.

### Claim 15 (depends on 1)

The system of claim 1, wherein the encoder module is configured to use negation of a true exemplar vector associated with the input text sequence as the attribute vector in a forward pass operation.

### Claim 16 (depends on 1)

The system of claim 1, wherein the decoder module is configured to receive a set of stochastic tuning ranges that provide conditioning for the decoder module.

### Claim 17

A computer-implemented method for providing multilingual text rewriting according to a machine learning model, the computer-implemented method comprising:
generating, by a corruption module, a corrupted version of an input text sequence, the corruption module employing a corruption function that uses negation of an attribute vector associated with the input text sequence;
generating, by an encoder module, a set of encoded representations of the corrupted version of the input text sequence; and
outputting, by a decoder module according to the set of encoded representations of the corrupted version of the input text sequence, a set of rewritten texts in a plurality of languages different from a source language.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, further comprising:
extracting, by a style extractor module, a set of style vector representations associated with the input text sequence.

### Claim 19 (depends on 17)

The computer-implemented method of claim 17, wherein the corruption function is a corruption function C for a given pair of non-overlapping spans (s1, s2) of the input text sequence, so that the multilingual text rewriting model is capable of reconstructing span s2 from C (s2) and an attribute vector of span s1.

### Claim 20 (depends on 19)

The computer-implemented method of claim 19, wherein the corruption function C is a function of the attribute vector of span s1.
