A11YRepair: 通过知识增强的分治修复弥合网络无障碍障碍
A11YRepair: Bridging Web Accessibility Barriers via Knowledge-Enhanced Divide-and-Conquer Repair
AI总结:
针对网络无障碍违规修复问题,提出基于LLM的分治框架A11YRepair,通过聚类关联违规并引入WCAG领域知识,实现多文件协调修复,在60个真实项目中优于现有方法。
摘要:
网络无障碍(A11Y)确保残障用户能够感知和使用网络内容,是现代网络应用的关键要求。然而,现有工具主要关注检测A11Y违规而非修复。自动程序修复(APR)技术在此场景下看似有前景,但我们的研究表明,最先进的APR系统在应用于真实世界的A11Y违规时表现不佳。与传统的稀疏错误场景不同,网络A11Y问题通常表现为每页多个结构相关的违规,需要跨多个文件进行协调编辑。现有修复系统无法处理这种多故障规模,因为它们单独处理每个错误,不考虑它们之间的关系或纳入诸如Web内容无障碍指南(WCAG)等领域规则。我们提出A11YRepair,一个基于LLM的网络A11Y修复框架。A11YRepair引入分治工作流,首先聚类需要协调编辑的违规以减少冗余定位,然后按根因分解每个聚类,使LLM能够生成聚焦且一致的补丁。该框架进一步整合WCAG驱动的知识,在故障定位和补丁合成期间增强领域意识。为支持系统评估,我们构建了A11YBench,一个从GitHub收集的60个真实网络项目基准。实验结果表明,A11YRepair在修复效果和成本上优于最先进的基线,消融研究证实了其分治设计和选择性领域知识整合的重要性。具体而言,A11YRepair生成的补丁已被合并到来自Google、Microsoft、Facebook、IBM、K8s、Docker和阿里巴巴的开源项目中,展示了其实用价值。
英文摘要:
Web accessibility (A11Y), which ensures web content is perceivable and usable for users with disabilities, is a critical requirement for modern web applications. Yet existing tooling overwhelmingly focuses on detecting A11Y violations rather than repairing them. Automated program repair (APR) techniques appear promising for this setting, but our study shows that state-of-the-art APR systems perform poorly when applied to real-world A11Y violations. Unlike conventional sparse-bug scenarios, web A11Y issues often manifest as multiple structurally related violations per page, requiring coordinated edits across multiple files. Existing repair systems fail to manage this multi-fault scale, as they handle each bug individually without considering their relationships or incorporating domain rules such as the Web Content Accessibility Guidelines (WCAG). We propose A11YRepair, an LLM-based framework for web A11Y repair. A11YRepair introduces a divide-and-conquer workflow that first clusters violations requiring coordinated edits to reduce redundant localization, and then decomposes each cluster by root cause so the LLM can generate focused and consistent patches. The framework further incorporates WCAG-driven knowledge to strengthen domain awareness during both fault localization and patch synthesis. To support systematic evaluation, we construct A11YBench, a benchmark of 60 real-world web projects collected from GitHub. Experimental results show that A11YRepair achieves higher repair effectiveness and lower cost than state-of-the-art baselines, and ablation studies confirm the importance of its divide-and-conquer design and selective domain knowledge integration. Specifically, patches generated by A11YRepair have been merged into open-source projects from Google, Microsoft, Facebook, IBM, K8s, Docker, and Alibaba, demonstrating its practical value.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。