Abstract
Controllable text generation systems often leverage control codes to direct various properties of the output like style and length. Inspired by recent work on causal inference for NLP, this paper reveals a previously overlooked flaw in these control code-based conditional text generation algorithms. Spurious correlations in the training data can lead models to incorrectly rely on parts of the input other than the control code for attribute selection, significantly undermining downstream generation quality and controllability. We demonstrate the severity of this issue with a series of case studies and then propose two simple techniques to reduce these correlations in training sets. The first technique is based on resampling the data according to an example's propensity towards each linguistic attribute (IPS). The second produces multiple counterfactual versions of each example and then uses an additional feedback mechanism to remove noisy examples (feedback aware self-training, FAST). We evaluate on 3 tasks -- news headline, meta review, and search ads generation -- and demonstrate that FAST can significantly improve the controllability and language quality of generated outputs when compared to state-of-the-art controllable text generation approaches.
Introduction
Controllable text generation aims to produce text that adheres to specific attributes, such as length, sentiment, or topic, typically guided by "control codes" prepended to the input context. However, a significant challenge arises when training data contains "spurious correlations"—statistical patterns where certain contexts are naturally associated with specific attributes. For instance, in news datasets, technical articles may predominantly have long headlines. A model trained on such data might learn a "backdoor path," relying on the technical nature of the context to generate a long headline while ignoring a [SHORT] control code. This paper introduces FAST (Feedback Aware Self-Training) to address these causal confounding factors.
Methodology
The authors propose two primary methods to mitigate spurious correlations by breaking the statistical relationships between context and attributes:
Inverse Propensity Score (IPS) Resampling
This technique balances the training distribution by weighting examples inversely to their propensity. A classifier is trained to predict the attribute from the context; examples that represent "rare" combinations relative to the context (e.g., a short headline for a technical article) receive higher weights during training, forcing the model to pay more attention to the control code.
Feedback Aware Self-Training (FAST)
FAST is a data-centric approach that uses counterfactual generation and a feedback loop to improve model robustness. Unlike inference-time steering methods, FAST fixes the problem at the data level, ensuring high performance without increasing inference latency.
The FAST pipeline consists of four distinct steps:
- Baseline Training: A standard conditional generation model (e.g., BART) is trained on the original observational data.
- Counterfactual Generation: For every input context, the baseline model generates outputs for all possible control codes, creating a "counterfactually balanced" set of candidates.
- Feedback Filtering: A high-accuracy classifier (the feedback mechanism) evaluates whether the generated outputs actually exhibit the intended attribute. Examples where the model failed to follow the control code are discarded to prevent error propagation.
- Retraining: The model is retrained on a combination of the original data and the filtered counterfactual data.
Experimental Evaluation
The methods were evaluated across three diverse tasks to test the generalizability of the approach:
- Headline Generation (PENS): A Microsoft News dataset where the model controls for headline length (Short vs. Long).
- Meta-Review Generation (MReD): A dataset of ICLR meta-reviews where the model controls for the intent of the next sentence (e.g., "Weakness," "Suggestion," "Decision").
- Search Ads Generation: A task involving the generation of ad copy from landing pages, controlling for advertising strategy (e.g., "Price," "Benefit," "Call to Action").
Results and Discussion
FAST demonstrated significant improvements in both controllability and language quality across all benchmarks.
- Controllability Boost: On the Search Ads task, FAST achieved a control accuracy of 80.5%, a substantial increase over the 68.1% baseline.
- Language Quality: Unlike inference-time steering methods like GeDi, which often suffer a "quality tax" (e.g., a drop in ROUGE-1 from 32.6 to 31.7 on PENS), FAST maintained or improved ROUGE scores by addressing the issue during the training phase.
- Human Evaluation: Professional judges rated FAST-generated search ads higher than the baseline in terms of language quality, human-likeness, and factuality.
Conclusion
By framing controllability through the lens of causal inference, FAST effectively breaks spurious correlations that hinder instruction-following in text generation models. While the method requires additional training overhead and depends on a reliable feedback classifier, it offers a robust, inference-efficient solution for high-quality controllable generation. Future work may explore parameter-efficient implementations, such as LoRA or prompt-tuning, to reduce the computational cost of the retraining process.
Summary updated