比较专门化的小型模型和通用的大型模型在文本分类中的表现:100个标注样本实现平衡性能
Comparing Specialised Small and General Large Language Models on Text Classification: 100 Labelled Samples to Achieve Break-Even Performance
AI总结:
研究比较了专门化小型模型与通用大型模型在文本分类中的表现,发现平均100个标注样本即可实现平衡性能,且样本需求受任务特征和方差影响显著。
摘要:
在解决标注数据有限的NLP任务时,研究人员通常要么使用未经进一步更新的一般大型语言模型,要么使用少量标注样本来调整专门的较小模型。在本工作中,我们回答了一个重要的问题——专门的小模型需要多少标注样本才能超越一般的大模型,同时考虑到性能的方差。通过观察在8个语言模型上微调、指令微调、提示和上下文学习的行为,我们识别出在8个具有不同特征的文本分类任务中的性能平衡点。我们展示了专门的模型通常只需要少量样本(平均为100个)即可与一般模型持平或更好。同时,所需标签的数量强烈依赖于数据集或任务的特征,微调二分类数据集需要显著更多的样本。当考虑到性能方差时,所需标签的数量平均增加100-200%。最后,更大的模型并不总是导致更好的性能和更低的方差,4位量化对影响 negligible。
英文摘要:
When solving NLP tasks with limited labelled data, researchers typically either use a general large language model without further update, or use a small number of labelled samples to tune a specialised smaller model. In this work, we answer an important question -- how many labelled samples are required for the specialised small models to outperform general large models, while taking the performance variance into consideration. By observing the behaviour of fine-tuning, instruction-tuning, prompting and in-context learning on 8 language models, we identify such performance break-even points across 8 representative text classification tasks of varying characteristics. We show that the specialised models often need only few samples (on average $100$) to be on par or better than the general ones. At the same time, the number of required labels strongly depends on the dataset or task characteristics, with fine-tuning on binary datasets requiring significantly more samples. When performance variance is taken into consideration, the number of required labels increases on average by $100 - 200\%$. Finally, larger models do not consistently lead to better performance and lower variance, with 4-bit quantisation having negligible impact.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。