用于文本分类的标签模块化学习算法
Learning Label Modular Prompts for Text Classification in the Wild
摘要:
机器学习模型通常在训练和测试过程中假设i.i.d数据,但现实世界中的数据和任务经常随时间而变化。为了模拟现实世界的瞬态性质,我们提出了一个具有挑战性但实际的任务:野外文本分类,它引入了不同的非平稳训练/测试阶段。将复杂任务分解为模块化组件可以在这种非静态环境下实现鲁棒的泛化。然而,当前NLP中的模块化方法没有利用预训练语言模型的参数有效调整的最新进展。为了缩小这一差距,我们提出了MODULARPROMPT,标签模块化的文本分类任务的提示微调框架。在MODULARPROMPT中,输入提示由一系列软标签提示组成,每个软标签提示编码与相应的类标签相关的模块知识。在两个最令人生畏的设置中,MODULARPROMPT的表现大大优于相关基线,表现出强大的泛化能力。我们还进行了全面的分析,以验证是否学到的提示满足模块化表示的属性。
英文摘要:
Machine learning models usually assume i.i.d data during training and testing, but data and tasks in real world often change over time. To emulate the transient nature of real world, we propose a challenging but practical task: text classification in-the-wild, which introduces different non-stationary training/testing stages. Decomposing a complex task into modular components can enable robust generalisation under such non-stationary environment. However, current modular approaches in NLP do not take advantage of recent advances in parameter efficient tuning of pretrained language models. To close this gap, we propose MODULARPROMPT, a label-modular prompt tuning framework for text classification tasks. In MODULARPROMPT, the input prompt consists of a sequence of soft label prompts, each encoding modular knowledge related to the corresponding class label. In two of most formidable settings, MODULARPROMPT outperforms relevant baselines by a large margin demonstrating strong generalisation ability. We also conduct comprehensive analysis to validate whether the learned prompts satisfy properties of a modular representation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。