Aligning Visual Contrastive learning models via Preference Optimization

Amirabbas Afzali, Borna Khodabandeh, Ali Rasekh, Mahyar JafariNodeh, Sepehr kazemi +1 more
11/12/2024
cs.CVcs.LG

No official code found. Best implementation: Amirabbas-Afzali/Aligning-Visual-Contrastive-learning-models-via-Preference-Optimization (2 stars, last commit 2025-02-26).

Abstract

Contrastive learning models have demonstrated impressive abilities to capture semantic similarities by aligning representations in the embedding space. However, their performance can be limited by the quality of the training data and its inherent biases. While Preference Optimization (PO) methods such as Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO) have been applied to align generative models with human preferences, their use in contrastive learning has yet to be explored. This paper introduces a novel method for training contrastive learning models using different PO methods to break down complex concepts. Our method systematically aligns model behavior with desired preferences, enhancing performance on the targeted task. In particular, we focus on enhancing model robustness against typographic attacks and inductive biases, commonly seen in contrastive vision-language models like CLIP. Our experiments demonstrate that models trained using PO outperform standard contrastive learning techniques while retaining their ability to handle adversarial challenges and maintain accuracy on other downstream tasks. This makes our method well-suited for tasks requiring fairness, robustness, and alignment with specific preferences. We evaluate our method for tackling typographic attacks on images and explore its ability to disentangle gender concepts and mitigate gender bias, showcasing the versatility of our approach.

View on arXivView PDF

Code Implementations(1)

20Python, Jupyter NotebookOct 2, 20241 years ago

Similar Papers

Cite this paper

@article{afzali2024aligning,
  title  = {Aligning Visual Contrastive learning models via Preference Optimization},
  author = {Amirabbas Afzali and Borna Khodabandeh and Ali Rasekh and Mahyar JafariNodeh and Sepehr kazemi and Simon Gottschalk},
  year   = {2024},
  eprint = {2411.08923},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.08923v3},
  journal = {ICLR 2024 2024}
}

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/2411.08923.svg)](https://codeofpaper.com/paper/2411.08923)

Discussion