Evaluating Spatial Reasoning in Large Models: A Parametric 3D Generation Practice
This article presents a practical approach to evaluating whether large language models possess genuine spatial reasoning skills for 3D content generation. It explains why generating runnable code is not enough, and introduces a test framework built around three pillars: parametric spatial relationships, parameter perturbation as acceptance testing, and kinematic consistency. Using a pelican riding a bicycle as the example, it shows how global constants should drive all geometry, how changing key parameters verifies constraint integrity, and how drivetrain and contact relationships expose hidden failures. The article also summarizes common differences observed across models and offers reusable tips for prompt design, automated regression, and large-scale evaluation environments.
1. Background: Why “Writing Code” Is Not the Same as “Building a Model”
In 3D content generation, evaluating whether a model has real spatial reasoning ability requires more than checking if it can output a runnable script. A script that executes only proves that the syntax and API calls are correct. Spatial reasoning, by contrast, tests whether a model can reliably derive the relative positions, constraints, and motion phases between parts using text descriptions alone, without any reference image.
The evaluation approach in the original material is representative. Early solutions mostly relied on browser-based 3D rendering libraries to build scenes. As the evaluation dimensions deepened, however, these lightweight approaches could no longer support complex mechanical structures and parametric linkage checks. The work therefore shifted to the scripting interfaces of professional 3D software, running and validating in batch in headless mode. The essence of this shift is upgrading from “checking the rendered result” to “performing parametric checks.”
2. Three Main Lines of Evaluation Design
2.1 Spatial Relationships Must Be Parametric
The evaluation script requires all geometry to be derived from top-level global constants. “Magic numbers” that are disconnected from those constants are forbidden inside functions. Take a pelican riding a bicycle as an example: the wingspan controls the handlebar width and grip spacing, the wheelbase drives the frame geometry, the chainring tooth count determines the chain length and rear cog ratio, and the crank phase angle determines the pedal position and foot contact relationship.
A schematic structure looks like this:
PELICAN_WINGSPAN = 1.15 # Wingspan, drives handlebar widthBICYCLE_WHEELBASE = 1.02 # Wheelbase, drives frame geometryCHAINRING_TEETH = 44 # Chainring tooth countCOG_TEETH = 16 # Rear cog tooth countCRANK_PHASE = 35.0 # Crank phase angledef build_handlebar(wingspan):return wingspan * 0.92 # Grip spacing derived from wingspandef build_frame(wheelbase):return wheelbase * 0.61 # Down tube length derived from wheelbase
2.2 Parameter Perturbation as Acceptance Testing
The real acceptance action is “change only the numbers, never the code”: change the wingspan from 1.15 to 1.35, change the chainring tooth count from 44 to 52, and change the crank phase from 35 degrees to 140 degrees. Then rerun the script and check three things:
- Whether the handlebar widens with the wingspan and still encloses both wing tips.
- Whether the chain path is correctly recalculated after the chainring grows, with no clipping and no floating.
- Whether the webbed foot on the power stroke still contacts the pedal surface after the phase change, while the other foot remains at the low point of the return stroke.
The value of this method is that it turns the subjective “looks right” into the objective “still right after changing parameters.” It is automatable, regression-friendly, and suitable for side-by-side comparison.
2.3 Kinematic Consistency
The drivetrain is not a static decoration. The crank drives the rear wheel, the chain stays under tension, and the foot contact point changes with the phase. Together these constraints form a kinematic consistency check. If a model only poses the “riding” posture while ignoring phase and gear ratio, the contradiction will surface immediately under parameter perturbation.
3. Typical Differences in Side-by-Side Comparison
When multiple models generate in parallel under the same prompt, common differences concentrate in three areas:
- Whether parameter coupling is real. Some outputs declare constants at the top but write separate values inside functions.
- Whether the geometric relationship between the chain and the chainring is recalculated as the tooth count changes.
- Whether foot-to-pedal contact is linked to the phase.
Better-performing solutions usually complete the scene skeleton and drivetrain derivation first, then add stylized details. Solutions that fail often break at the chain path or contact relationships.
4. Reusable Practical Recommendations
- Specify the delivery format clearly in the prompt: an executable script in headless mode, a fixed file name, and a fixed run command.
- Write the acceptance conditions into the prompt so the model aligns parametric linkage and contact constraints on its own.
- Keep the evaluation environment as consistent as possible to avoid rendering differences interfering with judgment.
- Introduce automated regression: run a parameter matrix in batch and record failures.
- For large-scale evaluation, use container platforms, object storage, and logging services to isolate environments, archive results, and track issues.
5. Conclusion
The evaluation of spatial reasoning ability does not hinge on how impressive the rendering looks, but on whether constraints still hold under parameter perturbation. Only by setting “parametric, perturbable, and automatically verifiable” as the baseline can model capability be pulled back from visual impression to engineering reality, providing a reliable basis for subsequent prompt optimization and model selection.
