GOAL: Global-local Object Alignment Learning

Hyungyu Choi, Young Kyun Jang, Chanho EomCVPR 2025

Introduction

Vision-language models (VLMs), most notably OpenAI’s CLIP, have fundamentally changed the landscape of multimodal AI by enabling seamless matching between images and natural language. However, these models often exhibit a "global bias." Because they are typically pre-trained on short, concise captions (often capped at 77 tokens), they excel at capturing the overall "vibe" of an image but struggle with fine-grained details. When presented with a paragraph-long description detailing specific objects and their spatial relationships, standard CLIP often fails to ground individual sentences to their corresponding image regions.

To bridge this gap, we introduce GOAL (Global-local Object Alignment Learning), a fine-tuning framework designed to teach models to "see the trees, not just the forest." GOAL enables models to align specific image regions with individual sentences within a larger descriptive context, significantly enhancing performance on complex retrieval tasks.

The Challenge of Fine-Grained Alignment

The primary limitation of standard CLIP training is its reliance on global contrastive loss. This objective encourages the model to make the entire image embedding similar to the entire text embedding. While effective for broad categorization, it ignores the internal structure of the data. For instance, if a caption mentions a "small red bird on the third branch of the oak tree," a global model might recognize "tree" and "bird" generally but fail to link that specific sentence to the exact cluster of pixels representing the bird. This lack of "local grounding" hinders applications requiring high precision, such as detailed image search or complex scene understanding.

Comparison of standard CLIP (global matching) versus the GOAL framework (global-local alignment).

Methodology: The GOAL Framework

GOAL addresses the alignment problem through a two-pillar approach that requires no changes to the underlying CLIP architecture, making it a highly flexible fine-tuning strategy.

1. Local Image-Sentence Matching (LISM)

High-quality datasets with explicit "sentence-to-bounding-box" labels are rare. To overcome this, GOAL employs a self-supervised pipeline to generate pseudo-local pairs.

  • Vision: The Segment Anything Model (SAM) is used to decompose an image into individual object segments.
  • Language: Natural language processing tools (like NLTK) split long captions into constituent sentences.
  • Alignment: The model uses its own pre-trained knowledge to "guess" the best matches between these segments and sentences, creating a set of local training pairs without manual annotation.

2. Token Similarity-based Learning (TSL)

The technical core of GOAL is the Token Similarity-based Learning (TSL) loss. While standard training focuses on the final global embeddings, TSL forces the individual tokens—the small patches of the image and the words in the text—to align with the local features identified in the LISM step. By using a shared encoder for both global and local views, the model learns to "propagate" attention. When processing a full image, the model learns that specific patches should be highly similar to the specific local features it encountered during the LISM phase.

Experimental Results

The researchers evaluated GOAL across three challenging benchmarks: DOCCI (Descriptions of Connected and Contrasting Images), DCI (Dense Captions and Images), and Urban1k.

Retrieval Performance

On the DOCCI dataset using a ViT-L/14 backbone, GOAL achieved a 79.47% Recall@1 for text-to-image retrieval. This represents a significant jump from the 72.41% achieved by standard global fine-tuning.

Zero-Shot Generalization

One of the most impressive findings was GOAL's ability to generalize. When trained on DOCCI and tested on the entirely different Urban1k dataset, GOAL outperformed the baseline CLIP by over 14% in R@1. This suggests that the model is learning fundamental visual-linguistic principles of object grounding rather than simply memorizing dataset-specific patterns.

Qualitative Improvements

Qualitative analysis via attention heatmaps shows that GOAL focuses sharply on specific objects mentioned in the text. In contrast, standard CLIP often exhibits "blurry" attention that spreads across the background or unrelated objects.

Conclusion and Future Directions

GOAL demonstrates that the limitations of current VLMs in handling complex, dense descriptions can be mitigated through smarter fine-tuning rather than just larger models or more data. By leveraging existing foundation tools like SAM to create local alignment signals, GOAL teaches CLIP to maintain high-fidelity understanding across both global and local scales.

Future work may involve reducing the computational overhead of the LISM pre-processing step or integrating these global-local alignment objectives directly into the initial pre-training phase of next-generation foundation models.

Summary updated

BibTeX
@inproceedings{choi2025goal,
  author = {Hyungyu Choi and Young Kyun Jang and Chanho Eom},
  title = {{GOAL: Global-local Object Alignment Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00385},
}
Figure