TL;DR
Vision Foundation Models (VFMs) produce powerful but low-resolution features, limiting pixel-level understanding. LoftUp introduces a novel coordinate-based transformer and a self-distillation training strategy to generate high-resolution features, significantly outperforming existing methods across various downstream tasks.
What Problem Does This Paper Address?
Vision Foundation Models (VFMs) like DINOv2 and CLIP have revolutionized computer vision by providing rich, general-purpose feature representations. However, a common limitation is their low spatial resolution (often 16x or more downsampled from the input image). This is a consequence of aggressive pooling operations within these models, which are necessary for computational efficiency and capturing broad semantic information. This low resolution severely hinders their performance on tasks that require fine-grained, pixel-level understanding, such as semantic segmentation, depth estimation, and object tracking. While simply using higher-resolution inputs for VFMs is an option, it dramatically increases computational costs and can lead to artifacts if the models aren't trained for it. Existing feature upsampling methods, while promising, still fall short of optimal performance.
Methods
LoftUp tackles this challenge by focusing on two critical components: the upsampler architecture and the training objective.
Architecture: LoftUp proposes a coordinate-based cross-attention transformer. Instead of relying on traditional multi-layer upsampling (which can accumulate blurriness and artifacts), LoftUp treats feature upsampling as a mapping from pixel coordinates to high-resolution features. It directly predicts features for each pixel by integrating image coordinates and RGB values with the low-resolution VFM features. A key innovation is the cross-attention mechanism, which allows for global interactions between high-resolution image details and semantically rich low-resolution features, overcoming the limitations of local kernels in prior methods. This design also enables arbitrary upsampling scales without retraining.
Training Objective: A major hurdle in training task-agnostic upsamplers is the lack of groundtruth high-resolution features. Previous methods either used proxy tasks or generated pseudo-groundtruth (pseudo-GT) features at lower resolutions, limiting their ability to capture fine details. LoftUp introduces a two-stage training approach to generate high-quality, full-resolution pseudo-GT:
- Stage 1: Class-agnostic Masks: LoftUp leverages class-agnostic masks from models like SAM (Segment Anything Model) to create a refined pseudo-GT. These masks highlight sharp boundaries and geometric awareness. The low-resolution VFM features are bicubic upsampled and then blended with these mask-refined features. This stage supervises the upsampler to produce features with homogeneous regions and clear boundaries.
- Stage 2: Self-Distillation: To further enhance feature quality and sharpness, LoftUp employs a teacher-student self-distillation strategy. A teacher upsampler (trained in Stage 1 and updated via EMA) processes high-resolution image crops. Its outputs are used as supervision for a student upsampler (also initialized from Stage 1). This distillation process helps reduce noise and artifacts, leading to more accurate and detailed feature maps.
Datasets
The paper mentions training on a 1M-image subset of the SA1B dataset for the upsamplers. Evaluation is performed on various downstream tasks using standard datasets:
- Semantic Segmentation: COCO-Stuff [1], Cityscapes [4]
- Depth Estimation: NAVI dataset [18]
- Normal Estimation: NAVI dataset [18]
- Video Object Segmentation: DAVIS2017 [39]
- Zero-shot Open-Vocabulary Segmentation: ProxyCLIP [23]
- Interactive Segmentation: Modified SimpleClick [27]
Key Insights and Ideas
- Coordinate-based mapping is key: Treating feature upsampling as a direct mapping from coordinates to features bypasses the error accumulation inherent in multi-layer deconvolutional approaches.
- Cross-attention for global context: Integrating low-resolution semantic features with high-resolution spatial details via cross-attention is crucial for generating coherent and contextually aware high-resolution features.
- High-resolution pseudo-GT is essential: The lack of groundtruth is a major bottleneck. LoftUp's two-stage approach, particularly the self-distillation with class-agnostic masks, effectively creates high-quality supervision signals that push performance beyond previous limits.
- Task-agnosticism is achievable and beneficial: By training with general objectives (masks, reconstruction), LoftUp demonstrates strong generalization across diverse downstream tasks, making it a versatile tool for enhancing VFMs.
- Efficiency matters: LoftUp achieves state-of-the-art performance with only a modest increase in parameters and competitive inference speed, making it practical for real-world applications.
Key Results
LoftUp significantly outperforms existing task-agnostic feature upsamplers like FeatUp [12] and LiFT [52], as well as simple baselines like bilinear upsampling.
- Semantic Segmentation: Achieves improvements of 7.3% and 15.6% on COCO-Stuff and Cityscapes, respectively, reaching 61.11 mIoU and 53.10 mIoU.
- Depth Estimation: Shows a 2.5% relative improvement in recall over the low-res baseline, with an RMSE of 0.0921.
- Normal Estimation: Achieves 4.4% relative improvement in recall, with an RMSE of 30.79.
- Video Object Segmentation: Demonstrates substantial gains, with a 39.6% increase in J Mean and a 97.6% increase in F Mean over the low-resolution baseline.
- Efficiency: LoftUp has a competitive inference speed, comparable to bilinear upsampling, despite its advanced architecture.
Qualitatively, LoftUp produces markedly sharper and more detailed features compared to other methods, with significantly fewer artifacts.
Limitations and Future Work
- Computational Cost: While efficient, the cross-attention mechanism can still be computationally intensive compared to simpler methods, although the paper notes it's more efficient than processing full high-resolution feature maps.
- Training Data: The effectiveness of the pseudo-GT generation relies on powerful foundation models (like SAM) and a large dataset for training.
- Future Work: The authors express hope that their work will inspire further research in feature upsampling and contribute to enhancing VFMs for a wider range of downstream applications. The coordinate-based design and self-distillation framework offer a strong foundation for future advancements in high-resolution feature generation.
Summary updated