Abstract
Despite the success in large language models, constructing a data-efficient generalist for dense visual prediction presents a distinct challenge due to the variation in label structures across different tasks. In this study, we explore a universal model that can flexibly adapt to unseen dense label structures with a few examples, enabling it to serve as a data-efficient vision generalist in diverse real-world scenarios. To this end, we base our method on a powerful meta-learning framework and explore several axes to improve its performance and versatility for real-world problems, such as flexible adaptation mechanisms and scalability. We evaluate our model across a spectrum of unseen real-world scenarios where low-shot learning is desirable, including video, 3D, medical, biological, and user-interactive tasks. Equipped with a generic architecture and an effective adaptation mechanism, our model flexibly adapts to all of these tasks with at most 50 labeled images, showcasing a significant advancement over existing data-efficient generalist approaches. Codes are available at https://github.com/GitGyun/chameleon.
Introduction
In the landscape of artificial intelligence, Large Language Models (LLMs) like GPT-4 have established a paradigm of "generalist" models capable of performing a vast array of tasks through in-context learning. In contrast, computer vision has historically been dominated by "specialist" models, each meticulously tuned for a single task such as semantic segmentation, depth estimation, or pose detection. This specialization often requires massive amounts of task-specific labeled data, which is a significant bottleneck in niche domains like medical imaging or biological research.
Chameleon is a novel vision generalist designed to bridge this gap. By leveraging a meta-learning framework, Chameleon can adapt to arbitrary "unseen" dense prediction tasks—ranging from 6D pose estimation of industrial tools to segmenting microscopic cells—using as few as 50 labeled examples.
The Challenge of Dense Visual Prediction
The primary obstacle in building a vision generalist is the diversity of label structures. Unlike text, which is a linear sequence of tokens, dense visual predictions manifest in various forms: heatmaps for keypoints, 3D coordinates for 6D pose, or binary/multi-class masks for segmentation.
Prior attempts at vision generalists, such as Painter or SegGPT, framed dense prediction as an image-to-image translation problem. While effective for tasks represented in their training data, these models often struggle with "out-of-distribution" (OOD) tasks where the output semantics or geometric structures are novel. For example, a model trained primarily on semantic segmentation may lack the structural priors necessary for accurate 6D pose estimation.
Methodology: Task-Adaptive Meta-Learning
Chameleon builds upon the Visual Token Matching (VTM) framework, which avoids fixed task-specific heads. Instead, it predicts labels for a "query" image by matching its pixels to a "support set" of labeled examples based on feature similarity. Chameleon introduces three key innovations to enhance this framework:
1. Multi-modal Encoding
To accommodate tasks requiring more than just RGB input—such as interactive counting guided by user-provided exemplars or multi-channel biological imaging—Chameleon utilizes a transformer-based encoder. It incorporates a Hybrid Position Bias that simultaneously models spatial relationships within an image and the relationships between different input modalities (e.g., query image vs. support label).
2. Task-Adaptive Feature Re-weighting
Different tasks require different levels of visual information. Edge detection relies on low-level textures, while 6D pose estimation requires high-level semantic understanding. Chameleon employs a hierarchical architecture and learns a task-specific matrix to re-weight features from various encoder layers before the matching process begins.
3. Large-Scale Meta-Training
The model undergoes extensive meta-training on a diverse dataset of 1.2 million images across 17 tasks, including Taskonomy, COCO, and synthetic drone data (MidAir). This process "teaches the model how to learn," enabling it to generalize to entirely new domains at inference time.
Experimental Results
Chameleon was evaluated on a "Wild" benchmark consisting of six distinct downstream tasks that were not seen during meta-training.
- Animal Keypoint Detection (AP-10K): Chameleon achieved a remarkable 67.2 AP, vastly outperforming SegGPT, which managed only 2.0 AP.
- 6D Pose Estimation (LineMOD): On the LineMOD dataset, Chameleon reached 85.2 ADD, significantly higher than VTM (59.3) and SegGPT (23.1).
- Cell Instance Segmentation (Cellpose): With only 50 support images, Chameleon’s 70.3 AP₅₀ nearly matched the performance of a fully-supervised specialist model (70.4 AP₅₀).
- Data Efficiency: The model demonstrates strong scaling properties, where performance consistently improves as the number of support images increases, often surpassing specialist models with minimal labeling effort.
Discussion and Insights
A key finding of this research is the power of indirect correlation. Training on seemingly unrelated tasks, such as synthetic drone imagery, significantly bolstered the model's performance on downstream tasks like animal pose estimation. Furthermore, the feature re-weighting module confirmed that the model dynamically adjusts its focus; for 6D pose, it prioritizes high-level semantic features, whereas for segmentation, it utilizes a more balanced hierarchical feature set.
While Chameleon represents a major step forward, limitations remain. It currently processes video frames independently, missing out on temporal correlations. Additionally, while highly efficient at test time, the initial meta-training phase is computationally demanding.
Conclusion
Chameleon demonstrates that a single, data-efficient generalist can handle the complexities of dense visual prediction in the wild. By combining flexible multi-modal encoding with task-adaptive feature matching, it provides a powerful tool for domains where labeled data is a scarce and precious resource.
Summary updated