Analyzing Geometric Constraint Solving in Lightweight Reasoning Models
This article examines how lightweight reasoning models handle geometric construction tasks, using a regular heptagon problem solved via a sliding ruler as a high-discrimination benchmark. It explains why rigid constraints and verifiable processes expose pseudo-completion failures, outlines low-cost checks such as object tracing and constraint verification, and offers practical recommendations for building automated evaluation pipelines.
1. Background: Why Geometric Construction Is a Hard Test of Reasoning
As lightweight models—series that significantly compress parameter size and inference cost while retaining strong reasoning ability—move into engineering practice, a central question arises: can compressed models still complete tasks that require long reasoning chains, strict constraints, and verifiable outputs?
Compared with common web-generation tests, compass-and-straightedge construction tasks have three natural advantages:
- Rigid constraints: Every construction step must be derived from existing points, lines, or circles; no object can be introduced from nowhere.
- Verifiable process: The validity of intermediate outputs can be checked step by step through geometric relationships, rather than judged only by whether the final image “looks right.”
- Reproducible results: Under the same prompt, the output should converge stably to the same construction sequence.
Therefore, such tasks can effectively distinguish between models that “truly understand constraints” and those that merely “appear to complete the task.”
2. Evaluation Design: Building a High-Discrimination Prompt with the Two-Neusis Construction of a Regular Heptagon
A regular heptagon cannot be constructed with traditional compass and straightedge in a finite number of steps; it requires a marked ruler (the “two-neusis” idea) to perform a single “sliding alignment.” The key to this type of prompt is to make implicit mathematical constraints explicit as executable steps, for example:
- First construct a square and draw the perpendicular bisector of its bottom edge;
- Use one vertex as the center and the diagonal length as the radius to draw a circle;
- Keep the marked ruler tight against another vertex and slide it so that the first tick mark lands on the circle and the second tick mark passes through the perpendicular bisector;
- Complete the remaining routine steps, such as the other perpendicular bisectors and determining the center;
- Require that “auxiliary traces are left only where necessary,” and support export as an animated GIF.
Illustrative pseudocode structure (used to describe the expected solution skeleton, not a concrete implementation):
objects = []square = construct_square()bisector = perpendicular_bisector(square.bottom_edge)circle = circle(center=square.right_bottom, radius=diagonal(square))# Key constraint: sliding alignment; both conditions must hold simultaneouslyruler = sliding_ruler(anchor=square.left_bottom)solve(ruler.position) s.t.ruler.tick_1 ∈ circleruler.tick_2 ∈ bisector# Routine finishingcenter = intersect(perpendicular_bisectors(...))polygon = regular_polygon(center, 7)render_gif(steps=objects, trace_only_necessary=True)
The “barrier” of such prompts lies not in text length but in whether the model will add steps on its own when constraints conflict.
3. Typical Failure Mode: Pseudo-Completion
In comparative experiments, a common failure is not “unable to do it” but “looks like it was done.” Its typical features include:
- Adding nonexistent construction steps without authorization, bypassing the core difficulty of sliding alignment;
- Hard-coding vertex positions with approximate coordinates, replacing geometric derivation with numerical fitting;
- Weakening constraints: changing “the second tick mark passes through the perpendicular bisector” to “roughly near it”;
- Inconsistency between process and result: the final figure is correct, but the generated object sequence cannot reproduce it.
To identify pseudo-completion in engineering, three low-cost checks can be used:
- Object tracing: Can each vertex of the final polygon be traced back to a legal sequence of intersections?
- Constraint checklist verification: Check off one by one whether the hard conditions in the prompt are explicitly satisfied.
- Minimum-trace principle: Do auxiliary circles and traces appear only where necessary? Excess traces often indicate that the model is using “trial-and-error construction” to mask reasoning gaps.
4. Capability Analysis: Why Lightweight Models Can “Hold Up” on Long-Chain Tasks
From the task characteristics, if a lightweight model performs stably in such evaluations, it usually demonstrates three abilities:
- Constraint retention over long contexts: Not losing early settings (such as radius sources and anchor choices) across dozens of construction steps;
- Structured planning: Planning the construction sequence first, then generating code, rather than writing and guessing on the fly;
- Instruction-following over result-orientation: Preferring to extend reasoning rather than modify the problem constraints without authorization.
It should be objectively noted that such tasks are sensitive to output latency: complete reasoning and animated rendering bring noticeable waiting time, and the interactive experience may show “intermittent output.” This is a common trade-off between reasoning depth and response speed, which can be mitigated in engineering through streaming feedback, staged prompts, and result caching.
5. Implementation Recommendations: Incorporating “Verifiable Process” into Evaluation and Pipelines
To reuse this evaluation approach in your own business, it is recommended to:
- Build a constraint checklist template: Split prompts into three categories: hard constraints, soft preferences, and output format;
- Introduce automated verification: For geometric tasks, use programmatic assertions such as intersection validity and distance relationships;
- Layered evaluation: First test single-step construction correctness, then test multi-step composition and rendering output;
- Cost-controlled deployment: Use container platforms to host inference services, object storage to save artifacts, and logging and monitoring with alerts to track latency and failure rates, forming a closed loop.
6. Conclusion
The value of geometric constraint-solving tasks lies in turning “whether the model truly understands instructions” into a quantifiable and reviewable engineering problem. The stable performance of lightweight models on such tasks shows that reasoning ability does not depend entirely on parameter scale; meanwhile, the prevalence of pseudo-completion reminds us that the evaluation focus should shift from result similarity to process validity. Making constraints checklist-based, verification automated, and metrics observable is the reliable path for model selection and quality assurance.
