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

设计式掩码:面向用户界面的组件条件预训练

Masking by Design: Component-Conditioned Pretraining for User Interfaces

Shon Otmazgin, Shahar Nahum, Adi Dick-Charnilas, Gershon Goland, Amit Israeli, Gilad Barkan

AI总结:

本研究提出设计式掩码方法,通过组件条件掩码预训练SigLIP2编码器,在UI组件分类任务中使宏观F1从61.5提升至66.0,优于随机掩码,相关代码与数据已公开。

摘要:

Web用户界面是由组件组合而成而非直接捕获的:页面由组件构建,从像素中恢复这些组件是设计工具、无障碍访问、UI测试和软件智能体的基础。页面渲染后会有两种表示:编码器可见的截图,以及绘制页面所用的结构化文档,该文档会命名这些组件并确定每个组件的位置框。现有研究要么将该文档作为上下文,要么将其作为目标进行预测。我们提出组件条件掩码,将该文档用于不同用途:它为图像编码器的预训练生成掩码,由此得到设计式掩码:我们针对的12个类别中每个组件的部分内容都会被隐藏,无论其大小、位置或出现频率如何,因此每个组件都成为预测目标。我们的语料来自某网站构建平台的136277个渲染页面,该平台用统一词汇命名所有组件。我们在此策略下用I-JEPA继续预训练SigLIP2编码器,并通过线性探针预测每个组件的类别来评估:宏观F1值从61.5提升至66.0。为隔离掩码的影响,我们在其他条件不变的情况下用随机掩码再次预训练:三个随机种子下宏观F1的差值为1.3,且该提升来自随机掩码覆盖不足的组件——12个类别中的5个,而我们的设计式掩码在每个类别的覆盖面积均超过一半。我们的掩码改善了所有12个评估类别,而随机掩码则使部分类别低于冻结的SigLIP2编码器。我们发布代码、预训练编码器以及9000个页面(密封测试集和线性探针训练集),包含每个组件的类别和位置框。

英文摘要:

Web user interfaces are composed rather than captured: a page is built from components, and recovering those components from pixels underlies design tooling, accessibility, UI testing and software agents. Once rendered, the page holds two representations: the screenshot an encoder sees, and the structured document it was drawn from, which names those components and fixes the box each one occupies. Prior work has read that document as context, or predicted it back as a target. We propose component-conditioned masking, which puts it to a different use: it authors the mask for pretraining the image encoder. The result is masking by design: part of every component in the twelve classes we target is hidden, regardless of its size, position, or frequency, so each one becomes a prediction target. Our corpus is 136,277 rendered pages from Wix.com, a website-building platform where a single vocabulary names every component. We continue pretraining a SigLIP2 encoder with I-JEPA under this policy, and measure it with a linear probe that predicts each component's class: macro F1 rises from 61.5 to 66.0. To isolate the mask we pretrain again with random masking, changing nothing else: the difference is 1.3 macro F1 across three seeds, and it is gained on the components a random draw under-covers -- five of the twelve classes -- where ours masks more than half of the area of every class. Our mask improves all twelve classes we evaluate, while the random draw leaves some below the frozen SigLIP2 encoder. We release the code, the pretrained encoders, and 9,000 pages -- the sealed test split and the split our probe trains on -- with every component's class and box.

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

↑