YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
formcheck-vlm v2
41.2M-parameter VLM extracting checkbox/radio/fillbox states from form images into prompt-specified JSON. Second iteration: trained on 100,000 synthetic pages (vs 30k for v1) with a native-384px renderer (controls ~2x larger in model input) and rebalanced state priors (empty 40% -> 25%).
Results (48 held-out synthetic val samples, 20k steps)
| metric | v1 (30k pages, 4k steps) | v2 (100k pages, 20k steps) |
|---|---|---|
| JSON parse rate | 0.48 | 0.56 |
| exact-match output | 0.00 | 0.021 |
| per-control state accuracy | 0.027 | 0.024 |
| teacher-forced char accuracy | 0.91 | 0.90 |
Format quality improved; per-control grounding did not. The model still produces plausible-but-generic labels ("State" repeated) rather than reading the printed text. Suspected bottleneck: grounding the decoder in the 576 image tokens at 41M params β next levers: an attention-pooling bridge instead of raw prefix tokens, token-level label vocabulary instead of chars, or a detection-first architecture.
Spec
- States:
empty, checked_tick, checked_cross, checked_mark, filled, filled_partial, strikethrough, selected - Prompt templates: 6 (list-all, map, marked, empty, lookup, group-by-type)
- Architecture: ViT (8L, dim 384, patch 16, 384px, 576 image tokens) + 8-layer char decoder (dim 512), prefix-LM, greedy
- Data: fully synthetic rendered forms, exact JSON ground truth; 40% digital / 40% scan / 20% photo
- Config:
{"vocab_size": 131, "img_size": 384, "patch": 16, "decoder_dim": 512, "decoder_depth": 8, "decoder_heads": 8, "vis_dim": 384, "vis_depth": 8, "vis_heads": 6, "params_m": 41.2}
Files
pytorch_model.binβ weights Β·config.jsonβ architecture Β·job_train.pyβ full pipeline script
Training
N_TRAIN=100000 N_VAL=1000 STEPS=20000 BS=16 LR=3e-4 python job_train.py
Trained on a10g-small, 2h ($2.2). All training data synthetic; no dataset with
commercially-usable real checkbox-state labels exists (verified: CommonForms and
wendys-llc/checkbox-detector are Apache-2.0; FUNSD/XFUND/CheckboxQA are non-commercial).
- Downloads last month
- 18