Laya WCAG 2.2 · continuous learning from an LLM

The decision model runs here in your browser (ONNX Runtime Web, WASM). When it does not know an answer — it abstains (low confidence) or the criterion is unbound (outside its trained distribution) — the uncertain cases are escalated to a real LLM teacher — a real Qwen on the free AI Horde worker network, a Qwen running in your browser via Transformers.js, or your own OpenAI-compatible endpoint. The teacher's verdict is learned in-browser, and the same cases stop needing the LLM on the next pass — exactly the laya.Escalator loop, with the learner simplified to a per-criterion delta head that fits in a browser tab. ← main WCAG demo

1 · Load the WASM decision model

Not loaded yet. Loading downloads the model files from this site (~395 MB, once per visit — cached afterwards).

The loop

WASM decision model63 WCAG 2.2 criteria → p(violated)
→abstain / unbound
LLM teacherreal Qwen: AI Horde · in-browser (Transformers.js) · your OpenAI-compatible endpoint
→verdict learned
In-browser learnerper-criterion delta head, re-fit after every escalation
↺fewer LLM calls
0
teacher (LLM) calls so far
0
calls on the last example
0
criteria resolved by the model
0
criteria resolved via the LLM
–
uncertain on the last example

Load the model, then “Auto-run all” to watch teacher calls decay across rounds.

2 · WCAG 2.2 examples


    

The model only sees the markup text (no CSS, no rendered layout), so contrast-style criteria are weak by design. “Run” scores the example, escalates everything the model is not confident about (or that is unbound for it) to the teacher, learns the verdicts, and re-scores. “Auto-run all” walks the 8 examples and records a round on the decay chart — round 2 needs far fewer LLM calls than round 1.

3 · Verdicts

Run an example first.

4 · LLM-usage decay

Bars: teacher calls per auto-run round. Line: the share of candidate criteria that needed the teacher in that round — learning during the round is what drops it on the next one. “Reset learning” restarts the curve from round 1.