mini-jev-multimodal

A small decision model for text and images. Give it a state (text and/or up to 8 images) and typed questions; it returns a probability for every allowed option in one forward pass, with no text generation. It cannot answer outside the options you supply.

An independent, open reproduction of the idea behind System One decision models such as TypeSafe AI's Jev. Not affiliated with or derived from that product.

Code, training and evaluation: https://github.com/agarwalastitwa027-svg/mini-jev-multimodal

Base model vs mini-Jev (the headline result)

The base model is Qwen/Qwen3-VL-2B-Instruct with no fine-tuning, scored zero-shot by reading the probabilities of the option letters. Because raw base-model probabilities are badly overconfident, it is also shown with post-hoc temperature scaling (one temperature per question type, fitted on the same validation set), the fair baseline for calibration. mini-Jev is the same model after LoRA fine-tuning on a broad mix of 26k training rows plus the answer head and per-type calibration. All numbers are on questions from datasets that appear nowhere in training. Accuracy in %; ECE (calibration error) and NLL (log-loss): lower is better. 95 % intervals are paired bootstrap intervals over questions.

Test collection Questions Base Base + temp. scaling mini-Jev mini-Jev minus base + temp. scaling
16 open datasets (test_more) 3,678 71.1 71.1 78.0 +6.9 [+5.5, +8.3]
11 further datasets never used for any decision (test_confirm; the two with 43-45 options left out) 2,306 69.2 69.2 72.0 +2.8 [+1.2, +4.4]
ARC-Challenge, tweet irony (test_fresh) 600 61.2 61.2 76.2 +15.0 [+11.2, +18.8]
emotion, OpenBookQA, unseen Food-101 dishes (test_zeroshot) 720 68.3 68.3 70.0 +1.7 [-1.3, +4.3] (not significant)
27-100 options: CIFAR-100, BANKING77, GoEmotions (test_manyopt) 700 cannot answer (> 26 options) cannot answer 48.4 n/a
Calibration Base Base + temp. scaling mini-Jev
ECE on the 16 datasets 0.240 0.068 0.043
NLL on the 16 datasets 2.04 0.80 0.58
ECE on the confirmation set (<= 26 options) 0.255 0.099 0.044
NLL on the confirmation set (<= 26 options) 2.66 0.96 0.81

What this shows, honestly:

  • Accuracy: fine-tuning helps, but how much depends on the task. +6.9 points on 16 unseen datasets, +2.8 on 11 more that influenced no decision, and no significant gain on three zero-shot sources. The gains are largest on yes / no and few-option questions (offensive tweets +36, financial news sentiment +34, SNLI +22, RTE +11 points).
  • Calibration: temperature scaling alone fixes 75-87 % of the raw base model's calibration error, so most of the calibration improvement is not due to fine-tuning. Fine-tuning still has the lowest ECE and NLL.
  • Task breadth is the change that helped most: three seeds of the broad training mix beat three seeds of the original 12-source mix on every held-out collection (+1.4 [+0.8, +2.0] on the 16 datasets, +1.3 [+0.5, +2.1] on the confirmation set, +4.6 [+2.8, +6.5] on the fresh sets, +5.1 on many-option questions).
  • Known weakness: on questions with more than 10 options mini-Jev is below the base model (54.2 % vs 58.7 %, pooled). Averaging over four option orders (n_perm=4, see below) recovers part of it (56.9 %), not all.
  • Head design: a plain letter-readout head matches the learned answer head on accuracy and generalises better to unseen sources, but is calibrated worse and cannot take more than 26 options. See the report.

Per dataset, the 16 open datasets (accuracy %, ECE, NLL; chance is the average of 1 / options):

