Answer it, or compute it?

A small language model reads a driving scene as a list of objects. Ask it to reply directly and it guesses. Ask it for a program and an executor does the counting.

 

Direct answer  
Program, then executor    

Bird’s-eye view with 10 m rings, drawn over the real LiDAR sweep and the nuScenes annotations. The outputs are saved Qwen2.5-1.5B answers on held-out questions, scored the way the released answers are. The program is not always right.

Nassim Arifette, PhD student at École polytechnique
Master MVA, NPM3D course, ENS Paris-Saclay
LiDAR-LLM, NuScenes-QA

In short

The released NuScenes-QA answers do not tell left from right. The benchmark’s six spatial relations are published as signed 60° sectors. Its answers follow the unsigned angle to the ego heading instead: “front left” holds on either side, so does “back right”, and “front right” and “back left” never hold. In the official train and validation sets, all 12,392 counting or existence questions about those two relations are answered 0 or no. Two more conventions sit beside this one: “things” are every annotation plus the ego vehicle, and objects with no LiDAR return are counted. I inferred these rules from the answers and did not read the benchmark’s generation code.

The study itself holds perception fixed, using the ground-truth nuScenes objects, and asks something narrow. Once the objects are known, should a frozen language model produce the answer, or write a program that an executor computes? My archived comparison told both modes the published convention. With the convention the answers follow, on 200 questions from three drives, Qwen2.5-1.5B is right 54.0 % of the time when it answers directly and 76.5 % when its program is executed (50.5 % and 68.5 % as published). For Qwen2.5-7B it is 54.5 % against 95.0 %. The share of these questions that at least one of six models’ programs gets right moves from 86 % to 98 %.

On 1,460 questions from 146 validation drives that no prompt was developed on, the 7B model’s programs are ahead of its direct answers by +36.6 points [+33.7, +39.5], a 95 % interval over drives. This remains a controlled diagnostic with oracle perception on a few question families. Asking the 1.5B and 7B models to reason before answering did not close the gap, which says nothing general about whether language models can reason spatially.

What the model is given

Each question in NuScenes-QA [2] is attached to one keyframe of a drive. Neither method sees raw points. Both get the same object list, with one row per annotated object giving its category, its position in metres in the ego vehicle’s frame, and its status. Positions are rounded to 0.1 m in both cases.

As far as the model is concerned, that list is the whole scene. Hover a row or a box to see which goes with which.

Colour
Figure 1. One evaluation keyframe and the object list sent to the model, verbatim: id, category, x, y, status. x points forward, y to the left. The list holds the ten classes the questions name.

The answers do not tell left from right

“To the front left of the bus” sounds obvious until you have to compute it. NuScenes-QA pins it down in its Equation 2. There are six relations, each a 60° sector of bearing, measured from the reference object but using the ego vehicle’s heading. A plain “left” or “right” does not exist. Read as written, the sectors are signed: front left runs from 30° to 90° counter-clockwise of straight ahead, and front right is its mirror image. My archived runs used that reading, and both modes were told it.

The released answers follow another rule. Take a, the unsigned angle between the ego heading and the direction to the object, from 0° to 180°. “Front” is a ≤ 30°. “Front left” is 30° < a ≤ 90°, on either side. “Back right” is 90° < a ≤ 150°, on either side. “Back” is a > 150°. “Front right” and “back left” are never true. This is what the arccos of a normalised dot product gives when the sign of the angle is never recovered. Figure 2 draws both readings; click an object to measure directions from it.

Reference: the ego vehicle.

Figure 2. The six NuScenes-QA relations under two readings. As published: six signed sectors. As the answers use them: both front diagonals are “front left”, both rear diagonals are “back right”, and nothing is ever “front right” or “back left”. Every object is coloured by the relation it falls in, seen from the reference. Click any object to make it the reference.

The evidence needs no geometry

Take every counting or existence question of the official release that names exactly one relation, and count how often the answer is 0 or no. For four of the relations that happens between 20.2 % and 23.9 % of the time. For “front right” and “back left” it happens every time: 12,392 questions over 34,117 keyframes, and not one of them has an object there. The same holds on v1.0-mini (37 of 37 and 41 of 41).

Figure 3. How often each relation is answered 0 or no in the official NuScenes-QA train and validation questions. Only the questions and answers are read; no positions are computed.

Checked on data that did not suggest the rule

