arXiv:2611.41319 · v1
Masking by Design: Component-Conditioned Pretraining for User Interfaces
摘要
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.
作者备注:Accepted to the VisionDocs workshop at WACV 2027. Copyright 2027 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media