Skip to main content
QUICK REVIEW

[Paper Review] Tuning LayerNorm in Attention: Towards Efficient Multi-Modal LLM Finetuning

Bingchen Zhao, Haoqin Tu|arXiv (Cornell University)|Dec 18, 2023
Topic ModelingComputer Science5 citations
TL;DR

This paper proposes tuning only the LayerNorm parameters in each attention block as a highly efficient method for fine-tuning Large Language Models into Multi-Modal Large Language Models (MLLMs). By framing the adaptation as domain shift, the method achieves performance comparable or superior to full fine-tuning and LoRA, reducing trainable parameters by 41.9% and GPU memory by 17.6%, while improving average performance by over 20% on five multi-modal tasks with a 13B model.

ABSTRACT

This paper introduces an efficient strategy to transform Large Language Models (LLMs) into Multi-Modal Large Language Models (MLLMs). By conceptualizing this transformation as a domain adaptation process, i.e., transitioning from text understanding to embracing multiple modalities, we intriguingly note that, within each attention block, tuning LayerNorm suffices to yield strong performance. Moreover, when benchmarked against other tuning approaches like full parameter finetuning or LoRA, its benefits on efficiency are substantial. For example, when compared to LoRA on a 13B model scale, performance can be enhanced by an average of over 20% across five multi-modal tasks, and meanwhile, results in a significant reduction of trainable parameters by 41.9% and a decrease in GPU memory usage by 17.6%. On top of this LayerNorm strategy, we showcase that selectively tuning only with conversational data can improve efficiency further. Beyond these empirical outcomes, we provide a comprehensive analysis to explore the role of LayerNorm in adapting LLMs to the multi-modal domain and improving the expressive power of the model.

Motivation & Objective

  • To address the high computational cost of fine-tuning large language models for multi-modal understanding.
  • To explore parameter-efficient fine-tuning strategies that maintain or exceed performance of full fine-tuning and LoRA.
  • To investigate whether normalization layers like LayerNorm play a pivotal role in domain adaptation from text to multi-modal understanding.
  • To evaluate the impact of data type—especially conversational data—on fine-tuning efficiency and performance.
  • To analyze the expressive power and optimization dynamics of LayerNorm-tuned models through layer similarity and gradient variance.

Proposed method

  • The method tunes only the LayerNorm parameters within each attention block during MLLM fine-tuning, while freezing all other model components.
  • It frames the shift from LLMs to MLLMs as a domain adaptation task, where LayerNorm tuning facilitates effective adaptation to multi-modal inputs.
  • The approach is further simplified into 'LayerNorm-simple', where only LayerNorm is trained across the entire model, reducing trainable parameters to just 0.004% of the model.
  • The method is combined with data curation, specifically using conversational data, to further enhance efficiency and performance.
  • Model expressiveness is analyzed via cross-layer cosine similarity of hidden representations, and optimization stability is evaluated through gradient variance analysis.
  • The method is evaluated across five multi-modal benchmarks using LLaMA2 13B and 7B models, comparing against full fine-tuning and LoRA.

Experimental results

Research questions

  • RQ1Can tuning only LayerNorm parameters in attention blocks achieve strong performance in multi-modal LLM fine-tuning, comparable to full parameter fine-tuning or LoRA?
  • RQ2Does LayerNorm tuning improve model expressiveness, as indicated by lower cross-layer representation similarity?
  • RQ3How does the choice of fine-tuning data—especially conversational data—impact model performance and efficiency?
  • RQ4What is the optimization behavior of LayerNorm tuning, particularly in terms of gradient variance during training?
  • RQ5Can a minimal parameter update strategy, such as training only LayerNorm, achieve state-of-the-art performance with significantly reduced computational cost?

Key findings

  • Tuning only LayerNorm parameters improves average performance by over 20% across five multi-modal tasks compared to LoRA on a 13B model.
  • The method reduces trainable parameters by 41.9% and GPU memory usage by 17.6% compared to LoRA, enabling efficient fine-tuning on consumer-grade GPUs.
  • The 'LayerNorm-simple' configuration, with only 0.004% of parameters trainable, outperforms LoRA by an average of 4.3% across five benchmarks.
  • Fine-tuning on conversational data alone improves model performance by an average of 50% compared to other data types like detailed descriptions or reasoning data.
  • LayerNorm-tuned models exhibit 10.6% lower average layer representation similarity than fully fine-tuned models, indicating higher expressive power and better generalization.
  • Gradient variance in LayerNorm-tuned models is significantly lower than in full fine-tuning, suggesting more stable optimization and improved convergence.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.