Q‑GeoMem Question‑Guided Geometric Memory for Video Spatial Reasoning

  1. Xianqiang Gao*,1,2
  2. Qizhi Chen*,2
  3. Delin Qu2
  4. Haoming Song2
  5. Zhigang Wang2
  6. Bin Zhao2,3
  7. Dong Wang2
  8. Xuelong Li4
  • 1University of Science and Technology of China
  • 2Shanghai AI Laboratory
  • 3Northwestern Polytechnical University
  • 4TeleAI

*Equal contribution

Q-GeoMem motivation: question-guided geometric evidence management.
Memory as question‑guided geometric evidence management. For a question such as “How many chairs are in this room?”, camera‑conditioned geometry grounds frame features, question relevance identifies task‑useful observations, and novelty discourages redundant long‑range evidence.

Abstract

Video spatial reasoning requires accumulating viewpoint‑dependent evidence over time while retaining information useful to the question being asked. Existing spatial video‑language models improve geometric perception and long‑range context modeling, but often treat memory as a generic temporal cache, which can introduce redundant or irrelevant geometry and weaken long‑horizon reasoning. We propose Q‑GeoMem, a question‑guided geometric memory framework for video spatial reasoning. Q‑GeoMem injects camera‑conditioned geometry into visual tokens and maintains two complementary memories: a Fine‑Grained Context Bank for recent dense features and camera states, and a Semantic‑Geometric Evidence Bank for compact long‑range evidence. Each candidate frame is assigned a calibrated Q‑Former‑based question relevance score, while novelty and evidence utility are recomputed with respect to the active evidence bank. The resulting relevance–novelty utility is used for capacity‑based replacement and as an attention bias during memory reading. During reasoning, both memories are read before update and adaptively fused with the current frame representation. Experiments on VSI‑Bench and VSTI‑Bench show that Q‑GeoMem achieves state‑of‑the‑art performance among evaluated spatial reasoning models, and ablations verify the contribution of the proposed evidence scoring mechanism.

Memory‑Centric Formulation

We recast video spatial reasoning so that camera‑conditioned geometry, question relevance, and novelty jointly decide what evidence should be retained.

Unified Architecture

Camera‑guided geometry fusion, a Fine‑Grained Context Bank for recent dense evidence, and a Semantic‑Geometric Evidence Bank for compact long‑range evidence, with adaptive fusion of memory readouts.

Relevance × Novelty

Selecting memory entries by both question relevance and novelty yields a more effective memory mechanism than treating memory as a chronological cache.

Interactive

See the memory think

The same egocentric video, viewed through multiple lenses of Q‑GeoMem. Switch the question to watch per‑frame relevance reshape, then step through streaming to watch novelty drive eviction in the evidence bank.

01 Question‑Guided Relevance

Each video keeps its own 32-frame axis. Switch questions within a video to watch the relevance curve interpolate between object-specific evidence.

Question relevance ri — how useful frame i is for the selected question
Question relevance ri — how useful frame i is for the selected question

02 Novelty & Eviction in SGEB

For the Bed dimension question, stream the video frame‑by‑frame. Each candidate is scored by novelty ν = 1 − max sim against the active bank; the relevance–novelty utility w = r·ν drives capacity‑based replacement.

Play/Pause
Step
Reset
Incoming frame
Press play or step to start streaming.
Semantic‑Geometric Evidence Bank capacity K = 6 · 0 stored
Stored-frame utilities are recomputed against the current bank at every step.
Incoming candidate history
novelty νt utility wt = r·ν right scale evicted entry
Approach

How Q‑GeoMem works

Camera‑guided geometry fusion injects spatial cues into frame tokens; two complementary banks then read evidence before writing, and adaptive fusion combines both readouts with the current frame.

Q-GeoMem architecture overview.
Overview. (a) Camera‑Guided Geometry Fusion grounds frame tokens with camera‑conditioned geometry. (b) Question‑Guided Geometric Memory maintains the Fine‑Grained Context Bank and the Semantic‑Geometric Evidence Bank, where Q‑Former‑based relevance rt and bank‑relative novelty νt compose the evidence utility wt.
CGGF

Camera‑Guided Geometry Fusion

The visual stream attends to camera‑conditioned geometry through a reliability gate, so that both banks operate on spatially grounded features fh,t.

FGCB

Fine‑Grained Context Bank

A sliding window of recent dense features and camera states. Camera‑feature differences modulate the read attention, supporting local, view‑dependent details.

SGEB

Semantic‑Geometric Evidence Bank

A fixed‑capacity bank of compact entries. Calibrated relevance r and novelty ν form the utility w = r·ν, used as a read‑time attention bias and for eviction.

Experiments

State‑of‑the‑art spatial reasoning

