TL;DR
Current Vision-Language Models (VLMs) like CLIP often treat sentences as an unordered "bag of words," failing to distinguish between "a dog chasing a cat" and "a cat chasing a dog." This paper introduces COGT (Causally-Ordered Generative Training), a method that uses dependency parsing to build a Causal Graphical Model of a sentence. By forcing the AI to learn the structural relationships between objects and attributes, COGT prevents the model from just memorizing word sequences and significantly improves compositional understanding.
The Problem: Why VLMs Struggle with Composition
Despite their massive success in image retrieval and zero-shot classification, standard VLMs are notoriously bad at compositional understanding. If you ask a standard model to find "a red bowl on a blue table," it might just look for the presence of the concepts "red," "blue," "bowl," and "table" without checking if the colors are assigned to the correct objects.
The authors argue this limitation stems from two main training paradigms:
- Contrastive Loss Bottlenecks: Standard training (like CLIP) compresses an entire sentence into a single vector. This global pooling sacrifices fine-grained, token-level details necessary for understanding complex relations.
- Spurious Correlations in Autoregression: Standard language models predict the next word based on all previous ones (autoregressive generation). This often encourages the model to learn "shortcuts" based on common word orders in English rather than grounding the text in the actual visual logic of the scene.
Enter COGT: Causally-Ordered Generative Training
To address these flaws, the researchers propose COGT, which shifts the training objective from simple word-matching or linear prediction to structured, visually-grounded generation.
- Dependency-Guided Structure: Instead of predicting words in a straight line (1, 2, 3...), COGT uses an off-the-shelf dependency parser to create a Dependency Tree. In this tree, a "head" word (like a noun) governs its "dependents" (like adjectives or verbs).
- Causal Graphical Model (CGM): The model treats this tree as a causal map. A word is only predicted based on its "parents" in the tree and the visual features from the image. For example, the model predicts the adjective "brown" only after it has "seen" the noun "bird" it modifies.
- Semi-Parallel Decoding: Words at the same level of the tree are predicted in parallel, while words lower in the hierarchy wait for their parents. This "disentangled factorization" encourages the model to ignore spurious sequential correlations and focus strictly on the main causal dependencies.
- Architecture: The team adds a lightweight decoder (~64M parameters) to a frozen visual encoder. Crucially, they leverage features from both the last and penultimate layers of the vision transformer to capture both high-level concepts and the fine-grained visual details needed for compositional reasoning.
Key Insights
- Structure over Sequence: Natural language is hierarchical, not just linear. By mirroring the syntactic structure of a sentence in the model's generative process, the AI is forced to ground specific words in specific visual regions.
- Sparsity as a Strength: By conditioning a word only on its causal parents (rather than all previous words), the model becomes more robust. It can't rely on guessing the next word based on common linguistic phrases; it must look at the image to resolve the dependency.
- Lower-Level Vision Matters: The final layer of VLMs often discards spatial information to create a global "concept" vector. The authors found that tapping into the penultimate layer retains the "pixels" needed to see small attributes, which is vital for compositional tasks.
Key Results and Benchmarks
The models were trained on standard datasets like MS-COCO, CC3M, and Visual Genome, and evaluated on five major compositional benchmarks: ARO, SugarCrepe, VL-Checklist, ColorSwap, and a newly introduced Fine-Grained Open-Vocabulary Detection (FG-OVD) benchmark.
COGT sets a new state-of-the-art (SOTA) across almost all compositional benchmarks:
- Massive Gains: As seen in the results, COGT dramatically outperforms fully-parallel and sequential autoregressive baselines, boasting an average score of 75.20 across all benchmarks (a nearly 6-point jump over the next best method). On the ARO benchmark specifically, COGT improved average accuracy by over 26 points compared to standard parallel training methods.
- Data Efficiency: COGT-CLIP, trained only on the relatively small COCO dataset, outperformed several models trained on datasets ten times larger.
- No "Catastrophic Forgetting": Unlike many fine-tuning methods that improve composition but ruin the model's general abilities, COGT actually maintained or improved performance on standard tasks like ImageNet and CIFAR-10 linear probing.
Limitations and Future Work
While powerful, COGT relies heavily on an external dependency parser. If the parser makes a mistake in the tree structure, the model's training signal becomes noisy. Additionally, the "level-by-level" decoding is slightly slower during inference than fully parallel models. Future work may explore "causal grammars" that could be learned jointly with the vision model, potentially removing the need for a pre-fixed dependency parser entirely.
Summary updated