I read the rule off evaluation failures of my first comparison, so it has to be tested elsewhere. On the development split, with reference programs verified by hand, the executor reproduces 91 of 100 answers under the signed sectors and 99 under the unsigned rule; the one left over is a question whose reference object is not unique. The same procedure on the evaluation split gives 195 of 200. On the official validation set, a rule parser answers 25,973 questions and agreement goes from 82.8 % to 91.9 %, with the whole change on the four diagonal relations. That parser was not verified by hand and its own programs are sometimes wrong, so the last figure is a floor on agreement and not a measure of label noise.

Figure 4. Agreement between executed reference programs and the released answers, under each reading of the relations. The last two rows also change what counts as a “thing” (next paragraph). Refusals of the executor count as disagreements.

“Things” include the ego vehicle

For “How many things are there?”, the answer equals the number of annotations of the keyframe, of every category, plus one. That holds for all 2,728 such questions in the official release (2,080 in train, 648 in validation). Counting only the ten classes the questions name, plus one, matches 1,610 and 495 of them. So a “thing” includes classes no question ever names, such as pushable objects, debris, bicycle racks and animals. It includes boxes with no LiDAR return. And it includes the ego vehicle, which also counts in relations between objects, though never to the front or back “of me”. I found this on the validation drives and confirmed it on train, which I had not looked at before.

With both rules applied, the executor agrees with reference programs on 97.5 % of 1,460 questions from 146 validation drives, against 85.1 % under the published reading. The object list of Figure 1 and every archived run use the ten named classes; on v1.0-mini that changes one question in 300.

Objects the sensor did not see are counted

In the v1.0-mini annotations, 4,278 of 18,538 objects have zero LiDAR returns. Someone drew a box, but the sensor saw nothing there. The answers count them. Hold the programs fixed and change only the object list: on the 249 counting questions of v1.0-mini that both conditions answer, exact accuracy falls from 94.0 % with every annotation to 44.2 % with only the objects LiDAR hit. On the official validation set (10,087 questions) it falls from 82.7 % to 42.0 %. Under the signed sectors the same drop is 79.9 % to 37.3 % and 72.5 % to 37.0 %.

A perfect detector working from the point cloud would therefore be marked wrong on many of these questions. This measures a mismatch between labels and input on that subset. It is not a detector score. Switch Figure 1 to LiDAR returns to see hollow boxes the sensor missed.

What this means if you use the benchmark

Writing a program instead

In program mode the model never sees the scene. It reads the question and writes one JSON object: an operation over a selector, which is a category with an optional status, direction and anchor. A deterministic executor then runs that on the object list.

A program names a relation, such as front_left. What that relation selects is the executor’s convention, kept in exactly one place. So when the convention turns out to be wrong, the saved programs can be executed again under the right one, with no GPU and no new generation. The direct mode has no such separation: its prompt states the convention, and correcting it needs a new run.

When in doubt, the executor refuses. “The bus” presupposes exactly one bus, so if there are three the answer is ambiguous, which counts as wrong. You can build a program below and run it on any keyframe under either convention. It is the same executor, ported to TypeScript and checked against the Python execution of every archived program under both.


        
Relations
Figure 5. The program schema the model writes, executed live. Selected objects are filled; the anchor is ringed and the active relation is shaded. Switch the convention to see the same program select different objects.

Two hundred questions, two conventions

The first comparison has 200 questions from three drives that were kept out of all prompt development. Invalid programs, refusals and unreadable answers count as wrong. As archived, both modes worked under the published convention: the direct prompt, direct-1, stated the signed sectors and the executor applied them. Qwen2.5-1.5B was then right 50.5 % of the time directly and 68.5 % through its program.

Correcting the two modes takes different work. The programs are executed again under the rule the answers follow and reach 76.5 %. The direct mode gets a new run with a new prompt, direct-2, which states that rule, and reaches 54.0 %. Paired question by question, only the executed answer is right on 71 questions and only the direct one on 26 (67 and 31 as published). The program mode answers fewer questions (91 %) and wins anyway.

Every archived answer is in the table below. Pick a model, switch the convention, and click a cell of the grid to filter. Clicking a question shows its scene, what the executor selects, and the program’s answer under both conventions. For the three hosted models the direct mode was not rerun, so their direct column stays the direct-1 answer.

Conventions

Figure 6. Every archived evaluation answer, under either convention. ✓ right, ✗ wrong; a refusal or invalid program is wrong. The programs are the archived generations in both cases; only their execution changes. The reference is the NuScenes-QA label.

Direct or program, once the convention is right

