Constrained Posterior VAE for Controllable Text Generation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current unsupervised generative models, such as Variational Autoencoders (VAEs), face challenges in controllable text generation due to latent vacancy issues, where manipulated latent codes often reside in low-density regions, leading to unpredictable and low-quality text generation, especially for text data, which is more challenging than images.

Innovation Solution

The proposed solution involves a Constrained Posterior VAE (CP-VAE) framework that decomposes the latent code into structured and unstructured parts, constraining the posterior mean to a learned probability simplex and using regularizers to enforce orthogonality and fill the latent space, allowing for flexible and interpretable control over text generation without annotated attributes.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If unsupervised generative models (VAEs) are used for text generation, then the model can operate without annotated attributes, but the generated text quality becomes unpredictable and low due to latent vacancy issues

Engineering Contradiction:
Improveease of model operationVSAvoidtext generation quality
Core Design Contradiction:
Ease of manufactureVSReliability

Solution Approach 1:

The latent code is decomposed into multiple independent latent factors (e.g., topic, sentiment, style) that can be manipulated separately. This segmentation allows controlled modification of specific text attributes while maintaining overall generation quality, resolving the reliability issue while preserving unsupervised operation.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The model transforms the latent space representation by applying linear transformations and normalization techniques to ensure manipulated latent codes remain within high-density regions. This parameter transformation maintains text generation quality while enabling controllable manipulation of latent factors.

Inventive Principle:
Principle #35Parameter changes

2Reliability

If supervised learning with annotated attributes is used, then controllable text generation is achieved, but the requirement of labelled data restricts application range and increases cost

Engineering Contradiction:
Improvetext generation controlVSAvoiddata annotation requirement
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The model automatically discovers and learns latent factors (topics, sentiments, styles) from unannotated text data through unsupervised learning. This self-service capability eliminates the need for manual annotation while maintaining controllable text generation, reducing both cost and complexity.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent replaces the mechanical annotation process with automated unsupervised learning mechanisms. Instead of manually labeling data, the model autonomously identifies latent factors and their representations, substituting human labor with algorithmic discovery.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Adaptability or versatility

If latent codes are manipulated in standard VAEs, then text attribute control is attempted, but the manipulated codes reside in low-density regions causing unpredictable generation

Engineering Contradiction:
Improvelatent factor manipulationVSAvoidgeneration predictability
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The model pre-processes manipulated latent codes through transformation layers that map them into high-density regions of the latent space before generation. This preliminary action ensures that any manipulation of latent factors results in predictable, high-quality text output while maintaining adaptability.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces intermediate transformation layers between latent code manipulation and text generation. These intermediary components act as mediators that transform arbitrary latent codes into appropriate representations for high-quality generation, ensuring predictability while preserving manipulation flexibility.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS11763100B2System and method for controllable machine text generation architecture
Publication Date: 2023.09.19 ROYAL BANK OF CANADA
  • US11763100B2 patent drawing
  • US11763100B2 patent drawing
  • US11763100B2 patent drawing

AI summary

A system is provided comprising a processor and a memory storing instructions which configure the processor to process an original sentence structure through an encoder neural network to decompose the original sentence structure into an original semantics component and an original syntax component, process the original syntax component through a syntax variation autoencoder (VAE) to receive a syntax mean vector and a syntax covariance matrix, obtain a sampled syntax value from a syntax Gaussian posterior parameterized by the syntax mean vector and the syntax covariance matrix, process the original semantics component through a semantics VAE to receive a semantics mean vector and a semantics covariance matrix, obtain a sampled semantics vector from the Gaussian semantics posterior parameterized by the semantics mean vector and the semantics covariance matrix, and process the sampled syntax vector and the sampled semantics vector through a decoder neural network to compose a new sentence.