Skip to main content
QUICK REVIEW

[Paper Review] A Unified Sequence Interface for Vision Tasks

Ting Chen, Saurabh Saxena|arXiv (Cornell University)|Jun 15, 2022
Multimodal Machine Learning ApplicationsComputer Science49 citations
TL;DR

The paper proposes a single encoder–decoder model that unifies four core vision tasks (object detection, instance segmentation, keypoint detection, and image captioning) as a pixel-to-sequence problem using a shared token-based interface and task prompts, achieving competitive results without task-specific heads.

ABSTRACT

While language tasks are naturally expressed in a single, unified, modeling framework, i.e., generating sequences of tokens, this has not been the case in computer vision. As a result, there is a proliferation of distinct architectures and loss functions for different vision tasks. In this work we show that a diverse set of "core" computer vision tasks can also be unified if formulated in terms of a shared pixel-to-sequence interface. We focus on four tasks, namely, object detection, instance segmentation, keypoint detection, and image captioning, all with diverse types of outputs, e.g., bounding boxes or dense masks. Despite that, by formulating the output of each task as a sequence of discrete tokens with a unified interface, we show that one can train a neural network with a single model architecture and loss function on all these tasks, with no task-specific customization. To solve a specific task, we use a short prompt as task description, and the sequence output adapts to the prompt so it can produce task-specific output. We show that such a model can achieve competitive performance compared to well-established task-specific models.

Motivation & Objective

  • Motivate and demonstrate that diverse vision tasks can be expressed in a unified pixel-to-sequence interface.
  • Develop a single model architecture and loss function applicable to multiple tasks without task-specific heads.
  • Show that task prompts can adapt the same output sequence to different task requirements.
  • Evaluate whether multi-task training preserves competitive performance across tasks on COCO.

Proposed method

  • Represent each task as a sequence of discrete tokens (bounding boxes, polygons, keypoints, or captions) using a shared vocabulary.
  • Use an encoder–decoder architecture with a vision backbone and a Transformer decoder conditioned on a task prompt.
  • Train by concatenating prompt and output into a single sequence with zero weight on prompt tokens in the loss.
  • Decode outputs via task-specific de-tokenization after autoregressive generation.
  • Combine tasks via data mixing or batch mixing; greedily adjust task weights to sum to one.
  • Inference uses nucleus sampling to generate output tokens; de-tokenization recovers boxes, masks, keypoints, or captions.

Experimental results

Research questions

  • RQ1Can object detection, instance segmentation, keypoint detection, and image captioning be solved by a single pixel-to-sequence model without task-specific heads?
  • RQ2How does a unified model's performance compare to specialized baselines on COCO across multiple tasks?
  • RQ3What is the impact of task prompts and training mix strategies on multi-task learning effectiveness?
  • RQ4Does increasing image size or changing training weights improve multi-task performance?

Key findings

  • The multi-task model achieves competitive results compared to task-specific baselines on COCO for all four tasks without specialized architectures.
  • Larger input sizes generally improve performance across tasks, except keypoint detection which benefits from task-specific cropping.
  • Prediction can be enhanced by sampling multiple sequences for instance segmentation and averaging the resulting masks.
  • A single model trained on all tasks (with appropriate task weights) can address these tasks with performance close to single-task variants.
  • The architecture uses a shared vocabulary (35k) and a single decoder to produce task-specific outputs via prompts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.