高效文本分类中的符合性上下文学习
Efficient Text Classification with Conformal In-Context Learning
AI总结:
本文提出CICLe框架,通过结合轻量级分类器与符合性预测,提升文本分类效率,减少样本和提示长度,尤其在高类别不平衡任务中表现优异。
摘要:
大型语言模型(LLMs)表现出强大的上下文学习能力,但其在文本分类中的有效性严重依赖于提示设计,并且会带来显著的计算成本。符合性上下文学习(CICLe)已被提出作为一种资源高效的框架,它将轻量级的基础分类器与符合性预测相结合,通过自适应减少候选类的集合来指导LLM的提示设计。然而,其在单一领域之外的更广泛适用性和效率优势尚未系统地得到探索。在本文中,我们对CICLe在多样化的NLP分类基准上进行了全面评估。结果表明,CICLe在基础分类器上表现一致,并且在样本量足够用于训练基础分类器时,其表现优于少样本提示基线,在低数据情况下表现相当。在效率方面,CICLe将样本数和提示长度分别减少了高达34.45%和25.16%,并且能够使用较小的模型实现具有竞争力的性能。此外,CICLe在高类别不平衡的文本分类任务中尤其具有优势。这些发现突显了CICLe作为高效文本分类的实用且可扩展的方法,结合了传统分类器的鲁棒性和LLM的适应性,并在数据和计算效率上实现了显著的收益。
英文摘要:
Large Language Models (LLMs) demonstrate strong in-context learning abilities, yet their effectiveness in text classification depends heavily on prompt design and incurs substantial computational cost. Conformal In-Context Learning (CICLe) has been proposed as a resource-efficient framework that integrates a lightweight base classifier with Conformal Prediction to guide LLM prompting by adaptively reducing the set of candidate classes. However, its broader applicability and efficiency benefits beyond a single domain have not yet been systematically explored. In this paper, we present a comprehensive evaluation of CICLe across diverse NLP classification benchmarks. The results show that CICLe consistently improves over its base classifier and outperforms few-shot prompting baselines when the sample size is sufficient for training the base classifier, and performs comparably in low-data regimes. In terms of efficiency, CICLe reduces the number of shots and prompt length by up to 34.45% and 25.16%, respectively, and enables the use of smaller models with competitive performance. CICLe is furthermore particularly advantageous for text classification tasks with high class imbalance. These findings highlight CICLe as a practical and scalable approach for efficient text classification, combining the robustness of traditional classifiers with the adaptability of LLMs, and achieving substantial gains in data and computational efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。