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

不要只演示,教我原理:一种用于文本分类的基于原理的多智能体提示策略

Don't Just Demo, Teach Me the Principles: A Principle-Based Multi-Agent Prompting Strategy for Text Classification

Amazon(亚马逊)

Peipei Wei, Dimitris Dimitriadis, Yan Xu, Mingwei Shen

AI总结:

针对文本分类,提出基于原理的多智能体提示策略PRINCIPLE-BASED PROMPTING,通过多智能体生成、整合原理并指导分类,在不同LLM和数据集上性能优于零样本等基线,且推理成本低,原理效果优于人工制定。

摘要:

我们提出PRINCIPLE-BASED PROMPTING,一种简单但有效的多智能体提示策略,用于文本分类。它首先让多个LLM智能体基于对有标签或无标签演示样本的分析独立生成候选原理,通过一个最终器智能体将其整合成最终原理,然后发送给分类器智能体执行下游分类任务。在不同规模LLM的二分类和多分类数据集上的大量实验表明,我们的方法不仅在宏F1分数上比零样本提示实现了显著的性能提升(1.55%-19.37%),还优于其他强基线(CoT和stepback提示)。在两个私有数据集上,我们方法生成的原理帮助LLM在分类任务上的表现优于人工制定的原理。我们的多智能体PRINCIPLE-BASED PROMPTING方法与基于演示的少样本提示方法相比,性能相当或更好,但推理成本显著降低。消融研究表明,标签信息和多智能体协作LLM框架在生成高质量原理以促进下游分类任务中发挥重要作用。

英文摘要:

We present PRINCIPLE-BASED PROMPTING, a simple but effective multi-agent prompting strategy for text classification. It first asks multiple LLM agents to independently generate candidate principles based on analysis of demonstration samples with or without labels, consolidates them into final principles via a finalizer agent, and then sends them to a classifier agent to perform downstream classification tasks. Extensive experiments on binary and multi-class classification datasets with different sizes of LLMs show that our approach not only achieves substantial performance gains (1.55% - 19.37%) over zero-shot prompting on macro-F1 score but also outperforms other strong baselines (CoT and stepback prompting). Principles generated by our approach help LLMs perform better on classification tasks than human crafted principles on two private datasets. Our multi-agent PRINCIPLE-BASED PROMPTING approach also shows on-par or better performance compared to demonstration-based few-shot prompting approaches, yet with substantially lower inference costs. Ablation studies show that label information and the multi-agent cooperative LLM framework play an important role in generating high-quality principles to facilitate downstream classification tasks.

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

↑