arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.03214cs.CL
收藏

PREADD:用于受控文本生成的前缀自适应解码

PREADD: Prefix-Adaptive Decoding for Controlled Text Generation

UC Berkeley(加州大学伯克利分校)

Jonathan Pei, Kevin Yang, Dan Klein

AI总结:

PREADD 通过对比原始提示与带前缀提示的输出 logits 实现无需外部模型的受控文本生成,在毒性缓解、去偏和情感控制任务上相对增益超 12%。

摘要:

我们提出前缀自适应解码(PREADD),一种用于受控文本生成的灵活方法。与使用辅助专家模型来控制属性的现有方法不同,PREADD 不需要外部模型,而是依赖于线性组合来自多个提示的输出 logits。具体而言,PREADD 将使用原始提示生成的输出 logits 与使用前缀前置提示生成的输出 logits 进行对比,从而能够针对前缀所涵盖的任何属性实现正向和负向控制。我们在三个任务上评估 PREADD——有毒输出缓解、性别偏见减少和情感控制——并发现 PREADD 不仅优于提示基线,而且优于辅助专家控制方法,在每个任务的主要指标上相对增益达到 12% 或更多。

英文摘要:

We propose Prefix-Adaptive Decoding (PREADD), a flexible method for controlled text generation. Unlike existing methods that use auxiliary expert models to control for attributes, PREADD does not require an external model, instead relying on linearly combining output logits from multiple prompts. Specifically, PREADD contrasts the output logits generated using a raw prompt against those generated using a prefix-prepended prompt, enabling both positive and negative control with respect to any attribute encapsulated by the prefix. We evaluate PREADD on three tasks -- toxic output mitigation, gender bias reduction, and sentiment control -- and find that PREADD outperforms not only prompting baselines, but also an auxiliary-expert control method, by 12% or more in relative gain on our main metrics for each task.

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

↑