Dataset n Chance % Base acc Base + temp. scaling acc mini-Jev acc Base + temp. scaling ECE mini-Jev ECE Base + temp. scaling NLL mini-Jev NLL
beans 128 33 58.6 58.6 61.7 0.165 0.153 0.96 0.77
cifar10 200 10 96.0 96.0 97.0 0.272 0.045 0.42 0.11
cifar100_super 200 5 62.0 62.0 68.0 0.167 0.069 1.50 1.02
fashion_mnist 200 10 68.5 68.5 67.5 0.176 0.097 1.12 0.78
fin_news 250 33 42.4 42.4 76.8 0.416 0.052 1.62 0.53
imdb 250 50 94.4 94.4 93.6 0.040 0.042 0.18 0.14
mnist 200 10 95.0 95.0 95.5 0.227 0.037 0.46 0.18
mrpc 250 50 73.2 73.2 77.2 0.114 0.139 0.59 0.69
newsgroups20 250 5 56.0 56.0 43.2 0.092 0.125 1.59 1.65
qasc 250 12 73.2 73.2 74.0 0.059 0.079 0.87 0.81
qnli 250 50 83.2 83.2 75.2 0.041 0.146 0.41 0.67
rte 250 50 70.0 70.0 80.8 0.104 0.132 0.59 0.56
sciq 250 25 96.8 96.8 97.2 0.017 0.012 0.12 0.06
snli 250 33 68.8 68.8 90.4 0.050 0.069 0.72 0.30
tweet_hate 250 50 60.4 60.4 68.4 0.110 0.092 0.68 0.62
tweet_offensive 250 50 40.0 40.0 76.4 0.384 0.075 1.05 0.49
ALL 3678 31 71.1 71.1 78.0 0.068 0.043 0.80 0.58

Per dataset, the confirmation set (the base model cannot answer GTSRB and RESISC45, which have 43 and 45 options):

Dataset n Chance % Base acc Base + temp. scaling acc mini-Jev acc Base + temp. scaling ECE mini-Jev ECE Base + temp. scaling NLL mini-Jev NLL
arc_easy 250 25 95.6 95.6 94.8 0.029 0.077 0.17 0.22
cb 56 33 66.1 66.1 82.1 0.151 0.124 0.74 0.52
copa 100 50 87.0 87.0 89.0 0.064 0.052 0.35 0.30
gtsrb 200 2 0.0 0.0 54.0 0.000 0.143 13.82 1.65
resisc45 200 2 0.0 0.0 58.0 0.000 0.130 13.82 1.29
rotten_tomatoes 250 50 86.0 86.0 88.8 0.043 0.052 0.37 0.24
stl10 200 10 99.5 99.5 98.5 0.205 0.027 0.25 0.05
svhn 200 10 74.5 74.5 79.5 0.272 0.064 1.10 0.66
tweet_emoji 250 5 19.6 19.6 19.6 0.213 0.124 2.77 3.14
tweet_emotion 250 25 80.8 80.8 75.6 0.103 0.101 0.62 0.62
tweet_sentiment 250 33 52.8 52.8 72.4 0.341 0.074 1.47 0.67
tweet_stance 250 33 66.4 66.4 60.4 0.117 0.106 0.91 0.99
wic 250 50 48.0 48.0 56.0 0.374 0.175 1.12 0.79
ALL 2706 25 58.9 58.9 69.6 0.084 0.041 2.86 0.91

On the in-distribution test sets (sources seen in training; 3-seed means of the earlier mix) text accuracy is 87.8 % against the base model's 79.6 % and image accuracy 83.5 % against 80.6 %, with ScienceQA test images level with the base model (89.9 % vs 90.3 %). Full ablation table (base, head-only, hard-label, text-only, image-only, three seeds): results/ablations.md. Method and test sets: docs/METHODOLOGY.md; every comparison with intervals: results/study/.

How it works

images + state ──► Qwen3-VL-2B-Instruct (prefill, LoRA-tuned, LM head removed) ──► KV cache (state encoded once)
for each question:  suffix 'Question / Options / Answer:' ──► hidden states
    q   = W_q · h[last token]        o_j = W_o · mean(h[option j])
    p_j = softmax_j( q·o_j / √d / T[type] )      T fitted per type (choice / noul / score)
  • Types: choice (2–255 options), noul (yes/no → P(yes)), score (ordered levels → probabilities + expected score).
  • Shared state: the images and state are encoded once and reused for every question in the request (exactly equal to re-reading them, see the repo tests).
  • No truncation: requests over the declared limit (16,384 tokens by default) are refused, not cut.

How to run it

Needs Python 3.10+ and a CUDA GPU (fits in 8 GB; tested on an RTX 5070 Laptop). RTX 50-series cards need a PyTorch build for CUDA 12.8 or newer.

git clone https://github.com/agarwalastitwa027-svg/mini-jev-multimodal.git && cd mini-jev-multimodal
python -m venv .venv && source .venv/bin/activate        # Windows: .venv\Scripts\activate
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128
pip install -r requirements.txt
python infer.py --run AstitwaAgarwal/multimodal-jev                         # smoke test: 4 decisions, prints probabilities

The adapters and answer head download automatically from this repo on first use; the base model (Qwen/Qwen3-VL-2B-Instruct) is fetched from the Hub too.

From Python:

from jev.decide import Decider
jev = Decider.from_pretrained("AstitwaAgarwal/multimodal-jev")
out = jev.decide(
    state="My package arrived damaged and I want a refund.",
    questions={
        "queue":  {"type": "choice", "instructions": "Which queue?",
                   "criteria": {"billing": "payments, refunds", "shipping": "deliveries"}},
        "urgent": {"type": "noul", "instructions": "Is this urgent?"},
        "stars":  {"type": "score", "instructions": "How satisfied is the customer?",
                   "criteria": {"1": "very unhappy", "2": "", "3": "", "4": "", "5": "very happy"}},
    },
    images=["photo.jpg"],      # optional
)

Each answer has a type, the top choice, and probabilities for every option; noul questions return noul = P(yes); score questions also return an expected score. Questions about the same state share one encoding of it, so asking several is cheap. Pass images=[...] (paths or PIL images, up to 8) for image states; omit it for text-only.

As an HTTP server (Jev-compatible POST /v1/systemone):

python serve.py --run AstitwaAgarwal/multimodal-jev --port 8000
curl -s localhost:8000/v1/systemone -H 'content-type: application/json' -d '{
  "model": "mini-jev", "state": "My package arrived damaged.",
  "questions": {"urgent": {"type": "noul", "instructions": "Is this urgent?"}}}'

Limits: requests over 16,384 tokens, with more than 255 options per question or more than 8 images, return Unsupported instead of being truncated. Not a text generator and not a general vision model: it only picks among the options you give it.

Training

  • Base: Qwen/Qwen3-VL-2B-Instruct, LoRA r=16 on the text layers (vision tower frozen), answer head d=256.

  • Loss: soft cross-entropy + ranked probability score for ordinal questions; option order shuffled every step; text share of steps 0.5.

  • 1925 optimizer steps, batch 4 × accumulation 4, lr 0.0002, images capped at 262144 px during training; 159.1 min on NVIDIA GeForce RTX 5070 Laptop GPU, peak 6.17 GB VRAM.

  • Calibration: one temperature per question type fitted on validation data: choice 1.28, noul 1.05, score 0.74.

  • Data: 31059 training questions (22625 text, 8434 image) from: ag_news, amazon_polarity, aokvqa, boolq, chartqa, cola, csqa, dbpedia, dtd_textures, eurosat, food101_train, mnli, oxford_flowers, oxford_pets, procedural, quartz, race, scienceqa, sms_spam, sst2, sst5, stsb, yahoo_topics, yelp.

  • Decontamination: no split of any Jev Decision Index benchmark is used for training; training rows were checked against the Decision Index suites by 13-gram text overlap (image hashes were not checked: the vision suite was not built), and 0 of 26413 rows overlapped and were removed. The text check used a locally rebuilt copy of the suite that is not byte-identical to the leaderboard's.

Results

Jev Decision Index

Board Score Edition Complete
Text 17.43 0.2.1 False

Unofficial, and for an earlier version. These scores were produced by an earlier model trained on the original 12-source mix, not the released one (which was not re-run). They come from a locally rebuilt copy of the suite whose core rows are not byte-identical to the leaderboard's, with ToolRet-retrieval and BRIGHT-retrieval not run (an 8 GB GPU cannot finish them; they count as wrong). Not a leaderboard entry. Details: results/decision_index_text_unofficial.md in the GitHub repo.

Accuracy and calibration

Per-type temperatures fitted on validation data. ECE is shown before → after calibration. Acc@conf≥0.9 is the accuracy on questions answered with confidence ≥ 0.9 (coverage = their share). Acc, Skill and coverage in %; Skill = (acc − chance) / (1 − chance).

Test set Group n Acc Skill ECE NLL Acc@conf≥0.9 (coverage)
Validation all 1578 87.3 81.3 0.028 → 0.027 0.337 98.2 (62.4)
Validation text 1114 85.2 77.3 0.030 → 0.036 0.392 97.9 (54.8)
Validation vision 464 92.5 89.7 0.030 → 0.027 0.204 98.7 (80.6)
Text, sources seen in training text 3085 88.3 81.8 0.015 → 0.013 0.300 98.0 (64.3)
Images, sources seen in training vision 886 83.9 77.6 0.058 → 0.041 0.405 97.3 (67.5)
Zero-shot (sources never trained on) all 720 70.0 61.8 0.101 → 0.069 0.914 91.8 (37.1)
Zero-shot (sources never trained on) text 600 64.5 55.2 0.118 → 0.082 1.081 86.3 (25.5)
Zero-shot (sources never trained on) vision 120 97.5 96.7 0.016 → 0.018 0.075 99.1 (95.0)
ScienceQA test images (zero-shot) vision 300 88.7 82.3 0.034 → 0.028 0.241 98.1 (69.0)

