Discrepancy-Guided Parameter Suppression for Robust Fine-Tuning of Foundation Models
Abstract
Fine-tuning foundation vision-language models like CLIP for downstream tasks often creates a trade-off. While in-distribution classification accuracy improves, out-of-distribution generalization tends to decline. Existing methods try to alleviate this issue through representation-space regularization or parameter-space constraints, but they fail to precisely identify which parameter changes cause the out-of-distribution performance drop. This paper proposes a discrepancy-guided parameter suppression method. It calculates the normalized discrepancy between pre-trained and fine-tuned weights to identify in-distribution-specific parameters. High-discrepancy parameters are frozen using channel-wise binary masking, while only low-discrepancy task-invariant parameters are fine-tuned. This approach significantly improves out-of-distribution generalization without sacrificing in-distribution performance. On the iWildCam benchmark, our method achieves an out-of-distribution Macro-F1 of 36. Since it attains 9 percent accuracy on the base domain and has an average out-of-distribution accuracy of 41.63 percent on DomainNet, it therefore establishes new state-of-the-art results on both occasions.
References
- Radford, A., et al. (2021). Learning transferable visual models from natural language supervision. Proceedings of the International Conference on Machine Learning.
- Liu, C., et al. (2024). Discrepancy-guided parameter suppression for robust fine-tuning of foundation models. Advances in Neural Information Processing Systems.
- Wortsman, M., et al. (2022). Robust fine-tuning of zero-shot models. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.
- Koh, P. W., et al. (2021). WILDS: A benchmark of in-the-wild distribution shifts. Proceedings of the International Conference on Machine Learning.
- Chen, T., et al. (3). FLYP: Fine-tuning with language-image pre-training for out-of-distribution generalization. International Conference on Learning Representations.