Aligning Forest and Trees in Images and Long Captions for Cross-Domain Grounding

Byeongju Woo, Zilin Wang, Byeonghyun Pak, Sangwoo Mo, Stella X. YuOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

F-CAST is a hierarchical vision-language framework designed to solve the "long caption" problem in image-text alignment. By explicitly matching the hierarchical structure of text (sentences within a caption) to the hierarchical structure of images (regions within a scene), it achieves state-of-the-art performance on long-text retrieval benchmarks and discovers fine-grained visual grounding without any manual region-level supervision.

What Problem Does This Paper Address?

While models like CLIP have revolutionized vision-language tasks, they struggle with "long-form" descriptions. CLIP treats an image and a caption as two monolithic "wholes." This works for a simple prompt like "a red bus," but fails when faced with a paragraph describing the bus's route number, the angle of its windscreen, the pedestrians nearby, and the cloudy sky.

In these long captions, every extra clause adds detail but also introduces noise. Standard models often "hallucinate" or latch onto the wrong visual cues because they lack a mechanism to map specific phrases to specific image regions. Furthermore, most existing methods that attempt "fine-grained" understanding rely on expensive, human-labeled datasets with bounding boxes. F-CAST addresses the need for a system that can see both the "forest" (the whole scene) and the "trees" (individual objects and details) using only image-text pairs.

Methods

The authors propose F-CAST (Forest and Trees - Cross-domain Alignment of Spatially oriented Text), which introduces three key architectural innovations:

  1. Hierarchical Vision Encoder (CAST): Instead of treating an image as a flat grid of patches (like a standard ViT), F-CAST uses the CAST backbone. It starts with "superpixels" and progressively merges them into larger segments via graph pooling. This creates a natural visual hierarchy from fine details to coarse scene-level representations.
  2. Hierarchical Text Encoder: Long captions are "chunked" into sub-captions (usually 1-3 sentences). A two-stage Transformer first encodes these sub-captions independently to capture local details and then fuses them into a global "whole-caption" representation.
  3. Two-Level Alignment Loss: The model is trained with a dual objective:
  4. Part-level alignment: Uses an attention-pooling mechanism to align sub-caption embeddings with specific visual segments.
  5. Whole-level alignment: Aligns the final global image embedding with the full caption embedding.

Crucially, the part-level alignment acts as an auxiliary task that "teaches" the model where objects are, which in turn produces a much richer global representation for final retrieval tasks.

Datasets

  • Training: The model was trained on a unified corpus of 30 million image-text pairs (Merged-30M), consisting of CC3M, CC12M, and YFCC15M. These datasets were "re-captioned" using Large Multimodal Models (DreamLIP) to provide the long, detailed descriptions necessary for hierarchical learning.
  • Evaluation: F-CAST was tested on six diverse long-text benchmarks:
  • DCI and DOCCI (Human-annotated captions).
  • ShareGPT4V-1k and ShareGPT4V-10k.
  • Urban-1k (Focusing on complex city scenes).
  • IIW (ImageInWords).

Key Insights and Ideas

  • Emergent Grounding: One of the most striking findings is that F-CAST discovers how to localize objects (like a "red hatchback" or "arched windows") entirely through language supervision. It doesn't need bounding boxes; it learns spatial orientation simply by trying to match sentences to image regions.
  • Language Drives Visual Organization: The authors found that vision-only models tend to create "spurious fragments." By using the text hierarchy as an anchor, the model learns more semantically meaningful visual groupings (e.g., grouping fingers into a hand).
  • The Power of Text Hierarchy: In ablation studies, the hierarchical text encoder provided the single largest performance boost. This suggests that how we model long-form language is just as important—if not more so—than how we model the image pixels.
  • Scaling Laws: F-CAST scales more efficiently than "flat" models like FLAIR. As the training data grows, the gap between F-CAST and its competitors widens, suggesting that hierarchical inductive biases are essential for large-scale vision-language pre-training.

Key Results

  • State-of-the-Art (SOTA): F-CAST set new records across all six long-text benchmarks. On the DCI dataset, it improved Image-to-Text (I2T) retrieval by +7.3 points over the previous SOTA.
  • Efficiency: Despite being trained on only 30M pairs, F-CAST outperformed models trained on much larger datasets (like Long-CLIP or FineLIP) that use 400M+ pairs.
  • Qualitative Grounding: Visualizations show that the model's attention maps are remarkably precise, accurately distinguishing between small objects and large background structures within the same scene.

Limitations and Future Work

  • Computational Cost: Training on 30M samples required 40 GPU-days on A100s. While efficient compared to some giants, it remains resource-intensive.
  • Synthetic Data Reliance: The model relies heavily on synthetic long captions generated by other AI models (DreamLIP). The quality of F-CAST is therefore partially capped by the descriptive quality of those teacher models.
  • Inference Strategy: Currently, F-CAST only uses the "whole-level" features during inference for speed. Future work could explore how to use the "part-level" features at test time for even more precise, interactive grounding (e.g., "Find the image where the bus is specifically route 38").

Summary updated

Abstract

Large vision-language models such as CLIP align images and captions as wholes but falter on long, detailed descriptions. Fine-grained understanding demands capture of hierarchical semantics, seeing both forest and trees, within and across domains. Yet syntactic and semantic structures seldom mirror visual organization, and vision alone tends to create spurious fragments unless text anchors and unifies. We propose F-CAST, a hierarchical image-text representation learning framework that discovers aligned spatially oriented text and visual hierarchies directly from image and long-caption corpora, without region-sentence labels. It uses a CAST visual encoder for fine-to-coarse scene parsing and a hierarchical transformer text encoder that first encodes each sentence then fuses them into a whole-caption representation. A two-level alignment loss, extending FLAIR, aligns whole images with whole texts while biasing image-sentence matches so coarse concepts emerge from fine-grained evidence rather than ignoring it. Trained on 30M image--text pairs, F-CAST delivers strong scaling and sets state-of-the-art performance on six long-text benchmarks. Experiments show that hierarchical alignment of vision and language enables F-CAST to discover fine-grained, visually grounded text understanding without supervision.
BibTeX
@misc{woo2026aligning,
  author = {Byeongju Woo and Zilin Wang and Byeonghyun Pak and Sangwoo Mo and Stella X. Yu},
  title = {{Aligning Forest and Trees in Images and Long Captions for Cross-Domain Grounding}},
  year = {2026},
  url = {https://openreview.net/forum?id=bg0AwExOt4},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure