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

LAMPO:将大语言模型作为偏好机器用于少样本有序分类

LAMPO: Large Language Models as Preference Machines for Few-shot Ordinal Classification

Google(谷歌公司)

Zhen Qin, Junru Wu, Jiaming Shen, Tianqi Liu, Xuanhui Wang

AI总结:

LAMPO 将大语言模型用作偏好机器,通过测试实例与演示之间的相对比较及自监督聚合,解决少样本有序分类问题,在多个数据集上取得显著提升,并支持黑盒 LLMs。

摘要:

我们提出了 LAMPO,这是一种利用大语言模型(LLMs)解决少样本多类有序分类任务的新范式。与传统方法将所有演示示例与测试实例拼接并提示 LLMs 生成逐点预测不同,我们的框架将 LLM 用作偏好机器,在测试实例与每个演示之间进行相对比较决策。随后引入一种自监督方法,将这些二元比较聚合为最终的有序决策。LAMPO 解决了以往方法中固有的若干局限,包括上下文长度约束、顺序偏差以及与绝对逐点估计相关的挑战。在七个公开数据集上的大量实验表明,LAMPO 在广泛的应用场景中(例如电影评论分析和仇恨言论检测)表现出极具竞争力的性能。值得注意的是,在某些应用中,改进幅度可能相当可观,绝对提升超过 20%。此外,我们认为 LAMPO 是对构建于 LLMs 之上的非参数应用的一个有趣补充,因为它支持黑盒 LLMs,无需像以往方法那样输出 LLM 的内部状态(例如嵌入)。

英文摘要:

We introduce LAMPO, a novel paradigm that leverages Large Language Models (LLMs) for solving few-shot multi-class ordinal classification tasks. Unlike conventional methods, which concatenate all demonstration examples with the test instance and prompt LLMs to produce the pointwise prediction, our framework uses the LLM as a preference machine that makes a relative comparative decision between the test instance and each demonstration. A self-supervised method is then introduced to aggregate these binary comparisons into the final ordinal decision. LAMPO addresses several limitations inherent in previous methods, including context length constraints, ordering biases, and challenges associated with absolute point-wise estimation. Extensive experiments on seven public datasets demonstrate LAMPO's remarkably competitive performance across a diverse spectrum of applications (e.g., movie review analysis and hate speech detection). Notably, in certain applications, the improvement can be substantial, exceeding 20% in an absolute term. Moreover, we believe LAMPO represents an interesting addition to the non-parametric application layered on top of LLMs, as it supports black-box LLMs without necessitating the outputting of LLM's internal states (e.g., embeddings), as seen in previous approaches.

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

↑