Unsupervised Controllable Text Formalization

Parag Jain, Abhijit Mishra, Amar Prakash Azad, Karthik Sankaranarayanan

Abstract

Researchers at IBM have developed a novel framework for unsupervised controllable text formalization. By combining a deep neural encoder-decoder with an iterative "exploration-exploitation" training scheme, the system learns to transform informal text into more formal versions without requiring a parallel corpus. A distinguishing feature of this approach is the "control input," which allows users to specify the desired intensity of the transformation. Evaluation shows that the model effectively balances formalization strength with semantic preservation and fluency.

Introduction

In Natural Language Generation (NLG), style transfer—such as converting casual communication into professional prose—typically relies on supervised learning. This paradigm requires massive parallel corpora consisting of thousands of sentence pairs written in different styles. For niche domains like legal or medical fields, such datasets are often non-existent and prohibitively expensive to create.

Furthermore, most existing style transfer models are "all-or-nothing," lacking the ability to modulate the intensity of the style change. This paper addresses two primary challenges: the data bottleneck of requiring unlabeled text and the control problem of providing a user-adjustable "dial" for formalization levels. By decoupling style from semantics, the authors propose a method that can independently judge if a sentence is formal and if it retains its original meaning.

Conceptual illustration of controllable formalization levels.

Methods

The proposed framework treats text transformation as a reinforcement learning-style problem guided by automated scorers. The architecture utilizes a standard GRU-based encoder-decoder (Seq2Seq) augmented with a numerical control input representing the target formalization level.

Exploration and Exploitation

The training process follows an iterative loop designed to create a virtuous cycle of improvement:

  1. Exploration: The model takes an informal sentence and generates variations by randomly swapping words with synonyms using WordNet. An ensemble of external scorers evaluates these variations based on fluency (language models), semantic relatedness (cosine similarity), and readability (Flesch-Kincaid index). The highest-scoring variation is designated as a "pseudo-target."
  2. Exploitation: The model is retrained using these synthesized pairs, learning the mapping: Input + Control Value = Pseudo-Target.
The exploration-exploitation training framework.

Control Predictor

To ensure the model adheres to the control signal, an auxiliary classifier is integrated. This module attempts to predict the control level from the generated output. If the classifier cannot distinguish the level, the model is penalized, forcing the decoder to produce text that distinctly matches the requested formalization intensity. This mechanism prevents the model from ignoring the control signal in favor of generic formalization.

Datasets and Evaluation

The model was trained on a mixture of unlabeled informal texts from the Enron Email Corpus, the Corpus of Late Modern English Prose, a spam dataset (non-spam portion), and essays for children. The final dataset comprised approximately 14,432 sentences with a vocabulary of over 95,000 words.

The system was evaluated against supervised "skyline" models and other unsupervised baselines. Key findings include:

  • Controllability: Human experts agreed with the model's intended formalization ranking 80.2% of the time, demonstrating that the control dial effectively modulates output style.
  • Readability: The system consistently improved readability scores. For instance, a baseline score of 0.41 was increased to 0.74 in "High" formalization mode.
  • Fluency and Meaning: Despite the lack of parallel data, the model maintained high semantic relatedness (0.72–0.74) and outperformed previous unsupervised state-of-the-art methods in fluency (LM Score).

Conclusion

The IBM framework demonstrates that effective text formalization can be achieved without parallel data by leveraging iterative refinement. While the current implementation focuses on lexical changes—achieving results primarily through clever word choice like changing "kid" to "child"—it provides a robust foundation for controllable style transfer. Future work will explore more sophisticated sampling techniques, such as Variational Autoencoders (VAEs), to enable complex structural and syntactic transformations beyond simple word replacement. This approach could eventually be applied to other tasks like text simplification or politeness adjustment.

Summary updated

BibTeX
@inproceedings{jain2019unsupervised,
  author = {Parag Jain and Abhijit Mishra and Amar Prakash Azad and Karthik Sankaranarayanan},
  title = {{Unsupervised Controllable Text Formalization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33016554},
}
Figure