学习易于更新的通用文本表示与可适配的任务特定前缀
Learning Easily Updated General Purpose Text Representations with Adaptable Task-Specific Prefixes
AI总结:
提出基于任务特定前缀的方法学习固定文本表示,优于多任务训练,且更新成本更低。
摘要:
许多实际应用需要从同一文本中进行多次预测。针对每个下游任务微调大型预训练语言模型,由于需要多次前向传播,会在推理时造成计算负担。为了分摊计算成本,冻结语言模型并基于固定文本表示为下游任务构建轻量级模型是常见的解决方案。因此,如何学习固定但通用的文本表示,使其能够很好地泛化到未见过的下游任务,成为一个挑战。先前的研究表明,通过以多任务方式使用一些源任务对预训练语言模型进行微调,可以提高表示的泛化能力。在这项工作中,我们提出了一种基于前缀的方法,使用源任务学习固定的文本表示。我们独立地为每个源任务学习一个任务特定的前缀,并将它们组合起来以获得最终的表示。我们的实验结果表明,基于前缀的训练优于多任务训练,并且可以以比多任务训练更小的计算成本更新文本表示。
英文摘要:
Many real-world applications require making multiple predictions from the same text. Fine-tuning a large pre-trained language model for each downstream task causes computational burdens in the inference time due to several times of forward passes. To amortize the computational cost, freezing the language model and building lightweight models for downstream tasks based on fixed text representations are common solutions. Accordingly, how to learn fixed but general text representations that can generalize well to unseen downstream tasks becomes a challenge. Previous works have shown that the generalizability of representations can be improved by fine-tuning the pre-trained language model with some source tasks in a multi-tasking way. In this work, we propose a prefix-based method to learn the fixed text representations with source tasks. We learn a task-specific prefix for each source task independently and combine them to get the final representations. Our experimental results show that prefix-based training performs better than multi-tasking training and can update the text representations at a smaller computational cost than multi-tasking training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。