# US 2021/0174213 A1 · Controlled text generation with supervised representation disentanglement and mutual information minimization

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

- Number: US 2021/0174213 A1
- Document ID: US20210174213A1
- Status: Published application
- Kind: A1
- Application number: 17/115,464
- Filed: 2020-12-08
- Published: 2021-06-10
- Earliest claimed: 2019-12-09
- Assignees: NEC Laboratories America, Inc.
- Applicants: NEC Laboratories America, Inc.
- Inventors: Renqiang Min; Christopher Malon; Pengyu Cheng
- Web page: https://patentgrep.com/patent/US20210174213A1

## CPC

- G06F 40/56: Natural language generation
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06F 40/20: Natural language analysis (semantic analysis of natural language G06F40/30)
- G06F 40/279: Recognition of textual entities
- G06F 40/30: Semantic analysis
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/0475: Generative networks
- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/086: using evolutionary algorithms, e.g. genetic algorithms or genetic programming
- G06N 3/09: Supervised learning
- G06N 3/094: Adversarial learning
- G10L 15/063: {Training}
- G10L 15/16: using artificial neural networks
- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- G06N 3/02: Neural networks
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

A computer-implemented method is provided for disentangled data generation. The method includes accessing, by a bidirectional Long Short-Term Memory (LSTM) with a multi-head attention mechanism, a dataset including a plurality of pairs each formed from a given one of a plurality of input text structures and given one of a plurality of style labels for the plurality of input text structures. The method further includes training the bidirectional LSTM as an encoder to disentangle a sequential text input into disentangled representations comprising a content embedding and a style embedding based on a subset of the dataset. The method also includes training a unidirectional LSTM as a decoder to generate a next text structure prediction for the sequential text input based on previously generated text structure information and a current word, from a disentangled representation with the content embedding and the style embedding.

## Claims

### Claim 1

A computer-implemented method for disentangled data generation, comprising:
accessing, by a bidirectional Long Short-Term Memory (LSTM) with a multi-head attention mechanism, a dataset including a plurality of pairs each formed from a given one of a plurality of input text structures and given one of a plurality of style labels for the plurality of input text structures;
training the bidirectional LSTM as an encoder to disentangle a sequential text input into disentangled representations comprising a content embedding and a style embedding based on a subset of the dataset; and
training a unidirectional LSTM as a decoder to generate a next text structure prediction for the sequential text input based on previously generated text structure information and a current word, from a disentangled representation with the content embedding and the style embedding.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the bidirectional LSTM forms an encoder with a multi-head attention unit for performing disentanglement.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein training the bidirectional LSTM comprises minimizing mutual information between the content embedding and the style embedding based on a new upper bound implemented by a predictive neural network with adversarial-style training.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein training the bidirectional LSTM comprises maximizing mutual information between the content embedding and input text and maximizing mutual information between the style embedding and the input text.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising updating model parameters using the subset of the dataset as mini-batches by maximizing a log-likelihood of an input text in a variational autoencoder framework.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the unidirectional LSTM is a two-layer unidirectional LSTM having an output dimension equal to a vocabulary size of a vocabulary from which the next word prediction is generated.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein in a subsequent testing sequence, the method further comprises:
fixing one of the disentangled representations while randomly sampling another one of the disentangled representations; and
decoding the fixed one of the disentangled representations with the randomly sampled other one of the disentangled representations.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, further comprising generating a next text prediction according to the any of the decoded disentangled representations.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, wherein the method is performed by a style transfer system.

### Claim 10 (depends on 8)

The computer-implemented method of claim 8, wherein the method is performed by a personalized dialogue system.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, wherein the input text structures are selected from the group consisting of sentences and paragraphs.

### Claim 12

A computer program product for disentangled data generation, the computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to perform a method comprising:
accessing, by a bidirectional Long Short-Term Memory (LSTM) with a multi-head attention mechanism, a dataset including a plurality of pairs each formed from a given one of a plurality of input text structures and given one of a plurality of style labels for the plurality of input text structures;
training the bidirectional LSTM as an encoder to disentangle a sequential text input into disentangled representations comprising a content embedding and a style embedding based on a subset of the dataset; and
training a unidirectional LSTM as a decoder to generate a next text structure prediction for the sequential text input based on previously generated text structure information and a current word, from a disentangled representation with the content embedding and the style embedding.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the bidirectional LSTM forms an encoder with a multi-head attention unit for performing disentanglement.

### Claim 14 (depends on 12)

The computer program product of claim 12, wherein training the bidirectional LSTM comprises minimizing mutual information between the content embedding and the style embedding based on a new upper bound implemented by a predictive neural network with adversarial-style training.

### Claim 15 (depends on 14)

The computer program product of claim 14, wherein training the bidirectional LSTM comprises maximizing mutual information between the content embedding and input text and maximizing mutual information between the style embedding and the input text.

### Claim 16 (depends on 12)

The computer program product of claim 12, further comprising updating model parameters using the subset of the dataset as mini-batches by maximizing a log-likelihood of an input text in a variational autoencoder framework.

### Claim 17 (depends on 12)

The computer program product of claim 12, wherein the unidirectional LSTM is a two-layer unidirectional LSTM having an output dimension equal to a vocabulary size of a vocabulary from which the next word prediction is generated.

### Claim 18 (depends on 12)

The computer program product of claim 12, wherein in a subsequent testing sequence, the method further comprises:
fixing one of the disentangled representations while randomly sampling another one of the disentangled representations; and
decoding the fixed one of the disentangled representations with the randomly sampled other one of the disentangled representations.

### Claim 19 (depends on 18)

The computer program product of claim 18, further comprising generating a next text prediction according to the any of the decoded disentangled representations.

### Claim 20

A computer processing system for disentangled data generation, comprising:
a memory device for storing program code; and
a processor device operatively coupled to the memory device and configured to run the program code to
access, using a bidirectional Long Short-Term Memory (LSTM) with a multi-head attention mechanism, a dataset including a plurality of pairs each formed from a given one of a plurality of input text structures and given one of a plurality of style labels for the plurality of input text structures;
train the bidirectional LSTM as an encoder to disentangle a sequential text input into disentangled representations comprising a content embedding and a style embedding based on a subset of the dataset; and
train a unidirectional LSTM as a decoder to generate a next text structure prediction for the sequential text input based on previously generated text structure information and a current word, from a disentangled representation with the content embedding and the style embedding.
