MulFCoder: Framework-conditioned Multi-agent for MLLM-based Multi-framework Front-end Code Generation
Jie Wu, Haoran Ma, Shisong Tang, Yulin Xu, Xiaoyu Kang, Jiechao Gao
Key points
From the paper's conclusion- To address this, we propose MulFCoder, a framework-conditioned multi-agent method that explicitly encodes framework constraints to bring multi-framework differences into a decidable rule space.
Abstract
Generating runnable front-end code from UI screenshots is a long-standing goal in automated software engineering. Existing MLLM-based methods predominantly focused on HTML/CSS, leaving multi-framework generation for React/Vue/Angular underexplored. Naively modifying prompts leads to substantial performance gaps across multi-framework and highly framework-specific error modes. To address this, we propose MulFCoder, a framework-conditioned multi-agent method that explicitly encodes framework constraints to bring multi-framework differences into a decidable rule space. MulFCoder orchestrates four agents: Grounder constructs an ElementTable, ContentTable, and macro-layout regions from detected UI elements; Planner builds a DOM-like hierarchical layout tree, produces a task schedule, and derives a framework-specific file Contract; Writer generates structured file writes or patches within a restricted edit window; Judger enforces lightweight, framework-conditioned constraints to accept or reject updates and trigger bounded repairs, preventing drift and deadlocks without expensive builds. Experiments demonstrate that MulFCoder substantially improves compilation success rate and reduces framework-specific errors, with particularly pronounced gains on Angular.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Toward Executable Multi-framework Front-end Code Generation with Self-CorrectionarXiv · 2026
- Phase-wise MLLM Tuning for Multi-framework WebUI Code GenerationarXiv · 2026
- InterWebCoder: Learning Interactive Webpage Generation from Executable Tests via Reinforcement LearningarXiv · 2026
- RefCraft: Benchmarking Visual-Reference-Conditioned Agentic Generation through Web DevelopmentarXiv · 2026
- Towards Human–AI Synergy in UI Design: Supporting Iterative Generation with LLMsACM Transactions on Computer-Human Interaction · 2025
- TaoD2C-Bench: Benchmarking MLLMs for Industrial UI Code Generation Beyond Visual FidelityarXiv · 2026