Image-Text-to-Text
PEFT
Safetensors
English
openadapt
computer-use
gui-verification
lora
qwen3.5
deprecated
archived
conversational
Instructions to use OpenAdapt/OpenAdapt-Veto-9B-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use OpenAdapt/OpenAdapt-Veto-9B-v4 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-9B") model = PeftModel.from_pretrained(base_model, "OpenAdapt/OpenAdapt-Veto-9B-v4") - Notebooks
- Google Colab
- Kaggle
Add finalized Round 4 + Nov 2026 frontier model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
base_model:
|
| 6 |
+
- Qwen/Qwen3.5-4B
|
| 7 |
+
- Qwen/Qwen3.5-9B
|
| 8 |
+
base_model_relation: finetune
|
| 9 |
+
pipeline_tag: image-text-to-text
|
| 10 |
+
library_name: peft
|
| 11 |
+
tags:
|
| 12 |
+
- openadapt
|
| 13 |
+
- computer-use
|
| 14 |
+
- visual-verification
|
| 15 |
+
- fail-closed
|
| 16 |
+
- gui-agents
|
| 17 |
+
- multi-lora
|
| 18 |
+
- qlora
|
| 19 |
+
- gguf
|
| 20 |
+
- ollama
|
| 21 |
+
- qwen3.5
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# OpenAdapt-Veto (`4B` Edge / `9B` Workstation)
|
| 25 |
+
|
| 26 |
+
**Fail-closed visual verification guards for OpenAdapt, a compiler and verification harness for GUI workflows.**
|
| 27 |
+
|
| 28 |
+
Legacy enterprise apps (EHRs, ERPs, payer portals, carrier portals) do not give computer-use agents ACID transactions. A screen can flash "Saved" while a field was silently truncated, a validation banner appeared off-focus, a modal covered the target, or a session reset dropped the write.
|
| 29 |
+
|
| 30 |
+
`OpenAdapt-Veto` pairs with deterministic system-of-record read-back and signed `record/run/v1` receipts in [`openadapt-flow`](https://github.com/OpenAdaptAI/OpenAdapt) to give compiled GUI workflows an explicit commit check. Given a post-action screenshot and the intended state summary, the model returns `PASS`, `VETO`, or `ABSTAIN`.
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## Two-Tier Architecture: Open Base + 15-Minute Per-App LoRAs
|
| 35 |
+
|
| 36 |
+
No single small VLM stays equally calibrated on every legacy portal out of the box. OpenAdapt separates visual verification into two tiers served off one shared base model:
|
| 37 |
+
|
| 38 |
+
1. **Tier 0: Open-Source Calibrated `veto-base` (`4B` edge / `9B` workstation).**
|
| 39 |
+
- Fine-tuned from `Qwen/Qwen3.5-4B` (`81 MB` adapter) and `Qwen/Qwen3.5-9B` (`111 MB` adapter) with **8x asymmetric false-accept loss weighting** (missing a fault costs 8x more than a conservative veto) and temperature calibration (`T=0.95` on 9B v4).
|
| 40 |
+
- Runs locally with zero external data egress (`~4.0 GiB` VRAM for 4B NF4; `~6.5 GB` VRAM for 9B NF4 + FP16 vision).
|
| 41 |
+
2. **Tier 1: 15-Minute, ~111 MB Hot-Swappable Per-App LoRAs.**
|
| 42 |
+
- Served off one frozen base checkpoint with per-portal adapter hot-swapping (measured **`16.73 ms` median / `17.38 ms` p95** across 20 alternating in-VRAM PEFT swaps on `Qwen3.5-9B`, zero cross-tenant weight sharing, BYOC-ready).
|
| 43 |
+
- Trained in ~15 minutes on a single GPU from disjoint planted-fault pairs generated on a test copy of the customer's own portal.
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
## License
|
| 48 |
+
|
| 49 |
+
- **Adapter weights & release kit:** Apache-2.0 (OpenAdaptAI).
|
| 50 |
+
- **Base models:** [`Qwen/Qwen3.5-4B`](https://huggingface.co/Qwen/Qwen3.5-4B) and [`Qwen/Qwen3.5-9B`](https://huggingface.co/Qwen/Qwen3.5-9B) under upstream Apache-2.0 terms.
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
## Measured Results (Verified Nov 2026 Head-to-Head + Round 4)
|
| 55 |
+
|
| 56 |
+
All training and evaluation runs used **100% synthetic data** (0 PHI, 0 customer data, zero overlap with OpenAdapt's frozen S1-S4 evaluation sets).
|
| 57 |
+
|
| 58 |
+
### 1. Late-2026 Frontier Head-to-Head on the 50-Trap Silent-Fail Leaderboard (`n=50`, Real PNG Screenshots)
|
| 59 |
+
|
| 60 |
+
Evaluated live in Nov 2026 across 50 zero-PHI enterprise web-form scenarios (35 silent-fail traps across 6 trap classes + 15 clean controls; 5 enterprise domains: OpenEMR, Odoo, ERPNext, Insurance Quoting, Banking/Payroll). Frontier VLMs and standalone `OpenAdapt-Veto-9B` v4 receive the identical `960x640` post-submit screenshot, DOM fields, ARIA errors, and URL without backend DB access:
|
| 61 |
+
|
| 62 |
+
| Model / Verifier | Silent-Fail Catch Rate (`n=35`) | Raw False-Accept Rate | False-Veto Rate (`n=15`) | 0-WA Coverage | p50 Latency | Cost / 1k Checks |
|
| 63 |
+
|---|---:|---:|---:|---:|---:|---:|
|
| 64 |
+
| **`OpenAdapt-Veto-9B` v4 + Hybrid Read-Back (`ABSTAIN -> HALT`)** | **100.0% (35/35)** | **0.0% (0/35)** | 20.0% (3/15) | **80.0%** | `1,102 ms` (L4, `6.62 GB`) | **$0.00** |
|
| 65 |
+
| **`OpenAdapt-Veto-9B` v4 (Standalone LoRA, 4-bit NF4)** | **88.6% (31/35)** (`30/30` visual) | 11.4% (4/35) | 20.0% (3/15) | 0.0% | `1,102 ms` (L4, `6.62 GB`) | **$0.00** |
|
| 66 |
+
| `anthropic:claude-sonnet-5-5` | 88.6% (31/35) | 11.4% (4/35) | 26.7% (4/15) | 0.0% | `2,017 ms` | `$5.53` |
|
| 67 |
+
| `openai:gpt-6.2-sol` | 85.7% (30/35) | 14.3% (5/35) | 0.0% (0/15) | 0.0% | `1,520 ms` | `$2.92` |
|
| 68 |
+
| `gemini:gemini-3.8-flash` | 85.7% (30/35) | 14.3% (5/35) | 0.0% (0/15) | 0.0% | `3,742 ms` | `$0.51` |
|
| 69 |
+
| `DomOnlyVerifier` (DOM + ARIA) | 34.3% (12/35) | 65.7% (23/35) | 0.0% (0/15) | 0.0% | `<1 ms` | `$0.00` |
|
| 70 |
+
| `NaiveActor` (click-only baseline) | 0.0% (0/35) | 100.0% (35/35) | 0.0% (0/15) | 0.0% | `<1 ms` | `$0.00` |
|
| 71 |
+
|
| 72 |
+
- Standalone `OpenAdapt-Veto-9B` v4 (`6.62 GB` VRAM, `$0.00/1k`) matched `claude-sonnet-5-5` (`88.6%` catch, `30/30` visual traps) with lower false-veto (`20.0%` vs `26.7%`) and nearly 2x lower p50 latency (`1,102 ms` vs `2,017 ms`).
|
| 73 |
+
- Every screenshot-only frontier model (`claude-sonnet-5-5`, `gpt-6.2-sol`, `gemini-3.8-flash`) scored **0.0% 0-WA coverage** because none can detect silent backend rollbacks when the UI shows a green "Saved successfully" toast. Pairing `OpenAdapt-Veto-9B` v4 with `ABSTAIN -> HALT` and independent read-back reaches **100.0% catch (`0.0%` FA, `80.0%` 0-WA coverage)** at `$0.00/1k`.
|
| 74 |
+
|
| 75 |
+
### 2. True Zero-Shot Baselines vs. `OpenAdapt-Veto-9B` v4 (`n=600` Unseen Real-Browser Playwright)
|
| 76 |
+
|
| 77 |
+
Evaluated on 600 real headless Chromium screenshots from **2 completely unseen UI frameworks** (`dark_saas_dashboard` 300 frames at `1280x800`; `hidpi_scaled_portal` 300 frames at 150% Retina `1920x1200` with GOLD ROI crop `<= 1024px`):
|
| 78 |
+
|
| 79 |
+
| Model | Unseen Exact Acc (`n=600`) | Raw False-Accept Rate (`n=420`) | 0-WA Accept Coverage (`n=180`) | HiDPI (`n=300`) Acc / FA / 0-WA Cov |
|
| 80 |
+
|---|---:|---:|---:|---:|
|
| 81 |
+
| Zero-shot `Qwen3.5-4B` | 75.17% | 19.29% (81/420) | 1.11% | baseline |
|
| 82 |
+
| Zero-shot `Qwen3.5-9B` | 83.83% | 8.10% (34/420) | 0.56% | 0.00% 0-WA cov |
|
| 83 |
+
| **`OpenAdapt-Veto-9B` v4** (`4-bit NF4 + FP16 Vision`, `~6.5 GB` VRAM) | **98.00%** (`+14.17 pp` vs 9B) | **1.90%** (8/420, **4.3x lower** than 9B) | **13.89%** (**24.8x** vs 9B) | **99.00% / 0.00% / 96.67%** |
|
| 84 |
+
| **Hybrid (`Veto-9B` v4 + `ABSTAIN -> HALT` + Read-Back)** | **100.00% fault catch** (420/420) | **0.00%** (0/420) | **97.78%** (176/180 clean accept) | **0.00% FA** |
|
| 85 |
+
|
| 86 |
+
- **Calibration (`T=0.95`):** Test Expected Calibration Error (ECE) improved from `0.0326` to **`0.0242`**.
|
| 87 |
+
|
| 88 |
+
### 2. Empirical Per-App Multi-LoRA (`veto-app-dark-saas-9b`, `111.04 MB`)
|
| 89 |
+
|
| 90 |
+
Trained on **250 disjoint `dark_saas_dashboard` examples** (`0` overlap with the `n=300` dark-mode test split) and hot-swapped onto one frozen `Qwen3.5-9B` base:
|
| 91 |
+
|
| 92 |
+
| Metric (`dark_saas_dashboard`, `n=300`) | Zero-Shot `Qwen3.5-9B` | `Veto-9B` v4 (Base) | `veto-app-dark-saas-9b` (Per-App LoRA) |
|
| 93 |
+
|---|---:|---:|---:|
|
| 94 |
+
| 0-WA Accept Coverage | 1.11% | 16.67% | **22.22%** (**20x** vs base 9B, `+5.55 pp` vs v4) |
|
| 95 |
+
| Hybrid Fault Catch (`ABSTAIN -> HALT`) | n/a | 100.0% | **100.0%** (`0.00%` FA, **97.78%** clean coverage) |
|
| 96 |
+
| In-VRAM PEFT Adapter Hot-Swap Latency | n/a | n/a | **`16.73 ms` median (`17.38 ms` p95)** over 20 swaps |
|
| 97 |
+
|
| 98 |
+
### 3. 4-Bit Quantization Parity (`OpenAdapt-Veto-9B` v4, `n=600`)
|
| 99 |
+
|
| 100 |
+
| Precision / Footprint | VRAM | Exact Acc (`n=600`) | Raw False-Accept Rate (`n=420`) | Latency p50 (L4) |
|
| 101 |
+
|---|---:|---:|---:|---:|
|
| 102 |
+
| Full BF16 merged | `18.3 GB` | **98.33%** | 2.14% | `1.037 s` |
|
| 103 |
+
| **4-bit NF4 + FP16 Vision** | **`~6.5 GB`** | **98.00%** (`-0.33 pp`) | **1.90%** (fewer FA than BF16) | local workstation tier |
|
| 104 |
+
|
| 105 |
+
### 4. Zero-Shot Transfer on Frozen Unseen S1-S3 Bake-Off (`n=375`, view 0)
|
| 106 |
+
|
| 107 |
+
| Model | Exact Accuracy | Raw False-Accept Rate (`n=251`) | 0-WA Accept Coverage |
|
| 108 |
+
|---|---:|---:|---:|
|
| 109 |
+
| Base `Qwen3.5-4B` (full `1280x800`, L4) | **85.87%** | 5.98% (15/251) | **39.52%** |
|
| 110 |
+
| **`OpenAdapt-Veto-4B` v3** (Round 3, `81 MB`, `0.262 s` G4) | 84.27% | **3.19%** (8/251, nearly halved) | 22.58% |
|
| 111 |
+
| Base `Qwen3.5-9B` (unseen S1-S3) | baseline | 15.54% | 16.13% |
|
| 112 |
+
| **`OpenAdapt-Veto-9B` v4** (Round 4) | transfer preserved | **7.57%** (cut in half vs base 9B) | **17.74%** (beats base 9B) |
|
| 113 |
+
|
| 114 |
+
### 5. Round 3 Reference (`OpenAdapt-Veto-4B` v3 Edge Tier, `n=600` Unseen Frameworks)
|
| 115 |
+
|
| 116 |
+
- **`OpenAdapt-Veto-4B` v3 (`81 MB`, `~4.0 GiB` VRAM, `0.296 s` p50 G4):** `95.00%` exact acc (`570/600`), `6.90%` raw FA (`29/420`), `0.56%` false-veto (`1/180`), `100.0%` catch/abstain on `silently_mutated_unbound_control` (`44/44`), `mid_flow_session_reset` (`44/44`), `unlabelled_validation_banner` (`44/44`), `truncated_value` (`44/44`), and `occluded_or_ambiguous` (`60/60`), `96.81%` on `wrong_value` (`91/94`), and `71.11%` on `visual_homoglyph_o0_l1` (`64/90`; `92.22%` / `83/90` on 9B).
|
| 117 |
+
|
| 118 |
+
---
|
| 119 |
+
|
| 120 |
+
## Honest Failure Analysis & Limitations
|
| 121 |
+
|
| 122 |
+
1. **Visual homoglyphs (`I/l`, `1/l`, `O/0`):** Even with 150% HiDPI rendering and GOLD ROI cropping, 4B missed 26/90 and 9B missed 7/90 homoglyph cases across unseen frameworks. For critical identifiers (MRNs, account numbers, policy IDs), pair `OpenAdapt-Veto` with deterministic read-back, known-ID matching, and stacked A-over-B identifier crops (`identity_vlm.py`).
|
| 123 |
+
2. **Dark-mode calibration:** Unseen dark-mode themes shift raw confidence thresholds relative to light-mode HiDPI portals. Training a 250-example per-app LoRA (`veto-app-dark-saas-9b`) lifted dark-mode 0-WA accept coverage 20x over base 9B (`1.11% -> 22.22%`), showing why per-app Tier 1 LoRAs matter for production portals.
|
| 124 |
+
3. **Why `ABSTAIN -> HALT` beats DOM-only on modal occlusion:** In the 60 `occluded_or_ambiguous` test cases, the underlying DOM is clean beneath a blocking modal, so a DOM-only check returns `PASS`. Keeping the visual verifier's `ABSTAIN -> HALT` policy catches `60/60` occluded states and brings combined hybrid false-accepts to `0/420 (0.00%)` at `97.78%` clean accept coverage.
|
| 125 |
+
4. **4-bit quantization:** 4-bit NF4 + FP16 Vision matched full BF16 merged weights within `-0.33 pp` accuracy (`98.00%` vs `98.33%`) and achieved slightly lower raw false-accepts (`1.90%` vs `2.14%`) in `~6.5 GB` VRAM instead of `18.3 GB`. Always verify `pass_confidence` thresholds on your exact quantized target (`NF4`, `Q4_K_M`, or `Q8_0`) before enabling automated commit gating.
|
| 126 |
+
|
| 127 |
+
---
|
| 128 |
+
|
| 129 |
+
## Prompt Format
|
| 130 |
+
|
| 131 |
+
### System Prompt
|
| 132 |
+
|
| 133 |
+
```text
|
| 134 |
+
You are OpenAdapt-Veto, a strict fail-closed visual verification guard. Inspect the GOLD-cropped screenshot and intended DOM summary. Reply with exactly one token: PASS, VETO, or ABSTAIN. If any validation banner, homoglyph mismatch (O/0, l/1), truncated value, unbound control mutation, or session reset is present, reply VETO. If the target region is occluded or ambiguous, reply ABSTAIN. Never guess PASS when uncertain.
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
### User Prompt
|
| 138 |
+
|
| 139 |
+
```text
|
| 140 |
+
Verify whether the post-action screenshot matches the intended state with zero visual faults.
|
| 141 |
+
Intended DOM summary: {"field": "expected_value", ...}
|
| 142 |
+
Answer (PASS, VETO, or ABSTAIN):
|
| 143 |
+
```
|
| 144 |
+
|
| 145 |
+
---
|
| 146 |
+
|
| 147 |
+
## Local Zero-Egress Usage
|
| 148 |
+
|
| 149 |
+
### 1. Ollama (`openadapt/veto-4b` or `openadapt/veto-9b`)
|
| 150 |
+
|
| 151 |
+
```bash
|
| 152 |
+
ollama create openadapt/veto-4b -f Modelfile
|
| 153 |
+
ollama run openadapt/veto-4b
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
### 2. Multi-LoRA Serving (Shared Base + Per-App Adapters)
|
| 157 |
+
|
| 158 |
+
Serve one frozen `Qwen/Qwen3.5-9B` (or `Qwen/Qwen3.5-4B`) base checkpoint and hot-swap per-portal LoRA adapters (`81-111 MB` each, `16.73 ms` median swap in-VRAM) by request ID so each application or tenant stays isolated with zero cross-tenant weight mixing.
|
| 159 |
+
|
| 160 |
+
### 3. With `openadapt-flow`
|
| 161 |
+
|
| 162 |
+
```bash
|
| 163 |
+
export OPENADAPT_LOCAL_MODEL_BACKEND="ollama"
|
| 164 |
+
export OPENADAPT_LOCAL_MODEL_NAME="openadapt/veto-4b"
|
| 165 |
+
export OPENADAPT_ZERO_EGRESS="1"
|
| 166 |
+
```
|
| 167 |
+
|
| 168 |
+
---
|
| 169 |
+
|
| 170 |
+
## Offline Evaluation Reproduction
|
| 171 |
+
|
| 172 |
+
```bash
|
| 173 |
+
# 1. Generate real-browser Playwright planted-fault screenshots (0 PHI)
|
| 174 |
+
python3 build_playwright_veto_dataset.py --out-dir ./pw_veto_dataset --n-examples 2400
|
| 175 |
+
|
| 176 |
+
# 2. Train + evaluate QLoRA adapter with 8x asymmetric false-accept weighting
|
| 177 |
+
python3 train_openadapt_veto.py \
|
| 178 |
+
--dataset-dir ./pw_veto_dataset \
|
| 179 |
+
--output-dir ./openadapt-veto-9b-v4 \
|
| 180 |
+
--base-model Qwen/Qwen3.5-9B \
|
| 181 |
+
--epochs 1 \
|
| 182 |
+
--false-accept-weight 8.0
|
| 183 |
+
|
| 184 |
+
cat ./openadapt-veto-9b-v4/eval_metrics.json
|
| 185 |
+
```
|