Directional Gradient Projection for Robust Fine-Tuning of Foundation Models

Chengyue Huang, Junjiao Tian, Brisa Maneechotesuwan, Shivang Chopra, Zsolt Kira
2/21/2025
cs.LGcs.AIcs.CL

No official code found. Best implementation: chengyuehuang511/DiGraP (1 star, last commit 2025-02-19).

Abstract

Robust fine-tuning aims to adapt large foundation models to downstream tasks while preserving their robustness to distribution shifts. Existing methods primarily focus on constraining and projecting current model towards the pre-trained initialization based on the magnitudes between fine-tuned and pre-trained weights, which often require extensive hyper-parameter tuning and can sometimes result in underfitting. In this work, we propose Directional Gradient Projection (DiGraP), a novel layer-wise trainable method that incorporates directional information from gradients to bridge regularization and multi-objective optimization. Besides demonstrating our method on image classification, as another contribution we generalize this area to the multi-modal evaluation settings for robust fine-tuning. Specifically, we first bridge the uni-modal and multi-modal gap by performing analysis on Image Classification reformulated Visual Question Answering (VQA) benchmarks and further categorize ten out-of-distribution (OOD) VQA datasets by distribution shift types and degree (i.e. near versus far OOD). Experimental results show that DiGraP consistently outperforms existing baselines across Image Classfication and VQA tasks with discriminative and generative backbones, improving both in-distribution (ID) generalization and OOD robustness.

View on arXivView PDF

Code Implementations(1)

[ICLR'25] The official implementation of "Directional Gradient Projection for Robust Fine-tuning of Foundation Models"

10Feb 19, 20251 years ago

Cite this paper

@article{huang2025directional,
  title  = {Directional Gradient Projection for Robust Fine-Tuning of Foundation Models},
  author = {Chengyue Huang and Junjiao Tian and Brisa Maneechotesuwan and Shivang Chopra and Zsolt Kira},
  year   = {2025},
  eprint = {2502.15895},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.15895v2},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.15895.svg)](https://codeofpaper.com/paper/2502.15895)

Discussion