PageAudit (Qwen3.5-4B)
PageAudit reviews one rendered web page and lists accessibility and design-consistency problems that rule-based checkers such as axe-core do not report: text that is too faint once a semi-transparent parent is taken into account, controls in one row with different heights, near-duplicate colour shades, focus styles that differ between similar components, and similar issues. It is also trained to leave deliberate design choices alone, for example extra padding next to a trailing icon.
Status: research preview. On pages in styles it never saw, the full system matched or beat Claude Sonnet 5.5 on our main score.
How it works
PageAudit is a small pipeline, not a single prompt:
- A headless browser measures the page (rendered colours after opacity, sizes, spacing, focus styles).
- About ninety deterministic checks turn those measurements into a short list of candidate problems, each with the numbers behind it. These checks do the arithmetic (contrast, sizes, spacing) so the model does not have to.
- This model reads each candidate together with the rule definition and the neighbouring components, and decides whether it is a real problem or an acceptable design choice. Accepted candidates are returned as JSON findings.
The model alone cannot audit a page: it needs the candidate list from step 2. The code for steps 1 and 2 is in the pipeline folder of the model repositories (the quantized repository points to it).
Results
All figures are percentages, measured on 50 pages written in visual styles the model never saw during training, and on 50 pages in familiar styles written by different authors. The match score is F1 on (rule, component) pairs: the system must name the right problem on the right component. Higher is better.
| Unseen styles (50 pages) | PageAudit | Claude Sonnet 5.5 | Simple contrast script | Text classifier, same candidates |
|---|---|---|---|---|
| Match score, all rules | 51% | 27% | 34% | 28% |
| Match score, excluding contrast | 38% | 25% | 0% | 20% |
| Real problems found (recall) | 44% | 67% | 22% | 51% |
| Findings that were correct (precision) | 61% | 17% | 81% | 19% |
| False alarms on defect-free pages (lower is better) | 33% | 83% | 8% | 75% |
| Familiar styles (50 pages) | PageAudit | Claude Sonnet 5.5 | Simple contrast script | Text classifier, same candidates |
|---|---|---|---|---|
| Match score, all rules | 66% | 25% | 52% | 50% |
| Match score, excluding contrast | 43% | 22% | 0% | 33% |
Claude Sonnet 5.5 received a text summary of the whole page and instructions, without examples. The text classifier is a plain bag-of-words model trained on the same candidates; it shows that the fine-tuned model adds real judgement on top of the deterministic checks. The contrast script flags every text element below the WCAG contrast minimum; it is strong on contrast and finds nothing else. Labels were planted by the dataset authors, so real but unplanted problems count against every system and lower all precision figures. The 95% confidence range of the PageAudit match score on unseen styles is 40% to 60%.
On unseen styles PageAudit finds fewer of the planted problems than Claude Sonnet 5.5 (recall above) but is far more precise and raises far fewer false alarms. The decision threshold is tuned for the best balance on validation pages; lowering it in pipeline/config.json trades precision for recall.
Quick start
git clone https://huggingface.co/aixonlab/PageAudit-Qwen3.5-4B # weights + pipeline folder
cd PageAudit-Qwen3.5-4B/pipeline && (cd extractor && npm install && npx playwright install chromium)
python audit_page.py https://example.com --model .. # add --dry-run to list the candidates without the model
Intended use
- A second opinion next to a rule-based checker, aimed at issues that checker does not report.
- A starting point for research on small, specialised audit models.
It is not a replacement for an accessibility audit or for testing with assistive technology.
Training
About 260 pages written by language models across 55 visual style families and about 770 generated pages, each with planted problems and deliberate look-alike exceptions. The deterministic checks turned these into roughly 15,000 candidate findings, each labelled real or acceptable. The dataset is not published.
- Base model: Qwen/Qwen3.5-4B
- Method: LoRA fine-tuning (rank 32), 2 passes, one A40 GPU
- The checkpoint and the decision threshold were chosen by the full-pipeline score on held-out authored validation pages, not by training loss.
Limitations
- Labels are generated or model-written and were not reviewed by human auditors.
- Recall is bounded by the deterministic checks; problems they cannot measure (hover states, icon details, the meaning of text) are not found.
- It sees one viewport and one page state.
- Treat the output as suggestions and check it against the page.
License
Apache-2.0, inherited from the base model.