Ablations (original 12-source mix; this model's recipe is trained on a broader mix)

Mean ± std across seeds where an entry has several runs. Acc, Skill, Acc@conf≥0.9 and Cov@0.9 in %. Skill = (acc − chance) / (1 − chance). Unanswered rows count as wrong.

test_text — all

Model n Acc Skill ECE Brier NLL Acc@conf≥0.9 Cov@0.9 p50 ms
A. Base Qwen3-VL-2B, zero-shot letters 3085 79.6 68.3 0.177 0.370 1.591 83.1 92.1 67
B. Head only (backbone frozen) 3085 79.0 67.3 0.023 0.288 0.506 97.1 44.7 71
C. Hard-label recipe (hard CE) 3085 87.8 81.1 0.016 0.173 0.306 97.9 61.6 64
D. Full recipe, original 12-source mix (3 seeds) 3085 87.8 ± 0.3 81.0 ± 0.4 0.015 ± 0.007 0.178 ± 0.004 0.315 ± 0.008 98.0 ± 0.4 60.8 ± 1.1 65 ± 1
E1. Trained on text only 3085 88.0 81.4 0.012 0.169 0.296 97.4 66.5 67
E2. Trained on vision only 3085 75.7 62.2 0.039 0.330 0.586 95.9 40.8 67

test_text — text

Model n Acc Skill ECE Brier NLL Acc@conf≥0.9 Cov@0.9 p50 ms
A. Base Qwen3-VL-2B, zero-shot letters 3085 79.6 68.3 0.177 0.370 1.591 83.1 92.1 67
B. Head only (backbone frozen) 3085 79.0 67.3 0.023 0.288 0.506 97.1 44.7 71
C. Hard-label recipe (hard CE) 3085 87.8 81.1 0.016 0.173 0.306 97.9 61.6 64
D. Full recipe, original 12-source mix (3 seeds) 3085 87.8 ± 0.3 81.0 ± 0.4 0.015 ± 0.007 0.178 ± 0.004 0.315 ± 0.008 98.0 ± 0.4 60.8 ± 1.1 65 ± 1
E1. Trained on text only 3085 88.0 81.4 0.012 0.169 0.296 97.4 66.5 67
E2. Trained on vision only 3085 75.7 62.2 0.039 0.330 0.586 95.9 40.8 67

test_vision — all

Model n Acc Skill ECE Brier NLL Acc@conf≥0.9 Cov@0.9 p50 ms
A. Base Qwen3-VL-2B, zero-shot letters 886 80.6 73.1 0.103 0.289 0.670 91.8 75.7 136
B. Head only (backbone frozen) 886 79.1 71.0 0.040 0.278 0.513 97.3 53.4 124
C. Hard-label recipe (hard CE) 886 83.6 77.3 0.046 0.214 0.420 97.2 69.2 121
D. Full recipe, original 12-source mix (3 seeds) 886 83.5 ± 0.2 77.1 ± 0.3 0.039 ± 0.001 0.223 ± 0.002 0.427 ± 0.007 96.9 ± 0.4 66.3 ± 1.8 121 ± 1
E1. Trained on text only 886 78.6 70.3 0.043 0.288 0.574 94.6 47.9 123
E2. Trained on vision only 886 82.8 76.2 0.024 0.222 0.418 97.8 57.2 124

test_vision — vision

Model n Acc Skill ECE Brier NLL Acc@conf≥0.9 Cov@0.9 p50 ms
A. Base Qwen3-VL-2B, zero-shot letters 886 80.6 73.1 0.103 0.289 0.670 91.8 75.7 136
B. Head only (backbone frozen) 886 79.1 71.0 0.040 0.278 0.513 97.3 53.4 124
C. Hard-label recipe (hard CE) 886 83.6 77.3 0.046 0.214 0.420 97.2 69.2 121
D. Full recipe, original 12-source mix (3 seeds) 886 83.5 ± 0.2 77.1 ± 0.3 0.039 ± 0.001 0.223 ± 0.002 0.427 ± 0.007 96.9 ± 0.4 66.3 ± 1.8 121 ± 1
E1. Trained on text only 886 78.6 70.3 0.043 0.288 0.574 94.6 47.9 123
E2. Trained on vision only 886 82.8 76.2 0.024 0.222 0.418 97.8 57.2 124

zeroshot — all

Model n Acc Skill ECE Brier NLL Acc@conf≥0.9 Cov@0.9 p50 ms
A. Base Qwen3-VL-2B, zero-shot letters 720 68.3 59.6 0.266 0.565 2.364 74.3 85.3 38
B. Head only (backbone frozen) 720 56.7 44.8 0.060 0.556 1.098 88.7 18.5 33
C. Hard-label recipe (hard CE) 720 68.2 59.5 0.064 0.434 0.899 93.7 32.9 34
D. Full recipe, original 12-source mix (3 seeds) 720 68.8 ± 1.4 60.3 ± 1.8 0.058 ± 0.009 0.438 ± 0.014 0.892 ± 0.035 95.1 ± 0.3 31.3 ± 2.3 34 ± 1
E1. Trained on text only 720 69.2 60.7 0.089 0.452 1.024 86.4 40.8 33
E2. Trained on vision only 720 65.4 55.9 0.054 0.471 0.922 97.4 21.0 36

zeroshot — text

Model n Acc Skill ECE Brier NLL Acc@conf≥0.9 Cov@0.9 p50 ms
A. Base Qwen3-VL-2B, zero-shot letters 600 62.3 52.4 0.317 0.672 2.825 68.3 82.7 38
B. Head only (backbone frozen) 600 49.3 36.0 0.077 0.646 1.276 70.8 8.0 33
C. Hard-label recipe (hard CE) 600 62.3 52.4 0.078 0.513 1.062 87.9 20.7 33
D. Full recipe, original 12-source mix (3 seeds) 600 63.1 ± 1.5 53.3 ± 1.9 0.071 ± 0.009 0.519 ± 0.015 1.056 ± 0.040 90.1 ± 1.0 18.7 ± 2.6 33 ± 1
E1. Trained on text only 600 64.0 54.5 0.111 0.529 1.204 79.3 31.3 32
E2. Trained on vision only 600 59.0 48.2 0.067 0.558 1.090 90.5 7.0 35

zeroshot — vision

Model n Acc Skill ECE Brier NLL Acc@conf≥0.9 Cov@0.9 p50 ms
A. Base Qwen3-VL-2B, zero-shot letters 120 98.3 97.8 0.016 0.029 0.060 99.2 98.3 135
B. Head only (backbone frozen) 120 93.3 91.1 0.053 0.104 0.206 98.8 70.8 123
C. Hard-label recipe (hard CE) 120 97.5 96.7 0.024 0.040 0.085 100.0 94.2 121
D. Full recipe, original 12-source mix (3 seeds) 120 97.8 ± 1.0 97.0 ± 1.3 0.021 ± 0.005 0.033 ± 0.009 0.071 ± 0.013 100.0 94.4 ± 0.5 120 ± 1
E1. Trained on text only 120 95.0 93.3 0.035 0.067 0.124 99.1 88.3 122
E2. Trained on vision only 120 97.5 96.7 0.013 0.035 0.079 100.0 90.8 122

scienceqa — all

Model n Acc Skill ECE Brier NLL Acc@conf≥0.9 Cov@0.9 p50 ms
A. Base Qwen3-VL-2B, zero-shot letters 300 90.3 84.9 0.069 0.162 0.371 94.3 88.0 107
B. Head only (backbone frozen) 300 79.3 67.7 0.047 0.266 0.453 97.4 38.3 94
C. Hard-label recipe (hard CE) 300 90.3 84.9 0.040 0.144 0.266 97.6 70.7 92
D. Full recipe, original 12-source mix (3 seeds) 300 89.9 ± 0.7 84.2 ± 1.1 0.047 ± 0.009 0.153 ± 0.006 0.267 ± 0.020 98.0 ± 0.4 67.9 ± 1.9 92 ± 1
E1. Trained on text only 300 80.3 69.2 0.057 0.264 0.458 94.0 49.7 95
E2. Trained on vision only 300 85.7 77.6 0.056 0.188 0.325 97.6 55.0 95

scienceqa — vision

Model n Acc Skill ECE Brier NLL Acc@conf≥0.9 Cov@0.9 p50 ms
A. Base Qwen3-VL-2B, zero-shot letters 300 90.3 84.9 0.069 0.162 0.371 94.3 88.0 107
B. Head only (backbone frozen) 300 79.3 67.7 0.047 0.266 0.453 97.4 38.3 94
C. Hard-label recipe (hard CE) 300 90.3 84.9 0.040 0.144 0.266 97.6 70.7 92
D. Full recipe, original 12-source mix (3 seeds) 300 89.9 ± 0.7 84.2 ± 1.1 0.047 ± 0.009 0.153 ± 0.006 0.267 ± 0.020 98.0 ± 0.4 67.9 ± 1.9 92 ± 1
E1. Trained on text only 300 80.3 69.2 0.057 0.264 0.458 94.0 49.7 95
E2. Trained on vision only 300 85.7 77.6 0.056 0.188 0.325 97.6 55.0 95

Latency (NVIDIA GeForce RTX 5070 Laptop GPU, torch.bfloat16)

Case Questions Cached p50 / p95 (ms) Uncached p50 / p95 (ms)
text 100 tok 1 39 / 43 37 / 39
text 100 tok 8 89 / 95 279 / 288
text 1000 tok 1 109 / 111 108 / 112
text 1000 tok 8 194 / 197 885 / 910
text 4000 tok 1 478 / 483 491 / 496
text 4000 tok 8 1077 / 1107 4758 / 4761
image + 100 tok 1 338 / 403 338 / 359
image + 100 tok 8 434 / 439 2585 / 2636

Peak VRAM: 7.43 GB

Limitations

  • Decides only among the options you give it; it cannot write, explain, or say 'none of these' unless that is an option.
  • Small (2B) backbone: weaker than large generative models on knowledge and multi-step reasoning.
  • Confidence is calibrated on its own validation distribution; check calibration on your data before using thresholds to act automatically.
  • Image inputs only (no audio or video).

Licence

Apache-2.0. The base model Qwen/Qwen3-VL-2B-Instruct is Apache-2.0. Training data come from public datasets under their own licences; images from them are not redistributed here.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for AstitwaAgarwal/multimodal-jev

Adapter
(143)
this model