arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.00198cs.CLcs.LG
收藏

受控文本生成的不变学习刻画

An Invariant Learning Characterization of Controlled Text Generation

Columbia University(哥伦比亚大学);FAR AI(FAR AI研究院)

Carolina Zheng, Claudia Shi, Keyon Vafa, Amir Feder, David M. Blei

AI总结:

本文将分布偏移下的受控文本生成刻画为不变学习问题,提出跨文本环境保持不变的预测器及环境选择启发式,并通过合成与真实实验验证其潜力。

摘要:

受控生成是指创建包含感兴趣的风格或语义属性的文本的问题。许多方法将该问题简化为训练一个目标属性的预测器。例如,希望部署大型语言模型来生成无毒内容的研究人员,可能会使用毒性分类器来过滤生成的文本。在实践中,由用户提示决定的、待分类的生成文本可能来自广泛的分布。在本文中,我们表明,如果响应用户提示的文本分布与预测器训练时的分布不同,受控生成的性能可能会很差。为了解决这个问题,我们将分布偏移下的受控生成构建为一个不变学习问题:最有效的预测器应当在多个文本环境之间保持不变。随后,我们讨论了由这一刻画产生的一种自然解决方案,并提出了用于选择自然环境的启发式方法。我们使用合成数据和真实数据,对这一刻画及所提出的方法进行了实证研究。实验既证明了受控生成中分布偏移的挑战,也证明了不变性方法在这一设置下的潜力。

英文摘要:

Controlled generation refers to the problem of creating text that contains stylistic or semantic attributes of interest. Many approaches reduce this problem to training a predictor of the desired attribute. For example, researchers hoping to deploy a large language model to produce non-toxic content may use a toxicity classifier to filter generated text. In practice, the generated text to classify, which is determined by user prompts, may come from a wide range of distributions. In this paper, we show that the performance of controlled generation may be poor if the distributions of text in response to user prompts differ from the distribution the predictor was trained on. To address this problem, we cast controlled generation under distribution shift as an invariant learning problem: the most effective predictor should be invariant across multiple text environments. We then discuss a natural solution that arises from this characterization and propose heuristics for selecting natural environments. We study this characterization and the proposed method empirically using both synthetic and real data. Experiments demonstrate both the challenge of distribution shift in controlled generation and the potential of invariance methods in this setting.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