Evaluating Geometric Reasoning in Lightweight Large Models
This article examines how to evaluate the geometric reasoning capabilities of lightweight large models using a "construct a regular heptagon with a marked ruler and export it as an animation" task. It explains why traditional static web-page tests are losing their discriminative power, how to turn a single requirement into verifiable specifications, and what typical failure modes lightweight models exhibit. The article also proposes a three-layer verification system for reproducibility and outlines engineering practices for packaging slow reasoning into a usable experience, along with model selection guidance based on task profiles.
Once generative AI entered a stage focused on cost-effectiveness, lightweight models—typically versions with significantly lower parameter counts, memory usage, and inference latency than flagship models—became leading candidates for online workloads. However, lightweight does not mean low capability, nor does it mean old evaluation methods still apply. Using the geometric construction task “construct a regular heptagon with a marked ruler and export it as an animation” as a thread, this article discusses how to build truly discriminative capability evaluations, how to read a model’s reasoning trace, and how to integrate such capabilities into engineering systems reliably.
1. Why traditional “build a web page” tests are failing
Common model capability tests in the past mostly focused on generating a static page, a button, or a simple animation. The problem with these cases is that the goal is clear, the steps are short, and fault tolerance is high, so a model can “look right” even without rigorous reasoning. As the industry’s overall capability improved, the discriminative power of such tests decayed rapidly, and there were even cases where high-spec models failed on individual problems.
More effective evaluations should have three characteristics:
- Dense constraints: the task requires geometric correctness, valid construction steps, rendering timing, and interactive behavior to be satisfied simultaneously;
- Verifiable process: intermediate artifacts (points, lines, circles, intersections) can be checked programmatically, rather than judging only the final image;
- Attributable failure: it can distinguish whether the error is “mathematical misunderstanding,” “step planning error,” or “code implementation error.”
Marked-ruler construction meets these conditions exactly. Beyond the traditional compass and straightedge, it additionally allows a “ruler with markings” to perform one “sliding alignment under a fitting constraint.” This is essentially a planning problem with continuous degrees of freedom and discrete constraints, naturally suited to testing the depth of a model’s reasoning.
2. Task design: breaking one requirement into verifiable specifications
A high-quality prompt does not make requirements longer; it writes the goal as an executable specification. Below is a structured prompt skeleton (illustrative):
Goal: Demonstrate "constructing a regular heptagon with a marked ruler" in a web page, with GIF export support.Input geometry: square ABCD, perpendicular bisector l of the bottom edge, circle E centered at the bottom-right corner E with the diagonal as radius.Key constraints:1) The marked ruler always stays fitted to the bottom-left corner D;2) The first mark slides along circle E until the second mark passes through l;3) Complete the remaining steps with a regular compass and straightedge, explicitly giving intersections and their justifications.Rendering requirements:- Play the construction process step by step along a timeline;- Leave auxiliary lines only where necessary to avoid visual noise;- Provide "replay/pause/export GIF" controls.Acceptance criteria:- All point coordinates can be recomputed from the construction steps;- After playback ends, the regular heptagon is closed with an edge-length error < 1e-3.
The value of such a specification is that it upgrades “draws accurately” to “constructs correctly” and provides machine-verifiable boundary conditions.
3. Experimental observations: lightweight model behavior and typical failure modes
When running the above task in an AI coding tool, lightweight models often exhibit behavior different from flagship models:
- The reasoning trace advances in segments rather than as a smooth stream, indicating heavier internal computation at key nodes;
- There are phases of “thinking for a long time without producing output,” which appear as long blanks on the frontend and are easily mistaken for a hang;
- Once entering the implementation phase, the code is well organized, proactively fills in omitted compass-and-straightedge steps, and makes trade-offs on leaving auxiliary-line traces.
From the results, the model fully followed the path of “first locate the sliding alignment, then complete the regular construction,” and the construction closed in the end. This behavior shows that the capability bottleneck of lightweight models lies more in “output throughput and interaction experience” than in “reasoning correctness.”
Common failure modes can be summarized into four categories:
- Constraint drift: losing the “fit to point D” condition during sliding alignment and degenerating into a regular compass-and-straightedge construction;
- Improper step merging: compressing the solving of multiple intersections into one step, resulting in missing justifications;
- Rendering disconnected from geometry: the image is correct but the coordinates cannot be recomputed, or vice versa;
- Missing export pipeline: only completing a static demonstration without providing animation export.
4. Making evaluation reproducible: a three-layer verification system
It is recommended to split acceptance into three layers to form a closed loop:
- Math layer: recompute each intersection with symbolic or numerical methods, and verify the closure condition and edge-length error;
- Process layer: parse the step sequence output by the model and check whether constraints are satisfied step by step;
- Presentation layer: replay the timeline in a browser and check control behavior and the exported file’s frame count and duration.
Illustrative verification code (pseudocode):
pts = construct_by_steps(steps) # Recompute the point set from the stepsassert is_closed(pts, tol=1e-3) # Closureassert all(edge_len(pts) ≈ edge_len(pts)[0]) # Equal edgesgif = export_gif(timeline, fps=20)assert gif.frame_count > 0 and gif.duration > 0
5. Engineering implementation: packaging “slow thinking” into a good experience
Slow output from a lightweight model is not necessarily a defect; the key is that interaction design must match it:
- Visible progress: break “thinking” into stage prompts (parsing constraints/planning steps/generating code/self-checking) to reduce waiting anxiety;
- Segmented streaming: even if internal reasoning is discontinuous, push by semantic blocks step by step to avoid long blanks;
- Timeout and degradation: set a thinking timeout threshold, and after timeout return partial results or suggest splitting the task;
- Result caching: cache intermediate geometry data for deterministic construction tasks, and reuse it directly for repeat requests;
- Monitoring and alerting: establish monitoring and alerts for the proportion of “thinking-only, no-output” sessions, average latency, and verification failure rate.
6. Selection guidance: matching model tiers by task profile
Do not use “flagship/lightweight” as the sole criterion; choose by task profile:
- Latency-sensitive, high concurrency, medium steps: prioritize lightweight models;
- Extremely dense constraints requiring long-chain reasoning: prioritize high-spec models, or adopt a tiered strategy of “lightweight pre-screening + high-spec review”;
- Need for stable delivery: regardless of tier, pair with three-layer verification and caching.
In relevant practices with Baidu AI Cloud, model inference can be combined with general cloud product capabilities such as object storage, message queues, logging services, and monitoring/alerting to build a complete pipeline of “request ingestion—asynchronous inference—result verification—trace auditing,” thereby balancing cost and quality.
Conclusion
The value of a lightweight flagship model lies not in replicating all the behavior of a flagship model, but in covering most online scenarios at lower cost. Through high-discriminative evaluation, a reproducible three-layer verification system, and interaction and engineering optimizations oriented toward “slow thinking,” developers can fully apply it to high-value tasks such as geometric reasoning, code generation, and complex constraint satisfaction.
