L2C: Describing Visual Differences Needs Semantic Understanding of Individuals

An Yan, Xin Wang, Tsu-Jui Fu, William Yang Wang

Presented at EACL 2021, the Learning-to-Compare (L2C) framework introduces a novel approach to visual comparison. Rather than treating image differences as a direct mapping problem, L2C posits that a model must first understand the individual semantic structures of images before it can accurately describe how they differ.

The Challenge of Visual Comparison

Visual comparison—generating a natural language description of the differences between Image A and Image B—is significantly more complex than standard image captioning. Most existing models approach this task by feeding global visual features (e.g., ResNet vectors) into a neural network, hoping the system learns to identify disparities implicitly.

The visual comparison task requires identifying subtle differences between two similar images.

However, this "black-box" approach lacks semantic grounding. Humans compare objects by identifying specific parts (like a bird's beak or wings) and contrasting their attributes. Without this structured understanding, models often produce generic descriptions that fail to generalize to new image pairs.

The L2C Framework

The L2C model addresses these limitations through a three-stage process designed to mimic human-like reasoning:

  1. Semantic Representation Construction: Instead of global pooling, the model employs a Semantic Pooling module. Using a ResNet-101 backbone, it clusters pixels into $K$ distinct "part" maps, ensuring that features for specific regions (e.g., head vs. tail) remain separate and identifiable.
  2. Comparative Relational Reasoning: These pooled features serve as nodes in a graph. A Graph Convolutional Network (GCN) performs reasoning to capture the relationships between these parts. To identify differences, the model calculates the vector difference between the relationship-enhanced graph features of the two images ($V^g_1 - V^g_2$).
  3. Learning to Compare while Learning to Describe: A key innovation of L2C is the use of an auxiliary loss for single-image captioning. By alternating between describing a single image and describing the differences between a pair, the model is forced to learn robust, linguistically grounded semantic features.
L2C represents images as semantic graphs, allowing the model to reason about differences between specific parts.

Experimental Results

The L2C model was evaluated primarily on the Birds-to-Words (B2W) dataset, which contains over 3,300 image pairs with human-annotated descriptions. The CUB-200-2011 dataset provided the auxiliary single-image captions for training.

  • Automatic Metrics: L2C achieved a ROUGE-L score of 45.6 on the test set, significantly outperforming the standard CNN+LSTM baseline (43.2).
  • Human Evaluation: In head-to-head tests, human evaluators preferred L2C’s descriptions 50.8% of the time, compared to 39.4% for the baseline.
  • Ablation Studies: Removing the Semantic Pooling module led to a drop in ROUGE-L from 45.7 to 43.2, confirming that structured, part-based understanding is essential for high-quality comparisons.

Conclusion

The success of L2C demonstrates that individual semantic understanding is a prerequisite for effective visual comparison. By explicitly modeling object parts and their relationships, L2C moves beyond pixel-level differences toward a more human-like, attribute-based reasoning. Future work may involve extending this framework to open-domain comparisons where predefined part segmentation is not readily available.

Summary updated

BibTeX
@inproceedings{yan2021l,
  author = {An Yan and Xin Wang and Tsu-Jui Fu and William Yang Wang},
  title = {{L2C: Describing Visual Differences Needs Semantic Understanding of Individuals}},
  booktitle = {EACL},
  year = {2021},
  doi = {10.18653/v1/2021.eacl-main.196},
}
Figure