CLIP Is Shortsighted: Paying Attention Beyond the First Sentence
The paper identifies that CLIP models trained on long captions suffer from a "shortsighted" bias where attention concentrates on the initial summary sentence, and proposes DeBias-CLIP, a parameter-free method that removes this summary and redistributes supervision to achieve state-of-the-art performance in long-text retrieval and improved robustness.
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
The Problem: The "First Sentence" Trap
Imagine you have a very smart student named CLIP. This student is an expert at matching pictures to descriptions. If you show CLIP a picture of a cat and say, "A cute cat," CLIP gets it right every time.
However, CLIP has a bad habit: it only reads the first sentence of a story.
In the real world, people often write long, detailed descriptions for images (like "A cat sleeping on a red rug, with a blue toy nearby, while a dog barks in the background"). But because CLIP was trained mostly on short, simple notes, it learned a shortcut: "I don't need to read the whole thing. The first sentence usually summarizes everything, so I'll just focus on that and ignore the rest."
The researchers found that if you take a long description, swap the first sentence with the last one, or delete the first sentence entirely, CLIP gets confused and fails. It's like a student who only memorizes the chapter summary and fails the test when the questions are about the details in the middle of the book.
The Diagnosis: Why is CLIP "Shortsighted"?
The paper shows that CLIP has a "bias" toward the beginning of the text.
- The Summary Shortcut: Most long captions start with a summary sentence (e.g., "This is a photo of a street market"). CLIP learns that this first sentence is the "key" to the image.
- The Attention Drop-off: As the text gets longer, CLIP's attention fades away. It's like a flashlight that is super bright at the start of a tunnel but goes dark after a few feet.
- The Consequence: If the important detail (like "the man is holding a green umbrella") is buried in the 10th sentence, CLIP misses it completely.
The Solution: DeBias-CLIP (The "Anti-Shortcut" Training)
The researchers created a new training method called DeBias-CLIP. Instead of trying to build a bigger brain or add new parts to the model, they changed how they fed the information to the student.
Think of it like a teacher changing the homework assignment to force the student to actually read the whole book:
- Ban the Summary: The teacher takes the first sentence (the summary) and throws it away during training. The student is forced to look at the rest of the text to understand the picture.
- Mix Up the Order: The teacher randomly picks sentences from the middle or end of the description and shuffles them. The student can't rely on the order anymore; they have to pay attention to every sentence.
- The "Head Start" Trick: The teacher adds some "dummy words" (padding) to the very beginning of the text. This pushes the actual important sentences further down the line. It forces the student's "flashlight" to shine on the later parts of the text, training them to see details that used to be in the dark.
The Results: A Better Student
After this new training, the results were impressive:
- No More Shortcuts: The new model (DeBias-CLIP) doesn't care if the summary is at the start, middle, or end. It reads the whole thing.
- Better at Long Stories: It became much better at finding images based on long, complex descriptions.
- Still Good at Short Stories: Surprisingly, it didn't get worse at simple tasks. It actually got better at matching short descriptions too.
- Robustness: Even if you scramble the sentences or delete the summary, the model still works.
The Big Picture Analogy
Imagine you are trying to find a specific house in a city.
- Old CLIP is like a person who only looks at the street sign at the very beginning of the block. If the house number is on the back of the house or if the street sign is missing, they get lost.
- DeBias-CLIP is like a detective who walks down the whole block, checking every door, every window, and every detail, regardless of where the information is located.
Why This Matters
This isn't just about matching pictures to words. It helps AI understand complex scenes, read long documents, and generate better images from detailed prompts. By fixing this "shortsightedness," the AI becomes more reliable and human-like in how it processes information, ensuring it doesn't miss the important details just because they weren't at the very top of the page.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.