AI News HubLIVE
Original source2 min read

C-GAP: Class-Aware and Online Prompting Improves Vision-Language Models on Imbalanced Classes

C-GAP is a novel framework that improves detection of rare object classes in vision-language models by iteratively refining language prompts using a large language model (LLM), without retraining or additional annotations. It operates in two phases: first, establishing a composite caption baseline combining scene descriptions and class-quantity context; second, an LLM iteratively refines each image's caption based on minority-class average precision (AP) thresholds. Experiments show up to 53% improvement in minority-class AP, and ~81% relative improvement on COCO.

SourcearXiv Computer VisionAuthor: Francis Fernandez, Arash Jahangiri, Salimeh Sekeh

-->

[Submitted on 10 Jul 2026]

Title:C-GAP: Class-Aware and Online Prompting Improves Vision-Language Models on Imbalanced Classes

View a PDF of the paper titled C-GAP: Class-Aware and Online Prompting Improves Vision-Language Models on Imbalanced Classes, by Francis Fernandez and 2 other authors

View PDF HTML (experimental)

Abstract:Safety-critical perception systems must reliably detect rare object classes within small label spaces, a setting that long-tailed detection methods, designed for hundreds of classes with dense annotation, fundamentally do not address. Open-vocabulary detectors offer a promising alternative, as they use natural language queries at inference time, making prompt quality a first-class lever for detection performance. We exploit this property to address class imbalance: rather than retraining models or collecting additional annotations, we ask whether iteratively refining the language prompts, fed to frozen detectors, can improve minority class detection. We introduce C-GAP Caption-Guided Augmentation and Prompting), a detector-agnostic, annotation-free framework that operates in two phases. First, we establish a composite caption baseline combining per-image scene descriptions with class-quantity context, which we show outperforms scene-description only or class-quantity-only prompts across multiple open-vocabulary architectures and benchmarks. Second, an LLM iteratively refines each image's caption individually, with trials triaged into accept, tentative, or regenerate buckets based on minority-class [email protected] against a dynamic threshold derived from the composite baseline. Refinement terminates early once sufficient [email protected] gain is achieved. No detector weights are updated at any stage. Our experiments shows that C-GAP improves minority-class average precision up to 53% over the baselines. On COCO, C-GAP improves minority-class [email protected] by ~81% relative over the composite baseline (17.69 -> 32.09). Experiments confirm that composite captions provide the critical foundation for effective refinement: using scene-description-only or class-quantity-only prompts as the refinement starting point yields diminishing returns, supporting both stages of C-GAP as necessary contributions.

Subjects:

Computer Vision and Pattern Recognition (cs.CV)

Cite as: arXiv:2607.09008 [cs.CV]

(or arXiv:2607.09008v1 [cs.CV] for this version)

https://doi.org/10.48550/arXiv.2607.09008

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Francis Fernandez [view email] [v1] Fri, 10 Jul 2026 00:24:41 UTC (5,692 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled C-GAP: Class-Aware and Online Prompting Improves Vision-Language Models on Imbalanced Classes, by Francis Fernandez and 2 other authors

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.CV

new | recent | 2026-07

Change to browse by:

cs

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)