仅用大语言模型(LLM)根据用户指令培育文本分类器
Incubating Text Classifiers Following User Instruction with Nothing but LLM
AI总结:
该研究提出Incubator框架,通过微调LLM并结合语义嵌入聚类优化,仅依据用户指令生成分类数据,无需人工标注即可训练分类器,可处理复杂依赖类别,在基准测试中表现优异,还支持逻辑文本挖掘。
摘要:
本文旨在根据任意类别定义(即用户指令)生成文本分类数据,使研究者无需任何人工标注或原始语料即可训练小型文本分类器。与前期探索工作相比,本文提出的Incubator是首个能够处理复杂甚至相互依赖类别(例如“教育者发表的TED演讲”和“其他”)的框架。具体而言,Incubator是一个LLM,首先基于我们从HuggingFace上的分类数据集与描述中获取的指令-数据映射进行微调,并结合GPT-4的上下文增强(in-context augmentation)。随后,我们通过在语义文本嵌入的聚类中心上学习来优化Incubator,以强化生成结果的一致性和语义多样性。我们在多种分类任务上将Incubator与强基线模型(例如直接基于LLM的推理、通过提示工程生成训练数据的方法)进行对比。实验表明,Incubator能够:(1)在传统基准测试中表现优异;(2)兼顾标签依赖关系与用户偏好;(3)通过培育多个分类器实现逻辑文本挖掘。
英文摘要:
In this paper, we aim to generate text classification data given arbitrary class definitions (i.e., user instruction), so one can train a small text classifier without any human annotation or raw corpus. Compared with pioneer attempts, our proposed Incubator is the first framework that can handle complicated and even mutually dependent classes (e.g., "TED Talk given by Educator" and "Other"). Specifically, Incubator is an LLM firstly tuned on the instruction-to-data mappings that we obtained from classification datasets and descriptions on HuggingFace together with in-context augmentation by GPT-4. We then refine Incubator by learning on the cluster centers of semantic textual embeddings to emphasize the uniformity and semantic diversity in generations. We compare Incubator on various classification tasks with strong baselines such as direct LLM-based inference and training data generation by prompt engineering. Experiments show Incubator is able to (1) perform well on traditional benchmarks, (2) take label dependency and user preference into consideration, and (3) enable logical text mining by incubating multiple classifiers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。