paper-with-me

홈 › Papers

Fine-Tuning Attention Modules Only: Enhancing Weight Disentanglement in Task Arithmetic

2024-07-09 · Ruochen Jin, BoJian Hou, Jiancong Xiao, Weijie Su, Li Shen

In recent years, task arithmetic has garnered increasing attention. This approach edits pre-trained models directly in weight space by combining the fine-tuned weights of various tasks into a unified model. Its efficiency and cost-effectiveness stem from its training-free combination, contrasting with traditional methods that require model training on large datasets for multiple tasks. However, applying such a unified model to individual tasks can lead to interference from other tasks (lack of weight disentanglement). To address this issue, Neural Tangent Kernel (NTK) linearization has been employed to leverage a "kernel behavior", facilitating weight disentanglement and mitigating adverse effects from unrelated tasks. Despite its benefits, NTK linearization presents drawbacks, including doubled training costs, as well as reduced performance of individual models. To tackle this problem, we propose a simple yet effective and efficient method that is to finetune the attention modules only in the Transformer. Our study reveals that the attention modules exhibit kernel behavior, and fine-tuning the attention modules only significantly improves weight disentanglement. To further understand how our method improves the weight disentanglement of task arithmetic, we present a comprehensive study of task arithmetic by differentiating the role of the representation module and task-specific module. In particular, we find that the representation module plays an important role in improving weight disentanglement whereas the task-specific modules such as the classification heads can degenerate the weight disentanglement performance. (The code is available at https://github.com/kyrie-23/task_arithmetic_tangent)

📄 PDF Abstract BibTeX arXiv:2407.07089

Code (2)

kyrie-23/linear_task_arithmetic 공식 구현 pytorch
kyrie-23/task_arithmetic_tangent 공식 구현 pytorch

Tasks

ClassificationDisentanglementMulti-Task LearningTask Arithmetic

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Adam 설명 없음
Residual Connection 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.

Similar Papers 제목 키워드 기반

Towards Compatible Fine-tuning for Vision-Language Model Updates

2024-12-30 · Zhengbo Wang, Jian Liang, Lijun Sheng, Ran He 외

So far, efficient fine-tuning has become a popular strategy for enhancing the capabilities of foundation models on downstream tasks by learning plug-and-play modules. However, existing methods overlook a crucial issue: i…

Language ModelingLanguage ModellingOut-of-Distribution Generalization

Connecting the Dots: Collaborative Fine-tuning for Black-Box Vision-Language Models

2024-02-06 · Zhengbo Wang, Jian Liang, Ran He, Zilei Wang 외

With the emergence of pretrained vision-language models (VLMs), considerable efforts have been devoted to fine-tuning them for downstream tasks. Despite the progress made in designing efficient fine-tuning methods, such …

Learning Fine-Grained Controllability on Speech Generation via Efficient Fine-Tuning

2024-06-10 · Chung-Ming Chien, Andros Tjandra, Apoorv Vyas, Matt Le 외

As the scale of generative models continues to grow, efficient reuse and adaptation of pre-trained models have become crucial considerations. In this work, we propose Voicebox Adapter, a novel approach that integrates fi…

An Empirical Study on the Transferability of Transformer Modules in Parameter-Efficient Fine-Tuning

2023-02-01 · Mohammad Akbar-Tajari, Sara Rajaee, Mohammad Taher Pilehvar

Parameter-efficient fine-tuning approaches have recently garnered a lot of attention. Having considerably lower number of trainable weights, these methods can bring about scalability and computational effectiveness. In t…

parameter-efficient fine-tuningTransfer Learning

Does Combining Parameter-efficient Modules Improve Few-shot Transfer Accuracy?

2024-02-23 · Nader Asadi, Mahdi Beitollahi, Yasser Khalil, Yinchuan Li 외

Parameter-efficient fine-tuning stands as the standard for efficiently fine-tuning large language and vision models on downstream tasks. Specifically, the efficiency of low-rank adaptation has facilitated the creation an…

parameter-efficient fine-tuning