mlsanityData to 14 Oct 2026

Pattern over Pixels: Measuring Pattern Completion Bias in Multimodal Code Generation

arXiv 2608.03691 ↗First posted 4 Aug 2026cs.SE cs.AI cs.CVcited by 0

On the map: Multimodal LLMs / vision-language models → Chart understanding and anomaly detection

Abstract (arXiv)

Multimodal large language models (MLLMs) are increasingly used to translate webpage screenshots into front-end code, but repeated UI patterns may sway them toward visually incorrect yet pattern-consistent outputs. In this work, we test how repeated webpage patterns hurt MLLM accuracy on an objective screenshot-to-code fill-in-the-blank task. We introduce the first benchmark for visual pattern-completion bias, where one localized element in a repeated UI pattern is perturbed and the model must recover the masked width or font-size value from the screenshot and HTML context. Starting from 30 webpages curated from the Design2Code dataset, we build 1,440 evaluated screenshots spanning structural card and text-style patterns under standard and noise-overlaid conditions. We evaluate five frontier MLLMs and find that all are strongly biased toward the repeated baseline. Mean bias rate reaches 69.78% on card-width perturbations and 80.22% on text font-size perturbations, while mean accuracy is only 21.17% and 7.89%, respectively. Codex-5.3 performs best but still drops from 68.61% accuracy on cards to 13.89% on text, while Flash-3.0 reaches 96.11% bias on text. Noise, subtler perturbations, and boundary positions further increase bias rate. Reasoning analysis further shows that greater reasoning effort correlates with lower bias, yet qualitative evidence reveals that models can identify the anomalous element and still override it with the pattern-consistent answer. Our results identify a concrete failure mode in multimodal code generation and show that its severity is strongly associated with visual saliency

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Chart understanding and anomaly detection, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 23 of its 52 references that are in the map. First posted on arXiv 4 Aug 2026.

Builds on

23 of 52 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025VisCodex: Unified Multimodal Code Generation via Merging Vision and Coding Models13 Aug
  2. 2025WebUIBench: A Comprehensive Benchmark for Evaluating Multimodal Large Language Models in WebUI-to-Code9 Jun
  3. 2024Web2Code: A Large-scale Webpage-to-Code Dataset and Evaluation Framework for Multimodal LLMs28 Jun
  4. 2024Design2Code: Benchmarking Multimodal Code Generation for Automated Front-End Engineering5 Mar

Other references · 19

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2022Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understandingcited by 366
  3. 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 166
  4. 2021VALSE: A Task-Independent Benchmark for Vision and Language Models Centered on Linguistic Phenomenacited by 135
  5. 2017pix2code: Generating Code from a Graphical User Interface Screenshotcited by 114
  6. 2025Vision Language Models are Biasedcited by 66
  7. 2023Bias Testing and Mitigation in LLM-based Code Generationcited by 53
  8. 2024Interaction2Code: Benchmarking MLLM-based Interactive Webpage Code Generation from Interactive Prototypingcited by 51
  9. 2024VLind-Bench: Measuring Language Priors in Large Vision-Language Modelscited by 45
  10. 2025DesignBench: A Comprehensive Benchmark for MLLM-based Front-end Code Generationcited by 45
  11. 2025FullFront: Benchmarking MLLMs Across the Full Front-End Engineering Workflowcited by 28
  12. 2023ROME: Evaluating Pre-trained Vision-Language Models on Reasoning beyond Visual Common Sensecited by 27
7 more
  1. 2024UICoder: Finetuning Large Language Models to Generate User Interface Code through Automated Feedbackcited by 27
  2. 2023Uncovering and Quantifying Social Biases in Code Generationcited by 25
  3. 2024Bias Unveiled: Investigating Social Bias in LLM-Generated Codecited by 25
  4. 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approachcited by 24
  5. 2025UICopilot: Automating UI Synthesis via Hierarchical Code Generation from Webpage Designscited by 22
  6. 2024Bridging Design and Development with Automated Declarative UI Code Generationcited by 19
  7. 2025WebMMU: A Benchmark for Multimodal Multilingual Website Understanding and Code Generationcited by 16

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025ArtifactsBench: Bridging the Visual-Interactive Gap in LLM Code Generation Evaluation
  2. 2026VisRefiner: Learning from Visual Differences for Screenshot-to-Code Generation
  3. 2026Seeing is Coding: On the Effectiveness of Vision Language Models in Code Understanding
  4. 2026MT-Web2Code: Benchmarking Coding Agents on Multi-Turn Regional Reconstruction and Localized Modification
  5. 2026DiffSpot: Can VLMs Spot Fine-Grained Visual Differences in Web Interfaces?
  6. 2024WebCode2M: A Real-World Dataset for Code Generation from Webpage Designs
  7. 2026Beyond NL2Code: A Structured Survey of Multimodal Code Intelligence
  8. 2025Widget2Code: From Visual Widgets to UI Code via Multimodal LLMs