Ocula: Active Sparse Perception Makes Better Visual Encoders

Bixing Wu1,* Chenghan Yang2,* Lihe Yang3 Yujia Zhang3 Xiaoyang Wu3,† Hengshuang Zhao3,
1 Zhejiang University 2 Tsinghua University 3 The University of Hong Kong
* Equal contribution † Project lead Corresponding author
Human Eyes
Ocula
01 Overview

Uniform grids waste compute.
Learned gaze reallocates detail.

Typical video encoders spread patches uniformly across every frame, trading off spatial detail, frame rate, and temporal span⁠—and token pruning still pays the full dense vision cost before dropping tokens. Ocula allocates resolution before encoding: the encoder uses its own sparse observations to steer learned gaze on the next input, keeping fine detail near gaze and coarse coverage of the full frame under a fixed patch budget. The result is a question-independent representation, reused for every question about the clip.

Visual compute savings
75.5%

Fewer visual FLOPs per frame pair than token pruning baselines (55.5 vs. 226.7 GFLOPs).

Fixed sparse budget
4×

Fewer input patches (64 vs. 256) and LLM visual tokens (16 vs. 64) per pair.

Perception Test accuracy
68.53%

Within 0.52 pts of Dense Uniform (69.05%) at one quarter of the visual budget.

Beats fixed Center
8 / 8

Controlled wins across all 8 video QA benchmarks (39,141 questions) with encoder and budget fixed.

02 Gaze Lens

Move the gaze.
See the resolution shift.

Ocula resamples each frame with a boundary-preserving Cauchy–Moser density flow, so every patch carries equal sampling mass. Drag across the frame or change the warp strength α to compare the effective resolution kept around the gaze against uniform sampling at the same 60-patch budget⁠—shown undistorted, in source space.

0.43
Source frame · foveated layout Gaze (0.47, 0.42)

Equal-mass cells. They shrink near the gaze and widen in the periphery⁠—finer pixels inside the lens, coarse context everywhere else. On this 5:3 frame, the nominal 64-patch budget is fitted to a 10 × 6 grid.

Ocula foveated · 60 patches
×1.95 density
Uniform same 60-patch budget
×1.00 density
03 Method

One closed loop.
Question-free.

Each sparse encoder pass serves two roles at once: tapping intermediate features from blocks 8 and 14 for a 2.72M-parameter recurrent gaze predictor (0.9 ms), and emitting visual outputs Zt accumulated into a clip representation 𝒱T reused across all questions by the frozen LLM.

Frame pairsIt, It+1, … WarpMoser flow Foveated patches64 · regular grid Visual encoderQwen3-VL ViT · LoRA Merger4 → 1 token Representation𝒱T Frozen LLMreused by every question 𝒲 ··· ··· ··· Block 8 Block 14 2×2 16 / pair LLM Q₁ Q₂ Q₃ Gaze predictor recurrent memory · 2.72M Ft 2304-d gt+1

Foveated resampling. Given gaze gt, the boundary-preserving Moser density flow resamples both frames of pair It under a fixed 64-patch budget⁠—dense near gaze, coarse in the periphery, full-frame coverage preserved.

Equal sampling mass, adaptive spatial resolution.

A continuous sampling density ρg(p) combines a uniform background with a Cauchy profile at gaze g, compensated near frame edges to preserve unit mean and peak density. A boundary-preserving Moser flow solves for equal-mass patch footprints:

1 |Ω| ∫ Aj(g) ρg (p) dp = 1N
(2)
Density kernelCauchy (r = 0.10)
Flow solver2D DCT-II + 32 RK4
Default warp strengthα = 0.43
Spatial indexingFractional source coords

Transsaccadic memory and anchored box decoding.

Because foveated patches correspond to varying source footprints, block 8 & 14 features are augmented with source position, log width/height, and gaze-relative offset. Four time-gated memory slots accumulate context across saccades; greedy box routing + anchored logit-space decoding supports both small refinements and long jumps:

j* = argmax j at,j , gt+1 = ℓt,j* + wt,j* ⊙ sigmoid ( bt,j* + δt,j* )
(3)
Visual tapsViT blocks 8 & 14 (2304-d)
Memory state4 slots + 8×8 gaze map
Parameters / Cost2.72M · 0.9 ms / pair
Episode startReset state + centered gaze

Two-stage adaptation and ranked supervision.

Stage 1 adapts Qwen3-VL's visual encoder via LoRA on foveated views while keeping the LLM frozen. Stage 2 trains the gaze predictor on reciprocal-rank weighted targets from an offline vision-language teacher, annealing teacher forcing to 0.0 so the predictor learns from its own observations.

ℒgaze,t = − ∑j ηj log πj − ∑ j:ηj>0 ηj log ( ∑ i∈ℐj ωiηj ϕj (zi) )
(4)
Stage 1 LoRAr = 32 · 17.7M params
Language modelFrozen
Ranked supervision385,246 decisions
Teacher forcing0.5 → 0.0 linear anneal
04 Demos

Saccades. Local tracking. Revisits.
Without ever seeing a question.

Driven only by what it has already seen, Ocula alternates between long saccades across interacting actors, local refinements around fine structure, and timely revisits as events unfold⁠—preserving answer-relevant detail under a fixed 64-patch budget.

Autonomous gaze α 0.43 · 64 patches
Resolution at the gaze
Ocula gaze Saccade Teacher target

Long saccade & revisit. Ocula alternates between the near player and far player across successive 0.6 s pairs⁠—bringing each strike into fine view while retaining full court context for trajectory tracking.

05 Results

Stronger accuracy.
A fraction of the vision cost.

Evaluated across 8 video QA benchmarks (12,993 clips, 39,141 questions) at the same LLM visual-token budget. Token pruning reaches that budget by encoding all 256 patches and then dropping tokens; Ocula encodes only 64.

Video QA accuracy at the same token budget

Perception Test · Visual perception · 19,140 questions

All methods share a nominal budget of 16 LLM visual tokens per frame pair. Δ is Ocula minus each method, in points. Dashed line: Dense Uniform, 256 patches and 4× tokens.

Visual compute

Per frame pair · RTX 4090 · bf16

4.09× fewer FLOPs
Vision · Ocula 17.9 ms
Gaze selector 0.9 ms
Answer · 1× tokens 141 ms
Answer · dense 4× 355 ms

Reallocating the budget, no retraining

Patches per pair × pair interval, varied at test time · Ocula vs. fixed Center

Default operating point. Ocula beats fixed Center on all 8 benchmarks with the same encoder, warp strength, and schedule.

BibTeX

@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}
}