paper-with-me

홈 › Papers

Teaching CLIP to Count to Ten

2023-02-23 · ICCV 2023 1 · Roni Paiss, Ariel Ephrat, Omer Tov, Shiran Zada, Inbar Mosseri, Michal Irani, Tali Dekel

Large vision-language models (VLMs), such as CLIP, learn rich joint image-text representations, facilitating advances in numerous downstream tasks, including zero-shot classification and text-to-image generation. Nevertheless, existing VLMs exhibit a prominent well-documented limitation - they fail to encapsulate compositional concepts such as counting. We introduce a simple yet effective method to improve the quantitative understanding of VLMs, while maintaining their overall performance on common benchmarks. Specifically, we propose a new counting-contrastive loss used to finetune a pre-trained VLM in tandem with its original objective. Our counting loss is deployed over automatically-created counterfactual examples, each consisting of an image and a caption containing an incorrect object count. For example, an image depicting three dogs is paired with the caption "Six dogs playing in the yard". Our loss encourages discrimination between the correct caption and its counterfactual variant which serves as a hard negative example. To the best of our knowledge, this work is the first to extend CLIP's capabilities to object counting. Furthermore, we introduce "CountBench" - a new image-text counting benchmark for evaluating a model's understanding of object counting. We demonstrate a significant improvement over state-of-the-art baseline models on this task. Finally, we leverage our count-aware CLIP model for image retrieval and text-conditioned image generation, demonstrating that our model can produce specific counts of objects more reliably than existing ones.

📄 PDF Abstract BibTeX arXiv:2302.12066

Code (1)

SforAiDl/CountCLIP pytorch

Tasks

counterfactualImage GenerationImage RetrievalObject CountingRetrievalText to Image GenerationText-to-Image Generationzero-shot-classificationZero-Shot Learning

Methods 이 논문이 사용한 방법론

fail 설명 없음
CLIP Contrastive Language-Image Pre-training (CLIP), consisting of a simplified version of ConVIRT trained from scratch, is an efficient method of image representation learning…

Similar Papers 제목 키워드 기반

CountCLIP -- [Re] Teaching CLIP to Count to Ten

2024-06-05 · Harshvardhan Mestha, Tejas Agrawal, Karan Bania, Shreyas V 외

Large vision-language models (VLMs) are shown to learn rich joint image-text representations enabling high performances in relevant downstream tasks. However, they fail to showcase their quantitative understanding of obj…

zero-shot-classificationZero-Shot CountingZero-Shot Learning

TeachCLIP: Multi-Grained Teaching for Efficient Text-to-Video Retrieval

2023-08-02 · Kaibin Tian, Ruixiang Zhao, Hu Hu, Runquan Xie 외

For text-to-video retrieval (T2VR), which aims to retrieve unlabeled videos by ad-hoc textual queries, CLIP-based methods are dominating. Compared to CLIP4Clip which is efficient and compact, the state-of-the-art models …

Retrievaltext similarityText to Video RetrievalVideo Retrieval

Long-Short Temporal Co-Teaching for Weakly Supervised Video Anomaly Detection

2023-03-31 · Shengyang Sun, Xiaojin Gong

Weakly supervised video anomaly detection (WS-VAD) is a challenging problem that aims to learn VAD models only with video-level annotations. In this work, we propose a Long-Short Temporal Co-teaching (LSTC) method to add…

Anomaly DetectionMultiple Instance LearningVideo Anomaly Detection

Is the Lecture Engaging for Learning? Lecture Voice Sentiment Analysis for Knowledge Graph-Supported Intelligent Lecturing Assistant (ILA) System

2024-08-20 · Yuan An, Samarth Kolanupaka, Jacob An, Matthew Ma 외

This paper introduces an intelligent lecturing assistant (ILA) system that utilizes a knowledge graph to represent course content and optimal pedagogical strategies. The system is designed to support instructors in enhan…

Sentiment Analysis

Expediting Contrastive Language-Image Pretraining via Self-distilled Encoders

2023-12-19 · Bumsoo Kim, Jinhyung Kim, Yeonsik Jo, Seung Hwan Kim

Recent advances in vision language pretraining (VLP) have been largely attributed to the large-scale data collected from the web. However, uncurated dataset contains weakly correlated image-text pairs, causing data ineff…

Knowledge Distillation