[Paper Review] Controllable Unsupervised Text Attribute Transfer via Editing Entangled Latent Representation
The paper introduces a Transformer-based autoencoder that learns an entangled latent representation of text and uses a Fast-Gradient-Iterative-Modification (FGIM) algorithm to edit it for controllable, unsupervised text attribute transfer, including multi-attribute and degree-control capabilities.
Unsupervised text attribute transfer automatically transforms a text to alter a specific attribute (e.g. sentiment) without using any parallel data, while simultaneously preserving its attribute-independent content. The dominant approaches are trying to model the content-independent attribute separately, e.g., learning different attributes' representations or using multiple attribute-specific decoders. However, it may lead to inflexibility from the perspective of controlling the degree of transfer or transferring over multiple aspects at the same time. To address the above problems, we propose a more flexible unsupervised text attribute transfer framework which replaces the process of modeling attribute with minimal editing of latent representations based on an attribute classifier. Specifically, we first propose a Transformer-based autoencoder to learn an entangled latent representation for a discrete text, then we transform the attribute transfer task to an optimization problem and propose the Fast-Gradient-Iterative-Modification algorithm to edit the latent representation until conforming to the target attribute. Extensive experimental results demonstrate that our model achieves very competitive performance on three public data sets. Furthermore, we also show that our model can not only control the degree of transfer freely but also allow to transfer over multiple aspects at the same time.
Motivation & Objective
- Motivate flexible, unsupervised text attribute transfer without parallel data.
- Preserve attribute-independent content while achieving target attribute conformity.
- Maintain fluency and naturalness of generated text.
- Enable control over the degree of attribute transfer and multi-attribute transfers.
Proposed method
- Build a Transformer-based autoencoder to learn an entangled latent representation of text.
- Train a separate attribute classifier on latent codes to guide editing.
- Formulate attribute transfer as finding the nearest z' to z that the classifier assigns the target attribute.
- Edit the latent code z via the Fast-Gradient-Iterative-Modification (FGIM) algorithm using gradient directions from the classifier.
- Decode target text from the edited latent representation using the autoencoder decoder.
- Use label smoothing in the autoencoder loss to improve reconstruction bias.
- Dynamically select modification weights with a multi-attempt, decay-based strategy to avoid local optima.
Experimental results
Research questions
- RQ1Can an entangled latent representation support controllable attribute transfer without disentangling content and style?
- RQ2Can a gradient-based latent-space editing approach achieve accurate and fluent attribute transfer while preserving content?
- RQ3Do multi-attribute and adjustable-degree transfers improve flexibility over existing disentanglement-based methods?
Key findings
- The model achieves competitive or superior performance across three datasets in automatic metrics (Acc, BLEU, PPL) compared to eight baselines.
- The method yields high attribute accuracy and fluency, with strong human-evaluated content preservation.
- It supports transferring attributes across multiple aspects and allows varying the transfer degree via modification weights.
- Multi-aspect sentiment transfer on a beer-review dataset demonstrates high accuracy across appearance, aroma, palate, taste, and overall aspects.
- The approach preserves fluency and content better than several baselines while achieving strong transfer.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.