Cross-Modal Taxonomic Generalization in (Vision-) Language Models
Organizations: Toyota Technological Institute at Chicago · The University of Texas at Austin
Abstract
What is the interplay between semantic representations learned by language models (LM) from surface form alone to those learned from more grounded evidence? We study this question for a scenario where part of the input comes from a different modality -- in our case, in a vision-language model (VLM), where a pretrained LM is aligned with a pretrained image encoder. As a case study, we focus on the task of predicting hypernyms of objects represented in images. We do so in a VLM setup where the image encoder and LM are kept frozen, and only the intermediate mappings are learned. We progressively deprive the VLM of explicit evidence for hypernyms, and test whether knowledge of hypernyms is recoverable from the LM. We find that the LMs we study can recover this knowledge and generalize even in the most extreme version of this experiment (when the model receives no evidence of a hypernym during training). Additional experiments suggest that this cross-modal taxonomic generalization persists under counterfactual image-label mappings only when the counterfactual data have high visual similarity within each category. Taken together, these findings suggest that cross-modal generalization in LMs arises as a result of both coherence in the extralinguistic input and knowledge derived from language cues.
Figures & tables
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| Epochs | 5 |
| Batch Size | 16 |
| Number of Layers | 2 |
| Input Dimension | 1024/1152 |
| Output Dimension | 1024/2048 |
| Max Gradient Norm | 1.0 |
| Ablation level (%) | # Leaves affected | Data variant | Train set (# I-Q pairs) | Validation set (# I-Q pairs) | Test set (# I-Q pairs) | ||||
|---|---|---|---|---|---|---|---|---|---|
| leaf | seen | unseen | leaf | seen | unseen | ||||
| 100 | 1,222 | Original | 23,250 | 2,028 | – | 3,380 | 9,394 | – | 15,702 |
| Across-category | 23,250 | 2,028 | – | 3,366 | 9,394 | – | 15,680 | ||
| Within-category | 23,250 | 2,028 | – | 3,380 | 9,394 | – | 15,664 | ||
| 90 | 1,148 | Original | 24,840 | 2,028 | 134 | 3,246 | 9,394 | 644 | 15,058 |
| Across-category | 24,818 | 2,028 | 142 | 3,224 | 9,394 | 630 | 15,050 | ||
| Ablation level (hypernyms removed) | Data variant | Train set | Validation set | Test set | ||||
|---|---|---|---|---|---|---|---|---|
| leaf | seen | unseen | leaf | seen | unseen | |||
| full | Original | 23,250 | 2,028 | – | 3,380 | 9,394 | – | 15,702 |
| Across-category | 23,250 | 2,028 | – | 3,366 | 9,394 | – | 15,680 | |
| Within-category | 23,250 | 2,028 | – | 3,366 | 9,394 | – | 15,664 | |
| 40 | Original | 29,892 | 2,028 | 564 | 2,816 | 9,394 | 2,684 | 13,018 |
| Across-category | 30,014 | 2,028 | 600 | 2,766 | 9,384 | 2,722 | 12,958 | |
| Ablation level | Ablated categories |
|---|---|
| 40 | kitchen appliance, home decor item, medical equipment, plant, protective clothing item, farm animal, mammal, car part, dessert, breakfast food, sea animal, hardware item, school supply, source of light, garden tool, drink, sports equipment, toy, insect, watercraft, footwear, vegetable, piece of jewelry, game, condiment, animal, personal hygiene item, bird, musical, office supply item, item of clothing, piece of women’s clothing, construction equipment, candy, headwear, scientific equipment, home appliance, seafood, safety equipment, container |
| 30 | fastener, condiment, container, kitchen appliance, office supply item, body part, vegetable, kitchen tool, home appliance, outerwear, arts and crafts item, construction equipment, game, insect, breakfast food, home decor item, clothing accessory, food, school supply, fruit, sports equipment, sea animal, piece of women’s clothing, candy, safety equipment, farm animal, dessert, scientific equipment, bird, tool |
| 20 | medical equipment, sea animal, home decor item, fastener, condiment, breakfast food, hardware item, office supply item, toy, seafood, musical, mammal, vehicle, personal hygiene item, protective clothing item, sports equipment, construction equipment, insect, scientific equipment, tool |
| 10 | container, personal hygiene item, dessert, item of clothing, furniture, breakfast food, scientific equipment, garden tool, car part, sea animal |
| Experiment Setting | Macro F1 | Std. Error |
|---|---|---|
| Original | 78.4 | 1.3 |
| Across-category | 50.0 | 0.6 |
| Within-category | 79.8 | 1.2 |
| Majority-label | 39.2 | 0.9 |
Vision-Language Models
Vision-language models connect visual inputs with text for retrieval, question answering, generation, and grounded multimodal reasoning.
See all 736 papers