# Poster 28802

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/28802

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Thank you for your interest in our work. I'm going to present directional gradient projection for robust fine-tuning of foundation models. Previous research found that unconstrained fine-tuning of pre-trained foundation models can lead to worse robustness and generalization capability. The goal of our work is to fine-tune the model to adapt to the downstream tasks, but at the same time preserve the robustness of the pre-trained models.
Previous work formulates robust fine-tuning as a regularization problem where they use the distance between the fine-tuned and pre-trained weights as the regularization term. This way, the fine-tuned weights do not deviate too much from the pre-trained weights, thus can preserve the robustness of the pre-trained model.
The problem is the regularization strength lambda is not intuitive enough to tune and it is not flexible to be applied differently across layers. We propose to view robust fine-tuning as a multi-objective optimization problem where we see the training loss and distance as two objectives and the overall goal is to minimize the two objectives at the same time.
However, conflicting gradients can lead to counterproductive updates of different objectives. Thus, PC-grad proposes a solution to project one gradient onto the normal plane of the other, so that the gradients after projection can face towards the same direction.
Inspired by PCGrad, we propose our method Directional Gradient Projection, DigRep for short. We use g1 and g2 to represent two gradients of the two objectives. For each layer, if the projecting condition meets, which means that if the two gradients are conflicting, then we project g1 to the orthogonal direction of g2.
with omega ranging from 0 to 1 to control the directional projection strength. Omega equals 0 means there is an unconstrained update and omega equals 1 means there is a full orthogonal projection. The s-diagram is equivalent to regularization except that lambda varies across layers. In the paper we also make omega trainable for easy tuning and better performance.
First, we test DI -GREP on the traditional image classification task on domain net. DI-GREP achieves the best out-of-distribution performance and is competitive in distribution performance.
Since previous evaluation setting focuses mostly on unimodal tasks, we generalize this area to multimodal evaluation settings. We first bridge the gap by reformulating image classification as visual question answering tasks.
Furthermore, we leverage 10 existing VQA datasets and categorize them into different shift types covering from unimodal to multimodal distribution shifts and different shift degrees such as near and far OD. They grab up-to-front baselines across ID and near OD and is competitive on far OD datasets.
In conclusion, we propose directional gradient projection for robust fine-tuning from a multi -objective optimization point of view, and we generalize the robust fine-tuning evaluation to multi-model settings and generative models. Here's our link to the code and paper. Thank you so much for listening.
