← Latest papers
💻 computer science

Bootstrapping MLLM for Weakly-Supervised Class-Agnostic Object Counting

This paper introduces WS-COC, the first MLLM-driven weakly-supervised framework for class-agnostic object counting that utilizes divide-and-discern dialogue tuning, compare-and-rank optimization, and global-and-local enhancement strategies to achieve performance comparable to fully-supervised methods while significantly reducing annotation costs.

Original authors: Xiaowen Zhang, Zijie Yue, Yong Luo, Cairong Zhao, Qijun Chen, Miaojing Shi

Published 2026-02-16
📖 4 min read☕ Coffee break read

Original authors: Xiaowen Zhang, Zijie Yue, Yong Luo, Cairong Zhao, Qijun Chen, Miaojing Shi

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, well-read librarian (the MLLM) how to count objects in a picture. This librarian has read millions of books and knows what a "car," a "person," or a "fish" looks like, but they have never been explicitly taught to count them in a crowd.

If you just hand them a photo of a crowded stadium and ask, "How many people are here?", the librarian might guess "about 50" because that's a number they've seen in stories, even if there are actually 5,000 people. They are great at understanding what things are, but bad at how many there are, especially when things are packed tight.

This paper introduces a new method called WS-COC to fix this problem. Instead of hiring an army of humans to draw a tiny dot on every single person in every photo (which is expensive and slow), the authors teach the librarian a few clever tricks using only the total number of people written on the back of the photo (a "weak" hint).

Here is how they do it, using three simple strategies:

1. The "Guess the Range" Game (Divide-and-Discern)

The Problem: Asking the librarian to guess the exact number (e.g., "Is it 1,243?") is too hard. It's like asking someone to guess a specific second on a clock without looking at the hands.
The Solution: Instead of asking for the exact number, the authors teach the librarian to play a game of "Higher or Lower."

  • Round 1: "Are there more than 1,000 people?" (Librarian says: "Yes.")
  • Round 2: "Are there more than 500?" (Librarian says: "Yes.")
  • Round 3: "Are there more than 250?" (Librarian says: "No.")
  • Round 4: "Are there more than 375?" ... and so on.

By breaking the big, scary number down into smaller, easier questions, the librarian gets better and better at narrowing down the answer until they can give a very accurate count. It's like finding a hidden treasure by checking if it's in the north half, then the south half, then the east quarter, etc.

2. The "Who Has More?" Race (Compare-and-Rank)

The Problem: Sometimes, the librarian gets confused because "counting" is a math concept, but "seeing" is a visual concept. It's hard to translate a picture directly into a number.
The Solution: Instead of asking "How many?", the authors ask the librarian to compare pictures.

  • They show the librarian four different photos of cars.
  • They ask: "Put these photos in order from the one with the fewest cars to the one with the most."
  • The librarian is really good at seeing which pile looks bigger or smaller. By practicing this "ranking" game, the librarian learns the relationship between the visual crowd and the number, which helps them get better at guessing the actual numbers later.

3. The "Zoom-In" Safety Net (Global-and-Local)

The Problem: When a crowd is super dense (like a mosh pit), the librarian tends to underestimate the number. They see a "blur of people" and think, "Oh, that's just a big group," rather than counting the individuals.
The Solution: The authors give the librarian a two-step safety net.

  • Step A (The Big Picture): Ask for the total count of the whole image.
  • Step B (The Zoom-In): If the librarian thinks the crowd is huge, cut the image into four smaller squares (like a pizza). Ask the librarian to count the people in each small square separately.
  • The Magic Mix: Sometimes the librarian underestimates the whole picture, but overestimates the small squares (because they see the edges of people twice). The authors simply take the average of the "Big Picture" guess and the "Small Squares" guess. It's like taking two different maps and averaging them to find the true location.

The Result

By using these three tricks, the authors taught the librarian to count objects in any category (cars, people, fish, birds) without needing a human to draw dots on every single object.

  • Before: The librarian was okay with sparse crowds but terrible with dense ones.
  • After: The librarian is now almost as good as the most expensive, fully-trained experts (who required thousands of hours of human dot-drawing), but they learned it using much cheaper, simpler hints.

In short: They didn't force the AI to memorize the answer; they taught it how to think about counting by breaking problems down, comparing scenes, and double-checking its work.

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 →