Introduction
Image captioning (IC) systems are increasingly integrated into essential technologies, such as accessibility tools for the visually impaired and automated metadata generation. Despite their utility, validating these systems is challenging due to the "oracle problem": natural language outputs lack a single ground truth. Previous testing frameworks, such as MetaIC, attempted to solve this by inserting new objects into images. However, this often resulted in "Frankenstein" images—unnatural scenes that fall outside the training distribution, leading to unrealistic error reports.
The ROME Framework
To address these limitations, researchers developed ROME (Recursive Object MElting). Unlike additive methods, ROME employs a subtractive approach. It identifies salient objects in a "seed" image and systematically removes them using the LaMa high-quality inpainting model. This "melting" process ensures that the resulting test cases remain within the natural distribution of real-world photography.
ROME utilizes Metamorphic Testing to verify system behavior across two primary relations:
- Object Melt (MR1): Captions for a "melted" image should only describe a subset of the objects found in the original caption.
- Class Melt (MR2): If all instances of a specific class (e.g., "dog") are removed, that class should disappear from the generated caption.
To handle the nuances of natural language, ROME integrates NLP tools like Stanza and WordNet for semantic matching, ensuring that synonyms or multi-word phrases do not trigger false positives.
Evaluation and Results
ROME was evaluated using seed images from the MS COCO dataset, generating over 9,000 test pairs from just 226 images. Human evaluations confirmed the high quality of ROME's output, with a naturalness score of 3.33/4, significantly higher than MetaIC's 1.37/4.
The framework identified 9,121 erroneous issues across five major IC systems, including Microsoft Azure's API and state-of-the-art models like VinVL. These errors were categorized into a taxonomy of Misclassification (41%), Omission (34%), Quantity (23%), and Action (2%).
Beyond testing, ROME proved effective at identifying labeling errors in the original COCO training set. The researchers found 219 significant errors, such as zebras mislabeled as giraffes. Furthermore, fine-tuning models on the errors discovered by ROME led to measurable performance gains, including an 8.3% increase in the SPICE score for the Oscar model.
Conclusion
ROME demonstrates that subtractive testing via object melting is a robust and effective strategy for validating vision-language models. By maintaining the naturalness of test images, ROME provides a more credible assessment of IC systems than previous additive methods. Future work will focus on minimizing inpainting artifacts and expanding the framework to other computer vision tasks like object detection.
Summary updated