XBIDetective: 利用视觉语言模型识别跨浏览器视觉不一致
XBIDetective: Leveraging Vision Language Models for Identifying Cross-Browser Visual Inconsistencies
AI总结:
XBIDetective利用视觉语言模型识别跨浏览器视觉不一致,通过自动截图和分析检测渲染错误,准确率高达79%
摘要:
浏览器渲染错误对于浏览器开发者来说很难检测,因为它们可能由非常特定的条件触发,仅在极少数网站上显示。跨浏览器不一致(XBIs),即网站在不同浏览器中被解释和显示的差异,可以成为检测此类渲染错误的指导。尽管已有基于视觉和文档对象模型(DOM)的分析技术用于检测XBIs,但它们往往在处理动态和交互元素时遇到困难。在本研究中,我们讨论了使用视觉语言模型(VLMs)来识别XBIs的行业经验。我们提出了XBIDetective工具,该工具可以自动捕获网站在Mozilla Firefox和Google Chrome中的截图,并使用VLM分析这些截图以检测XBIs。我们使用现成的和微调的VLM对1,052个网站进行了评估。我们展示了当使用微调的VLM时,XBIDetective可以以79%的准确率识别跨浏览器差异,并以84%和85%的准确率检测动态元素和广告。我们讨论了重要的经验教训,并提出了XBIDetective的几个潜在实际应用场景,包括自动化回归测试、大规模监控网站以及快速处理XBI错误报告。
英文摘要:
Browser rendering bugs can be challenging to detect for browser developers, as they may be triggered by very specific conditions that are exhibited on only a very small subset of websites. Cross-browser inconsistencies (XBIs), variations in how a website is interpreted and displayed on different browsers, can be helpful guides to detect such rendering bugs. Although visual and Document Object Model (DOM)-based analysis techniques exist for detecting XBIs, they often struggle with dynamic and interactive elements. In this study, we discuss our industry experience with using vision language models (VLMs) to identify XBIs. We present the XBIDetective tool which automatically captures screenshots of a website in Mozilla Firefox and Google Chrome, and analyzes them with a VLM for XBIs. We evaluate XBIDetective's performance with an off-the-shelf and a fine-tuned VLM on 1,052 websites. We show that XBIDetective can identify cross-browser discrepancies with 79% accuracy and detect dynamic elements and advertisements with 84% and 85% accuracy, respectively, when using the fine-tuned VLM. We discuss important lessons learned, and we present several potential practical use cases for XBIDetective, including automated regression testing, large-scale monitoring of websites, and rapid triaging of XBI bug reports.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。