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

基于单阶段提示的持续学习

One-stage Prompt-based Continual Learning

Yale University(耶鲁大学)

Youngeun Kim, Yuhang Li, Priyadarshini Panda

AI总结:

本文提出单阶段提示持续学习框架,直接用中间层 token 嵌入作为提示查询,省去查询 ViT 前馈阶段,并引入仅训练时使用的查询-池正则化损失,在保持约 50% 计算成本降低的同时,在多个类别增量持续学习基准上优于两阶段 PCL 方法约 1.4%。

摘要:

基于提示的持续学习(Prompt-based Continual Learning, PCL)作为一种有前景的持续学习解决方案已获得广泛关注,因为它在防止隐私泄露和避免内存开销问题的同时实现了最先进的性能。然而,现有的 PCL 方法由于两个视觉 Transformer(ViT)前馈阶段而面临显著的计算负担:一个阶段是查询 ViT,用于生成提示查询以在提示池中选择提示;另一个阶段是骨干 ViT,用于在所选提示和图像 token 之间混合信息。为了解决这一问题,我们引入了一种单阶段 PCL 框架,直接使用中间层的 token 嵌入作为提示查询。该设计消除了对查询 ViT 额外前馈阶段的需求,从而使训练和推理的计算成本降低约 50%,而准确率下降幅度很小(< 1%)。我们进一步引入了一种查询-池正则化(Query-Pool Regularization, QR)损失,用于调节提示查询与提示池之间的关系,以提高表示能力。QR 损失仅在训练期间应用,因此在推理时不会因 QR 损失产生计算开销。借助 QR 损失,我们的方法在推理期间保持了约 50% 的计算成本降低,并且在包括 CIFAR-100、ImageNet-R 和 DomainNet 在内的公开类别增量持续学习基准上,比先前的两阶段 PCL 方法性能高出约 1.4%。

英文摘要:

Prompt-based Continual Learning (PCL) has gained considerable attention as a promising continual learning solution as it achieves state-of-the-art performance while preventing privacy violation and memory overhead issues. Nonetheless, existing PCL approaches face significant computational burdens because of two Vision Transformer (ViT) feed-forward stages; one is for the query ViT that generates a prompt query to select prompts inside a prompt pool; the other one is a backbone ViT that mixes information between selected prompts and image tokens. To address this, we introduce a one-stage PCL framework by directly using the intermediate layer's token embedding as a prompt query. This design removes the need for an additional feed-forward stage for query ViT, resulting in ~50% computational cost reduction for both training and inference with marginal accuracy drop < 1%. We further introduce a Query-Pool Regularization (QR) loss that regulates the relationship between the prompt query and the prompt pool to improve representation power. The QR loss is only applied during training time, so there is no computational overhead at inference from the QR loss. With the QR loss, our approach maintains ~ 50% computational cost reduction during inference as well as outperforms the prior two-stage PCL methods by ~1.4% on public class-incremental continual learning benchmarks including CIFAR-100, ImageNet-R, and DomainNet.

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

↑