← Latest papers
💻 computer science

Love Me, Love My Label: Rethinking the Role of Labels in Prompt Retrieval for Visual In-Context Learning

This paper introduces LaPR, a label-aware prompt retrieval framework that enhances Visual In-Context Learning performance by incorporating explicit label cues into prompt representations and employing a mixture-of-experts mechanism to infer query-adaptive label modes, thereby addressing the limitations of prior methods that overlook label consistency.

Original authors: Tianci Luo, Haohao Pan, Jinpeng Wang, Niu Lian, Xinrui Chen, Bin Chen, Shu-Tao Xia, Chun Yuan

Published 2026-04-07
📖 5 min read🧠 Deep dive

Original authors: Tianci Luo, Haohao Pan, Jinpeng Wang, Niu Lian, Xinrui Chen, Bin Chen, Shu-Tao Xia, Chun Yuan

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 are trying to teach a very smart but slightly confused robot how to do a specific job, like painting a picture or finding a lost dog in a photo. You can't just give it a manual; instead, you show it a few examples first. This is called Visual In-Context Learning (VICL). You show the robot: "Here is a picture of a dog, and here is the answer (a box around the dog). Now, look at this new picture and do the same thing."

The big challenge is: Which examples should you show the robot?

The Problem: The "Look-Alike" Trap

Previous methods were like a librarian who only looked at the cover of a book to decide if it was relevant.

  • The Scenario: You ask the robot to find a "Cat."
  • The Mistake: The librarian finds a picture that looks very similar to your cat (maybe it's a fluffy orange ball of fur), but the book's title (the label) says "Flower."
  • The Result: The robot gets confused. It sees a cat-like image but is told the answer is "Flower." It tries to guess the answer based on the wrong hint and fails.

The old way ignored the label (the text description) and only cared about how the images looked.

The Solution: LaPR (Love Me, Love My Label)

The authors of this paper, Tianci Luo and his team, came up with a new system called LaPR. Think of it as hiring a super-smart matchmaker who checks both the photo and the description before making an introduction.

Here is how LaPR works, broken down into simple concepts:

1. The "Tagged" Library

Instead of just storing pictures, LaPR stores pictures glued to their labels.

  • Old Way: "Here is a picture of a cat."
  • LaPR Way: "Here is a picture of a cat, and the label says 'Cat'."
    This ensures that when the robot looks for a cat, it doesn't accidentally get a picture of a flower that just happens to look like a cat.

2. The "Specialist Team" (Mixture of Experts)

Imagine you need to find a specific type of dog. A single librarian might not know the difference between a "Golden Retriever" and a "Poodle."
LaPR uses a team of specialists (called "Experts").

  • Expert 1 is great at spotting long ears.
  • Expert 2 is great at spotting pointy noses.
  • Expert 3 is great at spotting fluffy tails.

When you ask for a "Dog," LaPR doesn't just pick one expert. It asks the whole team to weigh in.

3. The "Smart Manager" (The Router)

Here is the tricky part: When you show the robot a new picture of a dog, you don't tell it what kind of dog it is yet (the label is hidden).

  • The Router is like a Smart Manager. It looks at the new picture and says, "Hmm, this dog has long ears and a fluffy tail. I think we should listen mostly to Expert 1 and Expert 3, and ignore Expert 2."
  • The Manager mixes the advice from the specialists to create a perfect, custom hint for the robot.

4. The "Alternating Dance" (Training)

Training this system is like teaching a dance duo where they take turns leading:

  • Step A (The Experts Dance): The specialists practice making better descriptions of the images. The Manager stands still.
  • Step B (The Manager Dances): The specialists freeze. The Manager practices guessing which specialists are needed for different pictures, based on whether the final answer was right or wrong.
  • They switch back and forth. This prevents them from getting confused and ensures both the image experts and the label-manager get really good at their jobs.

Why Does This Matter?

The paper tested this on three tasks:

  1. Segmentation: Cutting a specific object out of a photo (like cutting a cookie out of dough).
  2. Detection: Finding where an object is (like finding a car in a parking lot).
  3. Colorization: Turning a black-and-white photo into color.

The Result:
LaPR was significantly better than all previous methods.

  • Old Method: "I see a red ball. I'll guess it's a tomato." (Because the image looks like a tomato).
  • LaPR: "I see a red ball, but the label says 'Ball'. I'll guess it's a ball."

The Big Takeaway

The main lesson of this paper is simple: Don't just judge a book by its cover.

In the world of AI, if you want a computer to learn from examples, you must pay attention to what the examples are actually called (the labels), not just what they look like. By combining the visual "look" with the textual "name," and using a smart team of specialists to adapt to new situations, we can make AI much smarter and more reliable.

In short: LaPR teaches AI to "Love the label, not just the image," ensuring it gets the right answer every time.

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 →