Skip to main content
QUICK REVIEW

[Paper Review] A Causal Lens for Controllable Text Generation

Zhiting Hu, Li Erran Li|arXiv (Cornell University)|Jan 22, 2022
Topic ModelingComputer Science20 citations
TL;DR

This paper introduces a unified causal framework for controllable text generation, modeling attribute control as interventions and transfers via a structural causal model with latent confounders and proxy signals, improving control accuracy and reducing bias when confounding labels are scarce.

ABSTRACT

Controllable text generation concerns two fundamental tasks of wide applications, namely generating text of given attributes (i.e., attribute-conditional generation), and minimally editing existing text to possess desired attributes (i.e., text attribute transfer). Extensive prior work has largely studied the two problems separately, and developed different conditional models which, however, are prone to producing biased text (e.g., various gender stereotypes). This paper proposes to formulate controllable text generation from a principled causal perspective which models the two tasks with a unified framework. A direct advantage of the causal formulation is the use of rich causality tools to mitigate generation biases and improve control. We treat the two tasks as interventional and counterfactual causal inference based on a structural causal model, respectively. We then apply the framework to the challenging practical setting where confounding factors (that induce spurious correlations) are observable only on a small fraction of data. Experiments show significant superiority of the causal approach over previous conditional models for improved control accuracy and reduced bias.

Motivation & Objective

  • Motivate controllable text generation and its biases under standard conditional models.
  • Propose a unified causal framework using a structural causal model to capture confounders and proxies.
  • Formulate attribute-conditional generation as p(x | do(a)) and attribute transfer as counterfactual prediction.
  • Develop training objectives that balance confounders and encourage disentanglement to reduce bias.

Proposed method

  • Define a structural causal model with text x, attribute a, latent confounder z, and proxy c.
  • Use backdoor adjustment p(x|do(a)) = sum_z p(x|a,z) p(z) to achieve unbiased attribute control.
  • Model counterfactuals for text attribute transfer via abduction-action-prediction steps on the SCM.
  • Train with a VAE-based objective plus counterfactual losses to balance confounders and discourage leakage of a.
  • Incorporate a pretrained attribute classifier f(x,a) to enforce that counterfactual x' entails a'.
  • Handle c observed only on a small subset by using a proxy-enabled inference and, when absent, default c to a dummy value.

Experimental results

Research questions

  • RQ1Can a unified causal framework reduce bias in controllable text generation compared to traditional conditional models?
  • RQ2How can rare confounding labels be leveraged (even if available for only a subset) to balance confounders and disentangle attributes from text?
  • RQ3How does counterfactual reasoning enable more accurate text attribute transfer while preserving other text properties?
  • RQ4What training objectives best encourage confounder balancing and disentanglement to improve control and fairness?

Key findings

  • The causal approach significantly improves control accuracy over conditional baselines on Yelp (e.g., 16% absolute improvement) and Bios datasets.
  • The method substantially reduces generation bias compared to conditional LMs and GeDi baselines.
  • Ablation without confounder balancing objectives loses bias reduction, highlighting the importance of cf-z and cf-c losses.
  • Human evaluation corroborates automatic metrics, showing improved control and reduced bias.
  • Counterfactual training enables effective attribute transfer under strong data bias, outperforming prior unsupervised transfer methods.
  • The model demonstrates robust performance under limited confounding labels (1%-5% observed c).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.