paper-with-me

Papers

Learning UI-to-Code Reverse Generator Using Visual Critic Without Rendering

2023-05-24 · Davit Soselia, Khalid Saifullah, Tianyi Zhou

Automated reverse engineering of HTML/CSS code from UI screenshots is an important yet challenging problem with broad applications in website development and design. In this paper, we propose a novel vision-code transformer (ViCT) composed of a vision encoder processing the screenshots and a language decoder to generate the code. They are initialized by pre-trained models such as ViT/DiT and GPT-2/LLaMA but aligning the two modalities requires end-to-end finetuning, which aims to minimize the visual discrepancy between the code-rendered webpage and the original screenshot. However, the rendering is non-differentiable and causes costly overhead. We address this problem by actor-critic fine-tuning where a visual critic without rendering (ViCR) is developed to predict visual discrepancy given the original and generated code. To train and evaluate our models, we created two synthetic datasets of varying complexity, with over 75,000 unique (code, screenshot) pairs. We evaluate the UI-to-Code performance using a combination of automated metrics such as MSE, BLEU, IoU, and a novel htmlBLEU score. ViCT outperforms a strong baseline model DiT-GPT2, improving IoU from 0.64 to 0.79 and lowering MSE from 12.25 to 9.02. With much lower computational cost, it can achieve comparable performance as when using a larger decoder such as LLaMA.

📄 PDF Abstract BibTeX arXiv:2305.14637

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationDecoderreinforcement-learning

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.

Similar Papers 제목 키워드 기반

Distribution Matching Distillation without Fake Score Network

2026-05-19 · Youngjoong Kim, Deokyeong Lee, Jaesik Park arxiv

Distribution Matching Distillation (DMD) provides an effective distribution-level correction for few-step generation, while relying on an auxiliary fake-score network to track the evolving generative distribution. Recent…

Talk Less, Verify More: Improving LLM Assistants with Semantic Checks and Execution Feedback

2026-01-01 · Yan Sun, Ming Cai, Stanley Kok arxiv

As large language model (LLM) assistants become increasingly integrated into enterprise workflows, their ability to generate accurate, semantically aligned, and executable outputs is critical. However, current conversati…

When Helping Hurts and How to Fix It: Multi-Agent Debate for Data Cleaning

2026-06-01 · Chirag Parmar, Akshat Mehta, Henglin Wu, Jagadish Ramamurthy 외 arxiv

When does multi-agent debate help data cleaning, and when does it hurt? Across three benchmarks, four model families, and over 6,000 task-condition pairs, we find debate's effect reverses sign: it degrades generation acr…

Generating Novel Glyph without Human Data by Learning to Communicate

2020-10-09 · Seung-won Park

In this paper, we present Neural Glyph, a system that generates novel glyph without any training data. The generator and the classifier are trained to communicate via visual symbols as a medium, which enforces the genera…

Multi-modal Learning for WebAssembly Reverse Engineering

2024-04-04 · Hanxian Huang, Jishen Zhao

The increasing adoption of WebAssembly (Wasm) for performance-critical and security-sensitive tasks drives the demand for WebAssembly program comprehension and reverse engineering. Recent studies have introduced machine …

Language ModellingSelf-Supervised Learning