Could an AI fix its own accessibility bugs if you pair error feedback with expert-level prompts about screen readers?
Can combining evaluator feedback with specialized ARIA prompting close the remaining gap?
This explores whether AI-generated web code, which still fails on the trickier accessibility rules (ARIA: the attributes that make interactive elements usable with screen readers and keyboards), gets fixed if you pair an automated accessibility checker's feedback with prompts that spell out ARIA expertise. The corpus has no direct test of that combination, but nearby work suggests where it would and wouldn't help.
This explores whether AI-generated web code, which still fails on the trickier accessibility rules (ARIA: the attributes that make buttons, menus and dialogs usable with screen readers and keyboards), gets fixed if you combine an automated accessibility checker's feedback with prompts that spell out ARIA expertise. First, a limit: no paper in the collection tests that combination. What it has is the result that raises the question, plus several neighboring findings that suggest how the combination would likely play out.
The starting point is Can feeding accessibility violations back into code generation improve results?. Running the code, sending the checker's violations back to the model and asking it to revise beats every prompting-only approach tested: zero-shot, few-shot and self-critique. The gap that remains is specific, though. Keyboard navigation and focus management still break. These problems are about behavior over time, like where focus lands after a dialog closes or whether a menu can be reached with Tab. A checker that reads the page as it sits likely can't see them, so a feedback loop has nothing useful to send back. Better prompting can't fill a gap the evaluator can't detect.
The prompting half has its own ceiling. Can prompt optimization teach models knowledge they lack? argues that prompts only rearrange what a model already knows. A specialized ARIA prompt can remind a model of focus-trapping patterns it learned in training, but it can't teach patterns it never learned. How well this works also depends on the model. Do prompt techniques work the same across all LLM tiers? found that background-knowledge prompts help cheaper models, while step-by-step prompting can actually hurt stronger ones. So an ARIA expertise prompt may help a small model much more than a frontier one.
The more promising lever may be a better evaluator, not a better prompt. Can agents evaluate AI outputs more reliably than language models? shows that judges which actively gather evidence are far more reliable than ones that score in a single pass. For accessibility, that could mean an agent that actually presses Tab through the page. Can breaking outputs into fragments reveal more evaluation problems? found that breaking outputs into pieces and checking each against a specific criterion surfaces about half again as many problems as one overall score. An evaluator that checks each widget for its specific ARIA duties would give the generator more precise feedback. Neither paper is about accessibility. They're examples of the same idea in other settings.
The takeaway you might not expect: the "remaining gap" is probably mostly a measurement gap, not a knowledge gap. Combining feedback with ARIA prompting would likely tighten the details the checker already catches. Closing the keyboard and focus failures probably requires an evaluator that can interact with the page, because feedback can't be better than what the checker is able to observe. If you want a longer-term route, Do critique models improve diversity during training itself? suggests that step-level critique used during training changes what the model learns, rather than just patching each output after the fact.
Sources 6 notes
FeedA11y's ReAct-based feedback loop significantly outperforms zero-shot, few-shot, and self-criticism prompting by iteratively feeding evaluator results back into generation. However, it still struggles with nuanced ARIA constraints like keyboard navigation and focus management, suggesting evaluator feedback alone cannot substitute for domain expertise.
Prompting works entirely within a model's pre-existing training distribution and cannot supply domain knowledge absent from training data. This creates a hard ceiling: no prompt strategy can compensate for missing foundational knowledge, only reorganize what already exists.
A 23-prompt benchmark across 12 LLMs shows rephrasing and background-knowledge prompts boost cheap models, while step-by-step reasoning reduces accuracy in high-performance models. Task structure, not generic best practices, determines which prompts help.
Eight-module agentic evaluation achieved 0.27% judge shift versus 31% for LLM-as-a-Judge on complex tasks. However, the memory module cascaded errors, revealing that agentic systems need error isolation mechanisms to maintain gains.
A user study of ten practitioners found that functional fragmentation—decomposing outputs into fragments and labeling their rhetorical functions per criterion—surfaced 48% more evaluation misalignments than holistic LLM-as-a-Judge scores, enabling better trust calibration and discovery of actionable issues.
Show all 6 sources
Step-level critique in the training loop counteracts tail narrowing and maintains solution diversity across self-training iterations. This training-time benefit—preventing premature convergence—is more fundamental than test-time accuracy gains.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Large Language Models Are Human-level Prompt Engineers
- Invalid Logic, Equivalent Gains: The Bizarreness of Reasoning in Language Model Prompting
- Who Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human Preferences
- ChatEval: Towards Better LLM-based Evaluators through Multi-Agent Debate
- Evalet: Evaluating Large Language Models through Functional Fragmentation
- Human or LLM? A Comparative Study on Accessible Code Generation Capability
- Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debate
- Finance Agent Benchmark: Benchmarking LLMs on Real-world Financial Research Tasks