给预训练模型加个轻量适配器,让它对旋转噪声不变,准确率从71%提至94%
Post-Training Augmentation Invariance
- 用概率编码器建模增强过程,设计两种新损失训练轻量适配器
- 在STL10上旋转图像分类准确率达94%,噪声下从58%升至86%
- 不微调原模型,适配器几乎不破坏原始特征分布,适合部署
本文提出后训练增强不变性框架,旨在为预训练网络添加不变性特性,而不改变其在原始非增强输入分布上的行为。我们精确定义该概念,并引入增强编码器(augmented encoders),即形式化基于增强的编码过程的概率编码器,作为核心研究对象。提出两种针对增强编码器的损失:马尔可夫-瓦瑟斯坦最小化和瓦瑟斯坦相关性最大化。实验表明,这两种损失可训练出轻量级单隐层MLP适配器网络 $E_θ$,将其附加到预训练网络 $F$ 的潜在空间后,能实现近似后训练增强不变性。例如,在STL10数据集上使用 $F = \text{DINO}$ 特征时,复合网络 $C\circ E_θ\circ F$ 在任意旋转图像上达到94%分类准确率,而无适配器的 $C\circ F$ 仅71%。同样,噪声不变分类准确率从58%提升至86%。关键的是,整个过程无需微调($F$ 权重保持冻结),且 $E_θ$ 对原始特征分布几乎保距,影响极小。相比之下,使用SimCLR或HSIC最大化训练的适配器性能差,且严重破坏原始潜在空间。代码已开源。
原文摘要 · Abstract (English)
This work develops a framework for post-training augmentation invariance, in which our goal is to add invariance properties to a pretrained network without altering its behavior on the original, non-augmented input distribution. We define this notion precisely and additionally introduce augmented encoders, which are probabilistic encoders that formalize augmentation-based encoding processes and that serve as our fundamental object of study. We introduce two losses for augmented encoders, namely, Markov-Wasserstein minimization and Wasserstein correlation maximization, and we demonstrate empirically that both losses can be used to train lightweight, one-hidden-layer MLP adapter networks $E_θ$ that, when appended to the latent space of a pretrained network $F$, do indeed lead to (approximate) post-training augmentation invariance. For example, on STL10 with $F=\text{DINO}$ features, the composite network $C\circ E_θ\circ F$, where $C$ is a linear classifier and where $E_θ$ is one of our proposed adapter networks, achieves 94% classification accuracy on arbitrarily rotated images, whereas a network of the form $C\circ F$ without the adapter $E_θ$ drops to 71% accuracy. Similarly, we can boost noise-invariant classification results from 58% up to 86%. Significantly, we obtain these results with no fine-tuning (the weights of $F$ remain frozen throughout), and our methods introduce little corruption to the original features, since $E_θ$ acts nearly isometrically on the non-augmented latent distribution. In contrast, we show that adapter networks trained with alternative candidate losses, specifically SimCLR and HSIC maximization, produce uncompetitive classification results and fundamentally corrupt the original latent space. Code available at https://github.com/keenan-eikenberry/augmentation_invariance
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。