GIFT: Generative Interpretable Fine-Tuning Transformers

Chinmay Savadikar, Xi Song, Tianfu Wu · OpenReview

Abstract

We present Generative Interpretable Fine-Tuning (GIFT) for parameter-efficient fine-tuning of pretrained Transformer backbones, which can be formulated as a simple factorized matrix multiplication in the parameter space or equivalently in the activation/representation space, and thus embraces built-in interpretability. For a layer with weights $\omega\in \mathbb{R}^{d_{out}\times d_{in}}$, our proposed GIFT learns the fine-tuned weights $\hat{\omega}$ directly from $\omega$ as $\hat{\omega}=\omega\cdot (\mathbb{I}+\phi_{d_{in}\times r}\cdot\psi_{r\times d_{in}})$. $\Theta=(\phi, \psi)$ are the learnable parameters of the two linear layers. $\Theta$ can be shared by all layers selected for fine-tuning, resulting in significantly fewer trainable parameters compared to layer-specific Low-Rank Adaptation (LoRA). We perform comprehensive evaluations on natural language tasks and fine-grained visual classification tasks. We obtain the best performance and parameter efficiency among baselines on commonsense reasoning, instruction tuning and visual recognition benchmarks.

Introduction

Fine-tuning Large Language Models (LLMs) is prohibitively expensive. To solve this, researchers use Parameter-Efficient Fine-Tuning (PEFT). The gold standard has been LoRA (Low-Rank Adaptation), which adds a small, trainable "residual" matrix to the frozen pretrained weights. However, recent LoRA variants face an "efficiency trilemma." Methods like DoRA improve performance but significantly increase training time. Others, like VeRA, drastically reduce parameter counts but suffer from poor performance or massive training overhead. Furthermore, most methods treat the pretrained weights as static anchors rather than active participants in the adaptation process.

GIFT (also referred to as WeGeFT: Weight-Generative Fine-Tuning) addresses this by creating a fine-tuning method that is efficient in every dimension—parameters, memory, and compute—while leveraging the knowledge already stored in the pretrained weights.

Methodology

The core innovation of GIFT is moving from additive updates to multiplicative, weight-aware updates.

Comparison of LoRA's additive approach vs. WeGeFT's weight-generative multiplicative approach.
  1. The Formulation: In standard LoRA, the update is $\Delta W = BA$. In GIFT, the update is generated by multiplying the pretrained weights ($W$) by two shared low-rank matrices ($\phi$ and $\psi$). The new weight becomes: $\hat{W} = W \cdot (I + \phi \psi)$.
  2. Weight-Aware Parameter Sharing: Unlike LoRA, where every layer gets its own unique $A$ and $B$ matrices, GIFT shares the $\phi$ and $\psi$ matrices across layers. Because these matrices multiply the unique pretrained weights of each layer, the resulting adaptation remains layer-specific while drastically reducing parameter counts.
  3. Generative Perspective: The authors view this as a "weight generator." They found that a simple linear transformation works better than complex non-linear neural networks (like Hypernetworks) because it minimally distorts pretrained knowledge while allowing the model to absorb new task-specific information.

Key Results and Evaluation

The authors evaluated GIFT across a massive battery of benchmarks including arithmetic reasoning (Math10k, GSM8k), commonsense reasoning (BoolQ, PIQA, etc.), instruction following (WizardLM), and visual recognition (VTAB-1k).

Performance vs. Parameter Efficiency across Commonsense, Code, and Math benchmarks.
  • Superior Efficiency: On the MetaMathQA benchmark, GIFT achieved 54.89% accuracy using only 0.068% trainable parameters. For comparison, LoRA required 0.297% parameters to reach only 42.08%.
  • No Speed Penalty: Unlike DoRA (which can be 5x slower than LoRA) or VeRA (up to 20x slower), GIFT maintains the same training "wall time" and GPU memory footprint as standard LoRA.
  • Scalability: GIFT's performance gains increase as the base model gets stronger, showing significant improvements when moving from Llama 1 to Llama 3.

Insights and Interpretability

  • Pretrained Weights as "Carry-over" Knowledge: By making the update a function of the original weight, the model generalizes better with fewer new parameters. The pretrained weights contain structural information that actively aids the fine-tuning process.
  • Emergent Interpretability: In computer vision tasks, the $\phi$ matrix (the first layer of the weight generator) naturally learns to act as a token-clustering head. Without explicit supervision, it learns to localize semantically meaningful parts of an image, such as a bird's wing or a car's tire.

Limitations and Future Work

While GIFT shows strong empirical results, a rigorous theoretical understanding of the optimization landscape of multiplicative weight updates is still needed. Future work could explore how weight-generative methods apply to Mixture-of-Experts (MoE) models or incorporate equivariant architectures for the weight generator to potentially improve results further.

Summary updated

BibTeX
@inproceedings{savadikar2025gift,
  author = {Chinmay Savadikar and Xi Song and Tianfu Wu},
  title = {{GIFT: Generative Interpretable Fine-Tuning Transformers}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=K0sv5T2usb},
}
Figure