Context Matters: Learning Global Semantics via Object-Centric Representation

Jike Zhong, Yuxiang Lai, Xiaofeng Yang, Konstantinos PsounisarXiv 2025 · DOI

Introduction

While Large Language Models (LLMs) naturally develop reasoning through semantic "word" tokens, Vision Transformers (ViTs) often struggle because they process images as arbitrary, non-semantic patches. This research introduces Object-Centric Representation, a training strategy that treats entire objects as the visual equivalent of words. By forcing models to learn global context, this approach significantly boosts visual reasoning and in-context learning capabilities.

The Tokenization Problem

The "emergent" abilities of LLMs—like reasoning and learning from a few examples (in-context learning)—haven't translated perfectly to the vision domain. The authors argue this is primarily a tokenization problem.

In language, a word like "apple" is a discrete unit of meaning. In vision, standard ViTs chop an image into a grid of 16x16 pixel patches. These patches are "structural" rather than "semantic"; a single patch might contain a bit of a table, a slice of a floor, and a sliver of a chair leg.

Comparison of patch-level masking (top) vs. object-level masking (bottom). Partial masking allows models to "cheat" using local cues, whereas full object masking requires global semantic reasoning.

When training vision models using Masked Image Modeling (MIM), randomly masking these patches allows the model to "cheat." It can often reconstruct a missing patch just by looking at the pixels immediately surrounding it (pixel-averaging) without ever understanding the global scene. Consequently, the model learns local textures but misses the "big picture" logic.

Proposed Methodology: Object-Centric MIM

The authors propose a shift from patch-level masking to Object-Centric Masked Image Modeling. The pipeline involves several key innovations:

  1. Object Tokenization: Instead of masking random squares, the system identifies "objects" in an image using pre-trained segmentation models (like SAM) or unsupervised methods.
  2. Mask Expansion: To prevent the model from "cheating" by recognizing an object's specific silhouette, masks are expanded into square bounding boxes. This forces the model to infer the object's existence solely from the surrounding environment.
  3. Two-Stage Learning: The model first undergoes standard patch-level MIM to learn low-level features (textures, edges), followed by object-centric MIM to learn high-level semantics and global relationships.
  4. Object-Balanced Loss: A new loss function ensures the model doesn't ignore small objects in favor of large ones, maintaining an equitable "visual vocabulary."
The Object-Centric Representation training pipeline, featuring object tokenization, object-centric masking, and object-balanced loss.

Key Insights and Results

The core "aha" moment is that the object is the fundamental unit of visual meaning. By masking an entire dog, the model can't just interpolate pixels; it must look at the leash, the grass, and the owner to "reason" that a dog should be there. This captures "visual grammar"—the way objects like a "steering wheel" and a "dashboard" co-occur.

The researchers found that object-centric representation consistently outperformed standard patch-based methods:

  • Visual Reasoning: Integration into Multimodal LLMs (like LLaVA) improved VQA performance by up to 4%.
  • In-Context Learning: Models showed a superior ability to "copy" complex visual prompts compared to standard models.
  • Toy Study Success: In a controlled environment where two shapes always appeared together, the object-centric model recovered the missing pair 93.25% of the time, while standard models failed completely (0%).

Limitations and Future Outlook

Despite its success, the method currently relies on external segmentation models, adding preprocessing overhead. Future work aims to build "visual tokenizers" that can identify semantic units end-to-end. Additionally, while the method scales well to ViT-Large, testing on massive-scale datasets (beyond 1M images) remains a key milestone to determine if these emergent reasoning traits continue to grow linearly.

Summary updated

BibTeX
@misc{zhong2025context,
  author = {Jike Zhong and Yuxiang Lai and Xiaofeng Yang and Konstantinos Psounis},
  title = {{Context Matters: Learning Global Semantics via Object-Centric Representation}},
  year = {2025},
  eprint = {2510.05674},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.05674},
}
Figure