Q‑GeoMem achieves the best average score among evaluated spatial reasoning models on VSI‑Bench and VSTI‑Bench, while the same memory design transfers to out‑of‑distribution spatial, 3D QA, and long‑form video benchmarks.

71.2
VSI‑Bench avg.
+10.3 over VLM‑3R
67.8
VSTI‑Bench avg.
+9.0 over VLM‑3R
84.0
Camera Mov. Dir.
best non‑human
+34.5
Appearance Order
vs. VLM‑3R

VSI‑Bench

Method Avg. Obj. Cnt. Abs. Dist. Obj. Size Room Size Rel. Dist. Rel. Dir. Route Plan Appr. Order
Gemini‑1.5 Pro45.456.230.964.143.651.346.336.034.6
InternVL3‑78B48.571.253.744.439.555.939.528.954.5
VLM‑3R‑7B60.970.249.469.267.165.480.545.440.1
VLM2‑7B68.872.559.670.869.969.087.852.668.3
Q‑GeoMem (Ours) 71.274.859.976.575.371.187.250.074.6

VSTI‑Bench

Method Avg. Cam‑Obj Abs. Dist. Cam. Displace. Cam. Mov. Dir. Obj‑Obj Rel. Pos. Cam‑Obj Rel. Dist.
GPT‑4o38.229.523.437.358.142.5
LLaVA‑NeXT‑Video‑72B44.032.310.548.178.350.9
VLM‑3R‑7B58.839.439.660.686.568.6
VLM2‑7B65.343.144.176.887.774.9
Q‑GeoMem (Ours) 67.844.344.684.091.074.9

Out‑of‑Distribution Generalization

Adding SGEB consistently improves transfer on video spatial reasoning, situated 3D scene QA, and general long‑form video understanding benchmarks.

Model SPBench‑MV MMSI‑Video SQA3D VideoMME EgoSchema
Q‑GeoMem (w/o SGEB)69.0323.9749.4359.7749.81
Q‑GeoMem (Ours)72.6125.4950.3860.9653.11
Gain+3.58+1.52+0.95+1.19+3.30

Core Component Ablation on VSI‑Bench

Model Avg. Obj. Cnt. Abs. Dist. Obj. Size Room Size Rel. Dist. Rel. Dir. Route Plan Appr. Order
LLaVA‑NeXT‑Video‑7B ft. (Baseline)64.8371.9151.4775.3870.5667.3272.0942.2767.64
Baseline + CGGF67.2872.0756.1374.4972.4368.1781.4745.3668.12
Baseline + CGGF + FGCB67.9271.7055.9775.4773.7566.4884.6246.9168.45
Baseline + CGGF + FGCB + SGEB71.1774.7659.8976.5575.2871.1387.1850.0074.60

Camera‑Delta Read Modulation

Model VSI Avg. VSI Short VSI Mid VSI Long VSTI Avg. VSTI Short VSTI Mid VSTI Long
Q‑GeoMem (w/o SGEB), w/o Camera‑Delta66.5768.9167.6664.5051.1751.0851.3951.60
Q‑GeoMem (w/o SGEB)67.9270.5569.4365.3352.2453.2552.1652.32
Gain+1.35+1.64+1.77+0.83+1.07+2.17+0.77+0.72

SGEB Policy and Capacity

Policy Update Rule Read Bias VSI Avg. VSI Long
FIFOevict oldestnone68.766.3
QRel‑onlyevict min rβr69.368.2
Novelty‑onlyevict min νβν68.967.3
Q‑GeoMemevict min rνβrν71.270.1
Gain vs. FIFO+2.5+3.8
K VSI Avg. VSI Long
469.067.1
871.270.1
1668.466.9
2469.568.3
3267.966.2
Length-based memory diagnostics for Camera-Delta modulation and SGEB memory strategy.
Length‑based memory diagnostics. Camera‑Delta modulation improves FGCB readout on VSTI‑Bench, while SGEB outperforms FIFO memory on VSI‑Bench with larger gains on longer videos.
Question-conditioned SGEB evidence selection on the same video for bed and TV dimension questions.
Question‑conditioned SGEB evidence selection. On the same video, Q‑GeoMem retains different long‑range evidence for bed and TV questions, showing that SGEB stores question‑relevant and non‑redundant observations.

BibTeX

@article{gao2026qgeomem,
  title   = {Q-GeoMem: Question-Guided Geometric Memory for Video Spatial Reasoning},
  author  = {Gao, Xianqiang and Chen, Qizhi and Qu, Delin and Song, Haoming and Wang, Zhigang and Zhao, Bin and Wang, Dong and Li, Xuelong},
  journal = {arXiv preprint arXiv:2605.27318},
  year    = {2026}
}