A11YN: aligning LLMs for accessible web UI code generation

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Yoon, Janghan, Cho, Jaegwan, Kim, Junhyeok, Chung, Jiwan, Jeon, Jaehyun, Yu, Youngjae
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915556768088064
author Yoon, Janghan
Cho, Jaegwan
Kim, Junhyeok
Chung, Jiwan
Jeon, Jaehyun
Yu, Youngjae
author_facet Yoon, Janghan
Cho, Jaegwan
Kim, Junhyeok
Chung, Jiwan
Jeon, Jaehyun
Yu, Youngjae
contents Large language models (LLMs) have recently demonstrated strong capabilities in generating functional and aesthetic web interfaces directly from instructions. However, these models often replicate accessibility flaws from their training data, resulting in interfaces that exclude users with diverse needs and contexts. To address this gap, we introduce A11yn, the first method that aligns code-generating LLMs to reliably produce accessibility-compliant web UIs. A11yn optimizes a novel reward function that penalizes violations of the Web Content Accessibility Guidelines (WCAG), with penalties scaled to the severity of each violation as identified by an accessibility testing engine. To support training, we construct UIReq-6.8K, a dataset of 6,800 diverse instructions for web UI generation. For evaluation, we introduce RealUIReq-300, a benchmark of 300 real-world web UI requests grounded and manually curated from public web pages, spanning a broad range of use cases. Empirical results show that A11yn significantly outperforms strong baselines, lowering the Inaccessibility Rate by 60% over the base model while preserving semantic fidelity and visual quality of generated UIs. These findings demonstrate that accessibility can be systematically optimized within LLMs, showing the feasibility of aligning code generation for accessibility.
format Preprint
id arxiv_https___arxiv_org_abs_2510_13914
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A11YN: aligning LLMs for accessible web UI code generation
Yoon, Janghan
Cho, Jaegwan
Kim, Junhyeok
Chung, Jiwan
Jeon, Jaehyun
Yu, Youngjae
Software Engineering
Large language models (LLMs) have recently demonstrated strong capabilities in generating functional and aesthetic web interfaces directly from instructions. However, these models often replicate accessibility flaws from their training data, resulting in interfaces that exclude users with diverse needs and contexts. To address this gap, we introduce A11yn, the first method that aligns code-generating LLMs to reliably produce accessibility-compliant web UIs. A11yn optimizes a novel reward function that penalizes violations of the Web Content Accessibility Guidelines (WCAG), with penalties scaled to the severity of each violation as identified by an accessibility testing engine. To support training, we construct UIReq-6.8K, a dataset of 6,800 diverse instructions for web UI generation. For evaluation, we introduce RealUIReq-300, a benchmark of 300 real-world web UI requests grounded and manually curated from public web pages, spanning a broad range of use cases. Empirical results show that A11yn significantly outperforms strong baselines, lowering the Inaccessibility Rate by 60% over the base model while preserving semantic fidelity and visual quality of generated UIs. These findings demonstrate that accessibility can be systematically optimized within LLMs, showing the feasibility of aligning code generation for accessibility.
title A11YN: aligning LLMs for accessible web UI code generation
topic Software Engineering
url https://arxiv.org/abs/2510.13914