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

用自然语言描述文本分布的差异

Describing Differences between Text Distributions with Natural Language

University of California, Berkeley(加州大学伯克利分校)

Ruiqi Zhong, Charlie Snell, Dan Klein, Jacob Steinhardt

摘要:

两种文本分布有何不同?人类回答这个问题的速度很慢,因为发现模式可能需要繁琐地阅读数百个样本。我们建议通过“学习自然语言假设”来自动总结差异:给定两个分布$D_{0}$和$D_{1}$,我们搜索对于$D_{1}$更经常为真的描述,例如,“与军事有关。为了解决这个问题,我们对GPT-3进行了微调,以提出带有提示的描述:“[$D_{0}$的样本] + [$D_{1}$的样本] +它们之间的差异是_。“然后,我们通过检查描述在一个学习过的验证者的更大样本集上保持的频率来重新排列描述。在54个真实世界的二进制分类任务的基准测试中,虽然GPT-3 Curie(13 B)仅在7%的时间内生成类似于人类注释的描述,但通过微调和重新排名,性能达到61%,而我们使用GPT-3 Davinci(175 B)的最佳系统达到76%。我们应用我们的系统来描述分布偏移,调试数据集快捷方式,总结未知的任务,并标记文本集群,并根据自动生成的描述提出分析。

英文摘要:

How do two distributions of texts differ? Humans are slow at answering this, since discovering patterns might require tediously reading through hundreds of samples. We propose to automatically summarize the differences by "learning a natural language hypothesis": given two distributions $D_{0}$ and $D_{1}$, we search for a description that is more often true for $D_{1}$, e.g., "is military-related." To tackle this problem, we fine-tune GPT-3 to propose descriptions with the prompt: "[samples of $D_{0}$] + [samples of $D_{1}$] + the difference between them is_____." We then re-rank the descriptions by checking how often they hold on a larger set of samples with a learned verifier. On a benchmark of 54 real-world binary classification tasks, while GPT-3 Curie (13B) only generates a description similar to human annotation 7% of the time, the performance reaches 61% with fine-tuning and re-ranking, and our best system using GPT-3 Davinci (175B) reaches 76%. We apply our system to describe distribution shifts, debug dataset shortcuts, summarize unknown tasks, and label text clusters, and present analyses based on automatically generated descriptions.

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

↑