--- license: apache-2.0 base_model: Qwen/Qwen3-0.6B datasets: - spitis/CriteriaBank language: - en library_name: transformers tags: - verification - guardrails - llm-as-a-judge - agent-governance --- # VFM-0.6B VFM-0.6B verifies natural-language criteria against a context and target text. It uses a Qwen3-0.6B backbone and a three-class head, pretrained on [CriteriaBank](https://huggingface.co/datasets/spitis/CriteriaBank) for *Runtime Verification of Multiple Natural Language Criteria for Agent Governance* (NeurIPS 2026). Each criterion receives **YES** (satisfied), **NO** (not satisfied), or **N/A** (inapplicable or insufficient evidence). Criteria are scored independently over a shared prefix, without text generation. [Code and training recipes](https://github.com/spitis/vfm). **Use** ```bash pip install git+https://github.com/spitis/vfm ``` ```python from vfm import VFM vfm = VFM.from_pretrained("spitis/VFM-0.6B") verdicts = vfm.verify( context="Describe today's weather.", target="It is sunny today.", criteria=["Does the response mention sunshine?", "Does the response mention rain?"], ) for v in verdicts: print(v["criterion"], v["verdict"], v["p_yes"], v["p_no"], v["p_na"]) ``` `context` accepts a string or chat messages; `target` is appended as the next turn. Outputs also include `logits` and `p_yes_binary = p_yes / (p_yes + p_no)`. Use `verify_batch` for separate traces. Keep criteria short and atomic. Prefixes are left-truncated at 4,096 tokens by default (`max_length`); criterion blocks at 64 tokens, including chat-template tokens. `verify` reuses the prefix cache across chunks of 64 criteria (`chunk_size`). **Training and results** Full-parameter pretraining uses 393,531 model-labelled CriteriaBank rows, cross-entropy plus KL to the frozen base model (λ = 1), AdamW, and batch size 128. The released checkpoint is the one saved at **step 2,000 of the 3,075 pretraining steps**. Paper results below use the released weights for zero-shot evaluation; ternary benchmarks use their YES/NO subset. | Benchmark | Zero-shot ROC-AUC | |---|---:| | InFoBench | 0.887 | | Synthetic governance | 0.880 | | ContractNLI | 0.857 | | INSURE-Dial | 0.713 | | BeaverTails | 0.722 | | IFEval | 0.654 | | PRM800K | 0.635 | | LLM-AggreFact | 0.736 | After benchmark finetuning (mean ± standard deviation over three seeds): - Synthetic governance accuracy: **87.2 ± 0.5%**, with **75.1 ± 1.4%** on transfer domains. - INSURE-Dial accuracy: **82.6 ± 0.6%**. - Across six learning curves, macro AULC is **0.789**, versus 0.772 without KL and 0.736 for Direct-FT. Finetuned results require separate benchmark training. Governance uses dev selection; INSURE-Dial uses five-fold checkpoint selection over real calls. **Limitations** Finetune and tune decision thresholds for your domain. Zero-shot calibration and N/A prediction are weak. Labels are model-generated; evaluations are English-only and text-only. Even the best finetuned 4B verifier approves about 20% of gold violations on INSURE-Dial. Use for monitoring and escalation, not standalone enforcement. **License:** Apache-2.0, including the Qwen3-0.6B base model. Tokenizer files are unchanged from Qwen3. **Citation** ```bibtex @inproceedings{pitis2026vfm, title = {Runtime Verification of Multiple Natural Language Criteria for Agent Governance}, author = {Pitis, Silviu and Alamdari, Parand A. and Tang, Jessica and Klassen, Toryn Q. and McIlraith, Sheila A.}, booktitle = {Advances in Neural Information Processing Systems}, year = {2026} } ```