In the world of computer vision, representation learning has long suffered from a "split personality" problem. On one hand, image-text models like CLIP are masters of semantic language—they can easily identify a "golden retriever in a park"—but they struggle to pinpoint exactly where the dog ends and the grass begins. On the other hand, self-supervised models like DINOv2 are masters of geometry and "dense" tasks like depth estimation, but they are essentially "mute," lacking an understanding of natural language.
A new paper from Google DeepMind, titled TIPS (Text-Image Pretraining with Spatial awareness), aims to merge these two worlds into a single, general-purpose vision backbone that excels at everything from image retrieval to 3D reconstruction.
The Problem: The "Object vs. Space" Trade-off
For years, researchers have chased the holy grail of vision: a single encoder that works for any downstream task without needing fine-tuning. Currently, building a search engine relies on CLIP (weakly supervised with noisy web captions), while building a self-driving system that needs precise object distances relies on DINOv2 (self-supervised on images only).
The root of the problem lies in the training data. Web captions (e.g., "2007 Cadillac Escalade for sale") are excellent for identifying specific objects but terrible for spatial relationships. They rarely mention that the car is in front of a building or to the left of a tree. Consequently, CLIP-style models never learn true spatial awareness. TIPS addresses this by rethinking both the data fed to these models and the learning objectives used to train them.
Methods: Bridging the Gap
TIPS introduces two primary innovations to bridge the gap between semantic-heavy and geometry-heavy models:
- Synthetic Captions & Dual Embeddings: Instead of relying solely on noisy web alt-text, TIPS uses a captioning model (PaliGemma) to generate detailed descriptions of the scene's layout (e.g., "A kitchen with a table, chairs, and a painting."). The model employs two separate
[CLS]tokens: one aligns with the noisy web text to capture fine-grained object semantics, and the other aligns with the synthetic text to focus on spatial layout. - The Hybrid Loss "Trifecta": TIPS moves beyond standard contrastive learning (matching images to text) by simultaneously employing:
- Self-Distillation: Forcing the model to maintain consistency across different crops of the same image.
- Masked Image Modeling (MIM): Forcing the model to "fill in the blanks" for missing image patches, encouraging a deep understanding of local structure and geometry.
By scaling this approach to a ViT-g (1.1 billion parameters), the researchers created a model that "sees" the world with both semantic depth and geometric precision.
Datasets and Evaluation
TIPS was pretrained on a curated subset of WebLI, consisting of 117 million public image-text pairs, and validated on the DataComp-1B dataset.
The model was evaluated across a massive suite of 16 datasets spanning 8 tasks, including:
- Dense Tasks: PASCAL VOC, ADE20k (segmentation), NYUv2, and NAVI (depth and surface normals).
- Global Tasks: ImageNet-1K (classification), UnED (fine-grained retrieval), and Flickr30K/DOCCI/COCO (image-text retrieval).
Key Insights and Results
The authors discovered a powerful synergy in their approach. Web captions proved better for fine-grained recognition, while synthetic captions excelled at spatial tasks; using both is essential for a general-purpose model. Furthermore, combining Masked Image Modeling with contrastive learning proved transformative for dense tasks, significantly improving depth estimation over a standard CLIP baseline. Attention analysis also revealed that the "spatially aware" [CLS] token distributes its focus broadly across multiple objects, whereas the "object-centric" token hones in on the primary subject.
TIPS achieves state-of-the-art or highly competitive off-the-shelf performance across the board:
- Dense Understanding: On ADE20k segmentation, TIPS-g reached 49.9 mIoU, rivaling DINOv2 (49.0) and crushing standard CLIP-L (39.0).
- Retrieval: On Flickr30K, TIPS achieved 89.2% Recall@1 for image-to-text retrieval, significantly outperforming the baseline CLIP (79.1%).
- 3D Vision: When used as a backbone for the Large Reconstruction Model (LRM), TIPS improved novel view synthesis (PSNR) over the standard DINO backbone, proving its features are superior for 3D geometry.
Limitations and Future Work
While TIPS represents a significant leap forward, it has limitations. At inference time, users must manually select which [CLS] token to use (object-centric vs. spatially aware) based on the task. Future work could explore mechanisms to automatically fuse or select these tokens. Additionally, while the image encoder was scaled to 1.1B parameters, the text encoder remained relatively small (12 layers), leaving the scaling laws of the text side in this hybrid setup as an open question. Finally, performance still relies heavily on curated data, as "raw" uncurated web data continues to pose challenges for training stability.
Code and models are available at https://github.com/google-deepmind/tips.
Summary updated