← Latest papers
🤖 AI

FOCUS: Forcing In-Context Object Localization through Visual Support Constraints and Policy Optimization

This paper introduces FOCUS, a two-stage training framework that combines visual support constraints and Group Relative Policy Optimization (GRPO) to achieve robust, category-agnostic in-context object localization without explicit supervision, enabling a 7B-parameter model to outperform significantly larger 72B models.

Original authors: Mohammed Asad Karim, Vinay Kumar Verma

Published 2026-06-01
📖 5 min read🧠 Deep dive

Original authors: Mohammed Asad Karim, Vinay Kumar Verma

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 friend who is incredibly smart at reading books but terrible at finding things in a messy room. If you ask them, "Find the red cup," they might look for any red cup because they know what a "cup" is. But what if you say, "Find that specific red cup with the chip on the rim, just like the one in this photo"? A normal smart friend might still get confused and grab a different red cup because they are relying on their general knowledge of "cups" rather than the specific visual clues you gave them.

This paper introduces a new way to teach computer vision models (AI that sees and understands images) to do exactly that: find a specific object based purely on visual examples, without relying on the object's name or category.

Here is the breakdown of their approach, FOCUS, using simple analogies:

The Problem: The "Name-Tag" Crutch

Current AI models are like students who are taught to solve math problems by memorizing the names of the numbers rather than understanding the logic.

  • The Issue: When these models try to find an object in a new photo, they often ignore the specific visual details (like shape, position, or unique scratches) and instead guess based on the object's name (e.g., "It's a dog, so it must look like a typical dog").
  • The Result: If you show them a photo of a dog wearing a hat and ask them to find "that specific dog" in a crowd of other dogs, they might pick the wrong one because they are thinking about "dogs" in general, not that dog.

The Solution: FOCUS (Forcing In-Context Object Localization)

The authors created a two-step training method to force the AI to stop guessing based on names and start looking based on visual evidence.

Step 1: The "Spotlight" Training (Attention Optimization)

Imagine you are teaching a child to find a hidden toy. Instead of saying "Find the teddy bear," you point to a picture of the toy and say, "Look right here."

  • What they did: They removed all the text labels (like "cat," "car," "dog") from the training process. The AI only sees a series of images: some with a box drawn around the target object, and one final image where it has to guess where that same object is.
  • The Trick: They added a special rule (a "loss function") that acts like a spotlight. If the AI's internal "eyes" (attention) look at the wrong part of the image or ignore the box in the example photo, the system gives it a "thumbs down." This forces the AI to learn: "I must look at the specific shape and position shown in the example, not just guess based on what I think the object is called."

Step 2: The "Coach's Whistle" (Reinforcement Learning with GRPO)

Once the AI knows where to look, it still needs to be precise. Imagine a coach watching an athlete practice throwing a ball.

  • What they did: They used a technique called Group Relative Policy Optimization (GRPO). Think of this as a coach who doesn't just say "Good job" or "Bad job." Instead, the coach asks the athlete to try the throw five different times.
  • The Comparison: The coach compares the five throws. If one throw is slightly better than the others, the coach says, "Do more of that." If one is worse, they say, "Stop doing that."
  • The Reward: The AI gets a "score" based on how well its drawn box matches the real object (using a metric called IoU, which is like measuring how much two shapes overlap). By constantly comparing its own attempts and picking the best ones, the AI learns to draw the box with extreme precision.

The Results: Small Brain, Big Wins

The most surprising part of the paper is the size of the model they used.

  • They trained a model with 7 billion parameters (think of this as a very smart but compact brain).
  • They compared it to massive models with 72 billion parameters (giant brains).
  • The Outcome: Their small, specially trained model beat the giant models. It proved that teaching the AI how to look (the strategy) is more important than just making the AI bigger (scaling).

Why This Matters (According to the Paper)

The paper claims this method is crucial for situations where:

  1. Objects don't have names: Like finding a specific, weirdly shaped rock or a custom-made tool that doesn't fit into standard categories.
  2. You need to find "that one" specific item: Like editing a photo to remove only the specific person you pointed at, not everyone who looks like them.
  3. Personalized Search: Finding "my specific blue mug" in a sea of other blue mugs.

In short, the paper teaches AI to stop relying on its "dictionary" and start relying on its "eyes," allowing it to find specific things in a crowd just by looking at a reference photo, even if it has never seen that exact object before.

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 →