Skip to main content
QUICK REVIEW

[Paper Review] ACCESS: Prompt Engineering for Automated Web Accessibility Violation Corrections

Calista Huang, Alyssa Ma|arXiv (Cornell University)|Jan 28, 2024
Digital Accessibility for DisabilitiesSocial Sciences3 citations
TL;DR

This paper proposes ACCESS, a prompt engineering-based framework that uses large language models (LLMs) to automatically correct web accessibility violations by modifying the Document Object Model (DOM) in real time. By leveraging GPT-3.5-turbo-16K and structured prompts, the system reduces accessibility violation severity scores by over 51% on a novel benchmark, demonstrating a scalable, semi-automated approach to improving web inclusivity.

ABSTRACT

With the increasing need for inclusive and user-friendly technology, web accessibility is crucial to ensuring equal access to online content for individuals with disabilities, including visual, auditory, cognitive, or motor impairments. Despite the existence of accessibility guidelines and standards such as Web Content Accessibility Guidelines (WCAG) and the Web Accessibility Initiative (W3C), over 90% of websites still fail to meet the necessary accessibility requirements. For web users with disabilities, there exists a need for a tool to automatically fix web page accessibility errors. While research has demonstrated methods to find and target accessibility errors, no research has focused on effectively correcting such violations. This paper presents a novel approach to correcting accessibility violations on the web by modifying the document object model (DOM) in real time with foundation models. Leveraging accessibility error information, large language models (LLMs), and prompt engineering techniques, we achieved greater than a 51% reduction in accessibility violation errors after corrections on our novel benchmark: ACCESS. Our work demonstrates a valuable approach toward the direction of inclusive web content, and provides directions for future research to explore advanced methods to automate web accessibility.

Motivation & Objective

  • To address the critical gap in automated correction of web accessibility violations despite existing detection tools.
  • To reduce the time, cost, and inaccuracy of manual accessibility fixes for developers and organizations.
  • To develop a practical, scalable solution that leverages foundation models and prompt engineering for real-time DOM-level corrections.
  • To create a reproducible benchmark (ACCESS Benchmark) to evaluate automated correction effectiveness.
  • To improve digital inclusivity by enabling accessible web content for users with visual, auditory, cognitive, or motor impairments.

Proposed method

  • Automatically identifies accessibility violations using the Playwright API across diverse websites.
  • Constructs a dataset of violation specifications and corresponding DOM structures for training and evaluation.
  • Employs GPT-3.5-turbo-16K via prompt engineering to generate corrected HTML code for each violation.
  • Designs prompts that include violation type, context, and WCAG compliance rules to guide accurate corrections.
  • Applies corrections directly to the DOM in real time, preserving page functionality and structure.
  • Evaluates effectiveness using the ACCESS Benchmark, which quantifies pre- and post-correction violation severity scores.

Experimental results

Research questions

  • RQ1Can LLMs effectively correct web accessibility violations through prompt engineering without requiring full retraining?
  • RQ2To what extent can automated DOM-level corrections reduce the severity of accessibility violations according to WCAG standards?
  • RQ3How does the performance of the correction system vary across different types of accessibility violations and website types?
  • RQ4Can a semi-automated, prompt-based approach achieve measurable reductions in accessibility violation severity compared to manual correction?
  • RQ5What is the impact of prompt design on the accuracy and reliability of automated corrections?

Key findings

  • The ACCESS framework achieved a 51% reduction in accessibility violation severity scores after automated corrections using GPT-3.5-turbo-16K.
  • The system successfully corrected a wide range of WCAG-compliant violations, including missing alt text, improper ARIA labels, and semantic HTML errors.
  • Prompt engineering significantly improved the relevance and correctness of LLM-generated HTML fixes, outperforming generic prompting strategies.
  • The ACCESS Benchmark demonstrated consistent and measurable improvements across diverse websites, validating the framework’s generalizability.
  • The approach is scalable and adaptable, with potential for integration into browser extensions or developer tools for real-time accessibility enhancement.
  • Results show that automated correction is feasible and effective, even with non-deterministic LLM outputs, due to robust prompt design and validation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.