arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2210.01033cs.CV
收藏

LPT:用于图像分类的长尾提示微调

LPT: Long-tailed Prompt Tuning for Image Classification

Harbin Institute of Technology(哈尔滨工业大学);National University of Singapore(新加坡国立大学);Peng Cheng Laboratory(鹏城实验室)

Bowen Dong, Pan Zhou, Shuicheng Yan, Wangmeng Zuo

摘要:

对于长尾分类,大多数工作通常在大规模数据集上预训练大模型,然后微调整个模型以适应长尾数据。虽然很有前途,但微调整个预训练模型往往会在计算和部署不同任务的不同模型时产生高成本,以及对长尾数据的某些特征过度拟合的泛化能力减弱。为了缓解这些问题,我们提出了一个有效的长尾提示微调方法长尾分类。LPT将几个可训练的提示引入到冻结的预训练模型中,以使其适应长尾数据。为了更好的有效性,我们将提示分为两组:1)整个长尾数据集的共享提示,以学习一般特征并将预训练模型适应目标域; 2)特定于组的提示,以收集具有相似特征的样本的特定于组的特征,并赋予预训练模型以区分能力。然后,我们设计了一个两阶段的训练范式来学习这些提示。在第一阶段,我们通过监督提示微调来训练共享提示,以使预训练模型适应所需的长尾域。在第二阶段,我们使用学习的共享提示作为查询,选择一个小的最佳匹配集的一组相似的样本从组特定的提示集,挖掘这些相似的样本的共同特征,然后优化这些提示与双采样策略和非对称GCL损失。通过在固定预训练模型的同时仅微调少量提示,LPT可以通过存储少量提示来降低训练和部署成本,并享受预训练模型的强大泛化能力。实验表明,在各种长尾基准测试中,LPT仅增加约1.1%的额外参数,就取得了与以前的全模型微调方法相当的性能,并且对域偏移具有更强的鲁棒性。

英文摘要:

For long-tailed classification, most works often pretrain a big model on a large-scale dataset, and then fine-tune the whole model for adapting to long-tailed data. Though promising, fine-tuning the whole pretrained model tends to suffer from high cost in computation and deployment of different models for different tasks, as well as weakened generalization ability for overfitting to certain features of long-tailed data. To alleviate these issues, we propose an effective Long-tailed Prompt Tuning method for long-tailed classification. LPT introduces several trainable prompts into a frozen pretrained model to adapt it to long-tailed data. For better effectiveness, we divide prompts into two groups: 1) a shared prompt for the whole long-tailed dataset to learn general features and to adapt a pretrained model into target domain; and 2) group-specific prompts to gather group-specific features for the samples which have similar features and also to empower the pretrained model with discrimination ability. Then we design a two-phase training paradigm to learn these prompts. In phase 1, we train the shared prompt via supervised prompt tuning to adapt a pretrained model to the desired long-tailed domain. In phase 2, we use the learnt shared prompt as query to select a small best matched set for a group of similar samples from the group-specific prompt set to dig the common features of these similar samples, then optimize these prompts with dual sampling strategy and asymmetric GCL loss. By only fine-tuning a few prompts while fixing the pretrained model, LPT can reduce training and deployment cost by storing a few prompts, and enjoys a strong generalization ability of the pretrained model. Experiments show that on various long-tailed benchmarks, with only ~1.1% extra parameters, LPT achieves comparable performance than previous whole model fine-tuning methods, and is more robust to domain-shift.

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

↑