DeAR: 通过分解注意力头角色实现细粒度VLM适应
DeAR: Fine-Grained VLM Adaptation by Decomposing Attention Head Roles
AI总结:
DeAR通过分解注意力头角色实现细粒度VLM适应,有效平衡任务适应与泛化能力。
摘要:
提示学习是适应预训练视觉-语言模型(VLMs)以适应下游任务的主要范式。然而,现有方法往往依赖于一种简化的、以层为中心的视角,假设浅层捕捉一般特征而深层处理任务特定知识。这种假设导致可学习标记与原始标记之间的相互作用无法控制。任务特定知识可能会降低模型的核心泛化能力,并在任务适应与零样本泛化保存之间产生权衡。为了解决这个问题,我们挑战以层为中心的视角,并提出DeAR框架,通过分解注意力头角色实现细粒度VLM适应。我们提出VLMs中的功能专业化并非发生在层之间,而是在更细粒度的层面,即在深层中的单个注意力头之间。基于这一见解,我们引入了一个新的度量标准,概念熵,以系统地将注意力头分类为不同的功能角色:属性、泛化和混合。 guided by these roles, we introduce specialized attribute tokens and a Role-Based Attention Mask mechanism to precisely control information flow, ensuring generalization heads remain isolated from task-specific knowledge. We further incorporate a Task-Adaptive Fusion Strategy for inference. Extensive experiments on fifteen datasets show that DeAR achieves a strong balance between task adaptation and generalization, outperforming previous methods across various tasks.
英文摘要:
Prompt learning is a dominant paradigm for adapting pre-trained Vision-Language Models (VLMs) to downstream tasks. However, existing methods often rely on a simplistic, layer-centric view, assuming shallow layers capture general features while deep layers handle task-specific knowledge. This assumption results in uncontrolled interactions between learnable tokens and original tokens. Task-specific knowledge could degrades the model's core generalization and creates a trade-off between task adaptation and the preservation of zero-shot generalization. To address this, we challenge the layer-centric view and propose \textbf{DeAR}, a framework that achieves fine-grained VLM adaptation by \textbf{De}composing \textbf{A}ttention head \textbf{R}oles. We posit that the functional specialization within VLMs occurs not between layers, but at the finer-grained level of individual attention heads in the deeper layers. Based on this insight, we introduce a novel metric, Concept Entropy, to systematically classify attention heads into distinct functional roles: \textit{Attribute}, \textit{Generalization}, and \textit{Mixed}. Guided by these roles, we introduce specialized attribute tokens and a Role-Based Attention Mask mechanism to precisely control information flow, ensuring generalization heads remain isolated from task-specific knowledge. We further incorporate a Task-Adaptive Fusion Strategy for inference. Extensive experiments on fifteen datasets show that DeAR achieves a strong balance between task adaptation and generalization, outperforming previous methods across various tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。