r/computervision • u/tenkei_01 • 2d ago
Research Publication Gemma-3-4B on standard vision tasks: strong caption scores, weak localization
Following up on my Qwen3-VL benchmarks, this time I tested Gemma 3 4B Instruct on the same seven vision tasks.
The setup: 100 samples per task, local Hugging Face Transformers on Apple MPS, bfloat16, greedy decoding, and a 4,096-token output cap. Structured JSON was requested through prompting, with no correction retries. Failed responses stay in the scoring denominators.
Here the summary of model performance on the tasks:
| Task | Dataset | Metric | Gemma 3 4B |
|---|---|---|---|
| Classification | CIFAR-10 | Top-1 accuracy | 84% |
| Detection | COCO128 | F1 @ IoU 0.5 | 2.09% |
| Box grounding | RefCOCOg | Accuracy @ IoU 0.5 | 3% |
| Point grounding | RefCOCOg | Point inside target box | 30% |
| Attributes | OVAD object crops | Categorical accuracy | 59.82% |
| Visual question answering | VQA v2 | VQA accuracy | 39% |
| Captioning | COCO Captions 2017 | ROUGE-L | 0.4729 |
A few things stood out compared to previous benchmarks:
- Captioning was the strongest result. Gemma 3 4B has the highest ROUGE-L in the current report, with CIDEr 0.8466 as well.
- Localization was very weak. Detection precision was 4.67%, recall 1.35%, and box grounding mean IoU 10.84%.
- Good at outputting structured output: Although model missed most of the boxes, still the Box grounding had zero response-validation failures. Making this model a good base for further fine tuning for tasks that required box output.
Code, runs, benchmarks all available at https://github.com/Tenkei/vlm-tasks
Previous model profiles and follow-ups: