Ocula-Qwen3-VL-8B
Project Page · Paper (arXiv:2612.02359) · Code (hku-sail/Ocula) · 4B Checkpoints (Ocula-ASP/Ocula-Qwen3-VL-4B) · Training Data (Ocula-ASP/Ocula-Train) · Collection
Ocula-ASP/Ocula-Qwen3-VL-8B is the main checkpoint release of Ocula: Active Sparse Perception Makes Better Visual Encoders. Rather than encoding dense video frames and pruning tokens afterward, Ocula uses gaze-guided foveated sampling ($\alpha = 0.43$, 64 patches / 16 LLM visual tokens per frame pair; Cauchy density profile mapped by a boundary-preserving Moser-type density flow) and a 2.72M-parameter recurrent gaze predictor (0.9 ms) to allocate spatial resolution before encoding. Acquisition is question-independent: a video representation is acquired once per clip and reused across multiple-choice and open-ended queries without re-running the visual encoder or gaze predictor.
Release Files & Identity
Ocula ships two standalone PyTorch checkpoint dictionaries (weights_only=True safe) verified by SHA-256 against a pinned revision of Qwen/Qwen3-VL-8B-Instruct:
| Artifact | Size | SHA-256 / Identity Digest | Description |
|---|---|---|---|
Qwen/Qwen3-VL-8B-Instructrevision 0c351dd01ed87e9c1b53cbc748cba10e6187ff3b |
16.34 GiB(14 files) |
weights_identity:3a5b3c410c6a4ad1a438ecd6f03568d8e891e530287ad0a2181ba569f9dbc6af |
Pinned upstream base model (language model, patch stem, and ViT grid positional encoding remain frozen) |
vision_lora.pt |
67.57 MiB |
9d19e057f13573a8a897e71254bae9744772606f673ed3bf1be64bec1ddcd3b2 |
Stage-1 rank-32 LoRA (lora_alpha = 64) on all 27 visual blocks and DeepStack mergers (5,188 updates) |
predictor.pt |
10.40 MiB |
32e26c19ac5762f83cd24e1633eb7939a62c58f857eee1186750d003d6169c25 |
Stage-2 GazePredictor (2,719,265 params, feature_dim = 2304, ViT blocks [14, 8], pixels = 16384, alpha = 0.43, 10,000 updates) |
Quick Start
Install hku-sail/Ocula (Python >= 3.11, PyTorch >= 2.8, transformers == 4.57.6):
from ocula import OculaPipeline
pipe = OculaPipeline.from_pretrained("Ocula-ASP/Ocula-Qwen3-VL-8B")
rep = pipe.observe("path/to/video.mp4") # question-independent active sparse perception
print(pipe.ask(rep, "Describe the main action and fine-grained object interaction.").answer)
print(pipe.ask(rep, "Which label is on the box?", options=["A. FRAGILE", "B. THIS SIDE UP"]).answer)
Results & Efficiency (Tables 1–3)
Evaluated across 39,141 questions on 12,993 clips across 8 video QA benchmarks (64 nominal input patches and 16 LLM visual tokens per frame pair at $\alpha = 0.43$, 0.6 s nominal pair interval).
Token Pruning, Patch Selection & Visual Compute (Tables 1 & 3)
| Method | Patches | Tokens | GFLOPs | HRVideoBench | MME-VideoOCR | Perception Test | TOMATO | MotionBench | TempCompass | NExT-QA | Video-MME |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Dense Uniform | 256 | 4× | 226.7 | 51.50 | 56.32 | 69.05 | 33.56 | 57.75 | 72.59 | 81.78 | 68.26 |
| Average Pooling | 256 | 1× | 226.7 | 48.50 | 46.98 | 62.89 | 30.39 | 53.12 | 71.39 | 78.58 | 62.96 |
| Medoid Selection | 256 | 1× | 226.7 | 50.50 | 49.93 | 66.18 | 31.20 | 55.14 | 70.70 | 79.75 | 63.96 |
| Random Drop | 256 | 1× | 226.7 | 51.50 | 49.66 | 66.93 | 29.51 | 53.95 | 69.18 | 79.51 | 64.15 |
| EVS | 256 | 1× | 226.7 | 52.50 | 53.02 | 66.54 | 30.12 | 54.42 | 69.11 | 79.34 | 66.19 |
| DivPrune | 256 | 1× | 226.7 | 53.00 | 50.55 | 66.51 | 30.80 | 55.07 | 69.18 | 79.57 | 65.48 |
| V-CAST | 256 | 1× | 226.7 | 53.50 | 49.73 | 66.83 | 30.73 | 54.54 | 69.81 | 79.17 | 64.33 |
| AutoGaze | 144 | 1× | — | 49.50 | 43.20 | 58.06 | 25.00 | 48.34 | 58.42 | 76.33 | 53.85 |
| OneVision | 64 | 1× | — | 48.00 | 44.51 | 60.31 | 28.37 | 52.65 | 69.30 | 79.26 | 58.96 |
| Ocula (Ours) | 64 | 1× | 55.5 | 50.50 | 49.31 | 68.53 | 34.57 | 56.46 | 70.25 | 80.09 | 62.30 |
Gaze Placement at a Fixed 64-Patch Budget (Table 2)
| Method | Patches | Tokens | HRVideoBench | MME-VideoOCR | Perception Test | TOMATO | MotionBench | TempCompass | NExT-QA | Video-MME |
|---|---|---|---|---|---|---|---|---|---|---|
| Uniform | 64 | 1× | 51.00 | 45.47 | 62.22 | 30.59 | 53.02 | 69.75 | 76.93 | 62.44 |
| Center | 64 | 1× | 49.00 | 46.36 | 66.79 | 33.83 | 55.64 | 69.49 | 79.16 | 61.37 |
| Random | 64 | 1× | 48.00 | 48.28 | 66.78 | 33.69 | 55.76 | 70.76 | 79.19 | 61.96 |
| Ocula (Ours) | 64 | 1× | 50.50 | 49.31 | 68.53 | 34.57 | 56.46 | 70.25 | 80.09 | 62.30 |
- Streaming efficiency (RTX 4090,
bfloat16, batch size 1):55.5 GFLOPsper frame pair (75.5%fewer visual FLOPs than226.7 GFLOPsdense encoding and token pruning),17.9 msvision sampling + encoding,0.9 msgaze prediction, and141 msper-question answer (2.5×faster than355 msDense Uniform). - Peak memory (NVIDIA L40S,
bfloat16,fastCUDA Graph runtime):16.58 GiBpeak allocated GPU memory (16.86 GiBreserved).
Limitations & Scope
- Sparse-budget trade-offs: Ocula encodes
64patches (16LLM visual tokens) per frame pair independently of downstream questions. Tasks dominated by dense scene text dispersed across many regions or fine global detail across long videos may benefit from higher spatial budgets (128–256patches, adjustable online without retraining) or post-encoding token pruning at4×visual compute. - Contract binding:
vision_lora.ptandpredictor.ptenforce SHA-256 identity checks againstQwen/Qwen3-VL-8B-Instruct @ 0c351dd01ed87e9c1b53cbc748cba10e6187ff3b.
License & Citation
Released under Apache-2.0; upstream Qwen/Qwen3-VL-8B-Instruct is distributed by the Qwen Team under Apache-2.0.
@article{wu2026ocula,
title = {Ocula: Active Sparse Perception Makes Better Visual Encoders},
author = {Wu, Bixing and Yang, Chenghan and Yang, Lihe and
Zhang, Yujia and Wu, Xiaoyang and Zhao, Hengshuang},
journal = {arXiv preprint arXiv:2612.02359},
year = {2026},
url = {https://arxiv.org/abs/2612.02359}
}
Model tree for Ocula-ASP/Ocula-Qwen3-VL-8B
Base model
Qwen/Qwen3-VL-8B-Instruct