Exploring Controllable Text Generation Techniques

Shrimai Prabhumoye, Alan W. Black, Ruslan Salakhutdinov

Abstract: This paper presents a modular framework for controllable text generation (CTG), deconstructing the pipeline into five distinct components: External Input, Sequential Input, Generator Operations, Output, and Training Objective. By categorizing existing research within this schema, the authors provide a unified roadmap for steering neural language models toward specific stylistic and structural attributes.

Introduction

While Large Language Models (LLMs) excel at generating fluent text, "steering" that text—ensuring it adheres to specific sentiments, personas, or factual constraints—remains a significant challenge. Historically, the field of Controllable Text Generation was a fragmented landscape of one-off solutions. One researcher might use a specific loss function to make a model "polite," while another might modify input embeddings to change the "persona."

Prabhumoye et al. (2020) address this fragmentation by providing a modular "blueprint" of the generation process. This framework allows researchers to identify exactly where and how control is being exerted, facilitating the comparison and combination of different techniques.

The Five-Module Framework

The authors propose a schema consisting of five modules that represent the primary "levers" available for controlling text generation.

The five-module schema for controllable text generation, illustrating the flow from inputs to training objectives.
  1. External Input ($h_0$): This module controls the initialization of the generator. Techniques include concatenating a "style vector" to the encoder's output or using Variational Auto-Encoders (VAEs) to sample from a latent space.
  2. Sequential Input ($x_t$): This involves modifying the input at every time step. For example, adding a control token (like [POLITE]) to every word embedding as the model generates a sentence.
  3. Generator Operations ($G$): This approach changes the internal architecture or "math" of the model, such as adding specialized "gates" to an LSTM that filter for specific topics.
  4. Output ($o_t$): This modifies the raw hidden states before they are converted into words. A common technique is the use of Attention, where the model is forced to "look" at specific external data or persona traits during word selection.
  5. Training Objective ($\mathcal{L}$): This changes the rules of the game during learning. Examples include using Classifier Losses (where a second model evaluates the generator) or Unlikelihood Training (penalizing the model for undesirable behaviors like repetition).

Key Insights and Challenges

A major contribution of this framework is highlighting the distinction between "static" control (happening once at the start via External Input) and "dynamic" control (happening at every word via Sequential Input or Output modules).

One significant technical hurdle discussed is the Discrete Space Bottleneck. Because choosing a word (an argmax operation) is not differentiable, researchers cannot directly pass gradients from a discriminator back to the generator using standard backpropagation. Instead, they must rely on "tricks" like the Gumbel-softmax distribution or Reinforcement Learning (REINFORCE) algorithms.

Furthermore, the authors note that for massive pre-trained models (like GPT-2 or GPT-3), modifying "Generator Operations" is often computationally prohibitive. Consequently, modern control research is shifting toward "Plug and Play" methods that focus on the Output and Training Objective modules, which do not require retraining the entire core model.

Synthesis and Meta-Analysis

As a survey and position paper, this work synthesizes results from a wide array of existing benchmarks across dialogue tasks (e.g., Persona-Chat), story generation, style transfer (e.g., GYAFC for formality and politeness), and abstractive summarization.

The primary result is the validation of the five-module taxonomy. By mapping dozens of disparate papers into this single framework, the authors provide a comparative analysis of the pros and cons of each module. For instance, while concatenation at the External Input stage is simple to implement, it can be "overshadowed" by the source text if the dimensions are not carefully balanced. In contrast, linear transforms are often more robust but come with higher computational costs.

Conclusion and Future Directions

While the proposed schema provides a robust map for autoregressive models, its application to non-autoregressive models or diffusion-based text generation remains an area for further exploration. The authors suggest that the next frontier in the field is the development of "Combined Module Architectures"—identifying the optimal "cocktail" of these five modules to achieve fine-grained control without sacrificing the natural fluency of the generated text.

Summary updated

BibTeX
@inproceedings{prabhumoye2020exploring,
  author = {Shrimai Prabhumoye and Alan W. Black and Ruslan Salakhutdinov},
  title = {{Exploring Controllable Text Generation Techniques}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.coling-main.1},
}
Figure