A clean single-pass decision head with internally consistent tables, but the +7.93 pp / 6.04× headline compares a model fine-tuned on the benchmarks' own training splits against zero-shot generative baselines, and the released code does not implement the paper or reproduce the released checkpoint.
Soundness
2/4
Presentation
3/4
Contribution
2/4
Confidence
4/5
✓ 10 confirmed✕ 7 discrepancy
Summary
The paper turns a generative VLM (Qwen3.5-4B) into a single-pass multiple-choice scorer. Images, question and K candidates go into one prompt. A marker token follows each candidate and a decision marker closes the prompt. The language model is cut to its first J=23 of 32 layers. Only the query/key projections of the last layer are kept, and the vocabulary head is removed. Each candidate gets a score equal to the head-averaged scaled QK logit between the decision marker and its option marker, plus a zero-initialised MLP residual on [hd,hk,hd⊙ (Eqs. 5–8). The model is LoRA-fine-tuned for one epoch with a weighted cross-entropy on the pooled training splits of HAM10000, PneumoniaMNIST, MedThinkVQA and PMC-VQA (174,360 examples).
Against the untuned Qwen3.5-4B, the resulting MedJev-4B reports +7.93 pp mean accuracy (61.13 → 69.06) and a 6.04× lower mean end-to-end latency (685.03 → 113.44 ms), with gains on all four benchmarks (three significant by paired bootstrap). It also claims the best accuracy and the best mean latency among 20 off-the-shelf 4B–9B general and medical VLMs and six released 'Jev' decision models. Further analyses cover a head/depth ablation, candidate-order robustness, calibration, and per-class HAM10000 results.
Strengths
Simple, precisely specified decision head that matches its implementation
Sec. 3.3, Eqs. (5)–(8); medjev/readout.py; HF Karl28/MedJev-4B
Eqs. (5)–(8) fully specify the readout: head-averaged scaled QK logits between the decision marker and option markers, plus a zero-initialised residual MLP (1.97M parameters). The released readout.py implements this line by line, including the Qwen3.5 gated-query split, GQA key repetition and RoPE applied at the marker positions. The released Hugging Face checkpoint matches the stated trainable-parameter budget exactly (25,768,961; check 17) and the residual MLP size (1,966,593; check 05).
Headline tables are arithmetically consistent and dataset counts reproduce
Table 1; Sec. 4.1.1; App. A
All 21 rows of Table 1 have correct unweighted means and ranks and are attainable as k/n on the stated test sizes. The Improvement row (+9.99/+1.44/+15.56/+4.73; 3.51/4.13/7.35/5.74×) reproduces within rounding (checks 01, 02). All split sizes, including 33,430 PMC-VQA v2 test questions over 29,021 figures and 5,845 MedThinkVQA test images, match counts taken directly from the public files (check 13).
Careful, honest significance reporting
Sec. 4.3.2, Fig. 3(c); Sec. 4.3.3, Table A3
The paper uses a paired bootstrap with discordant counts and openly reports that the PneumoniaMNIST gain is not significant (CI [−0.80, 3.69]). We reproduced the CIs and gains from the reported discordant counts (check 03). The candidate-order analysis goes beyond a single accuracy number: Table A3 reports Kept/Lost/Gained churn, and these counts are internally consistent (check 08).
Latency measured end to end, including tails
Sec. 1, Fig. 1(b); App. D.5, Table A2
Latency is wall-clock time including preprocessing, at batch size 1, with percentile tables. These numbers make a practically important point: generative baselines have heavy tails, e.g. Qwen3.5-4B on MedThinkVQA has a 0.35 s median but a mean of 1.84 s and a p99 of 27.8 s, whereas MedJev's p99 is within 12–18 ms of its median on single-image tasks. The token counts, ms/token and tail fractions are mutually consistent (check 12).
Weaknesses
Headline gain confounds in-domain supervised fine-tuning with the decision interface
major · Sec. 4.1.2; Table 1; App. B; App. C (training data)
MedJev-4B is LoRA-fine-tuned on 174,360 examples from the training splits of the same four benchmarks it is tested on. Every baseline, including the Qwen3.5-4B reference, runs off the shelf and zero-shot with its own chat template and rule-based answer extraction. The +7.93 pp and the 'state-of-the-art among 4B–9B VLMs' claim therefore mix three effects: in-domain supervision, label-format alignment, and the system-one design itself. Several baseline numbers mostly measure format compliance, e.g. LLaVA-Med-v1.5-7B scores 0% on HAM10000 and MedThinkVQA and 1.30% on PMC-VQA. No experiment isolates the contribution the paper claims. Fix: add Qwen3.5-4B LoRA-SFT on the same data with a one-token letter answer (accuracy and latency at max_new_tokens≈1–2), and option-likelihood scoring with the LM head (Robinson et al.). Also compare against the full-depth QK readout without fine-tuning.
Released code does not implement the paper and cannot regenerate the released checkpoint or its scores
major · Sec. 3.2, 3.4, Eq. (10); medjev/model.py, train.py, evaluate.py; requirements.txt
(i) In model.py/evaluate.py, the readout output still passes through the final RMSNorm and the tied lm_head. Scores read as logits[0,:,0] collapse to ±c, and argmax agrees with Eq. (8) in only 180/200 random trials. The CE gradient is 2.9 of the intended one, and the configured bf16 path raises dtype errors (check 06). (ii) does not implement the per-benchmark loss equalisation of Sec. 3.4/Eq. (10), so PMC-VQA carries 87.41% of the loss weight instead of 25% (check 07). (iii) misses the connector and all 18 retained Gated-DeltaNet layers (92 modules), and leaves the markers frozen. The code trains 17,100,289 parameters versus 25,768,961 in the README (check 04). The released checkpoint does contain those 183 targets and trained markers (check 17), so it was produced by different code. (iv) pins , which does not exist, and the remaining pins are mutually incompatible (check 15). The paper's numbers cannot currently be reproduced from the release. release the exact training/evaluation code and environment that produced the checkpoint, with per-example predictions.
Questions for the authors
What accuracy and latency does Qwen3.5-4B reach after LoRA-SFT on the same 174,360 examples with a one-letter answer, and with option-likelihood scoring? If it closes most of the +7.93 pp gap, the contribution reduces to latency.
Which code produced the released checkpoint (183 LoRA targets, trained markers)? Does the released evaluate.py, with its logits[0,:,0] readout through the final norm and lm_head, reproduce Table 1 with that checkpoint?
Was per-benchmark loss equalisation (Eq. 10) actually used? What happens to per-benchmark accuracy without it, given that PMC-VQA is 87% of the training examples?
How were J=23 and the residual head selected, and on which split? What are mean ± sd over at least three training seeds for the Fig. 3 ablation?
Was candidate-order permutation augmentation used for the reported model, and how robust is a model trained without it?
What resolution, thinking mode and max_new_tokens were used for each baseline when timing, and why do MedJev's PMC-VQA accuracy and single-image latencies differ between Table 1 and Table A1?
Verification
We ran 17 scripted checks: 10 confirmed, 7 discrepancies, none inconclusive. All arithmetic behind the headline results reproduces: Table 1 means, ranks and k/n feasibility, gains and speedups, bootstrap CIs, dataset counts, latency cross-checks and the order-robustness table. The released checkpoint matches the stated parameter budget, and all 60 references resolve. The discrepancies are of two kinds. Released-code problems: the score readout does not compute Eq. (8), there is no per-benchmark loss equalisation, the LoRA targets and frozen markers do not match the checkpoint, and the pinned environment is uninstallable. Smaller reporting slips: 4.44B vs 4.54B, cross-table inconsistencies for the same checkpoint, and rounding in the order analysis. None of the discrepancies show the reported accuracies to be wrong. They show that the results cannot be regenerated from the release. The main soundness concern, the zero-shot vs fine-tuned comparison, is a design issue that no recomputation can resolve.
10Confirmed
7Discrepancy
✓ConfirmedAbstract; Sec. 1; Table 1 Improvement row
Every checked reference resolved to the cited work.
Suggestions
Add a generatively fine-tuned Qwen3.5-4B control (same data, one-letter answers, max_new_tokens≈1–2) and an option-likelihood scoring baseline. This would separate the effect of supervision from that of the decision interface.
Release the exact code and environment that produced the checkpoint. Remove the final-norm/lm_head path from score extraction, implement the Eq. (10) benchmark weights, extend LoRA targets to linear_fc1/2, in_proj_* and out_proj, unfreeze the markers, and pin installable versions.
Select J and the head on a validation split and report ≥3 training seeds for Table 1 and Fig. 3.
Report the headline speedup under both averaging conventions (4.42× vs 6.04×) and decompose it into decoding removal vs depth reduction. State baseline resolution and generation settings.
Disclose the candidate-permutation augmentation and report order robustness for a model trained without it.
Report balanced accuracy and per-class precision/recall (especially MEL precision and AKIEC recall) for HAM10000, and temper the clinical-cost claim.
Reconcile Table 1 and Table A1 for the same checkpoint, and fix 4.44B → 4.54B and the other numeric slips.
Reframe 'state-of-the-art' as 'best among zero-shot baselines after in-domain fine-tuning', and position the QK readout explicitly relative to MJev-Spatial [30].
Ethics and integrity
No integrity concerns. The tables are internally consistent, the released checkpoint matches the described parameter count, and the gap between the code and the checkpoint looks like a release error, not altered results. No embedded instructions were found in the paper, source or code. All datasets are public research benchmarks. Because the system targets clinical decision support, the low AKIEC recall (11.6%) and ~31% melanoma precision on HAM10000 deserve explicit caveats before any deployment claims.
Scope of this review
We could not run the released evaluate.py end to end: there is no GPU, flash_attention_2 is hard-coded, and memory was limited to 8 GiB. We did not retrain the model. The code-path findings come from a tiny random Qwen3.5 model and a meta-device instantiation of the real architecture under transformers 5.23/peft 0.21.3, because the pinned versions do not exist. No per-example predictions, baseline outputs or timing logs are released, so the baseline accuracies and all latencies are taken as reported and checked only for internal consistency. Ablation bar values were read from the figure's text layer.
The calibration and selective-prediction analysis (ECE 6.18%; 62.33% accuracy at full coverage rising to 92.67% on the most confident 14.4%) suits a referral setting. The pooled 62.33% reproduces (check 02). Table 2 / App. D.1 compare against released decision models together with majority-class floors, which exposes that d1-3B is a constant predictor. Those floors and leads (8.27/31.73 pp) reproduce (check 09).
×
10−4
train.py
MedJevConfig.lora_targets
attach_lora
requirements.txt
transformers==4.60.0
Fix:
Speedup attribution and averaging convention inflate the depth-reduction story
major · Abstract; Sec. 4.2, Table 1; Sec. 4.3.1, Fig. 3(a,b); Sec. 4.3.5
In the ablation, depth reduction saves 16.4 ms of the 571.6 ms gap to Qwen3.5-4B (2.9%). The full-depth decision model is already 5.28× faster (check 10), so nearly all of the speedup comes from not decoding. A fine-tuned short-answer generator would be the fair latency comparator (see the first weakness). The headline 6.04× is a 4-benchmark mean of latencies, and MedThinkVQA makes up 67.3% of Qwen3.5-4B's mean. Under the 3-benchmark convention used in Table 2 and in the released evaluate.py, the speedup is 4.42×, and the mean of per-benchmark speedups is 5.18× (check 01). The paper also does not state the resolution or generation settings (thinking mode, max_new_tokens) used for baseline timing. Fix: report both conventions, decompose the speedup, and state the baseline generation settings.
Design choices selected on the test set from single-seed differences within noise
major · Sec. 3.2, Fig. 4; Sec. 4.3.1, Fig. 3(a,b); Sec. 4.3.2
The ablation that supports the two claimed designs (Fig. 3a,b) differs by only 0.13–0.39 pp between heads and depths. The approximate SE of a difference is 0.33 pp (z = 0.4–1.2; check 10). There is one training seed, no validation split, and the configuration is chosen on test results. 'RDH is the best head' and 'depth reduction costs no accuracy' are therefore indistinguishable from equality. The bootstrap CIs in Sec. 4.3.2 resample only the test set and ignore training variance. Fix: use a held-out validation split for J and the head, and report ≥3 seeds with mean ± sd.
Same checkpoint reported with different numbers across tables; multi-image benefit is negligible
minor · Table 1; Table 2; Table A1; Sec. 4.3.5
For MedJev-4B, PMC-VQA (single-image, so identical input under the first-image protocol) is 61.68% in Table 1 but 61.66% in Table A1. Single-image latencies are 73.3/64.8/65.0 ms in Table 1 and 64.3/50.9/55.1 ms in Table A1. First-image MedThinkVQA latency (260.6 ms) exceeds the all-image latency (250.7 ms) (check 09). Separately, first-image accuracy is 373/720 vs 374/720 with all ~8 images, so the extra images add one correct case. This undercuts the motivation of keeping 'all visual tokens' for multi-image reasoning.
Undisclosed candidate-permutation augmentation
minor · Sec. 3.4; Sec. 4.3.3; medjev/data.py, train.py
The released training code shuffles candidate order per example and epoch (data.py:permutation_for, used in train.py). The paper does not mention this, yet Sec. 4.3.3 reads order robustness (69.06 → 68.10) as evidence that the model scores option text rather than slots. If the augmentation was used, robustness is partly trained in. Please disclose it and report robustness without it.
Selective clinical reading of the HAM10000 confusion matrix
minor · App. D.4; Fig. A1(c,d)
App. D.4 says accuracy is 'concentrated where clinical cost is highest'. But AKIEC (pre-malignant/malignant) recall is 5/43 = 11.6%, with 19% of AKIEC sent to benign BKL. About 25% of NV goes to MEL, which puts melanoma precision at ~31%, and balanced accuracy is 60.16% against 68.39% plain accuracy (check 11). Report balanced accuracy and per-class precision/recall, and qualify the claim.
Over-claiming and positioning
minor · Abstract; Sec. 2.2; Sec. 4.3.4; Sec. 5
'State-of-the-art performance' (Abstract) is measured against models never trained on these tasks. 'Fully validated' (Sec. 5) rests on one backbone, one seed and four benchmarks. The QK candidate readout was already used by MJev-Spatial [30] (acknowledged in Sec. 2), so the novelty is mainly depth reduction, the residual MLP and the medical application, and the contribution list should say so. Discriminative multiple-choice heads, early-exit models and cross-encoder rerankers are missing from related work. The t-SNE distance ratio (2.36 → 1.36, Sec. 4.3.4) is used as quantitative evidence, although t-SNE distances are not metric-preserving.
Small numerical and textual slips
minor · Sec. 1; Sec. 4.1.3; Fig. 5(b); App. D.3; App. A
Backbone size is given as 4.44B, but the released code counts 4.54B, so the removed share is 21.7%, not 20% (check 05). The HAM lost rate 48/3,102 = 1.55% is shown as 1.6 (Fig. 5b). The 'largest single drop 2.03%' is a seed average; the per-seed maximum is 2.08% (check 08). The PMC 5.74× is reachable only at the edge of rounding (check 01). Intro medians and percentiles come from 50/150-request subsamples while the means use the full sets (check 12). Preprocessing silently drops 64/10/40/199 training examples, and '2 to 47 images' holds only for the test split (check 13). Typos: 'and and' (Sec. 1, Sec. 2.2).
Ablation: DR raises the mean 68.31->68.70 (QKH) and 68.93->69.06 (RDH) while cutting about 16 ms; RDH costs 1.4 ms over QKH and is the best head
Arithmetic holds: DR -16.5/-16.4 ms, RDH +1.4 ms over QKH, gains +0.39/+0.13 pp. Two caveats. (1) Depth reduction explains only 16.4 of the 571.6 ms gap to Qwen3.5-4B (2.9%); the full-depth decision model already runs at 129.8 ms (5.28x faster), so the speedup comes mainly from removing decoding. (2) Approximate SE of a mean-accuracy difference is 0.33 pp (95% half-width 0.65 pp); all head and depth differences (0.13-0.39 pp, z 0.4-1.2) are within noise, single seed, selected on the test set. "RDH best" and "DR costs no accuracy" are therefore not separable from equality.
Bar values taken from the figure PDF text layer; recomputed deltas; attributed the latency gap; approximate SE of a difference in unweighted mean accuracy using the Table A3 discordance rates as a proxy
HAM10000 per-category: MEL 146/171, BCC 71/93, NV 628/909; 25% of NV sent to MEL; accuracy concentrated where clinical cost is highest; errors mostly over-referral
Counts are consistent: 1,512 cases, 1,034 correct = 68.39% (matches Table 1); all recalls match the confusion diagonal. The interpretation is selective, though. Balanced accuracy is 60.16%. About 227 NV cases go to MEL against about 9 MEL to NV, so melanoma precision is only ~31% (30.9-31.9%). AKIEC (pre-malignant/malignant) recall is 5/43 = 11.6%, with 19% of AKIEC sent to benign BKL. "Concentrated where clinical cost is highest" therefore does not hold for AKIEC.
Per-class recalls and row percentages from the figure text layer; checked totals against Table 1; computed balanced accuracy, melanoma precision implied by row percentages, and AKIEC recall
Qwen3.5-4B on MedThinkVQA: median 0.35 s, p95 > 20 s, mean 1.84 s; 36 ms/token, 3 of 50 questions at 582-773 tokens / 21-28 s; Table A2 percentiles; MedJev median-p99 within 20 ms; case study 6.47x
36 ms x 582/773 tokens = 21.0/27.8 s (matches 21-28 s; p99 27,814 ms = 773 tokens). 3/50 = 6% > 5% supports p95 > 20 s, and a 94/6 mixture with a 0.35-0.5 s body gives a mean of 1.6-2.2 s, consistent with 1,842.8 ms. MedJev p99 - median = 12/16/18 ms; MedThink p99 625 ms; 408.1/63.1 = 6.468. Caveat: the median and percentiles come from 150-request (Table A2) or 50-request (Fig. 1b) subsamples, while means use the full test sets. The intro mixes these without saying so.
Arithmetic cross-checks of tokens x ms/token, tail fraction, mixture-model mean, percentile gaps and case-study ratio
Dataset counts: 174,360 train / 36,286 test; 5,449 updates; MedThinkVQA 7,347/720 cases, 5,845 test images (8.12/case, 2-47), 5,125 unseen under first-image protocol; PMC-VQA v2 test 33,430 QA over 29,021 figures; PneumoniaMNIST 4,708/624; ISIC2018 test 1,512.
All counts reproduce exactly: totals 174,360/36,286, ceil(174360/32)=5,449; PMC-VQA v2 test has 33,430 rows over 29,021 unique figures (no figure overlap with train_2.csv); MedThinkVQA has 7,347 train / 720 test cases, 5,845 test images (mean 8.118, min 2, max 47), 5,845-720=5,125. Minor: preprocessing silently drops 64 HAM10000, 10 PneumoniaMNIST, 40 MedThinkVQA and 199 PMC-VQA training examples (per-benchmark losses not reported); the "2 to 47 images" range holds for the test split only (train has 1-49, 121 single-image cases).
Arithmetic on claimed totals plus direct counts from the public files (RadGenome/PMC-VQA test_2.csv/train_2.csv; bio-nlp-umass/MedThinkVQA train/test parquet, metadata columns only).
MedJev keeps the full vision pathway and every visual token; no token is pruned or merged.
No tokens are pruned after the merger, and the 1,024/4,096 caps are disclosed in App. C. The budget does lower input resolution for many-image cases (47 images -> 87 tokens/image, ~298 px square; 8 images -> 512), but MedThinkVQA images are small (~0.23 MP), so in practice it binds in only 28/720 test cases (662/5,845 images) and removes 3.3% of the visual tokens the default processor would produce (1,271,797 vs 1,315,125). Caveat: calling this the "full" vision pathway is slightly loose, and the paper does not state the Qwen3.5 baseline resolution used for latency.
Tabulated the released budget rule per_image=max(64,min(1024,4096//M)) for M=1..47; applied it and the Qwen3.5-4B default processor size (up to 16,384 tokens/image) via transformers smart_resize to the real sizes of all 5,845 MedThinkVQA test images.
The environment in requirements.txt/README (torch 2.10.0, transformers 4.60.0, peft 0.17.1, flash-attn 2.8.3, huggingface_hub 0.35.3) is installable and runs the code.
transformers==4.60.0 does not exist on PyPI (HTTP 404; the 4.x line ends at 4.57.6, then 5.0.0-5.23.0), so pip install -e . fails because setup.py installs requirements.txt verbatim. The latest 4.x wheel has no qwen3_5 module, which readout.py and model.py import, so transformers 5.x is needed. But transformers 5.23 requires huggingface-hub>=1.31, which conflicts with the pinned huggingface_hub==0.35.3. And peft 0.17.1 fails to import with transformers 5.23 (ImportError: HybridCache). All other pins exist. No consistent pinned environment can run the released code as documented; it ran here only with transformers 5.23 and peft 0.21.3.
Queried PyPI JSON for every pin; inspected the transformers 4.57.6 wheel for models/qwen3_5; tried importing peft 0.17.1 with transformers 5.23.
The 60 bibliography entries exist and are correctly attributed, including the 2026 Jev-family preprints and blog posts used as related work and baselines.
50/60 entries resolve to matching titles via arXiv/Crossref. The other 10 are web pages (model cards, blogs, JMLR/PMLR pages; all HTTP 200) plus the Kahneman book. [52] supports both cited statements: over 70% of errors come from image reading and cross-view integration, and longer reasoning helps little when grounding is weak. [30] MJev-Spatial does score candidates with Qwen3.5-4B pretrained query/key projections, as cited; this makes it close prior art for the QK readout, which the paper acknowledges. Backbone attributions for d1-3B (LFM2.5-VL), Clef-Flash-9B and d3-flash-9B (Qwen3.5-9B) match their release pages. No reference problems found; work/ref_issues.json is empty.
Ran tools/check_refs.py; matched cited titles against arXiv/Crossref results; HTTP-checked web-only sources; pulled arXiv abstracts for load-bearing citations ([52] yao2026, [30] MJev-Spatial, Jev-family preprints) and page text of the baseline blogs/model cards.
Released checkpoint Karl28/MedJev-4B is a LoRA adapter plus markers, residual head and three readout norms, totalling 25,768,961 trained parameters, and runs with scripts/evaluate.sh (README Checkpoints).
All hashes match. The adapter is r=16/alpha=32 with 183 targets, including both merger layers, all 18 retained Gated-DeltaNet layers (in_proj_qkv/z/a/b, out_proj) and the readout q/k: 23,791,616 LoRA params. Head is 1,966,593, norms 3,072, markers 7,680; total exactly 25,768,961. The markers moved 29-48% (relative L2) from their <|im_end|> initialisation, so they were trained. The checkpoint therefore matches the paper and README, but it cannot have been produced by the released train.py: 92 of its 183 targets have leaf names outside MedJevConfig.lora_targets, and the released code freezes the markers (see check 04). The full evaluation entry point was not executed; check 06 shows its score readout does not compute Eq. (8).
Could not run evaluate.py end to end here: no CUDA, flash_attention_2 hard-coded, 8 GiB RAM. Instead downloaded the released checkpoint (103 MB), verified its SHA256SUMS, parsed the adapter safetensors header, loaded the .pt files with weights_only=True, and range-read the <|im_end|> row of the Qwen3.5-4B embedding from the Hub to test whether the markers were trained.
MedJev-4B vs Qwen3.5-4B: avg acc 61.13 -> 69.06 (+7.93), mean latency 685.03 -> 113.44 ms (6.04x); per-benchmark gains +9.99/+1.44/+15.56/+4.73 and speedups 3.51/4.13/7.35/5.74x
All gains and speedups attainable: e.g. avg acc 61.1307/69.0591 (gain 7.9285), mean latency 685.025/113.450 ms, ratio 6.038x. PMC 5.74x is only reachable at the edge of rounding (point value 372.7/65.0 = 5.734x, range [5.729,5.739]). Note: 4-benchmark latency mean is 67.3% MedThinkVQA for Qwen; with the 3 single-image benchmarks (the convention in evaluate.py and Table 2) the speedup is 4.42x, and mean of per-benchmark speedups is 5.18x.
Recomputed from Table 1 entries using exact k/n accuracies (n=1512/624/720/33430) and +-0.05 ms latency rounding intervals
Table 1 internally consistent: Avg = unweighted mean, bold/underline correct, MedJev best acc on all 4 and fastest on 3 + average; accuracies attainable as k/n; pooled full-coverage accuracy 62.33% (App. D.2)
No mean, rank, or k/n inconsistencies in any of 21 rows; MedJev bold in 9/10 columns (MedThinkVQA latency best is LLaVA-1.6-Vicuna-7B 139.2 ms, correctly marked). Pooled MedJev accuracy recomputed 62.33% = claimed 62.33%; it is ~92% PMC-VQA weighted (33,430/36,286). Fastest baseline LLaVA-1.5-7B 145.2 ms/21.79% and most accurate baseline Qwen3.5-9B 63.06%/5,579.8 ms confirmed.
Parsed all 21 rows from tab_main_results.tex; recomputed row means, column ranks, k/n feasibility (n=1512/624/720/33430) and pooled accuracy over 36,286 cases
Paired bootstrap (10k): HAM, MedThinkVQA, PMC gains exclude zero; Pneumonia +1.44 CI [-0.80, 3.69]; discordant counts 5,615 vs 4,035 (PMC), 221 vs 109 (MedThink)
(5615-4035)/33430 = 4.726% and 112/720 = 15.556% match +4.73/+15.56; implied both-correct counts consistent with Table 1 (153 MedThink; 15,003-15,005 PMC). Pneumonia CI [-0.80, 3.69] reproduced exactly with 30 vs 21 or 31 vs 22 discordant cases (plausible). HAM CI excludes 0 even at maximal discordance ([5.69, 14.29]); MedThink [10.69, 20.42]; PMC [4.16, 5.28]. Note the CIs are test-set resampling only and do not reflect training-seed variance (single seed).
Gains recomputed from discordant counts; percentile paired bootstrap (numpy seed 0, 10,000 resamples) on reconstructed paired outcomes; Pneumonia scan over discordant totals; HAM worst-case discordance bound
LoRA on the connector and all linear layers of the retained LM; markers, readout norms and residual MLP trained fully; released checkpoint = 25,768,961 trained parameters (README)
Released code selects 91 LoRA targets (q/k/v/o/gate/up/down only): no merger (connector) and none of the 18 retained Gated-DeltaNet layers (in_proj_qkv/z/a/b, out_proj; 92 modules skipped). get_peft_model also freezes MarkerEmbedding.markers and attach_lora never re-enables them (requires_grad=False), so markers are not trained. Code trains 17,100,289 params vs README 25,768,961. The gap is exactly 8,660,992 (LoRA r=16 on the 92 skipped modules) + 7,680 (3 markers x 2560), i.e. the paper/README description matches the checkpoint but the released training code does not reproduce it. Check 17 confirms this directly: the released Hugging Face checkpoint has 183 LoRA targets (including merger and linear-attention layers) and trained markers, totalling 25,768,961.
Built the real Qwen3.5-4B architecture on the meta device, installed MarkerEmbedding as add_markers does, applied released reduce_depth/ResidualReadout/attach_lora (peft 0.21.3) and counted trainable parameters; analytically counted LoRA on the skipped modules
Depth reduction cuts parameters from 4.44B to 3.55B (removed components = 20%); residual MLP adds 1.97M parameters (D=2560, hidden 256)
Residual MLP: 1,966,593 = 1.97M (confirmed). After reduction: 3,552,378,752 (3.55B; 3.554B incl. head) (confirmed). Before: the released code itself counts 4,539,265,536 = 4.54B, not 4.44B, so the removed share is 986.9M = 21.7%, not 20%. Likely a typo (4.44 vs 4.54); minor. Because embeddings are tied, dropping the vocabulary projection removes no parameters.
Instantiated the Qwen3.5-4B architecture (HF config) on the meta device with transformers 5.23 and applied the released reduce_depth and ResidualReadout, which report before/after counts
Released inference/training code obtains the per-candidate decision scores s_k (Eq. 8) as model(**inputs).logits[0, :, 0], with no final normalization or vocabulary projection (Sec. 3.2/3.4)
The readout output [1,K,1] still passes through Qwen3_5TextModel.norm (RMSNorm over a size-1 dim gives s/sqrt(s^2+eps), roughly sign(s)) and the tied lm_head, giving logits of shape [1,K,vocab]; logits[0,:,0] collapse to +-c (e.g. direct [0.0365,-0.3482,-0.1568] -> returned [0.2087,-0.2087,-0.2087]). Argmax agrees with Eq. (8) in only 180/200 fp32 trials (ties, 4 distinct values of 7). The CE gradient to the head is 2.9e-4 times the Eq.-(8) gradient, and softmax probabilities carry no calibration information. With the configured bf16 dtype, the forward raises dtype RuntimeErrors (fp32 head_mlp on bf16 features; fp32 readout scores into the bf16 lm_head). The released code therefore cannot have produced the reported accuracies, ECE, or training as written. Caveat: tested on transformers 5.23, because the pinned 4.60.0 does not exist.
Tiny random Qwen3_5ForConditionalGeneration (transformers 5.23, 32 text layers) with the released reduce_depth + ResidualReadout; compared returned logits[0,:,0] with qk_logits+mlp_logits computed from the hidden state entering the readout over 200 random inputs; gradient comparison; bf16 forward as configured
Loss weighting gives every benchmark the same total weight (factor pooled/(4*own): 4.38 HAM10000 ... 0.29 PMC-VQA) plus inverse class frequency within classification benchmarks
Paper factors reproduce (4.38, 9.28, 5.97, 0.29). But the released train.py implements only within-benchmark inverse class frequency: per-example mean weight is 1.000 in every benchmark, so loss shares are HAM 5.71%, Pneumonia 2.69%, MedThinkVQA 4.19%, PMC-VQA 87.41% instead of 25% each. Either the released code is not the code that produced the checkpoint, or the paper description is wrong.
Recomputed factors from Table A-config counts; called the released source_weights/example_weight on synthetic records with the stated per-benchmark sizes and computed each benchmark share of total loss weight
Candidate-order robustness: mean 69.06 -> 68.10; lost 1.6/0.0/13.1/9.4%; largest single drop 2.03% (MedThinkVQA); PMC net loss 1,381 of 100,290 draws
Table A3 is internally consistent (Kept+Lost = 3x native correct and Kept+Gained = permuted totals for all four benchmarks; mean 68.097 -> 68.10; PMC 5,845-4,464 = 1,381 of 100,290). Two minor reporting slips: (i) HAM lost rate is 48/3,102 = 1.55%, shown as 1.6 in Fig. 5(b) (rounds to 1.5); (ii) App. D.3 calls 2.03% the largest single drop, but per-seed drops on MedThinkVQA are 2.08/1.94/2.08 (374 -> 359 correct); 2.03 is the seed-averaged drop. Conclusions unaffected.
Recomputed from Table A3 via exact k/n counts: Kept+Lost vs 3x native correct, Kept+Gained vs summed permuted correct, spreads, lost rates, means and drops
Released decision models (Table 2 / A1): MedJev leads mean by 11.20, only d1-3B faster, Avg/Lat columns correct, d1-3B at constant-class floors, MedJev leads floors by 8.27 (HAM) and 31.73 (Pneu); MedJev numbers consistent with Table 1
All Table 2 summary numbers reproduce (lead 11.20, only d1-3B faster, 3/4 wins, OmniMed +0.80, floors 60.12%/62.50%, leads 8.27/31.73, d1 HAM 906 vs 909 cases). Cross-table inconsistency for the same MedJev-4B checkpoint: PMC-VQA (single-image, input identical under the first-image protocol) is 61.68% in Table 1 (20,618-20,621 correct) but 61.66% in Table A1 (20,612-20,614), and single-image latencies differ by 14-27% (73.3/64.8/65.0 vs 64.3/50.9/55.1 ms). First-image MedThinkVQA latency (260.6 ms) exceeds the all-image latency (250.7 ms). Sec. 4.3.5 says the 3-benchmark latency is computed as in the main table, but Table 1 averages all four. First-image accuracy 373/720 vs all-image 374/720: the model gains one case from the extra images.
Recomputed Table 2 from Table A1 rows, k/n feasibility, ranks, majority floors from ISIC2018 test (NV 909/1512) and PneumoniaMNIST test (390/624); compared MedJev entries across Table 1 and Table A1