← Latest papers
💬 NLP

Mitigating the Modality Gap: Few-Shot Out-of-Distribution Detection with Multi-modal Prototypes and Image Bias Estimation

This paper proposes SUPREME, a few-shot tuning framework that mitigates the modality gap in vision-language models for out-of-distribution detection by integrating image prototypes, estimating image domain bias for prompt generation, and enforcing image-text consistency to significantly outperform existing methods without additional training.

Original authors: Yimu Wang, Evelien Riddell, Adrian Chow, Sean Sedwards, Krzysztof Czarnecki

Published 2026-01-27
📖 4 min read☕ Coffee break read

Original authors: Yimu Wang, Evelien Riddell, Adrian Chow, Sean Sedwards, Krzysztof Czarnecki

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very smart, well-read librarian (the AI model) who has spent years studying a specific library of books (the "In-Distribution" or ID data). This librarian is excellent at recognizing books from that library. However, in the real world, people often bring in pamphlets, magazines, or random flyers (the "Out-of-Distribution" or OOD data) and ask, "Is this from our library?"

The problem is that the librarian sometimes gets confused. Even though the flyer isn't from the library, it might look visually similar to a book cover, or the words on it might sound vaguely familiar. The librarian might mistakenly say, "Yes, this is one of ours!" when it's actually something new. This is called a False Positive.

This paper introduces a new system called SUPREME to help the librarian make better decisions. Here is how it works, broken down into simple concepts:

1. The Problem: The "Language Barrier"

The AI model used here (called CLIP) is like a bilingual person who speaks "Image" and "Text."

  • The Old Way: Previous methods only asked the librarian to compare the incoming picture to a list of text descriptions (e.g., "a photo of a cat").
  • The Issue: There is a "Modality Gap." Imagine the "Image" language and the "Text" language live in two different neighborhoods. Even if a picture of a random dog (OOD) is semantically different from a cat, it might accidentally land very close to the "Cat" text description in the AI's mind just by chance. This causes the librarian to get confused and accept the wrong item.

2. The First Fix: Bringing in the "Photo Album"

The authors realized that relying only on text descriptions is risky.

  • The Analogy: Instead of just asking, "Does this look like the word 'Cat'?", they also ask, "Does this look like the actual photos of cats we have in our album?"
  • The Result: By using both the text descriptions and a collection of real example photos (called "Prototypes") as reference points, the system creates a tighter, more accurate boundary. It's like having both a dictionary definition and a photo album to check against. This alone improved the system's accuracy without needing any extra training.

3. The Second Fix: The "Translator" and the "Bias" (SUPREME)

To fix the "Language Barrier" even further, they built a special framework called SUPREME. It has two main tools:

  • Tool A: The "Biased Prompt" (BPG)

    • Imagine the librarian is studying for a test using only a few sample pages (Few-Shot learning). They might memorize those specific pages too well and fail to recognize new, slightly different pages from the same library.
    • The Solution: The system adds a "Gaussian Bias." Think of this as a safety net or a "generalized map" of what the library usually looks like. It prevents the librarian from over-focusing on the few sample pages they studied and helps them understand the general "vibe" of the library, even for images they haven't seen before.
  • Tool B: The "Translator" (ITC - Image-Text Consistency)

    • The Problem: The "Image" neighborhood and the "Text" neighborhood are still far apart.
    • The Solution: The system builds a bridge (a translator) between the two. It takes an image, translates it into "text language," and checks if it matches the text descriptions. Then, it takes that text, translates it back into "image language," and checks if it still looks like the original image.
    • The Goal: This forces the two languages to get closer together, reducing the confusion gap. If the translation works perfectly, the system knows it's on the right track.

4. The Final Score: The "Super-Score"

Finally, the paper introduces a new way to calculate the final decision, called SGMPS_{GMP}.

  • Instead of just looking at one angle (Image vs. Text), this score looks at four angles at once:
    1. Original Image vs. Text Descriptions
    2. Original Image vs. Photo Album
    3. Translated Image vs. Text Descriptions
    4. Translated Image vs. Photo Album
  • By averaging these four perspectives, the system gets a much clearer picture of whether an item truly belongs in the library or not.

The Bottom Line

The paper shows that by combining text descriptions with actual photos, and by using a translator to bridge the gap between how the AI sees pictures and how it reads words, the system becomes much better at spotting "imposters" (OOD data).

In their tests, this new method (SUPREME) consistently outperformed all other existing methods, making fewer mistakes and catching more "fake" items that tried to sneak into the library. It does this without needing to retrain the whole brain of the AI, just by tweaking how it looks at the data.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →