NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Air-Decoding: Attribute Distribution Reconstruction for Decoding-Time Controllable Text Generation

Tianqi Zhong, Quan Wang, Jingxuan Han, Yongdong Zhang, Zhendong Mao

TL;DR

Researchers have identified a critical failure mode in controllable text generation called Attribute Collapse, where high control strength causes model fluency to plummet. To fix this, they introduced Air-Decoding, a lightweight framework that uses prefix-tuning and a novel distribution reconstruction method to balance attribute guidance with natural language flow, achieving new state-of-the-art performance in both control accuracy and text fluency.

The Challenge: The "Goldilocks" Problem of Control

Controllable Text Generation (CTG) aims to guide language models to produce text with specific attributes, such as positive sentiment or a specific topic, without retraining the entire model. Current "decoding-time" methods use external "experts" to shift output probabilities. However, these methods often face a trade-off: low control strength leads to ignored instructions, while high strength triggers Attribute Collapse.

Comparison of GeDi and Air-Decoding: GeDi suffers from Attribute Collapse (spiking perplexity) as control strength increases, while Air-Decoding remains stable.

Attribute Collapse occurs when a model becomes so focused on "attribute words" (e.g., "excellent," "happy") that it ignores grammar and semantics, resulting in repetitive, nonsensical "word salad." As shown in the figure above, baseline methods like GeDi see a massive spike in perplexity (a measure of how "surprised" or confused a model is) as control strength increases, whereas Air-Decoding maintains a steady, low perplexity.

The Air-Decoding Framework

Air-Decoding addresses this by rethinking how attribute distributions are integrated. The framework consists of two primary components:

1. Prefix-Conditional LMs (PC-LMs)

Instead of heavy external classifiers, Air-Decoding employs prefix-tuning. Small, task-specific vectors (prefixes) are prepended to a frozen GPT-2 model. This allows the model to efficiently generate "attribute distributions"—essentially predicting what a model specialized in a specific sentiment or topic would say next.

2. Attribute Distribution Reconstruction

This is the core innovation. Standard methods often use exponential terms to boost attribute words, which creates "spiky" distributions that drown out necessary "filler" words (like "the" or "and"). Air-Decoding applies a logarithmic regularization (calculating $-1 / \ln(P)$) to compress these distributions.

The Air-Decoding framework uses Prefix-Conditional LMs and an Attribute Distribution Reconstruction module to balance control and fluency.

By smoothing the spikes, the method ensures that the "best" attribute words are still prioritized, but the gap between them and grammatically essential tokens is reduced. This prevents attribute guidance from overwhelming the base model's inherent linguistic capabilities.

Evaluation and Results

The researchers tested Air-Decoding across sentiment control (IMDb), topic control (AGNews), and detoxification (Jigsaw) tasks.

  • Sentiment Control: Air-Decoding achieved 96.82% accuracy with a perplexity of 26.66. In contrast, the GeDi baseline reached similar accuracy but with a perplexity of 169.86, indicating a total loss of fluency.
  • Topic Control: It reached 97.21% accuracy, outperforming previous state-of-the-art methods by nearly 3% while maintaining superior fluency.
  • Human Evaluation: In blind tests, human annotators consistently rated Air-Decoding higher in both fluency and topicality compared to established baselines like DExpert and Discup.

Conclusion

Air-Decoding demonstrates that "Attribute Collapse" is not an inevitable consequence of strong control. By using lightweight prefix-tuning and intelligent distribution reconstruction, it is possible to steer large language models effectively without sacrificing the natural flow of human language. Future work will look into applying these techniques to even larger architectures and exploring the mathematical foundations of distribution smoothing in CTG.

Summary updated

BibTeX
@inproceedings{zhong2023air,
  author = {Tianqi Zhong and Quan Wang and Jingxuan Han and Yongdong Zhang and Zhendong Mao},
  title = {{Air-Decoding: Attribute Distribution Reconstruction for Decoding-Time Controllable Text Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.512},
}
Figure