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.

Authors

Publication Details

Journal
arXiv
Published
2026-11-30
DOI
https://doi.org/10.48550/arxiv.2611.41319
Primary Topic
Web Data Mining and Analysis
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Masking by Design: Component-Conditioned Pretraining for User Interfaces

Shon Otmazgin, Gilad Barkan, Shahar Nahum, Amit Israeli et al.
arXiv
Web Data Mining and Analysis
preprint

Masking by Design: Component-Conditioned Pretraining for User Interfaces

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

Abstract

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.

arXiv
Web Data Mining and Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon