arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.02228cs.SE
收藏

ROME:通过递归对象融化测试图像描述系统

ROME: Testing Image Captioning Systems via Recursive Object Melting

Boxi Yu, Zhiqing Zhong, Jiaqi Li, Yixing Yang, Shilin He, Pinjia He

AI总结:

提出递归对象融化(Rome)方法,通过递归移除并修复图像对象生成自然测试用例,有效测试图像描述系统,发现大量错误并提升模型性能。

摘要:

图像描述(IC)系统旨在生成图像中显著对象的文本描述。近年来,IC系统日益融入我们的日常生活,例如为视障人士提供辅助以及在Microsoft Powerpoint中生成描述。然而,即使是前沿的IC系统(如Microsoft Azure Cognitive Services)和算法(如OFA)也可能产生错误描述,导致对重要对象的错误描述、误解以及对个人安全的威胁。现有测试方法要么无法处理IC系统输出的复杂形式(即自然语言句子),要么生成不自然的图像作为测试用例。为解决这些问题,我们引入了递归对象融化(Rome),一种用于验证IC系统的新型蜕变测试方法。与通过插入对象生成测试用例的现有方法不同(这容易使生成的图像不自然),Rome融化(即移除并修复)对象。Rome假设图像描述中的对象集包含对象融化后生成图像描述中的对象集。给定一张图像,Rome可以递归移除其对象以生成不同的图像对。我们使用Rome测试了一个广泛采用的图像描述API和四个最先进(SOTA)算法。结果表明,Rome生成的测试用例比SOTA IC测试方法看起来自然得多,并且它们实现了与原始图像相当的自然度。同时,通过使用226张种子图像生成测试对,Rome报告了总共9,121个错误问题,具有高精度(86.47%-92.17%)。此外,我们进一步利用Rome生成的测试用例重新训练Oscar,在多个评估指标上提升了其性能。

英文摘要:

Image captioning (IC) systems aim to generate a text description of the salient objects in an image. In recent years, IC systems have been increasingly integrated into our daily lives, such as assistance for visually-impaired people and description generation in Microsoft Powerpoint. However, even the cutting-edge IC systems (e.g., Microsoft Azure Cognitive Services) and algorithms (e.g., OFA) could produce erroneous captions, leading to incorrect captioning of important objects, misunderstanding, and threats to personal safety. The existing testing approaches either fail to handle the complex form of IC system output (i.e., sentences in natural language) or generate unnatural images as test cases. To address these problems, we introduce Recursive Object MElting (Rome), a novel metamorphic testing approach for validating IC systems. Different from existing approaches that generate test cases by inserting objects, which easily make the generated images unnatural, Rome melts (i.e., remove and inpaint) objects. Rome assumes that the object set in the caption of an image includes the object set in the caption of a generated image after object melting. Given an image, Rome can recursively remove its objects to generate different pairs of images. We use Rome to test one widely-adopted image captioning API and four state-of-the-art (SOTA) algorithms. The results show that the test cases generated by Rome look much more natural than the SOTA IC testing approach and they achieve comparable naturalness to the original images. Meanwhile, by generating test pairs using 226 seed images, Rome reports a total of 9,121 erroneous issues with high precision (86.47%-92.17%). In addition, we further utilize the test cases generated by Rome to retrain the Oscar, which improves its performance across multiple evaluation metrics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