Skip to main content
QUICK REVIEW

[论文解读] A Causal Lens for Controllable Text Generation

Zhiting Hu, Li Erran Li|arXiv (Cornell University)|Jan 22, 2022
Topic ModelingComputer Science被引用 20
一句话总结

本论文为可控文本生成提出一个统一的因果框架,将属性控制建模为通过具有潜在混杂因子和代理信号的结构化因果模型的干预与转移,从而在混杂标签稀缺时提高控制准确性并减少偏差。

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.

研究动机与目标

  • 在标准条件模型下引入可控文本生成及其偏差的动机。
  • 提出一个使用结构化因果模型来捕捉混杂因素和代理变量的统一因果框架。
  • 将属性条件生成表述为 p(x | do(a)),并将属性转移表述为对因果推断中的反事实预测。
  • 开发平衡混杂因子并鼓励表征解耦以减少偏差的训练目标。

提出的方法

  • 定义一个包含文本 x、属性 a、潜在混杂因子 z 和代理 c 的结构化因果模型。
  • 使用后门调整 p(x|do(a)) = sum_z p(x|a,z) p(z) 来实现无偏的属性控制。
  • 通过对因果模型在推理-行动-预测步骤中建模文本属性转移的反事实。
  • 采用基于变分自编码器的目标函数以及反事实损失进行训练,以平衡混杂变量并抑制 a 的泄露。
  • 引入一个预训练的属性分类器 f(x,a) 以确保反事实 x' 能推出 a'。
  • 在仅在小部分样本中观测到 c 时,通过使用具有代理的推断来处理;若缺失则将 c 设为一个虚拟值。

实验结果

研究问题

  • RQ1与传统条件模型相比,统一的因果框架能否降低可控文本生成中的偏差?
  • RQ2即使混杂标签仅可用于子集,如何利用稀有的混杂标签来平衡混杂因素并从文本中解耦属性?
  • RQ3反事实推理如何在保持其他文本属性的前提下实现更准确的属性转移?
  • RQ4哪些训练目标最能促进混杂因素平衡和表征解耦,以提升可控性和公平性?

主要发现

  • 因果方法在 Yelp(例如绝对提升 16%)和 Bios 数据集上显著提高了控制准确性,相较于条件基线。
  • 与条件语言模型和 GeDi 基线相比,该方法显著降低了生成偏差。
  • 在没有混杂平衡目标的消融实验中偏差降低效果丧失,强调 cf-z 和 cf-c 损失的重要性。
  • 人工评估与自动指标一致,显示更好的控制和更低的偏差。
  • 反事实训练在强数据偏差下实现有效属性转移,优于以往的无监督转移方法。
  • 在有限混杂标签(1%-5% 观察到的 c)下,模型展现出稳健的性能。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。