arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.01848cs.LGcs.AIcs.CLq-bio.NCstat.ML
收藏

通过可解释的自动提示用语言模型解释数据模式

Explaining Patterns in Data with Language Models via Interpretable Autoprompting

Microsoft Research(微软研究院);Cornell University(康奈尔大学)

Chandan Singh, John X. Morris, Jyoti Aneja, Alexander M. Rush, Jianfeng Gao

摘要:

大语言模型(LLM)已经显示出利用自然语言来执行复杂任务的令人印象深刻的能力。在这项工作中,我们将探索我们是否可以利用这种学习能力来发现和解释数据中的模式。具体来说,给定一个预训练的LLM和数据示例,我们引入了可解释的自动提示(iPrompt),这是一种生成解释数据的自然语言字符串的算法。iPrompt迭代地交替使用LLM生成解释,并根据它们用作提示时的性能对其进行重新排序。在从合成数学到自然语言理解的各种数据集上进行的实验表明,iPrompt可以通过准确地找到地面实况数据集描述来产生有意义的见解。此外,iPrompt生成的提示同时是人类可解释的,并且对于泛化非常有效:在真实世界的情感分类数据集上,iPrompt生成的提示与人类编写的GPT-3提示相匹配,甚至有所改进。最后,使用fMRI数据集的实验显示了iPrompt帮助科学发现的潜力。所有使用这里的方法和数据的代码都可以在Github上找到。

英文摘要:

Large language models (LLMs) have displayed an impressive ability to harness natural language to perform complex tasks. In this work, we explore whether we can leverage this learned ability to find and explain patterns in data. Specifically, given a pre-trained LLM and data examples, we introduce interpretable autoprompting (iPrompt), an algorithm that generates a natural-language string explaining the data. iPrompt iteratively alternates between generating explanations with an LLM and reranking them based on their performance when used as a prompt. Experiments on a wide range of datasets, from synthetic mathematics to natural-language understanding, show that iPrompt can yield meaningful insights by accurately finding groundtruth dataset descriptions. Moreover, the prompts produced by iPrompt are simultaneously human-interpretable and highly effective for generalization: on real-world sentiment classification datasets, iPrompt produces prompts that match or even improve upon human-written prompts for GPT-3. Finally, experiments with an fMRI dataset show the potential for iPrompt to aid in scientific discovery. All code for using the methods and data here is made available on Github.

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

↑