TL;DR AnyUp is a universal feature upsampler that works across any vision backbone (like DINO, CLIP, or ResNet) and resolution without needing encoder-specific retraining. By using a feature-agnostic architecture and local window attention, it achieves state-of-the-art performance while being significantly more efficient and generalizable than previous methods.
The Challenge of Low-Resolution Features
Modern vision foundation models, particularly those based on Transformers (e.g., DINOv2, CLIP), are incredibly powerful for extracting semantic information. However, because they operate on image patches, they typically output feature maps at a low resolution (e.g., 1/14th or 1/16th of the input image size). For downstream tasks like pixel-accurate semantic segmentation, depth estimation, or 3D reconstruction, high-resolution, pixel-level features are essential.
Existing "learnable" upsamplers are usually tied to the specific vision encoder they were trained with. If you want to use a different model or a newer version (like switching from DINOv2 to DINOv3), you have to retrain the entire upsampling module. This is computationally expensive and limits the "plug-and-play" utility of new foundation models.
The AnyUp Approach
The authors introduce AnyUp, which breaks this dependency through three key innovations:
- Feature-Agnostic Layer: To handle features from any model regardless of their dimensionality (number of channels), AnyUp uses a convolutional layer that processes each input channel independently using a learned filter basis. The contributions are then averaged, making the output invariant to the input's channel count.
- Local Window Attention: Instead of using global attention (where every pixel looks at every other pixel), AnyUp restricts the attention mechanism to local windows. This makes the model much faster and more memory-efficient while preventing "attention outliers"—cases where the model incorrectly pulls information from distant, unrelated parts of the image.
- Crop-Based Training Strategy: Instead of training on full high-resolution images, AnyUp is trained by comparing features from small local image crops to features from a downsampled version of the full image. This strategy is more memory-efficient and avoids out-of-distribution issues with extreme high-res inputs.
Key Insights
- Encoder Agnosticism is Possible: You don't need to know the "meaning" of specific feature channels to upsample them effectively. Designing for structural invariance allows a single model to generalize to completely unseen architectures (e.g., a model trained on DINOv2 features works remarkably well on CLIP or ResNet features).
- Locality is a Strong Prior: Global attention in upsampling can be counterproductive. Restricting attention to local windows (around 20% of image size) simplifies the optimization problem and leads to sharper, more localized features.
- Preserving the Feature Space: Many upsamplers "distort" the original features. AnyUp focuses on preserving the original feature distribution, which allows linear probes (simple classifiers) trained on low-res features to work directly on the upsampled high-res features without retraining.
Results and Performance
AnyUp was trained on ImageNet-1k and evaluated on downstream tasks including semantic segmentation (COCO-Stuff, ADE20k, PASCAL VOC) and depth/normal estimation (NYUv2).
- State-of-the-Art Performance: AnyUp outperforms existing methods like FeatUp, LoftUp, and JAFAR across semantic segmentation and geometric tasks. For example, on NYUv2 depth estimation, it achieves a lower RMSE (0.4755) and higher $\delta_1$ accuracy (0.8216) than all competitors.
- Efficiency: Thanks to window attention, AnyUp is over 50% faster and uses significantly less memory than concurrent attention-based upsamplers like JAFAR and LoftUp.
- Zero-Shot Generalization: A model trained only on DINOv2 features can upsample SigLIP 2 or DINOv3 features and still outperform or match the performance of upsamplers specifically trained for those models.
- Visual Quality: As seen in PCA projections, AnyUp produces much sharper feature maps with fewer artifacts (like oversmoothing or "halos") compared to previous state-of-the-art methods.
Limitations and Future Work
The model assumes that high-resolution features are essentially linear combinations of nearby low-resolution features. It might struggle to recover extremely fine sub-patch details that are completely lost during the initial encoding. Additionally, unlike some specialized methods, AnyUp does not explicitly include a de-noising step for the input features. Future directions include scaling to even larger foundation models and exploring more complex non-linear upsampling kernels while maintaining the "universal" property.
Summary updated