Evaluating Spatial Reasoning with Parametric 3D Generation
When a model claims strong spatial reasoning, the useful test is not whether it can produce a plausible 3D image. This article abstracts that idea into a general evaluation framework: generate a parametric 3D scene, accept it mainly through numerical constraints and regression checks, and judge whether parameter changes correctly propagate into geometry, kinematics, and contact. It does not review or recommend any specific product.
When a new model claims strong spatial reasoning, evaluation should not stop at whether it can produce a 3D image that looks reasonable. The more verifiable questions are whether the model understands spatial relations among 3D objects, whether parameter changes propagate correctly into geometry, kinematics, and contact constraints, whether it can deliver a script that can be run repeatedly, and whether the structure stays consistent after those parameters change. This article does not evaluate or recommend any specific product. It abstracts the original evaluation idea into a general technical framework: use parametric 3D scene generation as the task, use numerical constraints and regression checks as the main acceptance criteria, and discuss how to design and engineer spatial-reasoning evaluations.
Why parametric 3D generation tests spatial reasoning
Spatial reasoning is more than recognizing “left,” “above,” or “in front.” It also includes coordinate transforms, scale propagation, part assembly, contact relations, kinematic phase, collision detection, and topological consistency. Traditional question-answering or image-generation tests are easy to mask with visual appearance: a picture can look good without the pedal actually touching the foot; handlebars can look normal without grip positions following wingspan; a chain can be drawn without correct wrap angle, tension, or clearance.
Parametric 3D generation is useful because it is executable, checkable, and regressable. Evaluators can require the model under test to output a complete script, run it in a headless 3D environment, and produce geometry and constraint reports. More importantly, they change only a small set of global constants at the top of the script, leave the construction logic untouched, rerun it, and check that every derived relation still holds. This “change parameters, not code” test exposes hardcoding, parameters that are disconnected from geometry, and fake spatial understanding.
Task design: a pelican riding a bicycle
A suitable evaluation scene should be narrative, structurally complex, and checkable. For example: at dusk on a coastal path, a pelican rides a dark-green steel-frame bicycle. The pelican leans forward, both wings reach ahead and grip the handlebars; one webbed foot presses the pedal, and the other hangs at the lowest point of the return stroke. The frame is a classic diamond frame, a tool bag hangs from the down tube, and a roll of fishing net is tied to the rear rack. The bicycle is not a static prop: the crank drives the rear wheel, the chain is under tension, and the riding pose must match the current phase of the drivetrain.
The scene may use an artistic style, but spatial relations between parts must be checkable through parameters. It covers several coupled dimensions—wingspan and handlebar width, wheelbase and frame geometry, chainring tooth count and chain path, crank phase and foot contact—so it works as a composite spatial-reasoning task.
Parameter contract and derived rules
The evaluation script should place key parameters at the top as global constants. All geometry must be derived from those constants. Magic numbers inside functions that are disconnected from them are not allowed. Example parameters: wingspan, wheelbase, chainring teeth, rear cog teeth, and crank phase angle. Illustrative pseudocode:
# Parameter layer: only this section may be editedPELICAN_WINGSPAN = 1.15BICYCLE_WHEELBASE = 1.02BICYCLE_CHAINRING_TEETH = 44BICYCLE_COG_TEETH = 16BICYCLE_CRANK_PHASE = 35.0def derived_handlebar_width():return PELICAN_WINGSPAN * 0.86def derived_grip_span():return PELICAN_WINGSPAN * 0.72def derived_chain_ratio():return BICYCLE_CHAINRING_TEETH / BICYCLE_COG_TEETHdef pedal_target_angle(phase_deg):return phase_deg % 360.0
Derived rules should be explicit. Handlebar width is driven by wingspan, and grip spacing should keep both wing tips enclosed. Chainring and cog radii are driven by tooth counts, so chain length, wrap angle, and clearance path must be recomputed. Crank phase determines pedal position: the pedaling foot must contact the pedal surface, and the free foot should sit at the low point of the return stroke. Evaluators can change only wingspan from 1.15 to 1.35, chainring teeth from 44 to 52, and crank phase from 35 to 140, then rerun the script and check that the handlebars widen, the grips still enclose the wing tips, the chain path is recomputed without intersection or floating, and webbed-foot contact still holds.
Script structure: separate construction from validation
Split the script into a parameter layer, a derived layer, a geometry layer, a kinematics layer, a validation layer, and a report layer. Build functions create the scene; validation functions emit a structured report. Illustrative checks:
def validate_scene(report):tol = 1e-3assert abs(report["grip_span"] - derived_grip_span()) < tolassert report["chain_path_clear"] is Trueassert abs(report["contact_gap"]) < tolassert report["floating_foot_at_return_low"] is Trueassert report["collision_count"] == 0return Truedef run_regression():base = build_scene()base_report = validate_scene(base.report)# Change configuration constants only; construction logic stays the samechanged = build_scene(config={"wing_span": 1.35,"chainring_teeth": 52,"crank_phase": 140.0})changed_report = validate_scene(changed.report)assert changed_report["handlebar_width"] > base_report["handlebar_width"]assert changed_report["chain_rederived"] is Trueassert changed_report["pedal_contact"] is Trueassert changed_report["floating_foot_low"] is True
The validation layer should report the numeric value, tolerance, and pass state of each constraint, not only success or failure. The report should include grip enclosure gap, minimum distance between chain and frame, pedal-surface contact gap, free-foot height, collision count, and unit consistency. That supports automatic judgment and makes failed cases easier to review by hand.
Acceptance checklist
First, handlebars must follow wingspan. When wingspan increases, handlebar width and grip spacing should change together, and grip positions should still enclose both wing tips within a reasonable tolerance. Second, the chainring and chain must stay coupled. When the chainring grows, the chain path must be recomputed, with correct wrap angle, tension, and clearance, and without intersection or floating. Third, crank phase and riding pose must stay coupled. After the phase changes, the pedaling foot must still contact the pedal surface, the free foot must remain at the low point of the return stroke, and wing pose must stay consistent with the forward lean of the body. Fourth, global geometry must be consistent: no interpenetration, a consistent coordinate frame, units in meters, and a reproducible random process. Fifth, dynamic relations must stay consistent: when the crank drives the rear wheel, chain phase and pedal phase remain synchronized.
Common failure modes and diagnosis
Common failures include parameters that do not drive geometry, so changing a constant leaves the mesh unchanged; hardcoding, where functions contain sizes unrelated to the global constants; mixed coordinate frames, where local and global transforms are composed incorrectly; contact drift, where a bounding-box approximation replaces pedal-surface contact; incorrect chain paths that use a straight line or a fixed arc instead of recomputing wrap angle; phase desynchronization, where the feet and crank are generated independently; and visual deception, where the render looks good but the constraint report fails. Diagnosis should start with numeric assertions and helper-line visualization, then use the rendered image.
Engineering practice and metrics
In practice, evaluation scripts can run in batches inside a containerized environment, with a fixed random seed. Structured reports can be archived in object storage, and a logging service can record failure types. Metrics can include task completion rate, constraint pass rate, parameter-regression pass rate, failure-type distribution, and execution stability. Human review of renders still has value, but numeric constraints should be the standard. The same framework can extend to other general spatial-reasoning tasks, such as mechanical assembly, architectural layout, and robot grasping.
In short, the strength of a spatial-reasoning evaluation is not a single generation result. It is whether the parametric contract is clear, whether coupled relations are correct, and whether acceptance can be regressed. An executable, quantifiable, and reproducible 3D generation evaluation reflects real spatial understanding better than a one-off visual demo.
