ACTesting:文生图软件的自动化跨模态测试方法
ACTesting: Automated Cross-modal Testing Method of Text-to-Image Software
AI总结:
提出首个面向文生图软件的自动化跨模态测试方法 ACTesting,利用蜕变测试、ER 三元组和变异算子揭示文本—图像不一致错误。
摘要:
近年来,创意生成式人工智能软件已成为关键助手,使用户能够快速生成内容并寻找灵感。文生图(Text-to-Image,T2I)软件是应用最广泛的软件之一,它通过跨模态过程,利用文本输入合成图像。然而,尽管 T2I 引擎取得了实质性进展,T2I 软件在生成复杂或非现实场景时仍会遇到错误,包括遗漏焦点实体、图像真实感低以及文本—图像信息不匹配。T2I 软件的跨模态特性使传统测试方法难以进行错误检测,而测试预言的缺失进一步加剧了测试过程的复杂性。为填补这一空白,我们提出 ACTesting,一种面向文生图软件的自动化跨模态测试方法,也是首个明确为 T2I 软件设计的测试方法。ACTesting 利用蜕变测试原则解决预言问题,并通过采用实体—关系(Entity-relationship,ER)三元组,将跨模态语义一致性确定为其基本蜕变关系(Metamorphic relation,MR)。我们在 MR 和适应度密度约束的指导下设计了三类变异算子,以构造新的输入文本。在基于文本生成图像后,ACTesting 通过检测两种模态之间的 ER 三元组来验证 MR 是否得到满足,从而检测 T2I 软件的错误。在针对五款流行 T2I 软件的实验中,ACTesting 有效地生成了揭示错误的测试,与基线相比,文本—图像一致性最高下降了 20%。此外,消融研究证明了所提出变异算子的有效性。实验结果验证了 ACTesting 能够可靠地识别 T2I 软件中的错误。
英文摘要:
Recently, creative generative artificial intelligence software has emerged as a pivotal assistant, enabling users to generate content and seek inspiration rapidly. Text-to-Image (T2I) software, one of the most widely used, synthesizes images with text input by engaging in a cross-modal process. However, despite substantial advancements in the T2I engine, T2I software still encounters errors when generating complex or non-realistic scenes, including omitting focal entities, low image realism, and mismatched text-image information. The cross-modal nature of T2I software complicates error detection for traditional testing methods, and the absence of test oracles further exacerbates the complexity of the testing process. To fill this gap, we propose ACTesting, an Automated Cross-modal Testing Method of Text-to-Image Software, the first testing method explicitly designed for T2I software. ACTesting utilizes the metamorphic testing principle to address the oracle problem and identifies cross-modal semantic consistency as its fundamental Metamorphic relation (MR) by employing the Entity-relationship (ER) triples. We design three kinds of mutation operators under the guidance of MR and the adaptability density constraint to construct the new input text. After generating the images based on the text, ACTesting verifies whether MR is satisfied by detecting the ER triples across two modalities to detect the errors of T2I software. In our experiments across five popular T2I software, ACTesting effectively generates error-revealing tests, resulting in a decrease in text-image consistency by up to 20% when compared to the baseline. Additionally, an ablation study demonstrates the efficacy of the proposed mutation operators. The experimental results validate that ACTesting can reliably identify errors within T2I software.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。