← Latest papers
🤖 machine learning

KODA: Contrastive Representation Comparison and Alignment for Vision-Language Foundation Models

This paper introduces KODA, a kernel-based framework that identifies and aligns structurally discrepant sample subsets between vision-language foundation models by optimizing for coherent structures in one representation while suppressing them in another, utilizing randomized approximations to scale to large datasets.

Original authors: Youqi Wu, Mohammad Jalali, Farzan Farnia

Published 2026-06-04
📖 4 min read☕ Coffee break read

Original authors: Youqi Wu, Mohammad Jalali, Farzan Farnia

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 two different art critics, let's call them Critique A and Critique B. Both of them look at a massive gallery of photos and their descriptions. They both seem to agree on the "big picture" of what makes a good photo, but if you look closely, they organize the gallery in very different ways.

  • Critique A might group all photos of "surfing" together, regardless of the weather.
  • Critique B might separate them into "surfing in the rain" and "surfing in the sun," but mix up the "surfing" photos with "skiing" photos because they both involve sliding on something.

Usually, to see who is better, we just ask them to play a game (like a quiz) and see who gets the highest score. But that doesn't tell us why they are different or which specific photos they disagree on.

This paper introduces a new tool called KODA (Kernel Optimization for Discrepancy Analysis). Think of KODA as a detective that finds the specific "blind spots" or "superpowers" of one critic compared to the other.

How KODA Works (The Analogy)

Imagine you have a giant box of mixed-up Lego bricks (the data).

  1. The Goal: You want to find a handful of bricks that Critique A thinks belong together in a perfect tower, but Critique B thinks are just a messy pile on the floor.
  2. The Process: KODA doesn't just look at the whole box. It uses a mathematical "flashlight" to scan through the bricks. It asks: "Show me a group of bricks that Critique A loves to cluster together, but Critique B completely ignores or scatters."
  3. The Result: KODA points to a specific subset of data. For example, it might say: "Hey, look at these photos of baseball players sliding into bases. Critique A sees them as a tight, clear group. Critique B sees them as random, unrelated images."

The "Secret Sauce" (Technical Bits Simplified)

The paper mentions some complex math terms, but here is what they actually mean in plain English:

  • Contrastive Embedding Clustering: This is just a fancy way of saying "finding the differences in how things are grouped." KODA is looking for the "clumps" that exist in one model's mind but are missing in the other's.
  • The Optimization Problem: Imagine trying to find the perfect angle to shine a light. You want the light to be super bright on the things Critique A likes, but you have a rule: the light must be very dim on the things Critique B likes. KODA solves this math puzzle to find that perfect angle.
  • Random Fourier Features (The Speed Trick): Doing this math on millions of photos is usually like trying to count every grain of sand on a beach one by one—it takes forever. KODA uses a clever shortcut (like taking a high-quality photo of the beach and counting the pixels instead) to do the math super fast without losing accuracy. This allows it to work on huge datasets like MS-COCO.

What Did They Find?

The authors tested KODA on famous AI models like CLIP, BLIP, and SigLIP. Here is what the "detective" found:

  • Different Priorities: Even though these models are all trained to understand images and text, they organize the world differently.
    • Example: One model might group images of "zebras" very tightly, while another model might mix "zebras" with "horses" or "striped shirts."
  • Actionable Insights: KODA didn't just say "they are different." It actually pulled out specific lists of images and captions.
    • Example: It found that BLIP is really good at grouping images of "people surfing" together, while CLIP was a bit more scattered on that specific topic.
  • Fixing the Models: The authors showed that if you take the specific "messy" group of photos that one model struggles with, and re-train that model only on those photos, the model suddenly gets much better at organizing them. It's like giving a student extra practice only on the math problems they got wrong, rather than making them redo the whole textbook.

Why Does This Matter?

Currently, if you want to pick an AI model, you look at a leaderboard score. It's like picking a car based only on its top speed.

KODA gives you a mechanic's report. It tells you: "This car is fast, but its suspension is weird on gravel roads." It helps researchers understand exactly where and why models differ, allowing them to fix specific weaknesses or choose the right model for a specific type of data, rather than just guessing based on a single number.

In short: KODA is a tool that stops us from just comparing AI models by their final scores and starts helping us understand the unique "personality" and specific blind spots of each model.

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 →