JEPA · 2026-12-01

Masking by Design: Component-Conditioned Pretraining for User Interfaces

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

arXiv:2611.41319PDF

AI-assisted summary based on the paper. Consult the linked source for methods and limitations. Benchmark numbers appear after editor verification.

TL;DR

The authors propose component-conditioned masking for masked-image pretraining on UI screenshots: the DOM specifies a mask placed inside every component box so each component becomes a prediction target. Continuing pretraining a SigLIP2 encoder with I-JEPA on 136,277 Wix-rendered pages, they report macro F1 (linear probe for component class) rising from 61.5 to 66.0 versus frozen SigLIP2; against random masking, they gain 1.3 macro F1.

Why it matters

Mask placement affects what a masked-pretraining image encoder learns. For web UIs, the DOM provides spatially aligned component structure, enabling “masking by design” where every component instance is partially hidden and must be recovered from context. The paper evaluates component-level representations via a linear probe predicting each component’s class, and shows gains track how much mask coverage each component class receives.

Method

  • Continue pretraining a SigLIP2 image encoder with I-JEPA using component-conditioned masking: for each DOM-defined component instance, place a random contiguous target block inside its bounding box and predict masked feature targets from visible context patches.
  • Create three masking policies with identical training recipe and data: frozen SigLIP2 baseline, random masking, and random+ (random targets matched in size/budget); “ours” masks within component boxes in a band (0.5,0.7).
  • Evaluate component-level representation using a linear probe that mean-pools frozen encoder features over each component’s box and predicts the component’s class (12 classes).

Limitation

The authors report that if components cover less than 10% of the page patch grid, they filter those pages out because “below that there is too little for a component mask to hold.”

Abstract (from arXiv)

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, 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.

Related papers

Publication record

Bibliographic evidence describes where and when a record appeared. It does not validate scientific claims.

First announced by arXiv: 2026-12-01 · Indexed by Pub-AI: 2026-12-01 UTC

preprint

Masking by Design: Component-Conditioned Pretraining for User Interfaces

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

First announced by arXiv: 2026-12-01 · Original record ↗

arxiv
2611.41319
Explicit source versions (1)
  • v1 · Date not supplied
  1. Preprint available

    Source date: 2026-12-01 · First detected: 2026-12-01 UTC · Historical baseline

    Source evidence (1)
    • Official evidence ↗ · RSS guid=oai:arXiv.org:2611.41319v1; arxiv:announce_type=new; item pubDate (official metadata)
Abstract · arxiv

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, 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.