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

面向零样本文本分类的生成驱动对比自训练方法(基于指令跟随大语言模型)

Generation-driven Contrastive Self-training for Zero-shot Text Classification with Instruction-following LLM

Carnegie Mellon University(卡内基梅隆大学)

Ruohong Zhang, Yau-Shian Wang, Yiming Yang

AI总结:

针对大语言模型用于零样本文本分类时算力成本高的问题,提出GenCo方法,借助LLM的生成能力从两方面辅助小模型自训练,在有限领域数据下性能超越此前最优方法及人工提示的Alpaca-7B。

摘要:

大语言模型(LLM)在零样本语言理解中的卓越表现已引发广泛关注。然而,由于模型规模庞大,将LLM用于大规模推理或领域特定微调需要消耗巨量计算资源。为克服这些局限,我们提出一种名为GenCo的新方法,借助LLM的强大生成能力辅助训练规模更小、适配性更强的语言模型。在该方法中,LLM在小模型的自训练循环中通过两种方式发挥关键作用:其一,LLM用于为每个输入实例扩充多种可能的续写内容,丰富其语义语境以提升理解效果;其二,它通过基于预测标签重写输入文本,协助构建额外的高质量训练对。这确保生成文本与预测标签高度相关,既缓解了伪标注过程中的预测误差,又降低了对大量无标注文本的依赖。实验结果显示,在仅能获取有限(<原始数据的5%)领域内文本数据的情况下,GenCo的表现优于此前的最优方法。值得注意的是,我们的方法性能超过了使用人工提示的Alpaca-7B,凸显了利用LLM开展自训练的潜力。

英文摘要:

The remarkable performance of large language models (LLMs) in zero-shot language understanding has garnered significant attention. However, employing LLMs for large-scale inference or domain-specific fine-tuning requires immense computational resources due to their substantial model size. To overcome these limitations, we introduce a novel method, namely GenCo, which leverages the strong generative power of LLMs to assist in training a smaller and more adaptable language model. In our method, an LLM plays an important role in the self-training loop of a smaller model in two important ways. Firstly, the LLM is used to augment each input instance with a variety of possible continuations, enriching its semantic context for better understanding. Secondly, it helps crafting additional high-quality training pairs, by rewriting input texts conditioned on predicted labels. This ensures the generated texts are highly relevant to the predicted labels, alleviating the prediction error during pseudo-labeling, while reducing the dependency on large volumes of unlabeled text. In our experiments, GenCo outperforms previous state-of-the-art methods when only limited ($<5\%$ of original) in-domain text data is available. Notably, our approach surpasses the performance of Alpaca-7B with human prompts, highlighting the potential of leveraging LLM for self-training.

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

↑