Typed Programs over Frozen Sensors for Metric 3D Question Answering on Aerial Images
1Anhui University2Shenzhen University3Anhui Normal University
Inside the lens every 2 m cell rises to its height above ground.
Shown only the image, ten open-weight vision-language models answer 28% to 45% of the AltiBench questions, near the 33% of always giving the most common answer; the frontier models reach 60% and 62%. Handed our measurements, GPT-6.1 Terra reaches 74.2%, 1.7 points above HeightProg's 72.6% with a 4B writer.
AltiBench test sets, Switzerland and France pooled, 2,889 questions. Whiskers: 95% intervals over tiles.
Given the same measurements, GPT-6.1 Terra ties or nearly ties HeightProg on most types. Its lead comes from mean tree height and slope order, where the sensor returns 73% of the reference tree height at the median and the 30 m ground is coarse.
Without training, HeightProg answers 74.6% of Geo3DVQA, 18 points above GPT-6.1 Terra on the image and 19 above the fine-tuned model reproduced on its 100K training questions.
Geo3DVQA test set, 10,232 questions, official scorer. Published rows as reported by the Geo3DVQA authors.
Bold: best per category, excluding the constant. Land use and land-cover type fall back to a training constant.
A frozen monocular estimator turns the image into metric layers, and a global 30 m elevation model adds the ground. A text-only language model writes one typed GeoDSL program from the question alone; a checker rejects ill-typed programs, and a deterministic executor computes the answer.
one aerial photo, 1 m per pixel
frozen, read the photo once
Qwen3-4B, the question text only
types and height degrees
runs the program on the layers
Real development questions, one per type: 14 of the 15 types (mean tree height is in the gallery). Reference answers come from LiDAR; ours from the predicted layers.
Cyan layers come from the height sensor, violet from the ground, grey from the image. Pick one.
Pick one.
The sky view factor depends on how tall the walls around a point are and how far away they stand, which the photograph does not show. Raise the wall.
The estimator's error is mostly a scene-wide stretch and shift, ĥ = a·h + b. A comparison sees the same distortion in every option and survives; a number absorbs all of it. Drag the sliders.
Grey band: the benchmark's tolerance, max(2 m, 20%).
Every term gets a degree in height: masks 0, object heights 1, ground and sky view none. A pick needs a defined degree and a value degree 0, so an answer in metres with degree 0 cannot have read a height.
Let the same writer compose the same functions as a VisProg-style step list or in ViperGPT-style free Python, and accuracy drops by 13 to 16 points on AltiBench and by 3 to 36 on Geo3DVQA: the programs compute the wrong quantity or return malformed answers, which types would have stopped. At street level, where most questions need one call, the drop is under two points. Free Python needs a large writer and typed programs do not: with DeepSeek-V4.1-Flash writing all three forms, the two are level at 75%, and our 4B writer costs free Python 19 points and typed programs 2.
Test sets, Geo3DVQA on its ten program categories. Paired differences against HeightProg; whiskers: 95% intervals.
Swap the height sensor for a monocular depth model and the aerial functions for ten scene functions, keep the writer, and ask SpatialRGPT-Bench's questions. HeightProg answers 82.0%, 14.0 points above GPT-6.1 Terra on the image alone; given the same depth measurements, GPT-6.1 Terra reaches 82.2%.
SpatialRGPT-Bench, our test split of 1,018 questions. Whiskers: 95% intervals over images.
Size has degree 3 in the depth scale and every other scene function degree 1. The scale check marks 565 test answers, all of which read the depth.
Models trained for spatial questions stay ahead on comparisons and object sizes. Without any training, the program leads on all three distances.
† As published, on all 1,406 questions with a GPT-4 judge; indicative, not a paired comparison.
2,889 test questions of 15 types on 120 one-kilometre tiles in six Swiss and six French areas, from city centres to Alpine valleys, computed from airborne LiDAR and national topographic maps.
Drawn at random, not picked by outcome. Hover for the reference layer; click to enlarge.
One column per question type of the three benchmarks, filled to the test accuracy. Cyan caps read only the estimated height or depth; violet caps also read the elevation model.
The emptiest columns are real: mean tree height on AltiBench, and widths at street level.
We drew 379 test questions of four new composite types with the reference layers and margins of AltiBench. No prompt, note or example covers them. HeightProg answers on predicted maps and writes the defined program for .
Tree questions are the weakest: most tree-volume programs take the mean tree height without the cover.
Every rule and setting was chosen on development splits that share no tile with the test sets.
@article{heightprog2026,
title = {HeightProg: Typed Programs over Frozen Sensors for Metric 3D
Question Answering on Aerial Images},
author = {Jiang, Yuhang and Deng, Guohui and Hu, Zhongwen and Wang, Nan and Ma, Jian},
journal = {arXiv preprint arXiv:2611.38730},
year = {2026}
}