← Latest papers
💻 computer science

A Survey on Class-Agnostic Counting: Advancements from Reference-Based to Open-World Text-Guided Approaches

This paper provides the first comprehensive survey of class-agnostic counting (CAC), proposing a taxonomy that categorizes methodologies into reference-based, reference-less, and open-world text-guided paradigms while evaluating 30 architectures across key benchmarks.

Original authors: Luca Ciampi, Ali Azmoudeh, Elif Ecem Akbaba, Erdi Sarıtaş, Ziya Ata Yazıcı, Hazım Kemal Ekenel, Giuseppe Amato, Fabrizio Falchi

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

Original authors: Luca Ciampi, Ali Azmoudeh, Elif Ecem Akbaba, Erdi Sarıtaş, Ziya Ata Yazıcı, Hazım Kemal Ekenel, Giuseppe Amato, Fabrizio Falchi

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 at a massive, crowded music festival. You are tasked with counting things, but there’s a catch: you don't know what you're looking for until the very last second.

One moment, someone yells, "Count the red hats!" The next, "Count the soda cans!" and then, "Count the people wearing sunglasses!"

This paper is a "state-of-the-art report" on how scientists are teaching Artificial Intelligence (AI) to do exactly that. This field is called Class-Agnostic Counting (CAC).

The Problem: The "Specialist" vs. The "Generalist"

Most current AI is like a Specialist. If you train an AI to count apples, it becomes an expert at apples. But if you show it a single orange, it will stare at it blankly, or worse, try to call it an apple. To make a Specialist count something new, you have to go back to school, give it thousands of new pictures, and retrain it from scratch. This is slow and expensive.

The researchers in this paper are looking at Generalists—AI that can walk into a room, see something new, and say, "I've never seen that before, but I can see there are 12 of them."


The Three "Levels" of Intelligence

The paper organizes these Generalist AIs into three different "evolutionary stages," much like how humans learn:

1. The "Show and Tell" Method (Reference-Based)

The Analogy: Imagine a toddler. If you want them to count marbles, you pick up one marble, show it to them, and say, "Count these."
How it works: You give the AI a "cheat sheet" (called an exemplar). You show it a small box containing one or two objects, and the AI says, "Got it! I'll find everything that looks like that."

  • Pros: It’s incredibly accurate.
  • Cons: It’s a bit of a chore. A human still has to manually point at the objects first.

2. The "Pattern Seeker" Method (Reference-Less)

The Analogy: Imagine you are looking at a patterned wallpaper. You don't need anyone to show you what a "flower" is; you just notice that the same shape keeps repeating over and over. You think, "Whatever that shape is, there are 50 of them."
How it works: The AI looks for repetition. It doesn't need a cheat sheet; it just identifies the most common, repeating pattern in the image and counts it.

  • Pros: It’s fully automatic. No human help needed.
  • Cons: It can get confused. If there are two different repeating patterns (like polka dots and stripes), it might get "distracted" and count the wrong thing.

3. The "Magic Wand" Method (Text-Guided)

The Analogy: This is like having a genie. You don't show the genie a picture; you just whisper, "Count the blue butterflies," and it happens.
How it works: This is the newest and coolest tech. It uses "Vision-Language Models" (like a specialized version of ChatGPT that can see). You type a description in plain English, and the AI uses its "brain" to connect your words to the pixels in the image.

  • Pros: It’s incredibly flexible and feels natural to use.
  • Cons: Sometimes the genie is a bit literal or "hallucinates." If you ask for "blue butterflies" in a field of blue flowers, it might accidentally count the flowers instead.

The Big Takeaway: The "Price of Convenience"

The researchers discovered a fundamental rule of the universe in AI: The more freedom you give the AI, the more mistakes it makes.

  • If you give the AI a cheat sheet (Reference-based), it is a Master Counter (very high accuracy).
  • If you just give it words (Text-guided), it is a Lazy Genius (very convenient, but prone to silly errors).

Why does this matter?

This isn't just about counting toys. This technology is the key to:

  • Agriculture: A drone flying over a farm counting pests or ripening fruit without needing a human to program every single bug type.
  • Traffic: Counting cars, bikes, or pedestrians in real-time to manage city flow.
  • Medicine: Counting cells or bacteria in a lab setting.

In short: This paper is a roadmap for moving AI from "rigid machines that only know what they're told" to "flexible observers that can understand the world just by looking and listening."

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 →