← Latest papers
💻 computer science

AnyDepth-DETR/-YOLO: Any-depth object detection with a single network

This paper introduces AnyDepth-DETR/-YOLO, a framework that enables a single object detection network to dynamically adjust its depth at inference time to span a continuous range of accuracy-efficiency trade-offs without retraining, by employing a skip-able refinement path architecture and self-distillation training to preserve feature hierarchy and ensure stage-wise modularity.

Original authors: Woochul Kang, Hyungseop Lee, Jiho Lee

Published 2026-05-12
📖 4 min read☕ Coffee break read

Original authors: Woochul Kang, Hyungseop Lee, Jiho Lee

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 team of expert detectives trying to find objects in a video. Usually, to handle different situations, you need to hire two different teams: one that is fast and scrappy (good for quick checks but might miss details) and one that is slow and meticulous (great for accuracy but takes forever). In the world of AI object detection, this means you have to build and maintain two completely separate computer models.

The paper "AnyDepth-DETR/-YOLO" introduces a new way to do this: a single detective team that can instantly change its own size.

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

1. The Problem: The "One-Size-Fits-None" Dilemma

Currently, AI models are like static buildings. If you want a building that is very tall (high accuracy), you build it with 20 floors. If you need a quick, low-cost structure (high speed), you build a 5-floor version. You can't just "remove" floors from the tall building on the fly without it collapsing, and you can't magically add floors to the short one. So, developers have to train and store multiple separate models for every different scenario.

2. The Solution: The "Modular" Detective Team

The authors created a network that is built like a modular construction set. Instead of a single solid block of layers, every stage of the network is split into two paths:

  • The Essential Path (The Core): This is the "must-have" part. It always runs. Think of it as the detective's basic training and core instincts. It's fast and lightweight.
  • The Refinement Path (The Extra Help): This is the "optional" part. It's like bringing in a specialist or a magnifying glass. It only runs if you have extra time and computing power.

The Magic Trick:
Because of how they built it, you can mix and match these paths.

  • Need maximum speed? Run only the "Essential Path" through the whole network.
  • Need maximum accuracy? Run the "Essential Path" plus all the "Refinement Paths."
  • Need something in between? Turn on the refinement path for just the first half of the network.

The best part? It's all one single model. You don't need to retrain it or switch files. You just flip a switch at the moment of use to decide how "deep" (how many layers) the network thinks.

3. The Training Challenge: Teaching the Team to Agree

You might think, "If I train a team to work in two different modes (fast vs. slow), they might get confused."

  • If the "Fast Mode" learns to ignore a detail, but the "Slow Mode" needs that detail, the weights (the brain of the AI) get conflicting instructions.
  • The paper solves this using a technique called Self-Distillation.

The Analogy:
Imagine a master chef (the "Super-Net") and an apprentice chef (the "Base-Net") working in the same kitchen.

  1. The Master Chef cooks the full, complex dish (using all paths).
  2. The Apprentice cooks the simple version (using only essential paths).
  3. The Master Chef doesn't just taste the food; they teach the Apprentice. They say, "Hey, when you skip the garnish, make sure the base flavor still tastes like my dish, just simpler."

They use a special training method where the "Master" and "Apprentice" constantly check each other's work to ensure that even if the Apprentice skips steps, the final result is still compatible with what the Master would have produced. This ensures that no matter which "depth" you choose later, the network doesn't break.

4. The Results: One Model to Rule Them All

The authors tested this on two famous AI models (RT-DETR and YOLOv12).

  • The Full Version: When they ran the full network, it was just as good as the best existing models.
  • The Fast Version: When they turned off the extra refinement paths, the model became 1.8 times faster (almost double the speed) while only losing a tiny bit of accuracy (about 2 points on a standard scale).

Why This Matters

Think of it like a smartphone camera.

  • In the morning, you might just need a quick snapshot (using the "Essential Path" for speed).
  • At night, you might need a high-quality, detailed photo (using the "Full Path" for accuracy).

Instead of having two different cameras in your phone, this technology allows one single camera to instantly switch modes depending on the lighting and your needs, without needing to download a new app or update the software. It saves space, saves money, and makes AI much more flexible for real-world use.

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 →