Aerial images3D questionsTraining-free

Typed Programs over Frozen Sensors for Metric 3D Question Answering on Aerial Images

Yuhang Jiang1Guohui Deng1Zhongwen Hu2Nan Wang3Jian Ma1

1Anhui University2Shenzhen University3Anhui Normal University

Vision-language models cannot read height off an aerial image. HeightProg measures it with frozen sensors and computes the answer in a typed program: 74.6% on Geo3DVQA without any training, above the best fine-tuned model.

HeightProg
lens

Inside the lens every 2 m cell rises to its height above ground.

Move the lens; − and + resize it. Pick a question, or click the map, to run its program on the layers. A real AltiBench development tile (Grenoble); heights from airborne LiDAR.
0%
on Geo3DVQA without training, 18 points above GPT-6.1 Terra on the image
0%
on AltiBench without training, 10 points above every image-only model
−0 pts
when the same writer composes the same functions in free Python
0
questions in AltiBench, answered by airborne LiDAR in 12 Swiss and French areas

Models fail at measuring, not at reasoning

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.

OursBaselines

AltiBench test sets, Switzerland and France pooled, 2,889 questions. Whiskers: 95% intervals over tiles.

Measure first, then reason in code

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.

01Image
The aerial tile of the selected question

one aerial photo, 1 m per pixel

02Sensors

frozen, read the photo once

03Writer

Qwen3-4B, the question text only

04Checker

types and height degrees

05Executor

runs the program on the layers

Question
Program

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.

Each layer and function holds one measured quantity

Cyan layers come from the height sensor, violet from the ground, grey from the image. Pick one.

Layers
Functions

mean

Pick one.

One layer at work: the sky a wall hides

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 wall rises
18 m
Distance to it
12 m
0.00sky view factor
share of the sky dome left open
value(at(SVF, o), step=0.1)

Comparisons survive a biased sensor; absolute values do not

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.

Stretch a
0.55
Shift b
0 m

Grey band: the benchmark's tolerance, max(2 m, 20%).

Across four height estimators, the 113 scale-invariant answers that read heights vary by at most 7 points, against 20 to 21 for unmarked answers.

The degrees also catch wrong programs

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.

More freedom, less control

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.

The same split holds at street level

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%.

OursBaselines

SpatialRGPT-Bench, our test split of 1,018 questions. Whiskers: 95% intervals over images.

The law, again

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.

Without training

Models trained for spatial questions stay ahead on comparisons and object sizes. Without any training, the program leads on all three distances.

Full table
Per question type

† As published, on all 1,406 questions with a GPT-4 judge; indicative, not a paired comparison.

AltiBench: answers computed from LiDAR, not written by hand

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.

The six Swiss areas, 245 m to 2,425 m above sea level

Every question type, side by side

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.

ALL TYPES37types shown

The emptiest columns are real: mean tree height on AltiBench, and widths at street level.

Four types no prompt has seen

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.

What a single camera cannot tell

  • The 30 m elevation model is coarse: slope order on AltiBench reaches 67.7%, against 89.7% on reference maps.
  • The height sensor returns 73% of the reference tree height at the median, and many tree-height programs compute another quantity: mean tree height scores 19.3%.
  • Fine-tuning does not carry over: the fine-tuned Geo3DVQA model, reproduced, scores 55.6% there and 27.8% on AltiBench.
Cost on one RTX 3090
Protocol

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