YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Built with ML Intern

formcheck-vlm v3 (aux-grounded)

41.2M-parameter VLM extracting checkbox/radio/fillbox states from form images into prompt-specified JSON. Third iteration. Key change vs v2: an auxiliary dense grounding loss β€” each ViT patch token is supervised with the state class of the control covering it (weight 0.5, background down-weighted), using ground truth only the synthetic renderer can provide.

Why: v1/v2 were image-blind

Teacher-forced accuracy on correct vs shuffled images was identical (0.9054 vs 0.9054) for v1 and v2 β€” the decoders had learned the output marginal and ignored the vision path entirely. The aux loss breaks that dead path:

metric (synthetic val, 48 pages) v1 (30k pages) v2 (100k pages) v3 (60k pages + aux)
JSON parse rate 0.48 0.56 0.69
exact-match output 0.000 0.021 0.104
per-control state accuracy 0.027 0.024 0.036
tf_acc (correct images) 0.905 0.905 0.921
tf_acc (shuffled images) 0.905 0.905 0.904
image-dependence gap 0.000 0.000 0.029

Real-scan eval (Apache-2.0 CommonForms, 200 pages)

metric v1 / v2 v3
JSON parse rate 0.00 0.125
predicted-empty fraction ~1.0 (degenerate) 0.627
box-count within Β±1 0.00 0.01

The real-domain gap remains the dominant error: real pages have unseen fonts, layouts and widget densities, and outputs still use generic labels. Gap is much smaller than v1/v2 but far from production.

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; aux head = Linear(384 -> 9) over patch tokens
  • Data: synthetic rendered forms (native 384x400 rendering, 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}

Licensing

Everything used is commercially usable: this repo's data, code and weights (Apache-2.0-friendly synthetic pipeline), eval data from CommonForms (Apache-2.0, verified). FUNSD, XFUND, CheckboxQA (CC BY-NC) and RVL-CDIP were excluded as non-commercial.

Training

N_TRAIN=60000 N_VAL=500 STEPS=15000 BS=16 LR=3e-4 AUX_LOSS_W=0.5 python job_train.py

a10g-small, 90 min ($1.60). Next levers: detection-first head (predict bbox+state per control instead of free-text JSON), token-level label vocab, higher aux weight / two-stage pretraining, CommonForms-domain adaptation mix.

Downloads last month
21
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support