AHMAD: Adaptive Hybrid Multi-task Vision Learning with Assisted Distillation for Keypoint Detection

Mohammad Mahdi, Nedyalko Prisadnikov, Yuqian Fu, Carmelo Scribano, Danda Pani Paudel, Luc Van GoolarXiv 2026

TL;DR

AHMAD is a generalist vision framework that unifies five core tasks—semantic segmentation, instance segmentation, depth estimation, keypoint detection, and object detection—into a single encoder-decoder architecture. By introducing a novel knowledge distillation method for keypoint detection, it achieves a 2.7x inference speedup while setting new performance benchmarks for generalist models on the COCO dataset.

What Problem Does This Paper Address?

In the world of Natural Language Processing, "generalist" models like GPT-4 handle diverse tasks through a unified text interface. Computer vision has struggled to replicate this simplicity. Vision tasks are inherently messy: some require dense pixel-level masks (segmentation), others require continuous values (depth), and some need sparse, structured coordinates (object detection).

Existing generalist vision models often try to "homogenize" these outputs—for example, by treating every task as an image inpainting problem or converting everything into discrete tokens. However, these methods often require complex pre- and post-processing or computationally expensive serialization techniques like VQ-GANs. Furthermore, high-performing tasks like top-down keypoint detection usually require running the model multiple times for every person in an image, which is a massive bottleneck for a generalist system intended to process an image in a single pass.

Methods

The authors propose AHMAD (Adaptive Hybrid Multi-task vision learning with Assisted Distillation). The architecture is elegantly simple:

  1. Shared Backbone: A powerful Vision Transformer (ViT-L) encoder initialized with DINOv2 weights.
  2. Shared Decoder: A lightweight CNN-based upscaler that produces a rich, high-resolution feature map ($F_x$).
  3. Task-Specific Projectors: Shallow, lightweight heads that map the shared feature map to specific task outputs.
Figure 1. Our Proposed Training Framework. We leverage a powerful vision transformer encoder combined with a CNN-based decoder to generate a rich feature map, which contains represen- tations useful for various tasks. Task-specific projectors are then applied to perform different tasks.

To handle the diverse nature of these tasks, they employ two key innovations:

  • Edge Distance Sampling (EDS): For dense tasks, they weight the loss function to focus on object boundaries. This prevents the model from being overwhelmed by large, easy-to-predict background areas and forces it to learn the difficult transitions between objects.
  • KD* (Assisted Distillation): To solve the efficiency problem of keypoint detection, they use knowledge distillation. A "teacher" model performs standard, slow top-down detection (cropping the image for each person). A "student" model learns to predict those same keypoints by cropping the feature map from a single global forward pass. To prevent spatial information loss during feature cropping, they introduce a Training-Free Upscaler (TFU) that reshuffles channels to boost spatial resolution.
The KD* method allows for single-pass keypoint detection by distilling knowledge from a standard top-down teacher into a feature-cropping student.

Datasets

The model is trained and evaluated primarily on the COCO benchmark, covering all five tasks. For the depth estimation task, since COCO lacks ground truth depth, the authors generated pseudo-labels using DepthAnythingV2.

Key Insights and Ideas

  • Complementary Learning: The authors found that training these five tasks together leads to a "complementary boost." The shared representations learned for segmentation, for instance, help the model better understand object boundaries for detection.
  • Feature-Space Cropping: The most significant "aha moment" is that you don't need to re-run an expensive encoder for every object in an image. By distilling the knowledge of a top-down model into a student that crops features instead of pixels, you can maintain the accuracy of top-down methods with the speed of global methods.
  • Simplicity Wins: Unlike models that try to force every task into a "sequence-to-sequence" format, AHMAD keeps the task-specific heads simple. This avoids the overhead of complex tokenization while still benefiting from a massive, shared backbone.

Key Results

AHMAD demonstrates impressive performance across the board, particularly in segmentation:

  • State-of-the-Art Generalist Performance: Achieved a PQ of 53.1 and mIoU of 66.5 on COCO-val, significantly outperforming other generalist models like Painter (22.3% boost) and Pix2Seq-D.
  • Efficiency: The KD distillation method achieved a 2.7x speedup* in inference time for keypoint detection compared to standard top-down approaches.
  • Competitive Detection: Reached an mAP of 44.6 for object detection and an OKS-mAP of 68.12 for keypoints.
Qualitative results showing AHMAD's predictions across all five tasks on diverse images.

Limitations and Future Work

While the KD* method provides a massive speedup, there is still a performance gap between the distilled student (41.32 OKS-mAP) and the standard top-down approach (62.6 OKS-mAP). The authors note that further engineering is needed to close this gap.

Additionally, the current framework is limited to the five tasks selected. Future work aims to incorporate higher-resolution training and expand the model to handle even more diverse vision tasks, such as video-based understanding or 3D scene reconstruction.

Summary updated

BibTeX
@misc{mahdi2026ahmad,
  author = {Mohammad Mahdi and Nedyalko Prisadnikov and Yuqian Fu and Carmelo Scribano and Danda Pani Paudel and Luc Van Gool},
  title = {{AHMAD: Adaptive Hybrid Multi-task Vision Learning with Assisted Distillation for Keypoint Detection}},
  year = {2026},
  eprint = {2609.35490},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.35490},
}
Figure