Home
Search
New thread

Discussion

Discussion categories

General
Tech

Alt+Shift+M picks up a node. Use arrows and typeahead to browse destinations. Space cycles before, inside, and after. Enter places; Escape cancels. Tab cancels and leaves move mode.

Library

Library pages

Design
Resources
Websites
Articles
Packs and Templates
Typography
Web development
Cool Libraries
Tools
Articles
Papers and Studies
Articles
Digital Rights and Tech Policy
Software Craft
Society, Science and Culture
Language Models
Articles
Agent Tools
Platforms and Standards
Labs and Products
Searching for a job in the AI era, part 1: the setup and the first 16 days
Tech and Systems
Infrastructure and Hosting
Networking and Protocols
Vector Databases & Object Storage
ManyVector
vec
Amazon S3 Vectors
coder/hnsw
vecgo
Turbopuffer
govector
LanceDB
Articles
Computers
Developer Tools
Ghostty
Nyx
Paseo
Phones and Mobile
Loupe
Windows Tools and Modding
Windhawk
Raycast for Windows
Rainmeter
Mac Apps and Fixes
AltTab
Mac Mouse Fix
Rectangle
Raycast
Space Rabbit
Caffeine
Operating Systems and Desktops
Kando
Plasma 6.7
Haiku
Hardware and Computer Architecture
Fugleramme: E-ink Bird Frame
BROADSONIC Optical Ultrasonic Sensor
IBM introduces the smallest computer chip in the world
Cofactr
Computing History and Culture
Vintage Computing Festival Berlin 2026
Browsers
Aside
Yab
Ardia
Phi
Dia
Zen
Helium
Arcium
Cra
Crest
Search
Stedding
Nook
Park
Random fun stuff
Passport Index Data
Esoteric File Systems
Cool websites
Friends
Unity: Cheaterman's Bar
ChatGPT
SIGBOVIK
Villagers Protest 5G Outage in Indian Village
Database Detective: Minor Crimes Division
Mens T-shirt data
Gentoo is Rice
Indie Fashion
Game Modding
San Andreas Multiplayer / open.mp
KEG
BRUTAL Framework
Storyden
Selfh.st
OpenAlternative
Microlaunch
Peerlist
Glama.ai
AlternativeTo
Brandfetch
Dokploy
PitchHut
Piefed Social

Alt+Shift+M picks up a node. Use arrows and typeahead to browse destinations. Space cycles before, inside, and after. Enter places; Escape cancels. Tab cancels and leaves move mode.

Collections
Links
Members
Roles
RegisterLogin
Login
Library
Papers and Studies
EfficientUICoder: Efficient MLLM-based UI Code Generation via Input and Output Token Compression

EfficientUICoder: Efficient MLLM-based UI Code Generation via Input and Output Token Compression


EfficientUICoder: Efficient MLLM-based UI Code Generation via Input and Output Token Compression

Multimodal Large Language Models have demonstrated exceptional performance in UI2Code tasks, significantly enhancing website development efficiency. However, these tasks incur substantially higher computational overhead than traditional code generation due to the large number of input image tokens and extensive output code tokens required. Our comprehensive study identifies significant redundancies in both image and code tokens that exacerbate computational complexity and hinder focus on key UI elements, resulting in excessively lengthy and often invalid HTML files. We propose EfficientUICoder, a compression framework for efficient UI code generation with three key components. First, Element and Layout-aware Token Compression preserves essential UI information by detecting element regions and constructing UI element trees. Second, Region-aware Token Refinement leverages attention scores to discard low-attention tokens from selected regions while integrating high-attention tokens from unselected regions. Third, Adaptive Duplicate Token Suppression dynamically reduces repetitive generation by tracking HTML/CSS structure frequencies and applying exponential penalties. Extensive experiments show EfficientUICoderachieves a 55%-60% compression ratio without compromising webpage quality and delivers superior efficiency improvements: reducing computational cost by 44.9%, generated tokens by 41.4%, prefill time by 46.6%, and inference time by 48.8% on 34B-level MLLMs. Code is available at https://github.com/WebPAI/EfficientUICoder.

arxiv.org