arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.14607cs.CL
收藏

Q-Tuning:面向终身少样本语言学习的基于队列的提示微调

Q-Tuning: Queue-based Prompt Tuning for Lifelong Few-shot Language Learning

McMaster University(麦克马斯特大学);Amazon(亚马逊公司);The Ohio State University(俄亥俄州立大学)

Yanhui Guo, Shaoyuan Xu, Jinmiao Fu, Jia Liu, Chaosheng Dong, Bryan Wang

AI总结:

本文提出Q-tuning方法,通过构建提示队列、自适应知识聚合、PCA驱逐规则及记忆保持正则化,实现预训练语言模型的终身少样本学习,在恒定复杂度下大幅超越现有方法。

摘要:

本文介绍了Q-tuning,一种用于持续提示微调的新颖方法,能够实现预训练语言模型的终身学习。在学习新任务时,Q-tuning通过将任务特定提示添加到由旧任务提示组成的提示队列中来训练它。为了更好地传递旧任务知识,我们设计了一种自适应知识聚合技术,利用可学习的低秩矩阵对队列中的先前提示进行重新加权。当提示队列达到最大容量时,我们利用基于PCA的驱逐规则来缩减队列大小,允许新训练的提示被添加,同时保留旧任务的主要知识。为了减轻由驱逐引起的信息损失累积,我们额外提出了一个全局共享的前缀提示和一种基于信息论的记忆保持正则化。大量实验表明,我们的方法在持续提示微调基准上大幅优于最先进的方法。此外,我们的方法支持对线性增长的任务序列进行终身学习,同时训练和推理仅需恒定复杂度。

英文摘要:

This paper introduces \textbf{Q-tuning}, a novel approach for continual prompt tuning that enables the lifelong learning of a pre-trained language model. When learning a new task, Q-tuning trains a task-specific prompt by adding it to a prompt queue consisting of the prompts from older tasks. To better transfer the knowledge of old tasks, we design an adaptive knowledge aggregation technique that reweighs previous prompts in the queue with a learnable low-rank matrix. Once the prompt queue reaches its maximum capacity, we leverage a PCA-based eviction rule to reduce the queue's size, allowing the newly trained prompt to be added while preserving the primary knowledge of old tasks. In order to mitigate the accumulation of information loss caused by the eviction, we additionally propose a globally shared prefix prompt and a memory retention regularization based on information theory. Extensive experiments demonstrate that our approach outperforms the state-of-the-art methods substantially on continual prompt tuning benchmarks. Moreover, our approach enables lifelong learning on linearly growing task sequences while requiring constant complexity for training and inference.

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

↑