TL;DR
Chameleon is a new vision generalist model that can adapt to virtually any dense prediction task—from animal keypoint detection to 6D pose estimation—using just a handful of labeled examples (typically fewer than 50). By combining a universal token-matching framework with a flexible multi-modal encoder and hierarchical feature re-weighting, it significantly outperforms existing generalist models on unseen, out-of-distribution real-world tasks.
What Problem Does This Paper Address?
Large Language Models (LLMs) have become "data-efficient generalists," capable of solving new tasks with just a few prompts because they use a universal text interface. In computer vision, creating a similar generalist for dense prediction (tasks where you need a label for every pixel, like segmentation or depth estimation) is much harder.
The primary challenge is the extreme diversity in label structures. A segmentation mask looks nothing like a 6D pose heatmap or a set of animal joint coordinates. Previous "vision generalists" often struggled to generalize to tasks whose label semantics or structures weren't seen during training. They were either "multi-task" models (good at a fixed set of tasks) or "in-context" learners that failed when the new task was too different from the training data.
Methods
Chameleon builds upon the Visual Token Matching (VTM) framework, which treats dense prediction as a matching problem: for every pixel in a "query" image, find the most similar pixels in a small "support set" of labeled images and interpolate their labels. The authors introduce three key innovations to make this truly general:
- Multi-modal Encoding with Hybrid Position Bias: To handle tasks with multiple inputs (like stereo images or an RGB image plus a user-provided "exemplar guide"), Chameleon uses a transformer-based encoder. It introduces a Hybrid Position Bias that learns both the spatial relationships within an image and the semantic relationships between different input modalities.
- Task-Adaptive Feature Re-weighting: Different tasks require different levels of visual information. Detecting an edge needs low-level textures, while segmenting a cell needs high-level semantic context. Chameleon uses a hierarchical architecture and learns a task-specific matrix to re-weight features across different levels of the encoder before matching.
- Scaling and Meta-Training: The model is scaled up to a BEiTv2-Large backbone and trained using an "episodic" meta-learning strategy on a massive, diverse collection of datasets.
Datasets
The authors curated a massive meta-training dataset of 1.2 million images covering 17 different tasks by combining six major sources:
- Taskonomy: Indoor scenes with depth, surface normals, etc.
- COCO: Everyday objects with segmentation and human keypoints.
- MidAir: Synthetic aerial drone footage for stereo and monocular tasks.
- MPII, DeepFashion, FreiHand: Specialized datasets for human joints, fashion landmarks, and hand poses.
For evaluation, they tested on six challenging unseen downstream benchmarks:
- AP-10K: Animal keypoint detection.
- LineMOD: 6D pose estimation.
- ISIC 2018: Skin lesion segmentation (medical).
- DAVIS 2017: Video object segmentation.
- FSC-147: Exemplar-guided object counting.
- Cellpose: Biological cell instance segmentation.
Key Insights and Ideas
- Matching is a Universal Primitive: By framing dense prediction as matching tokens rather than direct regression/classification, the model doesn't need to "know" the output structure beforehand. It just needs to find what's similar.
- Modality Matters: The hybrid position bias is crucial for interactive tasks. It allows the model to understand that a red dot in an "exemplar guide" refers to a specific location in the corresponding RGB image.
- Hierarchical Flexibility: The "aha moment" in their ablation studies was that feature re-weighting is vital for out-of-distribution tasks. By letting the model choose which layer's features are most important for a new task, it avoids being locked into the specific abstractions learned during training.
Key Results
Chameleon demonstrates a massive leap over previous generalists like Painter and SegGPT, especially on tasks with complex, unseen structures:
- 6D Pose Estimation (LineMOD): Chameleon achieved an 85.2 ADD score, dwarfing the next best generalist (VTM at 59.3) and even outperforming some fully supervised specialists.
- Animal Keypoints (AP-10K): It reached 67.2 AP, while other generalists like Painter and SegGPT essentially failed (scoring near 0 or 2.0) because they couldn't adapt to the new joint structures.
- Data Efficiency: As shown in the qualitative results, Chameleon produces clean, accurate predictions across domains as diverse as motocross videos and microscopic cell images using only a few dozen examples.
Limitations and Future Work
While impressive, Chameleon has a few areas for improvement:
- Temporal Context: For video tasks (like DAVIS 2017), the model currently processes frames independently. It doesn't explicitly model temporal consistency, which specialized video models use to handle occlusions better.
- Support Set Dependency: The model's performance is tied to the quality and size of the few-shot support set. While it works with "dozens" of images, finding the best examples to include in that set remains an open question.
- Inference Speed: Because it performs token-level matching between query and support images, the computational cost can scale with the number of support examples.
Summary updated