The same re-execution applies to all six archived models, and program accuracy rises for each of them. Under the published layout, 28 of the 200 questions were wrong in program mode for all six, so none of these programs could pass 86 %. 27 of them ask about a direction, where the executor applied a rule the answers do not follow. Executed as labelled, 4 remain and that bound is 98 %. For the 32B model, correct answers go from 15 to 25 of 27 on “front left” questions, 5 to 11 of 11 on “front right”, 10 to 16 of 16 on “back left” and 12 to 17 of 18 on “back right”.

Show these numbers as a table
Figure 7. Accuracy on the same 200 questions. Hollow marks are the published convention: the direct-1 prompt, and programs executed with signed sectors. Filled marks are the convention the answers follow: direct-2 where it was run, and the same programs executed again. The 32B model is 4-bit quantised. The three hosted endpoints differ in architecture, training and output budget, so this is not a scaling law, and their direct mode was not rerun under direct-2. Qwen3.8 27B ignored the 256-token cap and used 523.9 tokens per direct answer on average, against 156.5 per program.

The direct mode gains less from being told the right rule: from 50.5 % to 54.0 % at 1.5B, 50.5 % to 54.5 % at 7B, and 58.0 % to 64.0 % at 32B.

A bare answer in a few tokens may be an unfair format, so I also asked for the working first and read a final Answer: line, with a 2,048-token budget chosen on the development split. For the 1.5B model this hurts. Under direct-2r it is right 34.5 % of the time, and 56 of its 200 outputs contain no readable answer, which counts as wrong. For the 7B model it helps, from 54.5 % to 62.5 %, at 427 output tokens per question. That is still far below its programs at 95.0 %.

Constrained decoding is a separate condition, because it changes the decoder and not only the prompt. Programs are decoded under a JSON Schema whose categories, statuses, relations and operations are closed sets. Invalid programs go from 8 to 0 at 1.5B and from 1 to 0 at 7B, and accuracy moves from 76.5 % to 80.5 % and from 95.0 % to 95.5 %.

Figure 8. Every condition run on the first comparison, evaluation split. Pale bars were scored under the published convention, full bars under the one the answers follow. A condition is listed only where its run is complete. Greedy decoding throughout.

On 146 held-out drives

Three drives are a thin basis. A second manifest takes 1,460 questions from 146 drives of the official validation set, none of them in v1.0-mini and none used to write a prompt or to find the left/right rule. The “things” rule was found on them. Each model answers them twice in both modes. Once under the published conventions: signed sectors, the ten named classes, direct-1. Once as labelled: the unsigned angle, every annotation and the ego vehicle as things, direct-2. Questions within a drive share its vehicles and its road, so the intervals resample drives, not questions.

As labelled, the 7B model is right 59.5 % of the time directly and 96.1 % through its programs, a difference of +36.6 points [+33.7, +39.5]. Its programs are ahead on 143 drives and behind on 0. For the 1.5B model the difference is +16.6 points [+12.5, +20.5], ahead on 108 drives and behind on 29. The advantage was already there under the published conventions (+27.1 points [+24.4, +29.8] and +15.8 points [+12.2, +19.2]).

It is not uniform. On questions that measure a direction from another object, the 1.5B model’s programs are right 33.1 % of the time and its direct answers 47.9 %. The 7B model shows no such reversal: there it is 92.1 % against 39.3 %.

Show these numbers as a table
Figure 9. Accuracy on 1,460 questions from 146 validation drives. Whiskers are 95 % intervals from 10,000 resamples of drives. Each row is a separate run of both modes. A model appears once its runs are complete.

Where the gain comes from

Counting shows it most clearly. Asked how many objects match, the 1.5B model answering directly under direct-2 is off by 2.42 objects on average, and 2.20 of that is undercounting. It likes to say “1”. The executor actually counts, and is off by 0.34. As published the two errors were 2.16 and 0.68.

Conventions
Figure 10. Each counting question of the first comparison, reference on the horizontal axis and answer on the vertical. Points on the diagonal are exact. Non-numeric answers are left out. For the hosted models the direct answers are those of direct-1 under either setting.

The second gain is less obvious. NuScenes-QA repeats some questions word for word across keyframes, with different correct answers, and a system that ignores the scene can’t keep up. There are 13 such groups. The executed answer is right in every scene for 13 of them. The direct answer manages that for 1, and in 2 it gives the same answer to every scene.

