CLAMP: Contrastive LAnguage Model Prompt-tuning

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Teterwak, Piotr, Sun, Ximeng, Plummer, Bryan A., Saenko, Kate, Lim, Ser-Nam
Natura: Preprint
Pubblicazione: 2023
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913285724438528
author Teterwak, Piotr
Sun, Ximeng
Plummer, Bryan A.
Saenko, Kate
Lim, Ser-Nam
author_facet Teterwak, Piotr
Sun, Ximeng
Plummer, Bryan A.
Saenko, Kate
Lim, Ser-Nam
contents Large language models (LLMs) have emerged as powerful general-purpose interfaces for many machine learning problems. Recent work has adapted LLMs to generative visual tasks like image captioning, visual question answering, and visual chat, using a relatively small amount of instruction-tuning data. In this paper, we explore whether modern LLMs can also be adapted to classifying an image into a set of categories. First, we evaluate multimodal LLMs that are tuned for generative tasks on zero-shot image classification and find that their performance is far below that of specialized models like CLIP. We then propose an approach for light fine-tuning of LLMs using the same contrastive image-caption matching objective as CLIP. Our results show that LLMs can, indeed, achieve good image classification performance when adapted this way. Our approach beats state-of-the-art mLLMs by 13% and slightly outperforms contrastive learning with a custom text model, while also retaining the LLM's generative abilities. LLM initialization appears to particularly help classification in domains under-represented in the visual pre-training data.
format Preprint
id arxiv_https___arxiv_org_abs_2312_01629
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle CLAMP: Contrastive LAnguage Model Prompt-tuning
Teterwak, Piotr
Sun, Ximeng
Plummer, Bryan A.
Saenko, Kate
Lim, Ser-Nam
Computer Vision and Pattern Recognition
Large language models (LLMs) have emerged as powerful general-purpose interfaces for many machine learning problems. Recent work has adapted LLMs to generative visual tasks like image captioning, visual question answering, and visual chat, using a relatively small amount of instruction-tuning data. In this paper, we explore whether modern LLMs can also be adapted to classifying an image into a set of categories. First, we evaluate multimodal LLMs that are tuned for generative tasks on zero-shot image classification and find that their performance is far below that of specialized models like CLIP. We then propose an approach for light fine-tuning of LLMs using the same contrastive image-caption matching objective as CLIP. Our results show that LLMs can, indeed, achieve good image classification performance when adapted this way. Our approach beats state-of-the-art mLLMs by 13% and slightly outperforms contrastive learning with a custom text model, while also retaining the LLM's generative abilities. LLM initialization appears to particularly help classification in domains under-represented in the visual pre-training data.
title CLAMP: Contrastive LAnguage Model Prompt-tuning
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2312.01629