Manuscript Offprint

arXiv:2609.35490

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 Gool

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Generalist multitasking vision models aim to unify multiple vision tasks within a single framework, enabling more efficient and versatile learning. However, handling diverse vision tasks—spanning dense and sparse predictions—remains challenging due to their inherently varying output structures. In this paper, we propose AHMAD, a simple yet effective framework for generalist multitask learning that integrates different key vision tasks: semantic segmentation, instance segmentation, depth estimation, keypoint detection, and object detection. Our approach incorporates these five tasks into a unified structure – a shared encoder-decoder with several lightweight task-specific projectors. Under the multitask learning paradigm, we observed a complementary performance gain, achieving a state-of-the-art PQ of 53.1 and an mIoU of 66.5 for COCO-val panoptic and semantic segmentation, respectively. Additionally, for top-down keypoint detection, which typically incurs high computational overhead due to multiple forward passes, we introduce a knowledge distillation-based method that enables a single forward pass over the entire image, greatly improving efficiency. Ultimately, our model delivers a lightweight yet effective generalist multitask learning framework, demonstrating strong performance across five vision tasks.

1. Introduction

Generalist models aim to solve multiple tasks within a single unified framework, eliminating the need for separate task-specific models. Given the inherently multitask nature, technically, building generalist models is closely aligned with multi-task learning, sharing the goal of optimizing a model to handle diverse tasks efficiently.

In the NLP domain, generalist multitask learning has achieved remarkable success, with models such as [1, 16], demonstrating strong performance across diverse language tasks. This success is largely attributed to the shared nature

Figure

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 representations useful for various tasks. Task-specific projectors are then applied to perform different tasks.

of text representations, where different language tasks can be formulated within a common sequence-to-sequence or auto-regressive framework. However, developing generalist multitask learning in vision remains is significantly more challenging due to the inherent diversity in vision tasks. Vision tasks span a broad range of dense and sparse predictions, each requiring distinct output structures and optimization objectives. For example, semantic segmentation operates at the pixel level, depth estimation requires continuous value regression, while object detection involves structured bounding box predictions. These fundamental differences make it difficult to design a generalist framework that seamlessly accommodates all vision tasks within a single model.

To tackle this, some studies focus on task output homogenization, where various task outputs are manually encoded into a shared format through hand-crafted methods. In this context, Painter [51] approaches many vision tasks as image inpainting problems, encoding task outputs in the RGB space. Pix2Seq-D [6] also leverages the Bit Diffusion model [5] to learn task-specific outputs by converting them into per-pixel representations across separate channels. Alternatively, other approaches add components to serialize both the input image and task outputs, treating the prob-

∗^{*}Corresponding author lem as a next-token prediction task. For instance, Unified-IO [29] employs a VQ-GAN [13] to serialize dense tasks and adds special tokens for sparse tasks. In this paradigm, the generalist model is trained on the frozen tokens, and the outputs need to be further decoded. However, both these approaches come with trade-offs, as they introduce complexity through demanding pre- and post-processing, along with the need for sophisticated training techniques, such as VQ-GAN for serialization.

In generalist multitasking, it is also essential to unify different vision tasks under a common problem-solving methodology. Among these tasks, person keypoint detection often follows a top-down strategy, where individuals are cropped from the image, and keypoints are then detected for each cropped person. This approach has become the standard due to the effectiveness of person detectors. However, it requires running the model multiple times, once for each individual in the image, which goes against the core idea of generalist multitasking, where the goal is to process the entire image and perform multiple tasks in a single forward pass. This multiple-run process is especially expensive in generalist vision models, which rely on large, computationally intensive encoder backbones. Despite this, no significant effort has been made to address this issue while still leveraging the strengths of the top-down approach.

We propose a simple yet effective training framework, as in Fig. 1, namely AHMAD, for generalist multitasking across different vision tasks: Panoptic Segmentation (Semantic Segmentation (SS) and Instance Segmentation (IS)), Depth Estimation (DE), Keypoint Detection (KD), and Object Detection (OD), demonstrating a complementary boost for the majority of tasks. Additionally, we introduce a novel method to reduce the forward passes required for top-down keypoint detection, achieving a single run for the entire image using knowledge distillation techniques.

Our contributions are as follows: 1) We present a simple multitask learning paradigm with no restrictions on task output shapes or the need for extra components, allowing the incorporation of each task's ideal single-task approach within a unified multitask structure. 2) We propose a novel distillation method to perform top-down keypoint detection with just a single forward pass for the entire image. 3) We demonstrate strong performance across various vision tasks, achieving a PQ of 53.1 and an mIoU of 66.5 for COCO panoptic and semantic segmentation among generalist models, while also delivering competitive results in keypoint detection and object detection.

References (54)