Figure 11. Questions asked verbatim of several keyframes whose reference answers differ. Qwen2.5-1.5B, evaluation split, scored as the answers use the relations: direct-2 answers and the archived programs executed again.

Does scale close the gap?

Not among the models I could rerun. Larger Qwen2.5 checkpoints write valid programs more often, and from 1.5B to 32B the executed mode stays well ahead under either convention (Figure 7). One hosted endpoint, qwen3.8-27b, is the exception in the archive. Told the published convention, it answered directly 84.0 % of the time, level with its programs under that convention at 84.5 %. That is a counterexample to any claim of a universal execution advantage. Its programs reach 98.0 % when executed as labelled, but its direct mode was not rerun under direct-2, so the corrected comparison for this model is open. Nor does the row show that “reasoning” rather than size explains the change. Too many factors moved at once.

A cleaner probe holds the weights fixed. Qwen3-8B has a thinking switch in its chat template. With thinking off, on the first comparison as labelled, it is right 58.0 % of the time directly and 98.0 % through its programs. On the development split with thinking on, it is right on every one of the 63 questions it finishes within 4,096 tokens and is cut off on the other 37, which count as wrong. Its errors there are a matter of budget, at about 2,100 output tokens per question against a few dozen for a program. The evaluation run with thinking on was interrupted and is not reported.

A wider test points the other way. On 280 broader questions, a typed CLEVR-style language lets programs express far more of the benchmark. At 1.5B, though, its accuracy is 29.6 % under the published layout and 31.4 % as labelled, below the direct-1 answer at 52.1 %. When its programs run they are right 85.6 % of the time under the published layout, but they run on only 34.6 % of questions.

What this does not show

Check it yourself

You can recompute every saved number without a GPU and without downloading nuScenes. The audit re-derives correctness and every summary field from the per-question records of the eight archived comparisons and of their eight re-executed counterparts. It also checks manifest membership and scene separation, and fails on any disagreement. The next two commands rebuild the tables of the November 2026 runs and a drive-level interval from the saved rows.

python -m pip install -r requirements-audit.txt
python -m spatial_reasoning.audit_results
python -m spatial_reasoning.summarise_runs
python -m spatial_reasoning.drive_bootstrap spatial_reasoning/results/runs_2026_11/val_new_7b/rows_eval.jsonl \
  --against spatial_reasoning/results/runs_2026_11/val_old_7b/rows_eval.jsonl

The label audit and the re-execution need the official questions and the nuScenes metadata, without sensor data; reproduction.md says where to get them.

# left and right without geometry, and what a "thing" is
python -m spatial_reasoning.audit_labels \
  --questions data/data/nuscenes_qa/NuScenes_train_questions.json data/data/nuscenes_qa/NuScenes_val_questions.json \
  --metadata-root data/data/nuscenes/v1.0-trainval --out outputs/label_audit.json
# the executor against hand-verified reference programs, under each reading
python -m spatial_reasoning.verify_executor --manifest spatial_reasoning/manifests/first_comparison.json \
  --metadata-root data/data/nuscenes/v1.0-mini --split dev --layout nuscenes_qa_as_labelled --out outputs/ev_as_labelled
# every archived program executed again as labelled
python -m spatial_reasoning.rescore_programs --metadata-root data/data/nuscenes/v1.0-mini --out outputs/rescored_as_labelled
python -m spatial_reasoning.analyse_rescored --rescored outputs/rescored_as_labelled

The original course project (2025) was a two-person reimplementation of a reduced PointNet/GPT-2 pipeline, forked from oomcth/npm-3D; it never completed a real training run. This study replaces it. Scenes use the nuScenes v1.0-mini annotations (CC BY-NC-SA 4.0) and NuScenes-QA questions.

References

  1. Senqiao Yang, Jiaming Liu, Ray Zhang et al. LiDAR-LLM: Exploring the Potential of Large Language Models for 3D LiDAR Understanding. arXiv:2312.14074, 2023.
  2. Tianwen Qian, Jingjing Chen, Linhai Zhuo, Yang Jiao, Yu-Gang Jiang. NuScenes-QA: A Multi-modal Visual Question Answering Benchmark for Autonomous Driving Scenario. AAAI 2024.
  3. Justin Johnson et al. CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoning. CVPR 2017.
  4. Kexin Yi et al. Neural-Symbolic VQA: Disentangling Reasoning from Vision and Language Understanding. NeurIPS 2018.
  5. Holger Caesar et al. nuScenes: A multimodal dataset for autonomous driving. CVPR 2020.