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

探索并利用类向量进行分类器编辑

Exploring and Leveraging Class Vectors for Classifier Editing

AIDAS Laboratory(AIDAS实验室);IPAI;ECE(电子工程系);Seoul National University(首尔国立大学)

Jaeik Kim, Jaeyoung Do

AI总结:

本文提出类向量方法,通过捕获微调中类别特定的表示调整,实现灵活高效的分类器编辑,支持遗忘、环境适应等应用。

摘要:

图像分类器在医学影像疾病检测和制造过程异常识别中发挥着关键作用。然而,经过大量训练后,其预定义的行为使得事后模型编辑变得困难,尤其是在遗忘特定类别或适应分布偏移方面。现有的分类器编辑方法要么狭隘地专注于纠正错误,要么产生大量的再训练成本,从而成为灵活编辑的瓶颈。此外,此类编辑在图像分类中的研究有限。为克服这些挑战,我们引入了类向量,它捕获了微调过程中特定于类别的表示调整。任务向量在权重空间中编码任务级变化,而类向量则在潜在空间中解开每个类别的适应。我们展示了类向量捕获每个类别的语义偏移,并且可以通过沿这些向量引导潜在特征或将其映射到权重空间以更新决策边界来实现分类器编辑。我们还证明了类向量固有的线性和正交性支持通过简单的类算术进行高效、灵活和高层次的概念编辑。最后,我们验证了它们在遗忘、环境适应、对抗性防御和对抗性触发优化等应用中的实用性。

英文摘要:

Image classifiers play a critical role in detecting diseases in medical imaging and identifying anomalies in manufacturing processes. However, their predefined behaviors after extensive training make post hoc model editing difficult, especially when it comes to forgetting specific classes or adapting to distribution shifts. Existing classifier editing methods either focus narrowly on correcting errors or incur extensive retraining costs, creating a bottleneck for flexible editing. Moreover, such editing has seen limited investigation in image classification. To overcome these challenges, we introduce Class Vectors, which capture class-specific representation adjustments during fine-tuning. Whereas task vectors encode task-level changes in weight space, Class Vectors disentangle each class's adaptation in the latent space. We show that Class Vectors capture each class's semantic shift and that classifier editing can be achieved either by steering latent features along these vectors or by mapping them into weight space to update the decision boundaries. We also demonstrate that the inherent linearity and orthogonality of Class Vectors support efficient, flexible, and high-level concept editing via simple class arithmetic. Finally, we validate their utility in applications such as unlearning, environmental adaptation, adversarial defense, and adversarial trigger optimization.

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

↑