SYNTHESIS NOTE
Topics›Human Centered Design›this note

Do large language models write more accessible web code than humans?

This study compared web code generated by GPT-4o and Qwen2.5-Coder against human-written code from real projects, using automated accessibility checkers to measure how well each handles wcag and aria requirements.

Synthesis note · 2026-11-18 · sourced from Human Centered Design

A comparative study regenerated the UI-related files of ten active, real-world web projects (GitHub repositories with over 50 stars and over 20 contributors) using GPT-4o and Qwen2.5-Coder-32B-Instruct-AWQ, then scored the regenerated code against the original human-written code with the IBM Equal Access Accessibility Checker and the QualWeb Web Accessibility Evaluator. The paper reports that "LLMs often produce more accessible code, especially for basic features like color contrast and alternative text, but struggle with complex issues such as ARIA attributes," and its conclusion restates that both models "often produce more accessible code than humans."

Because no formal specification existed for the ten projects' UI files, the authors built a two-step pipeline: one LLM instance summarized the existing code as a proxy specification, and a separate instance regenerated the code from that summary alone — a design meant to prevent the generating model from "simply memorizing and reproducing the source code." Generation ran at block level, segmented by structural tags such as <section>, <header>, <nav>, and <main>, after an earlier file-level attempt produced too many broken or incomplete outputs from functional and dependency errors.

This sits alongside Do generative UI tools actually implement their stated design rationales? as another case where LLM-generated interfaces clear surface-level checks but miss deeper structural or semantic requirements — here ARIA attributes, there design rationale. It also echoes the human-oversight argument in Does partial code help users understand logic better than complete solutions?: this paper's own discussion concludes the ARIA gap "reinforces the importance of maintaining human oversight" rather than full automation. The companion finding in Can feeding accessibility violations back into code generation improve results? is this same paper's proposed answer to the gap identified here.

The excerpt is explicit about scope limits: the inaccessibility-rate metric used "treats all violations equally, regardless of their severity or user impact," and the authors state findings "may not generalize beyond this study's LLMs and web projects" — two LLMs and ten projects, with no study involving actual users with disabilities. The result supports a narrow, checker-measured comparison between two specific models and ten codebases, not a general claim that LLMs write more usable code for people with disabilities.

Inquiring lines that read this note 13

This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.

Can visual rendering-based rewards effectively improve code and layout quality? What perception approach enables GUI agents to work most effectively? Do AI coding tools meaningfully improve developer productivity and quality? Why do language models systematically fail at ambiguity recognition? How does ChatGPT adoption vary across users and contexts?

Related concepts in this collection 4

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
13 direct connections · 89 in 2-hop network ·medium cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

GPT-4o and Qwen2.5-Coder generate more accessible web code than human developers on basic issues but struggle with complex ARIA attributes