Unifying Visual Perception by Dispersible Points Learning

Jianming Liang, Guanglu Song, Biao Leng, Yu Liu

Abstract

We present a conceptually simple, flexible, and universal visual perception head for variant visual tasks, e.g., classification, object detection, instance segmentation and pose estimation, and different frameworks, such as one-stage or two-stage pipelines. Our approach effectively identifies an object in an image while simultaneously generating a high-quality bounding box or contour-based segmentation mask or set of keypoints. The method, called UniHead, views different visual perception tasks as the dispersible points learning via the transformer encoder architecture. Given a fixed spatial coordinate, UniHead adaptively scatters it to different spatial points and reasons about their relations by transformer encoder. It directly outputs the final set of predictions in the form of multiple points, allowing us to perform different visual tasks in different frameworks with the same head design. We show extensive evaluations on ImageNet classification and all three tracks of the COCO suite of challenges, including object detection, instance segmentation and pose estimation. Without bells and whistles, UniHead can unify these visual tasks via a single visual head design and achieve comparable performance compared to expert models developed for each task.

Introduction

In the field of computer vision, architectural design has traditionally been driven by task-specific specialization. Object detection requires heads optimized for bounding box regression; instance segmentation demands mask-generating modules; and pose estimation relies on keypoint heatmaps or landmark regression. This fragmentation has resulted in a proliferation of specialized architectures—such as TSD for detection or CPN for pose estimation—that lack interoperability and increase system complexity.

Comparison of traditional task-specific heads versus the unified UniHead architecture.

This paper introduces UniHead, a universal perception head designed to bridge these gaps. By conceptualizing diverse visual tasks as a unified problem of "dispersible points learning," UniHead provides a single, flexible module capable of handling classification, detection, segmentation, and pose estimation within a consistent framework.

The UniHead Architecture

The core innovation of UniHead is the Dispersible Points Learning mechanism. This approach posits that most visual perception tasks can be reduced to identifying and relating a discrete set of spatial points. The pipeline operates in several distinct stages:

  1. Anchor Point Definition: Every prediction originates from a fixed spatial coordinate, or "anchor point," which may be the center of a proposal or a specific location on a feature map.
  2. Adaptive Scattering: UniHead utilizes a Multi-Layer Perceptron (MLP) to "scatter" this anchor into $K$ distinct spatial points by predicting coordinate offsets.
  3. Point Representation Generation: The model performs bilinear interpolation on the feature map at these scattered coordinates to extract localized feature vectors.
  4. Transformer-Based Reasoning: These point features are processed through a series of Transformer Encoders. Unlike traditional heads that process predictions in isolation, the transformer allows the model to reason about the geometric and semantic relationships between points (e.g., correlating the position of a shoulder joint with an elbow joint).
  5. Task-Aware Tokens: To facilitate diverse outputs, the architecture incorporates learnable tokens: T_class for category prediction, T_IoU for bounding box quality estimation, and T_visibility for keypoint occlusion detection.
The UniHead pipeline illustrating the generation of dispersible point representations and their processing through transformer encoders for multi-task output.

Key Insights

  • Points as a Universal Language: The architecture leverages the fact that bounding boxes (defined by edge points), segmentation masks (defined by contour points), and poses (defined by anatomical landmarks) can all be represented as sets of points. This reduction allows for a truly task-agnostic head design.
  • Spatial Reasoning via Transformers: While transformers are widely used in backbones, UniHead employs them within the head to model object geometry. This captures the structural coherence of objects, ensuring that predicted points form a plausible whole.
  • Task-Specific Initialization: Although the head architecture is universal, the authors found that initializing point distributions based on the target task (e.g., circular patterns for segmentation vs. cardinal directions for detection) significantly improves optimization and convergence.

Experimental Evaluation

UniHead was validated using the ImageNet (ILSVRC-2012) dataset for classification and the MS-COCO 2017 dataset for localization tasks. The results demonstrate that a unified head can match or exceed the performance of specialized "expert" models:

  • Object Detection: Integrating UniHead into a standard Faster R-CNN framework yielded a 3.0 AP improvement (from 38.8 to 41.8) on COCO. It also improved the anchor-free FCOS detector by 2.6 AP.
  • Framework and Backbone Agnosticism: UniHead consistently provided a 2–3% AP lift across various backbones, including ResNet-50 and Swin Transformers, and functioned effectively in both one-stage and two-stage pipelines.
  • Efficiency: The computational overhead is minimal; for a ResNet-50 backbone, GFLOPs only increased from 3.8 to 4.1, maintaining high inference efficiency.

Discussion and Future Work

UniHead represents a significant step toward general visual perception. However, several avenues for future research remain. While the head design is unified, current training regimes often remain task-specific. Future work could explore a single UniHead model trained for simultaneous multi-task execution. Additionally, investigating dynamic point densities could help the model better represent objects with highly complex geometries. Despite these areas for growth, UniHead proves that a well-designed, point-based transformer architecture can effectively unify the fragmented landscape of computer vision tasks.

Summary updated

BibTeX
@inproceedings{liang2022unifying,
  author = {Jianming Liang and Guanglu Song and Biao Leng and Yu Liu},
  title = {{Unifying Visual Perception by Dispersible Points Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=LDReKcim_bC},
}
Figure