Introduction
Change captioning is a specialized task in computer vision that requires a model to identify and describe the semantic differences between a pair of images—a "before" and an "after" state. While humans can easily "spot the difference," automated systems often struggle with "distractors." These are pixel-level changes caused by viewpoint shifts, camera jitter, or illumination changes (e.g., shadows or clouds) that do not represent a meaningful change in the scene's content. To address this, the Semantic Relation-aware Difference Representation Learning (SRDRL) framework proposes modeling the spatial and semantic relationships between objects to provide a more robust signal for change detection.
The SRDRL Framework
The core philosophy of SRDRL is that while the appearance of an individual object might change due to lighting or angle, its relationship to other objects in the scene remains relatively stable unless a true semantic change occurs. The framework consists of several key modules designed to extract and filter these relational features.
Self-Semantic Relation Embedding (SSRE)
Instead of treating objects as isolated entities, the SSRE module employs a self-attention mechanism to model the dependencies between all detected objects in an image. By considering the global context, the model generates "context-aware" features. For instance, a small cube is not just defined by its pixels but by its position relative to a larger sphere or a cylinder. This relational web makes the presence or absence of an object much easier to verify.
Cross-Semantic Relation Measuring (CSRM)
The CSRM block serves as a sophisticated noise filter. It takes the raw difference between the "before" and "after" feature maps and compares it against the original image features. By using an attention-based gating mechanism, the CSRM decides which differences are semantically significant and which are likely noise from environmental factors. This allows the model to ignore a shift in a shadow while focusing on the disappearance of a person or the movement of a vehicle.
Attention-based Visual Switch (AVS)
Generating a natural language caption requires balancing visual information with linguistic structure. Standard models often attend to the image for every word generated, which can introduce visual noise into the sentence structure. The SRDRL framework introduces the Attention-based Visual Switch (AVS), which uses Part-of-Speech (POS) guidance.
During the decoding process, the model predicts the POS tag of the next word. If the word is a content-heavy noun or adjective, the AVS allows the model to focus on the visual difference features. If the word is a functional filler (like "the," "is," or "of"), the switch relies on the language model's internal hidden state. This "knowing when to look" strategy ensures that the generated sentences are both visually accurate and grammatically sound.
Experimental Evaluation
The model was rigorously tested on two benchmark datasets:
- CLEVR-Change: A synthetic dataset of ~80,000 image pairs designed to test robustness against distractors. It includes five types of changes: Color, Texture, Add, Drop, and Move.
- Spot-the-Diff: A real-world dataset of ~13,000 image pairs from surveillance cameras, representing complex, "in-the-wild" scenarios.
Key Results
The SRDRL framework achieved state-of-the-art performance on both benchmarks. On the CLEVR-Change dataset, it reached a CIDEr score of 122.2, a significant improvement over previous models. It showed particular strength in the "Move" and "Texture" categories, which are typically the most difficult to distinguish from viewpoint changes.
Qualitative analysis (as seen in the figure above) demonstrates the model's ability to accurately localize and describe changes even when they are subtle, such as a tiny cylinder disappearing or a person leaving a sidewalk. On the Spot-the-Diff dataset, the model led in METEOR (13.0) and SPICE (18.0) scores, indicating that its descriptions are more human-like and semantically precise than baseline methods.
Conclusion and Future Work
By prioritizing semantic relations over raw pixel differences, the SRDRL framework effectively mitigates the impact of environmental distractors in change captioning. The integration of a POS-guided visual switch further refines the quality of the generated natural language. While the model occasionally struggles with micro-movements that mimic viewpoint shifts, it represents a major step forward in robust scene understanding. Future research will explore finer-grained difference representations to capture even the most subtle spatial shifts.
Summary updated