r2i-test
VLM-judge for reference-to-image evaluation
2 min readupdated
The model evaluates generation quality for reference-to-image (subject-driven generation) tasks automatically. It takes a reference image, a generated result, and a custom checklist of features that need to be preserved, returning a verdict (pass, fail, or unjudgeable) with a text comment for each point. Built on the Qwen3.8-Flash-Next (Qwen4ExpForConditionalGeneration) multimodal architecture, it has been fine-tuned on 286,048 human-annotated examples. Unlike simple similarity metrics, it checks alignment against specific criteria and outputs structured JSON. This tool helps researchers and generative pipeline developers with automated filtering or reinforcement learning.
Key features
- Item-by-item evaluation: checks each checklist criterion separately and provides a status of
pass,fail, orunjudgeablealong with an explanation. - Full base fine-tuning: fine-tunes both visual and language weights of
Qwen3.8-Flash-Nexton 286,048 manually annotated examples. - Strict output format: responses are formatted within
{...}tags following ther2i-checklist-judge-output-v1schema withid,status, anddescfields. - SGLang readiness: the repository includes ready-to-use
inference/prompt.pyandinference/contract.pyscripts for prompt assembly and JSON validation.
What you can do
- Calculate rewards for reinforcement learning: use model verdicts to compute the consistency metric
r_cons = 1 - n_fail / Kwhen fine-tuning image generators. - Automate generation filtering: integrate SGLang checks into a subject-driven generation pipeline to automatically discard images that lose reference details.
- Analyze model errors: collect text critiques (
desc) for failed checklist items to understand which specific features are hardest to transfer.
Example
The model runs via SGLang with parameters temperature=0, top_p=1, top_k=-1, max_new_tokens=1500. The prompt with the rubric and checklist is assembled using inference/prompt.py, after which the model returns JSON inside ..., where each item id has a status (pass / fail / unjudgeable) and a text explanation desc validated via inference/contract.py.
Read more
DetailsTraining: SFT on 286,048 examples, 1 epoch (8,939 steps), peak LR of 4e-6 with a cosine schedule.
Weights: 505
model-*.safetensors shards; the release accompanies a double-blind peer-reviewed paper.License: inherits the license of the base
Qwen3.8-Flash-Next model.









Comments